1 | "use strict";
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.CalendarDayPhrases = exports.DayPickerNavigationPhrases = exports.DayPickerKeyboardShortcutsPhrases = exports.DayPickerPhrases = exports.SingleDatePickerInputPhrases = exports.SingleDatePickerPhrases = exports.DateRangePickerInputPhrases = exports.DateRangePickerPhrases = exports["default"] = void 0;
|
7 | var calendarLabel = 'Calendar';
|
8 | var roleDescription = 'datepicker';
|
9 | var closeDatePicker = 'Close';
|
10 | var focusStartDate = 'Interact with the calendar and add the check-in date for your trip.';
|
11 | var clearDate = 'Clear Date';
|
12 | var clearDates = 'Clear Dates';
|
13 | var jumpToPrevMonth = 'Move backward to switch to the previous month.';
|
14 | var jumpToNextMonth = 'Move forward to switch to the next month.';
|
15 | var keyboardShortcuts = 'Keyboard Shortcuts';
|
16 | var showKeyboardShortcutsPanel = 'Open the keyboard shortcuts panel.';
|
17 | var hideKeyboardShortcutsPanel = 'Close the shortcuts panel.';
|
18 | var openThisPanel = 'Open this panel.';
|
19 | var enterKey = 'Enter key';
|
20 | var leftArrowRightArrow = 'Right and left arrow keys';
|
21 | var upArrowDownArrow = 'up and down arrow keys';
|
22 | var pageUpPageDown = 'page up and page down keys';
|
23 | var homeEnd = 'Home and end keys';
|
24 | var escape = 'Escape key';
|
25 | var questionMark = 'Question mark';
|
26 | var selectFocusedDate = 'Select the date in focus.';
|
27 | var moveFocusByOneDay = 'Move backward (left) and forward (right) by one day.';
|
28 | var moveFocusByOneWeek = 'Move backward (up) and forward (down) by one week.';
|
29 | var moveFocusByOneMonth = 'Switch months.';
|
30 | var moveFocustoStartAndEndOfWeek = 'Go to the first or last day of a week.';
|
31 | var returnFocusToInput = 'Return to the date input field.';
|
32 | var keyboardForwardNavigationInstructions = 'Navigate forward to interact with the calendar and select a date. Press the question mark key to get the keyboard shortcuts for changing dates.';
|
33 | var keyboardBackwardNavigationInstructions = 'Navigate backward to interact with the calendar and select a date. Press the question mark key to get the keyboard shortcuts for changing dates.';
|
34 |
|
35 | var chooseAvailableStartDate = function chooseAvailableStartDate(_ref) {
|
36 | var date = _ref.date;
|
37 | return "Choose ".concat(date, " as your check-in date. It\u2019s available.");
|
38 | };
|
39 |
|
40 | var chooseAvailableEndDate = function chooseAvailableEndDate(_ref2) {
|
41 | var date = _ref2.date;
|
42 | return "Choose ".concat(date, " as your check-out date. It\u2019s available.");
|
43 | };
|
44 |
|
45 | var chooseAvailableDate = function chooseAvailableDate(_ref3) {
|
46 | var date = _ref3.date;
|
47 | return date;
|
48 | };
|
49 |
|
50 | var dateIsUnavailable = function dateIsUnavailable(_ref4) {
|
51 | var date = _ref4.date;
|
52 | return "Not available. ".concat(date);
|
53 | };
|
54 |
|
55 | var dateIsSelected = function dateIsSelected(_ref5) {
|
56 | var date = _ref5.date;
|
57 | return "Selected. ".concat(date);
|
58 | };
|
59 |
|
60 | var dateIsSelectedAsStartDate = function dateIsSelectedAsStartDate(_ref6) {
|
61 | var date = _ref6.date;
|
62 | return "Selected as start date. ".concat(date);
|
63 | };
|
64 |
|
65 | var dateIsSelectedAsEndDate = function dateIsSelectedAsEndDate(_ref7) {
|
66 | var date = _ref7.date;
|
67 | return "Selected as end date. ".concat(date);
|
68 | };
|
69 |
|
70 | var _default = {
|
71 | calendarLabel: calendarLabel,
|
72 | roleDescription: roleDescription,
|
73 | closeDatePicker: closeDatePicker,
|
74 | focusStartDate: focusStartDate,
|
75 | clearDate: clearDate,
|
76 | clearDates: clearDates,
|
77 | jumpToPrevMonth: jumpToPrevMonth,
|
78 | jumpToNextMonth: jumpToNextMonth,
|
79 | keyboardShortcuts: keyboardShortcuts,
|
80 | showKeyboardShortcutsPanel: showKeyboardShortcutsPanel,
|
81 | hideKeyboardShortcutsPanel: hideKeyboardShortcutsPanel,
|
82 | openThisPanel: openThisPanel,
|
83 | enterKey: enterKey,
|
84 | leftArrowRightArrow: leftArrowRightArrow,
|
85 | upArrowDownArrow: upArrowDownArrow,
|
86 | pageUpPageDown: pageUpPageDown,
|
87 | homeEnd: homeEnd,
|
88 | escape: escape,
|
89 | questionMark: questionMark,
|
90 | selectFocusedDate: selectFocusedDate,
|
91 | moveFocusByOneDay: moveFocusByOneDay,
|
92 | moveFocusByOneWeek: moveFocusByOneWeek,
|
93 | moveFocusByOneMonth: moveFocusByOneMonth,
|
94 | moveFocustoStartAndEndOfWeek: moveFocustoStartAndEndOfWeek,
|
95 | returnFocusToInput: returnFocusToInput,
|
96 | keyboardForwardNavigationInstructions: keyboardForwardNavigationInstructions,
|
97 | keyboardBackwardNavigationInstructions: keyboardBackwardNavigationInstructions,
|
98 | chooseAvailableStartDate: chooseAvailableStartDate,
|
99 | chooseAvailableEndDate: chooseAvailableEndDate,
|
100 | dateIsUnavailable: dateIsUnavailable,
|
101 | dateIsSelected: dateIsSelected,
|
102 | dateIsSelectedAsStartDate: dateIsSelectedAsStartDate,
|
103 | dateIsSelectedAsEndDate: dateIsSelectedAsEndDate
|
104 | };
|
105 | exports["default"] = _default;
|
106 | var DateRangePickerPhrases = {
|
107 | calendarLabel: calendarLabel,
|
108 | roleDescription: roleDescription,
|
109 | closeDatePicker: closeDatePicker,
|
110 | clearDates: clearDates,
|
111 | focusStartDate: focusStartDate,
|
112 | jumpToPrevMonth: jumpToPrevMonth,
|
113 | jumpToNextMonth: jumpToNextMonth,
|
114 | keyboardShortcuts: keyboardShortcuts,
|
115 | showKeyboardShortcutsPanel: showKeyboardShortcutsPanel,
|
116 | hideKeyboardShortcutsPanel: hideKeyboardShortcutsPanel,
|
117 | openThisPanel: openThisPanel,
|
118 | enterKey: enterKey,
|
119 | leftArrowRightArrow: leftArrowRightArrow,
|
120 | upArrowDownArrow: upArrowDownArrow,
|
121 | pageUpPageDown: pageUpPageDown,
|
122 | homeEnd: homeEnd,
|
123 | escape: escape,
|
124 | questionMark: questionMark,
|
125 | selectFocusedDate: selectFocusedDate,
|
126 | moveFocusByOneDay: moveFocusByOneDay,
|
127 | moveFocusByOneWeek: moveFocusByOneWeek,
|
128 | moveFocusByOneMonth: moveFocusByOneMonth,
|
129 | moveFocustoStartAndEndOfWeek: moveFocustoStartAndEndOfWeek,
|
130 | returnFocusToInput: returnFocusToInput,
|
131 | keyboardForwardNavigationInstructions: keyboardForwardNavigationInstructions,
|
132 | keyboardBackwardNavigationInstructions: keyboardBackwardNavigationInstructions,
|
133 | chooseAvailableStartDate: chooseAvailableStartDate,
|
134 | chooseAvailableEndDate: chooseAvailableEndDate,
|
135 | dateIsUnavailable: dateIsUnavailable,
|
136 | dateIsSelected: dateIsSelected,
|
137 | dateIsSelectedAsStartDate: dateIsSelectedAsStartDate,
|
138 | dateIsSelectedAsEndDate: dateIsSelectedAsEndDate
|
139 | };
|
140 | exports.DateRangePickerPhrases = DateRangePickerPhrases;
|
141 | var DateRangePickerInputPhrases = {
|
142 | focusStartDate: focusStartDate,
|
143 | clearDates: clearDates,
|
144 | keyboardForwardNavigationInstructions: keyboardForwardNavigationInstructions,
|
145 | keyboardBackwardNavigationInstructions: keyboardBackwardNavigationInstructions
|
146 | };
|
147 | exports.DateRangePickerInputPhrases = DateRangePickerInputPhrases;
|
148 | var SingleDatePickerPhrases = {
|
149 | calendarLabel: calendarLabel,
|
150 | roleDescription: roleDescription,
|
151 | closeDatePicker: closeDatePicker,
|
152 | clearDate: clearDate,
|
153 | jumpToPrevMonth: jumpToPrevMonth,
|
154 | jumpToNextMonth: jumpToNextMonth,
|
155 | keyboardShortcuts: keyboardShortcuts,
|
156 | showKeyboardShortcutsPanel: showKeyboardShortcutsPanel,
|
157 | hideKeyboardShortcutsPanel: hideKeyboardShortcutsPanel,
|
158 | openThisPanel: openThisPanel,
|
159 | enterKey: enterKey,
|
160 | leftArrowRightArrow: leftArrowRightArrow,
|
161 | upArrowDownArrow: upArrowDownArrow,
|
162 | pageUpPageDown: pageUpPageDown,
|
163 | homeEnd: homeEnd,
|
164 | escape: escape,
|
165 | questionMark: questionMark,
|
166 | selectFocusedDate: selectFocusedDate,
|
167 | moveFocusByOneDay: moveFocusByOneDay,
|
168 | moveFocusByOneWeek: moveFocusByOneWeek,
|
169 | moveFocusByOneMonth: moveFocusByOneMonth,
|
170 | moveFocustoStartAndEndOfWeek: moveFocustoStartAndEndOfWeek,
|
171 | returnFocusToInput: returnFocusToInput,
|
172 | keyboardForwardNavigationInstructions: keyboardForwardNavigationInstructions,
|
173 | keyboardBackwardNavigationInstructions: keyboardBackwardNavigationInstructions,
|
174 | chooseAvailableDate: chooseAvailableDate,
|
175 | dateIsUnavailable: dateIsUnavailable,
|
176 | dateIsSelected: dateIsSelected
|
177 | };
|
178 | exports.SingleDatePickerPhrases = SingleDatePickerPhrases;
|
179 | var SingleDatePickerInputPhrases = {
|
180 | clearDate: clearDate,
|
181 | keyboardForwardNavigationInstructions: keyboardForwardNavigationInstructions,
|
182 | keyboardBackwardNavigationInstructions: keyboardBackwardNavigationInstructions
|
183 | };
|
184 | exports.SingleDatePickerInputPhrases = SingleDatePickerInputPhrases;
|
185 | var DayPickerPhrases = {
|
186 | calendarLabel: calendarLabel,
|
187 | roleDescription: roleDescription,
|
188 | jumpToPrevMonth: jumpToPrevMonth,
|
189 | jumpToNextMonth: jumpToNextMonth,
|
190 | keyboardShortcuts: keyboardShortcuts,
|
191 | showKeyboardShortcutsPanel: showKeyboardShortcutsPanel,
|
192 | hideKeyboardShortcutsPanel: hideKeyboardShortcutsPanel,
|
193 | openThisPanel: openThisPanel,
|
194 | enterKey: enterKey,
|
195 | leftArrowRightArrow: leftArrowRightArrow,
|
196 | upArrowDownArrow: upArrowDownArrow,
|
197 | pageUpPageDown: pageUpPageDown,
|
198 | homeEnd: homeEnd,
|
199 | escape: escape,
|
200 | questionMark: questionMark,
|
201 | selectFocusedDate: selectFocusedDate,
|
202 | moveFocusByOneDay: moveFocusByOneDay,
|
203 | moveFocusByOneWeek: moveFocusByOneWeek,
|
204 | moveFocusByOneMonth: moveFocusByOneMonth,
|
205 | moveFocustoStartAndEndOfWeek: moveFocustoStartAndEndOfWeek,
|
206 | returnFocusToInput: returnFocusToInput,
|
207 | chooseAvailableStartDate: chooseAvailableStartDate,
|
208 | chooseAvailableEndDate: chooseAvailableEndDate,
|
209 | chooseAvailableDate: chooseAvailableDate,
|
210 | dateIsUnavailable: dateIsUnavailable,
|
211 | dateIsSelected: dateIsSelected,
|
212 | dateIsSelectedAsStartDate: dateIsSelectedAsStartDate,
|
213 | dateIsSelectedAsEndDate: dateIsSelectedAsEndDate
|
214 | };
|
215 | exports.DayPickerPhrases = DayPickerPhrases;
|
216 | var DayPickerKeyboardShortcutsPhrases = {
|
217 | keyboardShortcuts: keyboardShortcuts,
|
218 | showKeyboardShortcutsPanel: showKeyboardShortcutsPanel,
|
219 | hideKeyboardShortcutsPanel: hideKeyboardShortcutsPanel,
|
220 | openThisPanel: openThisPanel,
|
221 | enterKey: enterKey,
|
222 | leftArrowRightArrow: leftArrowRightArrow,
|
223 | upArrowDownArrow: upArrowDownArrow,
|
224 | pageUpPageDown: pageUpPageDown,
|
225 | homeEnd: homeEnd,
|
226 | escape: escape,
|
227 | questionMark: questionMark,
|
228 | selectFocusedDate: selectFocusedDate,
|
229 | moveFocusByOneDay: moveFocusByOneDay,
|
230 | moveFocusByOneWeek: moveFocusByOneWeek,
|
231 | moveFocusByOneMonth: moveFocusByOneMonth,
|
232 | moveFocustoStartAndEndOfWeek: moveFocustoStartAndEndOfWeek,
|
233 | returnFocusToInput: returnFocusToInput
|
234 | };
|
235 | exports.DayPickerKeyboardShortcutsPhrases = DayPickerKeyboardShortcutsPhrases;
|
236 | var DayPickerNavigationPhrases = {
|
237 | jumpToPrevMonth: jumpToPrevMonth,
|
238 | jumpToNextMonth: jumpToNextMonth
|
239 | };
|
240 | exports.DayPickerNavigationPhrases = DayPickerNavigationPhrases;
|
241 | var CalendarDayPhrases = {
|
242 | chooseAvailableDate: chooseAvailableDate,
|
243 | dateIsUnavailable: dateIsUnavailable,
|
244 | dateIsSelected: dateIsSelected,
|
245 | dateIsSelectedAsStartDate: dateIsSelectedAsStartDate,
|
246 | dateIsSelectedAsEndDate: dateIsSelectedAsEndDate
|
247 | };
|
248 | exports.CalendarDayPhrases = CalendarDayPhrases; |
\ | No newline at end of file |