ant-design/components/date-picker/__tests__/__snapshots__/DatePicker.test.js.snap

825 lines
28 KiB
Plaintext
Raw Normal View History

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`DatePicker prop locale should works 1`] = `
<span
class="ant-calendar-picker"
>
<div
style=""
>
<input
class="ant-calendar-picker-input ant-input"
placeholder="Избери дата"
readonly=""
2017-12-19 16:06:19 +08:00
value="2000-01-01"
/>
2018-07-19 20:37:47 +08:00
<i
2018-08-24 18:36:08 +08:00
class="anticon anticon-close-circle ant-calendar-picker-clear"
>
<svg
aria-hidden="true"
class=""
data-icon="close-circle"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
2018-08-27 20:40:11 +08:00
xmlns="http://www.w3.org/2000/svg"
2018-08-24 18:36:08 +08:00
>
<path
d="M512 0C229.2 0 0 229.2 0 512s229.2 512 512 512 512-229.2 512-512S794.8 0 512 0zm205.3 666.9c14 14.1 14 36.9-.1 50.9-7 7-16.2 10.5-25.4 10.5s-18.5-3.5-25.5-10.6L512 563 357.7 717.7c-7 7.1-16.3 10.6-25.5 10.6s-18.4-3.5-25.4-10.5c-14.1-14-14.1-36.8-.1-50.9L461.2 512 306.7 357.1c-14-14.1-14-36.9.1-50.9s36.9-14 50.9.1L512 461l154.3-154.8c14-14.1 36.8-14.1 50.9-.1 14.1 14 14.1 36.8.1 50.9L562.8 512l154.5 154.9z"
/>
</svg>
</i>
2018-07-25 11:51:19 +08:00
<i
2018-08-13 20:51:01 +08:00
class="anticon anticon-calendar ant-calendar-picker-icon"
2018-07-25 11:51:19 +08:00
>
<svg
aria-hidden="true"
2018-08-14 15:32:29 +08:00
class=""
2018-07-25 11:51:19 +08:00
data-icon="calendar"
fill="currentColor"
height="1em"
viewBox="0 0 1024 1024"
width="1em"
2018-08-27 20:40:11 +08:00
xmlns="http://www.w3.org/2000/svg"
2018-07-25 11:51:19 +08:00
>
<path
2018-08-24 18:36:08 +08:00
d="M888 128H768v-28c0-19.9-16.1-36-36-36s-36 16.1-36 36v28H328v-28c0-19.9-16.1-36-36-36s-36 16.1-36 36v28H136c-39.8 0-72 32.2-72 72v688c0 39.8 32.2 72 72 72h752c39.8 0 72-32.3 72-72V200c0-39.8-32.2-72-72-72zm-752 72h120v20c0 19.9 16.1 36 36 36s36-16.1 36-36v-20h368v20c0 19.9 16.1 36 36 36s36-16.1 36-36v-20h120v112H136V200zm752 688H136V384h752v504zM288 512h64c17.7 0 32 14.3 32 32s-14.3 32-32 32h-64c-17.7 0-32-14.3-32-32s14.3-32 32-32zm192 0h64c17.7 0 32 14.3 32 32s-14.3 32-32 32h-64c-17.7 0-32-14.3-32-32s14.3-32 32-32zm192 0h64c17.7 0 32 14.3 32 32s-14.3 32-32 32h-64c-17.7 0-32-14.3-32-32s14.3-32 32-32zM288 706h64c17.7 0 32 14.3 32 32s-14.3 32-32 32h-64c-17.7 0-32-14.3-32-32s14.3-32 32-32zm192 0h64c17.7 0 32 14.3 32 32s-14.3 32-32 32h-64c-17.7 0-32-14.3-32-32s14.3-32 32-32z"
2018-07-25 11:51:19 +08:00
/>
</svg>
</i>
</div>
<div>
<div
class="ant-calendar-picker-container ant-calendar-picker-container-placement-bottomLeft slide-up-appear"
style="left: -999px; top: -1002px;"
>
<div
class="ant-calendar"
tabindex="0"
>
<div
class="ant-calendar-panel"
>
<div
class="ant-calendar-input-wrap"
>
<div
class="ant-calendar-date-input-wrap"
>
<input
class="ant-calendar-input "
placeholder="Избери дата"
2017-12-19 16:06:19 +08:00
value="2000-01-01"
/>
</div>
<a
class="ant-calendar-clear-btn"
role="button"
title="Изчистване"
/>
</div>
<div
class="ant-calendar-date-panel"
>
<div
class="ant-calendar-header"
>
<div
style="position: relative;"
>
<a
class="ant-calendar-prev-year-btn"
role="button"
title="Последна година (Control + left)"
/>
<a
class="ant-calendar-prev-month-btn"
role="button"
title="Предишен месец (PageUp)"
/>
<span
class="ant-calendar-my-select"
>
<a
class="ant-calendar-month-select"
role="button"
title="Избор на месец"
>
2017-12-19 16:06:19 +08:00
Jan
</a>
<a
class="ant-calendar-year-select"
role="button"
title="Избор на година"
>
2017-12-19 16:06:19 +08:00
2000
</a>
</span>
<a
class="ant-calendar-next-month-btn"
title="Следващ месец (PageDown)"
/>
<a
class="ant-calendar-next-year-btn"
title="Следваща година (Control + right)"
/>
</div>
</div>
<div
class="ant-calendar-body"
>
<table
cellspacing="0"
class="ant-calendar-table"
role="grid"
>
<thead>
<tr
role="row"
>
<th
class="ant-calendar-column-header"
role="columnheader"
title="Sun"
>
<span
class="ant-calendar-column-header-inner"
>
Su
</span>
</th>
<th
class="ant-calendar-column-header"
role="columnheader"
title="Mon"
>
<span
class="ant-calendar-column-header-inner"
>
Mo
</span>
</th>
<th
class="ant-calendar-column-header"
role="columnheader"
title="Tue"
>
<span
class="ant-calendar-column-header-inner"
>
Tu
</span>
</th>
<th
class="ant-calendar-column-header"
role="columnheader"
title="Wed"
>
<span
class="ant-calendar-column-header-inner"
>
We
</span>
</th>
<th
class="ant-calendar-column-header"
role="columnheader"
title="Thu"
>
<span
class="ant-calendar-column-header-inner"
>
Th
</span>
</th>
<th
class="ant-calendar-column-header"
role="columnheader"
title="Fri"
>
<span
class="ant-calendar-column-header-inner"
>
Fr
</span>
</th>
<th
class="ant-calendar-column-header"
role="columnheader"
title="Sat"
>
<span
class="ant-calendar-column-header-inner"
>
Sa
</span>
</th>
</tr>
</thead>
<tbody
class="ant-calendar-tbody"
>
<tr
2017-12-19 16:06:19 +08:00
class="ant-calendar-active-week"
role="row"
>
<td
class="ant-calendar-cell ant-calendar-last-month-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="December 26, 1999"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
26
</div>
</td>
<td
class="ant-calendar-cell ant-calendar-last-month-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="December 27, 1999"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
27
</div>
</td>
<td
class="ant-calendar-cell ant-calendar-last-month-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="December 28, 1999"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
28
</div>
</td>
<td
class="ant-calendar-cell ant-calendar-last-month-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="December 29, 1999"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
29
</div>
</td>
<td
class="ant-calendar-cell ant-calendar-last-month-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="December 30, 1999"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
30
</div>
</td>
<td
2018-05-25 14:25:26 +08:00
class="ant-calendar-cell ant-calendar-last-month-cell ant-calendar-last-day-of-month"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="December 31, 1999"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
2017-12-19 16:06:19 +08:00
31
</div>
</td>
<td
2017-12-19 16:06:19 +08:00
class="ant-calendar-cell ant-calendar-selected-date ant-calendar-selected-day"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="January 1, 2000"
>
<div
aria-disabled="false"
2017-12-19 16:06:19 +08:00
aria-selected="true"
class="ant-calendar-date"
>
2017-12-19 16:06:19 +08:00
1
</div>
</td>
</tr>
<tr
class=""
role="row"
>
<td
class="ant-calendar-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="January 2, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
2
</div>
</td>
<td
class="ant-calendar-cell"
role="gridcell"
title="January 3, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
3
</div>
</td>
<td
class="ant-calendar-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="January 4, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
4
</div>
</td>
<td
class="ant-calendar-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="January 5, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
5
</div>
</td>
<td
class="ant-calendar-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="January 6, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
6
</div>
</td>
<td
class="ant-calendar-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="January 7, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
7
</div>
</td>
<td
class="ant-calendar-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="January 8, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
8
</div>
</td>
2017-12-19 16:06:19 +08:00
</tr>
<tr
class=""
role="row"
>
<td
class="ant-calendar-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="January 9, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
9
</div>
</td>
<td
class="ant-calendar-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="January 10, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
10
</div>
</td>
<td
class="ant-calendar-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="January 11, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
11
</div>
</td>
<td
class="ant-calendar-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="January 12, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
12
</div>
</td>
<td
class="ant-calendar-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="January 13, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
13
</div>
</td>
<td
class="ant-calendar-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="January 14, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
14
</div>
</td>
<td
class="ant-calendar-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="January 15, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
15
</div>
</td>
2017-12-19 16:06:19 +08:00
</tr>
<tr
class=""
role="row"
>
<td
class="ant-calendar-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="January 16, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
16
</div>
</td>
<td
2017-12-18 09:48:43 +08:00
class="ant-calendar-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="January 17, 2000"
>
<div
aria-disabled="false"
2017-12-18 09:48:43 +08:00
aria-selected="false"
class="ant-calendar-date"
>
17
</div>
</td>
<td
2017-12-19 16:06:19 +08:00
class="ant-calendar-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="January 18, 2000"
>
<div
aria-disabled="false"
2017-12-19 16:06:19 +08:00
aria-selected="false"
class="ant-calendar-date"
>
18
</div>
</td>
<td
class="ant-calendar-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="January 19, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
19
</div>
</td>
<td
class="ant-calendar-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="January 20, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
20
</div>
</td>
<td
class="ant-calendar-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="January 21, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
21
</div>
</td>
<td
class="ant-calendar-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="January 22, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
22
</div>
</td>
2017-12-19 16:06:19 +08:00
</tr>
<tr
class=""
role="row"
>
<td
class="ant-calendar-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="January 23, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
23
</div>
</td>
<td
class="ant-calendar-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="January 24, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
24
</div>
</td>
<td
class="ant-calendar-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="January 25, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
25
</div>
</td>
<td
class="ant-calendar-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="January 26, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
26
</div>
</td>
<td
class="ant-calendar-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="January 27, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
27
</div>
</td>
<td
class="ant-calendar-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="January 28, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
28
</div>
</td>
<td
class="ant-calendar-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="January 29, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
29
</div>
</td>
2017-12-19 16:06:19 +08:00
</tr>
<tr
class=""
role="row"
>
<td
class="ant-calendar-cell"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="January 30, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
30
</div>
</td>
<td
2018-05-25 14:25:26 +08:00
class="ant-calendar-cell ant-calendar-last-day-of-month"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="January 31, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
31
</div>
</td>
<td
class="ant-calendar-cell ant-calendar-next-month-btn-day"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="February 1, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
1
</div>
</td>
<td
class="ant-calendar-cell ant-calendar-next-month-btn-day"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="February 2, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
2
</div>
</td>
<td
class="ant-calendar-cell ant-calendar-next-month-btn-day"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="February 3, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
3
</div>
</td>
<td
class="ant-calendar-cell ant-calendar-next-month-btn-day"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="February 4, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
4
</div>
</td>
<td
class="ant-calendar-cell ant-calendar-next-month-btn-day"
role="gridcell"
2017-12-19 16:06:19 +08:00
title="February 5, 2000"
>
<div
aria-disabled="false"
aria-selected="false"
class="ant-calendar-date"
>
5
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div
class="ant-calendar-footer"
>
<span
class="ant-calendar-footer-btn"
>
<a
class="ant-calendar-today-btn "
role="button"
2017-12-19 16:06:19 +08:00
title="November 22, 2016"
>
Днес
</a>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</span>
`;