@react-aria/datepicker 3.0.0-rc.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +850 -116
- package/dist/main.js.map +1 -1
- package/dist/module.js +852 -118
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +20 -18
- package/dist/types.d.ts.map +1 -1
- package/package.json +19 -18
- package/src/index.ts +1 -0
- package/src/useDateField.ts +13 -13
- package/src/useDatePicker.ts +12 -12
- package/src/useDatePickerGroup.ts +42 -11
- package/src/useDateRangePicker.ts +19 -21
- package/src/useDateSegment.ts +79 -50
- package/src/useDisplayNames.ts +3 -3
package/dist/main.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
var $IwcIq$reactariafocus = require("@react-aria/focus");
|
|
2
2
|
var $IwcIq$reactariautils = require("@react-aria/utils");
|
|
3
|
+
var $IwcIq$react = require("react");
|
|
3
4
|
var $IwcIq$reactarialabel = require("@react-aria/label");
|
|
4
5
|
var $IwcIq$reactariai18n = require("@react-aria/i18n");
|
|
5
|
-
var $IwcIq$react = require("react");
|
|
6
6
|
var $IwcIq$reactariainteractions = require("@react-aria/interactions");
|
|
7
|
+
var $IwcIq$internationalizeddate = require("@internationalized/date");
|
|
7
8
|
var $IwcIq$internationalizednumber = require("@internationalized/number");
|
|
8
9
|
var $IwcIq$reactariaspinbutton = require("@react-aria/spinbutton");
|
|
9
|
-
var $IwcIq$
|
|
10
|
+
var $IwcIq$internationalizedstring = require("@internationalized/string");
|
|
10
11
|
|
|
11
12
|
function $parcel$export(e, n, v, s) {
|
|
12
13
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
@@ -25,139 +26,818 @@ $parcel$export(module.exports, "useDisplayNames", () => $934ac650a0aceb4b$export
|
|
|
25
26
|
|
|
26
27
|
var $c7d0e80b992ca68a$exports = {};
|
|
27
28
|
var $aa344be62785b256$exports = {};
|
|
28
|
-
$aa344be62785b256$exports =
|
|
29
|
+
$aa344be62785b256$exports = {
|
|
30
|
+
"calendar": `التقويم`,
|
|
31
|
+
"day": `يوم`,
|
|
32
|
+
"dayPeriod": `ص/م`,
|
|
33
|
+
"endDate": `تاريخ الانتهاء`,
|
|
34
|
+
"era": `العصر`,
|
|
35
|
+
"hour": `الساعات`,
|
|
36
|
+
"minute": `الدقائق`,
|
|
37
|
+
"month": `الشهر`,
|
|
38
|
+
"second": `الثواني`,
|
|
39
|
+
"selectedDateDescription": (args)=>`تاريخ محدد: ${args.date}`
|
|
40
|
+
,
|
|
41
|
+
"selectedRangeDescription": (args)=>`المدى الزمني المحدد: ${args.startDate} إلى ${args.endDate}`
|
|
42
|
+
,
|
|
43
|
+
"selectedTimeDescription": (args)=>`الوقت المحدد: ${args.time}`
|
|
44
|
+
,
|
|
45
|
+
"startDate": `تاريخ البدء`,
|
|
46
|
+
"timeZoneName": `التوقيت`,
|
|
47
|
+
"weekday": `اليوم`,
|
|
48
|
+
"year": `السنة`
|
|
49
|
+
};
|
|
29
50
|
|
|
30
51
|
|
|
31
52
|
var $615986c3475e7c8c$exports = {};
|
|
32
|
-
$615986c3475e7c8c$exports =
|
|
53
|
+
$615986c3475e7c8c$exports = {
|
|
54
|
+
"calendar": `Календар`,
|
|
55
|
+
"day": `ден`,
|
|
56
|
+
"dayPeriod": `пр.об./сл.об.`,
|
|
57
|
+
"endDate": `Крайна дата`,
|
|
58
|
+
"era": `ера`,
|
|
59
|
+
"hour": `час`,
|
|
60
|
+
"minute": `минута`,
|
|
61
|
+
"month": `месец`,
|
|
62
|
+
"second": `секунда`,
|
|
63
|
+
"selectedDateDescription": (args)=>`Избрана дата: ${args.date}`
|
|
64
|
+
,
|
|
65
|
+
"selectedRangeDescription": (args)=>`Избран диапазон: ${args.startDate} до ${args.endDate}`
|
|
66
|
+
,
|
|
67
|
+
"selectedTimeDescription": (args)=>`Избрано време: ${args.time}`
|
|
68
|
+
,
|
|
69
|
+
"startDate": `Начална дата`,
|
|
70
|
+
"timeZoneName": `часова зона`,
|
|
71
|
+
"weekday": `ден от седмицата`,
|
|
72
|
+
"year": `година`
|
|
73
|
+
};
|
|
33
74
|
|
|
34
75
|
|
|
35
76
|
var $6c6207692f1ab248$exports = {};
|
|
36
|
-
$6c6207692f1ab248$exports =
|
|
77
|
+
$6c6207692f1ab248$exports = {
|
|
78
|
+
"calendar": `Kalendář`,
|
|
79
|
+
"day": `den`,
|
|
80
|
+
"dayPeriod": `část dne`,
|
|
81
|
+
"endDate": `Konečné datum`,
|
|
82
|
+
"era": `letopočet`,
|
|
83
|
+
"hour": `hodina`,
|
|
84
|
+
"minute": `minuta`,
|
|
85
|
+
"month": `měsíc`,
|
|
86
|
+
"second": `sekunda`,
|
|
87
|
+
"selectedDateDescription": (args)=>`Vybrané datum: ${args.date}`
|
|
88
|
+
,
|
|
89
|
+
"selectedRangeDescription": (args)=>`Vybrané období: ${args.startDate} až ${args.endDate}`
|
|
90
|
+
,
|
|
91
|
+
"selectedTimeDescription": (args)=>`Vybraný čas: ${args.time}`
|
|
92
|
+
,
|
|
93
|
+
"startDate": `Počáteční datum`,
|
|
94
|
+
"timeZoneName": `časové pásmo`,
|
|
95
|
+
"weekday": `den v týdnu`,
|
|
96
|
+
"year": `rok`
|
|
97
|
+
};
|
|
37
98
|
|
|
38
99
|
|
|
39
100
|
var $fb37a9d024dd70f8$exports = {};
|
|
40
|
-
$fb37a9d024dd70f8$exports =
|
|
101
|
+
$fb37a9d024dd70f8$exports = {
|
|
102
|
+
"calendar": `Kalender`,
|
|
103
|
+
"day": `dag`,
|
|
104
|
+
"dayPeriod": `AM/PM`,
|
|
105
|
+
"endDate": `Slutdato`,
|
|
106
|
+
"era": `æra`,
|
|
107
|
+
"hour": `time`,
|
|
108
|
+
"minute": `minut`,
|
|
109
|
+
"month": `måned`,
|
|
110
|
+
"second": `sekund`,
|
|
111
|
+
"selectedDateDescription": (args)=>`Valgt dato: ${args.date}`
|
|
112
|
+
,
|
|
113
|
+
"selectedRangeDescription": (args)=>`Valgt interval: ${args.startDate} til ${args.endDate}`
|
|
114
|
+
,
|
|
115
|
+
"selectedTimeDescription": (args)=>`Valgt tidspunkt: ${args.time}`
|
|
116
|
+
,
|
|
117
|
+
"startDate": `Startdato`,
|
|
118
|
+
"timeZoneName": `tidszone`,
|
|
119
|
+
"weekday": `ugedag`,
|
|
120
|
+
"year": `år`
|
|
121
|
+
};
|
|
41
122
|
|
|
42
123
|
|
|
43
124
|
var $d7780bd4790f7ae9$exports = {};
|
|
44
|
-
$d7780bd4790f7ae9$exports =
|
|
125
|
+
$d7780bd4790f7ae9$exports = {
|
|
126
|
+
"calendar": `Kalender`,
|
|
127
|
+
"day": `Tag`,
|
|
128
|
+
"dayPeriod": `Tageshälfte`,
|
|
129
|
+
"endDate": `Enddatum`,
|
|
130
|
+
"era": `Epoche`,
|
|
131
|
+
"hour": `Stunde`,
|
|
132
|
+
"minute": `Minute`,
|
|
133
|
+
"month": `Monat`,
|
|
134
|
+
"second": `Sekunde`,
|
|
135
|
+
"selectedDateDescription": (args)=>`Ausgewähltes Datum: ${args.date}`
|
|
136
|
+
,
|
|
137
|
+
"selectedRangeDescription": (args)=>`Ausgewählter Bereich: ${args.startDate} bis ${args.endDate}`
|
|
138
|
+
,
|
|
139
|
+
"selectedTimeDescription": (args)=>`Ausgewählte Zeit: ${args.time}`
|
|
140
|
+
,
|
|
141
|
+
"startDate": `Anfangsdatum`,
|
|
142
|
+
"timeZoneName": `Zeitzone`,
|
|
143
|
+
"weekday": `Wochentag`,
|
|
144
|
+
"year": `Jahr`
|
|
145
|
+
};
|
|
45
146
|
|
|
46
147
|
|
|
47
148
|
var $9cdf03311f06c4ac$exports = {};
|
|
48
|
-
$9cdf03311f06c4ac$exports =
|
|
149
|
+
$9cdf03311f06c4ac$exports = {
|
|
150
|
+
"calendar": `Ημερολόγιο`,
|
|
151
|
+
"day": `ημέρα`,
|
|
152
|
+
"dayPeriod": `π.μ./μ.μ.`,
|
|
153
|
+
"endDate": `Ημερομηνία λήξης`,
|
|
154
|
+
"era": `περίοδος`,
|
|
155
|
+
"hour": `ώρα`,
|
|
156
|
+
"minute": `λεπτό`,
|
|
157
|
+
"month": `μήνας`,
|
|
158
|
+
"second": `δευτερόλεπτο`,
|
|
159
|
+
"selectedDateDescription": (args)=>`Επιλεγμένη ημερομηνία: ${args.date}`
|
|
160
|
+
,
|
|
161
|
+
"selectedRangeDescription": (args)=>`Επιλεγμένο εύρος: ${args.startDate} έως ${args.endDate}`
|
|
162
|
+
,
|
|
163
|
+
"selectedTimeDescription": (args)=>`Επιλεγμένη ώρα: ${args.time}`
|
|
164
|
+
,
|
|
165
|
+
"startDate": `Ημερομηνία έναρξης`,
|
|
166
|
+
"timeZoneName": `ζώνη ώρας`,
|
|
167
|
+
"weekday": `καθημερινή`,
|
|
168
|
+
"year": `έτος`
|
|
169
|
+
};
|
|
49
170
|
|
|
50
171
|
|
|
51
172
|
var $f93fc9e164ae811c$exports = {};
|
|
52
|
-
$f93fc9e164ae811c$exports =
|
|
173
|
+
$f93fc9e164ae811c$exports = {
|
|
174
|
+
"era": `era`,
|
|
175
|
+
"year": `year`,
|
|
176
|
+
"month": `month`,
|
|
177
|
+
"day": `day`,
|
|
178
|
+
"hour": `hour`,
|
|
179
|
+
"minute": `minute`,
|
|
180
|
+
"second": `second`,
|
|
181
|
+
"dayPeriod": `AM/PM`,
|
|
182
|
+
"calendar": `Calendar`,
|
|
183
|
+
"startDate": `Start Date`,
|
|
184
|
+
"endDate": `End Date`,
|
|
185
|
+
"weekday": `day of the week`,
|
|
186
|
+
"timeZoneName": `time zone`,
|
|
187
|
+
"selectedDateDescription": (args)=>`Selected Date: ${args.date}`
|
|
188
|
+
,
|
|
189
|
+
"selectedRangeDescription": (args)=>`Selected Range: ${args.startDate} to ${args.endDate}`
|
|
190
|
+
,
|
|
191
|
+
"selectedTimeDescription": (args)=>`Selected Time: ${args.time}`
|
|
192
|
+
};
|
|
53
193
|
|
|
54
194
|
|
|
55
195
|
var $7426c3264bf5ffea$exports = {};
|
|
56
|
-
$7426c3264bf5ffea$exports =
|
|
196
|
+
$7426c3264bf5ffea$exports = {
|
|
197
|
+
"calendar": `Calendario`,
|
|
198
|
+
"day": `día`,
|
|
199
|
+
"dayPeriod": `a. m./p. m.`,
|
|
200
|
+
"endDate": `Fecha final`,
|
|
201
|
+
"era": `era`,
|
|
202
|
+
"hour": `hora`,
|
|
203
|
+
"minute": `minuto`,
|
|
204
|
+
"month": `mes`,
|
|
205
|
+
"second": `segundo`,
|
|
206
|
+
"selectedDateDescription": (args)=>`Fecha seleccionada: ${args.date}`
|
|
207
|
+
,
|
|
208
|
+
"selectedRangeDescription": (args)=>`Rango seleccionado: ${args.startDate} a ${args.endDate}`
|
|
209
|
+
,
|
|
210
|
+
"selectedTimeDescription": (args)=>`Hora seleccionada: ${args.time}`
|
|
211
|
+
,
|
|
212
|
+
"startDate": `Fecha de inicio`,
|
|
213
|
+
"timeZoneName": `zona horaria`,
|
|
214
|
+
"weekday": `día de la semana`,
|
|
215
|
+
"year": `año`
|
|
216
|
+
};
|
|
57
217
|
|
|
58
218
|
|
|
59
219
|
var $1115cc0042de790c$exports = {};
|
|
60
|
-
$1115cc0042de790c$exports =
|
|
220
|
+
$1115cc0042de790c$exports = {
|
|
221
|
+
"calendar": `Kalender`,
|
|
222
|
+
"day": `päev`,
|
|
223
|
+
"dayPeriod": `enne/pärast lõunat`,
|
|
224
|
+
"endDate": `Lõppkuupäev`,
|
|
225
|
+
"era": `ajastu`,
|
|
226
|
+
"hour": `tund`,
|
|
227
|
+
"minute": `minut`,
|
|
228
|
+
"month": `kuu`,
|
|
229
|
+
"second": `sekund`,
|
|
230
|
+
"selectedDateDescription": (args)=>`Valitud kuupäev: ${args.date}`
|
|
231
|
+
,
|
|
232
|
+
"selectedRangeDescription": (args)=>`Valitud vahemik: ${args.startDate} kuni ${args.endDate}`
|
|
233
|
+
,
|
|
234
|
+
"selectedTimeDescription": (args)=>`Valitud aeg: ${args.time}`
|
|
235
|
+
,
|
|
236
|
+
"startDate": `Alguskuupäev`,
|
|
237
|
+
"timeZoneName": `ajavöönd`,
|
|
238
|
+
"weekday": `nädalapäev`,
|
|
239
|
+
"year": `aasta`
|
|
240
|
+
};
|
|
61
241
|
|
|
62
242
|
|
|
63
243
|
var $4e80389dccb9283f$exports = {};
|
|
64
|
-
$4e80389dccb9283f$exports =
|
|
244
|
+
$4e80389dccb9283f$exports = {
|
|
245
|
+
"calendar": `Kalenteri`,
|
|
246
|
+
"day": `päivä`,
|
|
247
|
+
"dayPeriod": `vuorokaudenaika`,
|
|
248
|
+
"endDate": `Päättymispäivä`,
|
|
249
|
+
"era": `aikakausi`,
|
|
250
|
+
"hour": `tunti`,
|
|
251
|
+
"minute": `minuutti`,
|
|
252
|
+
"month": `kuukausi`,
|
|
253
|
+
"second": `sekunti`,
|
|
254
|
+
"selectedDateDescription": (args)=>`Valittu päivämäärä: ${args.date}`
|
|
255
|
+
,
|
|
256
|
+
"selectedRangeDescription": (args)=>`Valittu aikaväli: ${args.startDate} – ${args.endDate}`
|
|
257
|
+
,
|
|
258
|
+
"selectedTimeDescription": (args)=>`Valittu aika: ${args.time}`
|
|
259
|
+
,
|
|
260
|
+
"startDate": `Alkamispäivä`,
|
|
261
|
+
"timeZoneName": `aikavyöhyke`,
|
|
262
|
+
"weekday": `viikonpäivä`,
|
|
263
|
+
"year": `vuosi`
|
|
264
|
+
};
|
|
65
265
|
|
|
66
266
|
|
|
67
267
|
var $78ad6f738c1f38d1$exports = {};
|
|
68
|
-
$78ad6f738c1f38d1$exports =
|
|
268
|
+
$78ad6f738c1f38d1$exports = {
|
|
269
|
+
"calendar": `Calendrier`,
|
|
270
|
+
"day": `jour`,
|
|
271
|
+
"dayPeriod": `cadran`,
|
|
272
|
+
"endDate": `Date de fin`,
|
|
273
|
+
"era": `ère`,
|
|
274
|
+
"hour": `heure`,
|
|
275
|
+
"minute": `minute`,
|
|
276
|
+
"month": `mois`,
|
|
277
|
+
"second": `seconde`,
|
|
278
|
+
"selectedDateDescription": (args)=>`Date sélectionnée : ${args.date}`
|
|
279
|
+
,
|
|
280
|
+
"selectedRangeDescription": (args)=>`Plage sélectionnée : ${args.startDate} au ${args.endDate}`
|
|
281
|
+
,
|
|
282
|
+
"selectedTimeDescription": (args)=>`Heure choisie : ${args.time}`
|
|
283
|
+
,
|
|
284
|
+
"startDate": `Date de début`,
|
|
285
|
+
"timeZoneName": `fuseau horaire`,
|
|
286
|
+
"weekday": `jour de la semaine`,
|
|
287
|
+
"year": `année`
|
|
288
|
+
};
|
|
69
289
|
|
|
70
290
|
|
|
71
291
|
var $50fa4716d827cd97$exports = {};
|
|
72
|
-
$50fa4716d827cd97$exports =
|
|
292
|
+
$50fa4716d827cd97$exports = {
|
|
293
|
+
"calendar": `לוח שנה`,
|
|
294
|
+
"day": `יום`,
|
|
295
|
+
"dayPeriod": `לפנה״צ/אחה״צ`,
|
|
296
|
+
"endDate": `תאריך סיום`,
|
|
297
|
+
"era": `תקופה`,
|
|
298
|
+
"hour": `שעה`,
|
|
299
|
+
"minute": `דקה`,
|
|
300
|
+
"month": `חודש`,
|
|
301
|
+
"second": `שנייה`,
|
|
302
|
+
"selectedDateDescription": (args)=>`תאריך נבחר: ${args.date}`
|
|
303
|
+
,
|
|
304
|
+
"selectedRangeDescription": (args)=>`טווח נבחר: ${args.startDate} עד ${args.endDate}`
|
|
305
|
+
,
|
|
306
|
+
"selectedTimeDescription": (args)=>`זמן נבחר: ${args.time}`
|
|
307
|
+
,
|
|
308
|
+
"startDate": `תאריך התחלה`,
|
|
309
|
+
"timeZoneName": `אזור זמן`,
|
|
310
|
+
"weekday": `יום בשבוע`,
|
|
311
|
+
"year": `שנה`
|
|
312
|
+
};
|
|
73
313
|
|
|
74
314
|
|
|
75
315
|
var $7297908fac4cf6c2$exports = {};
|
|
76
|
-
$7297908fac4cf6c2$exports =
|
|
316
|
+
$7297908fac4cf6c2$exports = {
|
|
317
|
+
"calendar": `Kalendar`,
|
|
318
|
+
"day": `dan`,
|
|
319
|
+
"dayPeriod": `AM/PM`,
|
|
320
|
+
"endDate": `Datum završetka`,
|
|
321
|
+
"era": `era`,
|
|
322
|
+
"hour": `sat`,
|
|
323
|
+
"minute": `minuta`,
|
|
324
|
+
"month": `mjesec`,
|
|
325
|
+
"second": `sekunda`,
|
|
326
|
+
"selectedDateDescription": (args)=>`Odabrani datum: ${args.date}`
|
|
327
|
+
,
|
|
328
|
+
"selectedRangeDescription": (args)=>`Odabrani raspon: ${args.startDate} do ${args.endDate}`
|
|
329
|
+
,
|
|
330
|
+
"selectedTimeDescription": (args)=>`Odabrano vrijeme: ${args.time}`
|
|
331
|
+
,
|
|
332
|
+
"startDate": `Datum početka`,
|
|
333
|
+
"timeZoneName": `vremenska zona`,
|
|
334
|
+
"weekday": `dan u tjednu`,
|
|
335
|
+
"year": `godina`
|
|
336
|
+
};
|
|
77
337
|
|
|
78
338
|
|
|
79
339
|
var $f95c1b06e1d5ba32$exports = {};
|
|
80
|
-
$f95c1b06e1d5ba32$exports =
|
|
340
|
+
$f95c1b06e1d5ba32$exports = {
|
|
341
|
+
"calendar": `Naptár`,
|
|
342
|
+
"day": `nap`,
|
|
343
|
+
"dayPeriod": `napszak`,
|
|
344
|
+
"endDate": `Befejező dátum`,
|
|
345
|
+
"era": `éra`,
|
|
346
|
+
"hour": `óra`,
|
|
347
|
+
"minute": `perc`,
|
|
348
|
+
"month": `hónap`,
|
|
349
|
+
"second": `másodperc`,
|
|
350
|
+
"selectedDateDescription": (args)=>`Kijelölt dátum: ${args.date}`
|
|
351
|
+
,
|
|
352
|
+
"selectedRangeDescription": (args)=>`Kijelölt tartomány: ${args.startDate}–${args.endDate}`
|
|
353
|
+
,
|
|
354
|
+
"selectedTimeDescription": (args)=>`Kijelölt idő: ${args.time}`
|
|
355
|
+
,
|
|
356
|
+
"startDate": `Kezdő dátum`,
|
|
357
|
+
"timeZoneName": `időzóna`,
|
|
358
|
+
"weekday": `hét napja`,
|
|
359
|
+
"year": `év`
|
|
360
|
+
};
|
|
81
361
|
|
|
82
362
|
|
|
83
363
|
var $437a8dc519258a01$exports = {};
|
|
84
|
-
$437a8dc519258a01$exports =
|
|
364
|
+
$437a8dc519258a01$exports = {
|
|
365
|
+
"calendar": `Calendario`,
|
|
366
|
+
"day": `giorno`,
|
|
367
|
+
"dayPeriod": `AM/PM`,
|
|
368
|
+
"endDate": `Data finale`,
|
|
369
|
+
"era": `era`,
|
|
370
|
+
"hour": `ora`,
|
|
371
|
+
"minute": `minuto`,
|
|
372
|
+
"month": `mese`,
|
|
373
|
+
"second": `secondo`,
|
|
374
|
+
"selectedDateDescription": (args)=>`Data selezionata: ${args.date}`
|
|
375
|
+
,
|
|
376
|
+
"selectedRangeDescription": (args)=>`Intervallo selezionato: da ${args.startDate} a ${args.endDate}`
|
|
377
|
+
,
|
|
378
|
+
"selectedTimeDescription": (args)=>`Ora selezionata: ${args.time}`
|
|
379
|
+
,
|
|
380
|
+
"startDate": `Data iniziale`,
|
|
381
|
+
"timeZoneName": `fuso orario`,
|
|
382
|
+
"weekday": `giorno della settimana`,
|
|
383
|
+
"year": `anno`
|
|
384
|
+
};
|
|
85
385
|
|
|
86
386
|
|
|
87
387
|
var $bd0aa2b50092a836$exports = {};
|
|
88
|
-
$bd0aa2b50092a836$exports =
|
|
388
|
+
$bd0aa2b50092a836$exports = {
|
|
389
|
+
"calendar": `カレンダー`,
|
|
390
|
+
"day": `日`,
|
|
391
|
+
"dayPeriod": `午前/午後`,
|
|
392
|
+
"endDate": `終了日`,
|
|
393
|
+
"era": `時代`,
|
|
394
|
+
"hour": `時`,
|
|
395
|
+
"minute": `分`,
|
|
396
|
+
"month": `月`,
|
|
397
|
+
"second": `秒`,
|
|
398
|
+
"selectedDateDescription": (args)=>`選択した日付 : ${args.date}`
|
|
399
|
+
,
|
|
400
|
+
"selectedRangeDescription": (args)=>`選択範囲 : ${args.startDate} から ${args.endDate}`
|
|
401
|
+
,
|
|
402
|
+
"selectedTimeDescription": (args)=>`選択した時間 : ${args.time}`
|
|
403
|
+
,
|
|
404
|
+
"startDate": `開始日`,
|
|
405
|
+
"timeZoneName": `タイムゾーン`,
|
|
406
|
+
"weekday": `曜日`,
|
|
407
|
+
"year": `年`
|
|
408
|
+
};
|
|
89
409
|
|
|
90
410
|
|
|
91
411
|
var $bbd8176c2e044bc1$exports = {};
|
|
92
|
-
$bbd8176c2e044bc1$exports =
|
|
412
|
+
$bbd8176c2e044bc1$exports = {
|
|
413
|
+
"calendar": `달력`,
|
|
414
|
+
"day": `일`,
|
|
415
|
+
"dayPeriod": `오전/오후`,
|
|
416
|
+
"endDate": `종료 날짜`,
|
|
417
|
+
"era": `연호`,
|
|
418
|
+
"hour": `시`,
|
|
419
|
+
"minute": `분`,
|
|
420
|
+
"month": `월`,
|
|
421
|
+
"second": `초`,
|
|
422
|
+
"selectedDateDescription": (args)=>`선택 일자: ${args.date}`
|
|
423
|
+
,
|
|
424
|
+
"selectedRangeDescription": (args)=>`선택 범위: ${args.startDate} ~ ${args.endDate}`
|
|
425
|
+
,
|
|
426
|
+
"selectedTimeDescription": (args)=>`선택 시간: ${args.time}`
|
|
427
|
+
,
|
|
428
|
+
"startDate": `시작 날짜`,
|
|
429
|
+
"timeZoneName": `시간대`,
|
|
430
|
+
"weekday": `요일`,
|
|
431
|
+
"year": `년`
|
|
432
|
+
};
|
|
93
433
|
|
|
94
434
|
|
|
95
435
|
var $1af703df56ff5180$exports = {};
|
|
96
|
-
$1af703df56ff5180$exports =
|
|
436
|
+
$1af703df56ff5180$exports = {
|
|
437
|
+
"calendar": `Kalendorius`,
|
|
438
|
+
"day": `diena`,
|
|
439
|
+
"dayPeriod": `iki pietų / po pietų`,
|
|
440
|
+
"endDate": `Pabaigos data`,
|
|
441
|
+
"era": `era`,
|
|
442
|
+
"hour": `valanda`,
|
|
443
|
+
"minute": `minutė`,
|
|
444
|
+
"month": `mėnuo`,
|
|
445
|
+
"second": `sekundė`,
|
|
446
|
+
"selectedDateDescription": (args)=>`Pasirinkta data: ${args.date}`
|
|
447
|
+
,
|
|
448
|
+
"selectedRangeDescription": (args)=>`Pasirinktas intervalas: nuo ${args.startDate} iki ${args.endDate}`
|
|
449
|
+
,
|
|
450
|
+
"selectedTimeDescription": (args)=>`Pasirinktas laikas: ${args.time}`
|
|
451
|
+
,
|
|
452
|
+
"startDate": `Pradžios data`,
|
|
453
|
+
"timeZoneName": `laiko juosta`,
|
|
454
|
+
"weekday": `savaitės diena`,
|
|
455
|
+
"year": `metai`
|
|
456
|
+
};
|
|
97
457
|
|
|
98
458
|
|
|
99
459
|
var $9705eb4511dea9f8$exports = {};
|
|
100
|
-
$9705eb4511dea9f8$exports =
|
|
460
|
+
$9705eb4511dea9f8$exports = {
|
|
461
|
+
"calendar": `Kalendārs`,
|
|
462
|
+
"day": `diena`,
|
|
463
|
+
"dayPeriod": `priekšpusdienā/pēcpusdienā`,
|
|
464
|
+
"endDate": `Beigu datums`,
|
|
465
|
+
"era": `ēra`,
|
|
466
|
+
"hour": `stundas`,
|
|
467
|
+
"minute": `minūtes`,
|
|
468
|
+
"month": `mēnesis`,
|
|
469
|
+
"second": `sekundes`,
|
|
470
|
+
"selectedDateDescription": (args)=>`Atlasītais datums: ${args.date}`
|
|
471
|
+
,
|
|
472
|
+
"selectedRangeDescription": (args)=>`Atlasītais diapazons: no ${args.startDate} līdz ${args.endDate}`
|
|
473
|
+
,
|
|
474
|
+
"selectedTimeDescription": (args)=>`Atlasītais laiks: ${args.time}`
|
|
475
|
+
,
|
|
476
|
+
"startDate": `Sākuma datums`,
|
|
477
|
+
"timeZoneName": `laika josla`,
|
|
478
|
+
"weekday": `nedēļas diena`,
|
|
479
|
+
"year": `gads`
|
|
480
|
+
};
|
|
101
481
|
|
|
102
482
|
|
|
103
483
|
var $8ef984876a7160bc$exports = {};
|
|
104
|
-
$8ef984876a7160bc$exports =
|
|
484
|
+
$8ef984876a7160bc$exports = {
|
|
485
|
+
"calendar": `Kalender`,
|
|
486
|
+
"day": `dag`,
|
|
487
|
+
"dayPeriod": `a.m./p.m.`,
|
|
488
|
+
"endDate": `Sluttdato`,
|
|
489
|
+
"era": `tidsalder`,
|
|
490
|
+
"hour": `time`,
|
|
491
|
+
"minute": `minutt`,
|
|
492
|
+
"month": `måned`,
|
|
493
|
+
"second": `sekund`,
|
|
494
|
+
"selectedDateDescription": (args)=>`Valgt dato: ${args.date}`
|
|
495
|
+
,
|
|
496
|
+
"selectedRangeDescription": (args)=>`Valgt område: ${args.startDate} til ${args.endDate}`
|
|
497
|
+
,
|
|
498
|
+
"selectedTimeDescription": (args)=>`Valgt tid: ${args.time}`
|
|
499
|
+
,
|
|
500
|
+
"startDate": `Startdato`,
|
|
501
|
+
"timeZoneName": `tidssone`,
|
|
502
|
+
"weekday": `ukedag`,
|
|
503
|
+
"year": `år`
|
|
504
|
+
};
|
|
105
505
|
|
|
106
506
|
|
|
107
507
|
var $b6e9809e1ecaa25e$exports = {};
|
|
108
|
-
$b6e9809e1ecaa25e$exports =
|
|
508
|
+
$b6e9809e1ecaa25e$exports = {
|
|
509
|
+
"calendar": `Kalender`,
|
|
510
|
+
"day": `dag`,
|
|
511
|
+
"dayPeriod": `a.m./p.m.`,
|
|
512
|
+
"endDate": `Einddatum`,
|
|
513
|
+
"era": `tijdperk`,
|
|
514
|
+
"hour": `uur`,
|
|
515
|
+
"minute": `minuut`,
|
|
516
|
+
"month": `maand`,
|
|
517
|
+
"second": `seconde`,
|
|
518
|
+
"selectedDateDescription": (args)=>`Geselecteerde datum: ${args.date}`
|
|
519
|
+
,
|
|
520
|
+
"selectedRangeDescription": (args)=>`Geselecteerd bereik: ${args.startDate} tot ${args.endDate}`
|
|
521
|
+
,
|
|
522
|
+
"selectedTimeDescription": (args)=>`Geselecteerde tijd: ${args.time}`
|
|
523
|
+
,
|
|
524
|
+
"startDate": `Startdatum`,
|
|
525
|
+
"timeZoneName": `tijdzone`,
|
|
526
|
+
"weekday": `dag van de week`,
|
|
527
|
+
"year": `jaar`
|
|
528
|
+
};
|
|
109
529
|
|
|
110
530
|
|
|
111
531
|
var $deb2fa609661fe31$exports = {};
|
|
112
|
-
$deb2fa609661fe31$exports =
|
|
532
|
+
$deb2fa609661fe31$exports = {
|
|
533
|
+
"calendar": `Kalendarz`,
|
|
534
|
+
"day": `dzień`,
|
|
535
|
+
"dayPeriod": `rano / po południu / wieczorem`,
|
|
536
|
+
"endDate": `Data końcowa`,
|
|
537
|
+
"era": `era`,
|
|
538
|
+
"hour": `godzina`,
|
|
539
|
+
"minute": `minuta`,
|
|
540
|
+
"month": `miesiąc`,
|
|
541
|
+
"second": `sekunda`,
|
|
542
|
+
"selectedDateDescription": (args)=>`Wybrana data: ${args.date}`
|
|
543
|
+
,
|
|
544
|
+
"selectedRangeDescription": (args)=>`Wybrany zakres: ${args.startDate} do ${args.endDate}`
|
|
545
|
+
,
|
|
546
|
+
"selectedTimeDescription": (args)=>`Wybrany czas: ${args.time}`
|
|
547
|
+
,
|
|
548
|
+
"startDate": `Data początkowa`,
|
|
549
|
+
"timeZoneName": `strefa czasowa`,
|
|
550
|
+
"weekday": `dzień tygodnia`,
|
|
551
|
+
"year": `rok`
|
|
552
|
+
};
|
|
113
553
|
|
|
114
554
|
|
|
115
555
|
var $591c8c054c84fa56$exports = {};
|
|
116
|
-
$591c8c054c84fa56$exports =
|
|
556
|
+
$591c8c054c84fa56$exports = {
|
|
557
|
+
"calendar": `Calendário`,
|
|
558
|
+
"day": `dia`,
|
|
559
|
+
"dayPeriod": `AM/PM`,
|
|
560
|
+
"endDate": `Data final`,
|
|
561
|
+
"era": `era`,
|
|
562
|
+
"hour": `hora`,
|
|
563
|
+
"minute": `minuto`,
|
|
564
|
+
"month": `mês`,
|
|
565
|
+
"second": `segundo`,
|
|
566
|
+
"selectedDateDescription": (args)=>`Data selecionada: ${args.date}`
|
|
567
|
+
,
|
|
568
|
+
"selectedRangeDescription": (args)=>`Intervalo selecionado: ${args.startDate} a ${args.endDate}`
|
|
569
|
+
,
|
|
570
|
+
"selectedTimeDescription": (args)=>`Hora selecionada: ${args.time}`
|
|
571
|
+
,
|
|
572
|
+
"startDate": `Data inicial`,
|
|
573
|
+
"timeZoneName": `fuso horário`,
|
|
574
|
+
"weekday": `dia da semana`,
|
|
575
|
+
"year": `ano`
|
|
576
|
+
};
|
|
117
577
|
|
|
118
578
|
|
|
119
579
|
var $f1633bd6cbc228e8$exports = {};
|
|
120
|
-
$f1633bd6cbc228e8$exports =
|
|
580
|
+
$f1633bd6cbc228e8$exports = {
|
|
581
|
+
"calendar": `Calendário`,
|
|
582
|
+
"day": `dia`,
|
|
583
|
+
"dayPeriod": `am/pm`,
|
|
584
|
+
"endDate": `Data de Término`,
|
|
585
|
+
"era": `era`,
|
|
586
|
+
"hour": `hora`,
|
|
587
|
+
"minute": `minuto`,
|
|
588
|
+
"month": `mês`,
|
|
589
|
+
"second": `segundo`,
|
|
590
|
+
"selectedDateDescription": (args)=>`Data selecionada: ${args.date}`
|
|
591
|
+
,
|
|
592
|
+
"selectedRangeDescription": (args)=>`Intervalo selecionado: ${args.startDate} a ${args.endDate}`
|
|
593
|
+
,
|
|
594
|
+
"selectedTimeDescription": (args)=>`Hora selecionada: ${args.time}`
|
|
595
|
+
,
|
|
596
|
+
"startDate": `Data de Início`,
|
|
597
|
+
"timeZoneName": `fuso horário`,
|
|
598
|
+
"weekday": `dia da semana`,
|
|
599
|
+
"year": `ano`
|
|
600
|
+
};
|
|
121
601
|
|
|
122
602
|
|
|
123
603
|
var $14e09da03f3d1c5b$exports = {};
|
|
124
|
-
$14e09da03f3d1c5b$exports =
|
|
604
|
+
$14e09da03f3d1c5b$exports = {
|
|
605
|
+
"calendar": `Calendar`,
|
|
606
|
+
"day": `zi`,
|
|
607
|
+
"dayPeriod": `a.m/p.m.`,
|
|
608
|
+
"endDate": `Dată final`,
|
|
609
|
+
"era": `eră`,
|
|
610
|
+
"hour": `oră`,
|
|
611
|
+
"minute": `minut`,
|
|
612
|
+
"month": `lună`,
|
|
613
|
+
"second": `secundă`,
|
|
614
|
+
"selectedDateDescription": (args)=>`Dată selectată: ${args.date}`
|
|
615
|
+
,
|
|
616
|
+
"selectedRangeDescription": (args)=>`Interval selectat: de la ${args.startDate} până la ${args.endDate}`
|
|
617
|
+
,
|
|
618
|
+
"selectedTimeDescription": (args)=>`Ora selectată: ${args.time}`
|
|
619
|
+
,
|
|
620
|
+
"startDate": `Dată început`,
|
|
621
|
+
"timeZoneName": `fus orar`,
|
|
622
|
+
"weekday": `ziua din săptămână`,
|
|
623
|
+
"year": `an`
|
|
624
|
+
};
|
|
125
625
|
|
|
126
626
|
|
|
127
627
|
var $63247a3456bc40d1$exports = {};
|
|
128
|
-
$63247a3456bc40d1$exports =
|
|
628
|
+
$63247a3456bc40d1$exports = {
|
|
629
|
+
"calendar": `Календарь`,
|
|
630
|
+
"day": `день`,
|
|
631
|
+
"dayPeriod": `AM/PM`,
|
|
632
|
+
"endDate": `Дата окончания`,
|
|
633
|
+
"era": `эра`,
|
|
634
|
+
"hour": `час`,
|
|
635
|
+
"minute": `минута`,
|
|
636
|
+
"month": `месяц`,
|
|
637
|
+
"second": `секунда`,
|
|
638
|
+
"selectedDateDescription": (args)=>`Выбранная дата: ${args.date}`
|
|
639
|
+
,
|
|
640
|
+
"selectedRangeDescription": (args)=>`Выбранный диапазон: с ${args.startDate} по ${args.endDate}`
|
|
641
|
+
,
|
|
642
|
+
"selectedTimeDescription": (args)=>`Выбранное время: ${args.time}`
|
|
643
|
+
,
|
|
644
|
+
"startDate": `Дата начала`,
|
|
645
|
+
"timeZoneName": `часовой пояс`,
|
|
646
|
+
"weekday": `день недели`,
|
|
647
|
+
"year": `год`
|
|
648
|
+
};
|
|
129
649
|
|
|
130
650
|
|
|
131
651
|
var $22150dd20c353dd4$exports = {};
|
|
132
|
-
$22150dd20c353dd4$exports =
|
|
652
|
+
$22150dd20c353dd4$exports = {
|
|
653
|
+
"calendar": `Kalendár`,
|
|
654
|
+
"day": `deň`,
|
|
655
|
+
"dayPeriod": `AM/PM`,
|
|
656
|
+
"endDate": `Dátum ukončenia`,
|
|
657
|
+
"era": `letopočet`,
|
|
658
|
+
"hour": `hodina`,
|
|
659
|
+
"minute": `minúta`,
|
|
660
|
+
"month": `mesiac`,
|
|
661
|
+
"second": `sekunda`,
|
|
662
|
+
"selectedDateDescription": (args)=>`Vybratý dátum: ${args.date}`
|
|
663
|
+
,
|
|
664
|
+
"selectedRangeDescription": (args)=>`Vybratý rozsah: od ${args.startDate} do ${args.endDate}`
|
|
665
|
+
,
|
|
666
|
+
"selectedTimeDescription": (args)=>`Vybratý čas: ${args.time}`
|
|
667
|
+
,
|
|
668
|
+
"startDate": `Dátum začatia`,
|
|
669
|
+
"timeZoneName": `časové pásmo`,
|
|
670
|
+
"weekday": `deň týždňa`,
|
|
671
|
+
"year": `rok`
|
|
672
|
+
};
|
|
133
673
|
|
|
134
674
|
|
|
135
675
|
var $701eb9a0385c55fd$exports = {};
|
|
136
|
-
$701eb9a0385c55fd$exports =
|
|
676
|
+
$701eb9a0385c55fd$exports = {
|
|
677
|
+
"calendar": `Koledar`,
|
|
678
|
+
"day": `dan`,
|
|
679
|
+
"dayPeriod": `dop/pop`,
|
|
680
|
+
"endDate": `Datum konca`,
|
|
681
|
+
"era": `doba`,
|
|
682
|
+
"hour": `ura`,
|
|
683
|
+
"minute": `minuta`,
|
|
684
|
+
"month": `mesec`,
|
|
685
|
+
"second": `sekunda`,
|
|
686
|
+
"selectedDateDescription": (args)=>`Izbrani datum: ${args.date}`
|
|
687
|
+
,
|
|
688
|
+
"selectedRangeDescription": (args)=>`Izbrano območje: ${args.startDate} do ${args.endDate}`
|
|
689
|
+
,
|
|
690
|
+
"selectedTimeDescription": (args)=>`Izbrani čas: ${args.time}`
|
|
691
|
+
,
|
|
692
|
+
"startDate": `Datum začetka`,
|
|
693
|
+
"timeZoneName": `časovni pas`,
|
|
694
|
+
"weekday": `dan v tednu`,
|
|
695
|
+
"year": `leto`
|
|
696
|
+
};
|
|
137
697
|
|
|
138
698
|
|
|
139
699
|
var $54684a4891ca6dc5$exports = {};
|
|
140
|
-
$54684a4891ca6dc5$exports =
|
|
700
|
+
$54684a4891ca6dc5$exports = {
|
|
701
|
+
"calendar": `Kalendar`,
|
|
702
|
+
"day": `дан`,
|
|
703
|
+
"dayPeriod": `пре подне/по подне`,
|
|
704
|
+
"endDate": `Datum završetka`,
|
|
705
|
+
"era": `ера`,
|
|
706
|
+
"hour": `сат`,
|
|
707
|
+
"minute": `минут`,
|
|
708
|
+
"month": `месец`,
|
|
709
|
+
"second": `секунд`,
|
|
710
|
+
"selectedDateDescription": (args)=>`Izabrani datum: ${args.date}`
|
|
711
|
+
,
|
|
712
|
+
"selectedRangeDescription": (args)=>`Izabrani opseg: od ${args.startDate} do ${args.endDate}`
|
|
713
|
+
,
|
|
714
|
+
"selectedTimeDescription": (args)=>`Izabrano vreme: ${args.time}`
|
|
715
|
+
,
|
|
716
|
+
"startDate": `Datum početka`,
|
|
717
|
+
"timeZoneName": `временска зона`,
|
|
718
|
+
"weekday": `дан у недељи`,
|
|
719
|
+
"year": `година`
|
|
720
|
+
};
|
|
141
721
|
|
|
142
722
|
|
|
143
723
|
var $545887f88a5a52db$exports = {};
|
|
144
|
-
$545887f88a5a52db$exports =
|
|
724
|
+
$545887f88a5a52db$exports = {
|
|
725
|
+
"calendar": `Kalender`,
|
|
726
|
+
"day": `dag`,
|
|
727
|
+
"dayPeriod": `fm/em`,
|
|
728
|
+
"endDate": `Slutdatum`,
|
|
729
|
+
"era": `era`,
|
|
730
|
+
"hour": `timme`,
|
|
731
|
+
"minute": `minut`,
|
|
732
|
+
"month": `månad`,
|
|
733
|
+
"second": `sekund`,
|
|
734
|
+
"selectedDateDescription": (args)=>`Valt datum: ${args.date}`
|
|
735
|
+
,
|
|
736
|
+
"selectedRangeDescription": (args)=>`Valt intervall: ${args.startDate} till ${args.endDate}`
|
|
737
|
+
,
|
|
738
|
+
"selectedTimeDescription": (args)=>`Vald tid: ${args.time}`
|
|
739
|
+
,
|
|
740
|
+
"startDate": `Startdatum`,
|
|
741
|
+
"timeZoneName": `tidszon`,
|
|
742
|
+
"weekday": `veckodag`,
|
|
743
|
+
"year": `år`
|
|
744
|
+
};
|
|
145
745
|
|
|
146
746
|
|
|
147
747
|
var $492d49420dd96ff4$exports = {};
|
|
148
|
-
$492d49420dd96ff4$exports =
|
|
748
|
+
$492d49420dd96ff4$exports = {
|
|
749
|
+
"calendar": `Takvim`,
|
|
750
|
+
"day": `gün`,
|
|
751
|
+
"dayPeriod": `ÖÖ/ÖS`,
|
|
752
|
+
"endDate": `Bitiş Tarihi`,
|
|
753
|
+
"era": `çağ`,
|
|
754
|
+
"hour": `saat`,
|
|
755
|
+
"minute": `dakika`,
|
|
756
|
+
"month": `ay`,
|
|
757
|
+
"second": `saniye`,
|
|
758
|
+
"selectedDateDescription": (args)=>`Seçilen Tarih: ${args.date}`
|
|
759
|
+
,
|
|
760
|
+
"selectedRangeDescription": (args)=>`Seçilen Aralık: ${args.startDate} - ${args.endDate}`
|
|
761
|
+
,
|
|
762
|
+
"selectedTimeDescription": (args)=>`Seçilen Zaman: ${args.time}`
|
|
763
|
+
,
|
|
764
|
+
"startDate": `Başlangıç Tarihi`,
|
|
765
|
+
"timeZoneName": `saat dilimi`,
|
|
766
|
+
"weekday": `haftanın günü`,
|
|
767
|
+
"year": `yıl`
|
|
768
|
+
};
|
|
149
769
|
|
|
150
770
|
|
|
151
771
|
var $dc85765e85e8f267$exports = {};
|
|
152
|
-
$dc85765e85e8f267$exports =
|
|
772
|
+
$dc85765e85e8f267$exports = {
|
|
773
|
+
"calendar": `Календар`,
|
|
774
|
+
"day": `день`,
|
|
775
|
+
"dayPeriod": `дп/пп`,
|
|
776
|
+
"endDate": `Дата завершення`,
|
|
777
|
+
"era": `ера`,
|
|
778
|
+
"hour": `година`,
|
|
779
|
+
"minute": `хвилина`,
|
|
780
|
+
"month": `місяць`,
|
|
781
|
+
"second": `секунда`,
|
|
782
|
+
"selectedDateDescription": (args)=>`Вибрана дата: ${args.date}`
|
|
783
|
+
,
|
|
784
|
+
"selectedRangeDescription": (args)=>`Вибраний діапазон: ${args.startDate} — ${args.endDate}`
|
|
785
|
+
,
|
|
786
|
+
"selectedTimeDescription": (args)=>`Вибраний час: ${args.time}`
|
|
787
|
+
,
|
|
788
|
+
"startDate": `Дата початку`,
|
|
789
|
+
"timeZoneName": `часовий пояс`,
|
|
790
|
+
"weekday": `день тижня`,
|
|
791
|
+
"year": `рік`
|
|
792
|
+
};
|
|
153
793
|
|
|
154
794
|
|
|
155
795
|
var $2157d63cb80c7c63$exports = {};
|
|
156
|
-
$2157d63cb80c7c63$exports =
|
|
796
|
+
$2157d63cb80c7c63$exports = {
|
|
797
|
+
"calendar": `日历`,
|
|
798
|
+
"day": `日`,
|
|
799
|
+
"dayPeriod": `上午/下午`,
|
|
800
|
+
"endDate": `结束日期`,
|
|
801
|
+
"era": `纪元`,
|
|
802
|
+
"hour": `小时`,
|
|
803
|
+
"minute": `分钟`,
|
|
804
|
+
"month": `月`,
|
|
805
|
+
"second": `秒`,
|
|
806
|
+
"selectedDateDescription": (args)=>`选定的日期:${args.date}`
|
|
807
|
+
,
|
|
808
|
+
"selectedRangeDescription": (args)=>`选定的范围:${args.startDate} 至 ${args.endDate}`
|
|
809
|
+
,
|
|
810
|
+
"selectedTimeDescription": (args)=>`选定的时间:${args.time}`
|
|
811
|
+
,
|
|
812
|
+
"startDate": `开始日期`,
|
|
813
|
+
"timeZoneName": `时区`,
|
|
814
|
+
"weekday": `工作日`,
|
|
815
|
+
"year": `年`
|
|
816
|
+
};
|
|
157
817
|
|
|
158
818
|
|
|
159
819
|
var $0335c3ddb5f70cbe$exports = {};
|
|
160
|
-
$0335c3ddb5f70cbe$exports =
|
|
820
|
+
$0335c3ddb5f70cbe$exports = {
|
|
821
|
+
"calendar": `日曆`,
|
|
822
|
+
"day": `日`,
|
|
823
|
+
"dayPeriod": `上午/下午`,
|
|
824
|
+
"endDate": `結束日期`,
|
|
825
|
+
"era": `纪元`,
|
|
826
|
+
"hour": `小时`,
|
|
827
|
+
"minute": `分钟`,
|
|
828
|
+
"month": `月`,
|
|
829
|
+
"second": `秒`,
|
|
830
|
+
"selectedDateDescription": (args)=>`選定的日期:${args.date}`
|
|
831
|
+
,
|
|
832
|
+
"selectedRangeDescription": (args)=>`選定的範圍:${args.startDate} 至 ${args.endDate}`
|
|
833
|
+
,
|
|
834
|
+
"selectedTimeDescription": (args)=>`選定的時間:${args.time}`
|
|
835
|
+
,
|
|
836
|
+
"startDate": `開始日期`,
|
|
837
|
+
"timeZoneName": `时区`,
|
|
838
|
+
"weekday": `工作日`,
|
|
839
|
+
"year": `年`
|
|
840
|
+
};
|
|
161
841
|
|
|
162
842
|
|
|
163
843
|
$c7d0e80b992ca68a$exports = {
|
|
@@ -205,7 +885,15 @@ $c7d0e80b992ca68a$exports = {
|
|
|
205
885
|
|
|
206
886
|
|
|
207
887
|
|
|
208
|
-
|
|
888
|
+
|
|
889
|
+
|
|
890
|
+
|
|
891
|
+
function $715562ad3b4cced4$export$4a931266a3838b86(state, ref1, disableArrowNavigation) {
|
|
892
|
+
let { direction: direction } = $IwcIq$reactariai18n.useLocale();
|
|
893
|
+
let focusManager = $IwcIq$react.useMemo(()=>$IwcIq$reactariafocus.createFocusManager(ref1)
|
|
894
|
+
, [
|
|
895
|
+
ref1
|
|
896
|
+
]);
|
|
209
897
|
// Open the popover on alt + arrow down
|
|
210
898
|
let onKeyDown = (e)=>{
|
|
211
899
|
if (e.altKey && (e.key === 'ArrowDown' || e.key === 'ArrowUp') && 'setOpen' in state) {
|
|
@@ -213,6 +901,21 @@ function $715562ad3b4cced4$export$4a931266a3838b86(state, ref1) {
|
|
|
213
901
|
e.stopPropagation();
|
|
214
902
|
state.setOpen(true);
|
|
215
903
|
}
|
|
904
|
+
if (disableArrowNavigation) return;
|
|
905
|
+
switch(e.key){
|
|
906
|
+
case 'ArrowLeft':
|
|
907
|
+
e.preventDefault();
|
|
908
|
+
e.stopPropagation();
|
|
909
|
+
if (direction === 'rtl') focusManager.focusNext();
|
|
910
|
+
else focusManager.focusPrevious();
|
|
911
|
+
break;
|
|
912
|
+
case 'ArrowRight':
|
|
913
|
+
e.preventDefault();
|
|
914
|
+
e.stopPropagation();
|
|
915
|
+
if (direction === 'rtl') focusManager.focusPrevious();
|
|
916
|
+
else focusManager.focusNext();
|
|
917
|
+
break;
|
|
918
|
+
}
|
|
216
919
|
};
|
|
217
920
|
// Focus the first placeholder segment from the end on mouse down/touch up in the field.
|
|
218
921
|
let focusLast = ()=>{
|
|
@@ -235,14 +938,16 @@ function $715562ad3b4cced4$export$4a931266a3838b86(state, ref1) {
|
|
|
235
938
|
}while (last)
|
|
236
939
|
}
|
|
237
940
|
// Now go backwards until we find an element that is not a placeholder.
|
|
238
|
-
while(target === null || target === void 0 ? void 0 : target.
|
|
941
|
+
while(target === null || target === void 0 ? void 0 : target.hasAttribute('data-placeholder')){
|
|
239
942
|
let prev = walker.previousNode();
|
|
240
|
-
if (prev && prev.
|
|
943
|
+
if (prev && prev.hasAttribute('data-placeholder')) target = prev;
|
|
241
944
|
else break;
|
|
242
945
|
}
|
|
243
946
|
if (target) target.focus();
|
|
244
947
|
};
|
|
245
948
|
let { pressProps: pressProps } = $IwcIq$reactariainteractions.usePress({
|
|
949
|
+
preventFocusOnPress: true,
|
|
950
|
+
allowTextSelectionOnPress: true,
|
|
246
951
|
onPressStart (e) {
|
|
247
952
|
if (e.pointerType === 'mouse') focusLast();
|
|
248
953
|
},
|
|
@@ -267,16 +972,15 @@ function $4acc2f407c169e55$export$5591b0b878c1a989(props, state, ref) {
|
|
|
267
972
|
...props,
|
|
268
973
|
labelElementType: 'span'
|
|
269
974
|
});
|
|
270
|
-
let groupProps = $715562ad3b4cced4$export$4a931266a3838b86(state, ref);
|
|
271
975
|
let { focusWithinProps: focusWithinProps } = $IwcIq$reactariainteractions.useFocusWithin({
|
|
272
976
|
onBlurWithin () {
|
|
273
977
|
state.confirmPlaceholder();
|
|
274
978
|
}
|
|
275
979
|
});
|
|
276
|
-
let
|
|
980
|
+
let stringFormatter = $IwcIq$reactariai18n.useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($c7d0e80b992ca68a$exports)));
|
|
277
981
|
let message = state.maxGranularity === 'hour' ? 'selectedTimeDescription' : 'selectedDateDescription';
|
|
278
982
|
let field = state.maxGranularity === 'hour' ? 'time' : 'date';
|
|
279
|
-
let description = state.value ?
|
|
983
|
+
let description = state.value ? stringFormatter.format(message, {
|
|
280
984
|
[field]: state.formatValue({
|
|
281
985
|
month: 'long'
|
|
282
986
|
})
|
|
@@ -294,6 +998,7 @@ function $4acc2f407c169e55$export$5591b0b878c1a989(props, state, ref) {
|
|
|
294
998
|
propsFocusManager,
|
|
295
999
|
ref
|
|
296
1000
|
]);
|
|
1001
|
+
let groupProps = $715562ad3b4cced4$export$4a931266a3838b86(state, ref, props[$4acc2f407c169e55$export$300019f83c56d282] === 'presentation');
|
|
297
1002
|
// Pass labels and other information to segments.
|
|
298
1003
|
$4acc2f407c169e55$export$653eddfc964b0f8a.set(state, {
|
|
299
1004
|
ariaLabel: props['aria-label'],
|
|
@@ -348,7 +1053,7 @@ function $4acc2f407c169e55$export$4c842f6a241dc825(props, state, ref) {
|
|
|
348
1053
|
function $e90ae7c26a69c6b1$export$42df105a73306d51(props, state, ref) {
|
|
349
1054
|
let buttonId = $IwcIq$reactariautils.useId();
|
|
350
1055
|
let dialogId = $IwcIq$reactariautils.useId();
|
|
351
|
-
let
|
|
1056
|
+
let stringFormatter = $IwcIq$reactariai18n.useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($c7d0e80b992ca68a$exports)));
|
|
352
1057
|
let { labelProps: labelProps , fieldProps: fieldProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps } = $IwcIq$reactarialabel.useField({
|
|
353
1058
|
...props,
|
|
354
1059
|
labelElementType: 'span'
|
|
@@ -359,7 +1064,7 @@ function $e90ae7c26a69c6b1$export$42df105a73306d51(props, state, ref) {
|
|
|
359
1064
|
let date = state.formatValue(locale, {
|
|
360
1065
|
month: 'long'
|
|
361
1066
|
});
|
|
362
|
-
let description = date ?
|
|
1067
|
+
let description = date ? stringFormatter.format('selectedDateDescription', {
|
|
363
1068
|
date: date
|
|
364
1069
|
}) : '';
|
|
365
1070
|
let descProps = $IwcIq$reactariautils.useDescription(description);
|
|
@@ -368,6 +1073,10 @@ function $e90ae7c26a69c6b1$export$42df105a73306d51(props, state, ref) {
|
|
|
368
1073
|
fieldProps['aria-describedby']
|
|
369
1074
|
].filter(Boolean).join(' ') || undefined;
|
|
370
1075
|
let domProps = $IwcIq$reactariautils.filterDOMProps(props);
|
|
1076
|
+
let focusManager = $IwcIq$react.useMemo(()=>$IwcIq$reactariafocus.createFocusManager(ref)
|
|
1077
|
+
, [
|
|
1078
|
+
ref
|
|
1079
|
+
]);
|
|
371
1080
|
return {
|
|
372
1081
|
groupProps: $IwcIq$reactariautils.mergeProps(domProps, groupProps, fieldProps, descProps, {
|
|
373
1082
|
role: 'group',
|
|
@@ -378,7 +1087,6 @@ function $e90ae7c26a69c6b1$export$42df105a73306d51(props, state, ref) {
|
|
|
378
1087
|
labelProps: {
|
|
379
1088
|
...labelProps,
|
|
380
1089
|
onClick: ()=>{
|
|
381
|
-
let focusManager = $IwcIq$reactariafocus.createFocusManager(ref);
|
|
382
1090
|
focusManager.focusFirst();
|
|
383
1091
|
}
|
|
384
1092
|
},
|
|
@@ -405,9 +1113,8 @@ function $e90ae7c26a69c6b1$export$42df105a73306d51(props, state, ref) {
|
|
|
405
1113
|
buttonProps: {
|
|
406
1114
|
...descProps,
|
|
407
1115
|
id: buttonId,
|
|
408
|
-
excludeFromTabOrder: true,
|
|
409
1116
|
'aria-haspopup': 'dialog',
|
|
410
|
-
'aria-label':
|
|
1117
|
+
'aria-label': stringFormatter.format('calendar'),
|
|
411
1118
|
'aria-labelledby': `${labelledBy} ${buttonId}`,
|
|
412
1119
|
'aria-describedby': ariaDescribedBy,
|
|
413
1120
|
onPress: ()=>state.setOpen(true)
|
|
@@ -442,6 +1149,7 @@ function $e90ae7c26a69c6b1$export$42df105a73306d51(props, state, ref) {
|
|
|
442
1149
|
|
|
443
1150
|
|
|
444
1151
|
|
|
1152
|
+
|
|
445
1153
|
function $934ac650a0aceb4b$export$d42c60378c8168f8() {
|
|
446
1154
|
let { locale: locale } = $IwcIq$reactariai18n.useLocale();
|
|
447
1155
|
return $IwcIq$react.useMemo(()=>{
|
|
@@ -465,7 +1173,7 @@ class $934ac650a0aceb4b$var$DisplayNamesPolyfill {
|
|
|
465
1173
|
}
|
|
466
1174
|
constructor(locale){
|
|
467
1175
|
this.locale = locale;
|
|
468
|
-
this.dictionary = new $IwcIq$
|
|
1176
|
+
this.dictionary = new $IwcIq$internationalizedstring.LocalizedStringDictionary((/*@__PURE__*/$parcel$interopDefault($c7d0e80b992ca68a$exports)));
|
|
469
1177
|
}
|
|
470
1178
|
}
|
|
471
1179
|
|
|
@@ -473,10 +1181,10 @@ class $934ac650a0aceb4b$var$DisplayNamesPolyfill {
|
|
|
473
1181
|
|
|
474
1182
|
function $5c015c6316d1904d$export$1315d136e6f7581(segment, state, ref) {
|
|
475
1183
|
let enteredKeys = $IwcIq$react.useRef('');
|
|
476
|
-
let { locale: locale
|
|
1184
|
+
let { locale: locale } = $IwcIq$reactariai18n.useLocale();
|
|
477
1185
|
let displayNames = $934ac650a0aceb4b$export$d42c60378c8168f8();
|
|
478
1186
|
let { ariaLabel: ariaLabel , ariaLabelledBy: ariaLabelledBy , ariaDescribedBy: ariaDescribedBy , focusManager: focusManager } = $4acc2f407c169e55$export$653eddfc964b0f8a.get(state);
|
|
479
|
-
let textValue = segment.text;
|
|
1187
|
+
let textValue = segment.isPlaceholder ? '' : segment.text;
|
|
480
1188
|
let options = $IwcIq$react.useMemo(()=>state.dateFormatter.resolvedOptions()
|
|
481
1189
|
, [
|
|
482
1190
|
state.dateFormatter
|
|
@@ -490,11 +1198,14 @@ function $5c015c6316d1904d$export$1315d136e6f7581(segment, state, ref) {
|
|
|
490
1198
|
hour12: options.hour12,
|
|
491
1199
|
timeZone: options.timeZone
|
|
492
1200
|
});
|
|
493
|
-
if (segment.type === 'month') {
|
|
1201
|
+
if (segment.type === 'month' && !segment.isPlaceholder) {
|
|
494
1202
|
let monthTextValue = monthDateFormatter.format(state.dateValue);
|
|
495
1203
|
textValue = monthTextValue !== textValue ? `${textValue} – ${monthTextValue}` : monthTextValue;
|
|
496
|
-
} else if (segment.type === 'hour') textValue = hourDateFormatter.format(state.dateValue);
|
|
1204
|
+
} else if (segment.type === 'hour' && !segment.isPlaceholder) textValue = hourDateFormatter.format(state.dateValue);
|
|
497
1205
|
let { spinButtonProps: spinButtonProps } = $IwcIq$reactariaspinbutton.useSpinButton({
|
|
1206
|
+
// The ARIA spec says aria-valuenow is optional if there's no value, but aXe seems to require it.
|
|
1207
|
+
// This doesn't seem to have any negative effects with real AT since we also use aria-valuetext.
|
|
1208
|
+
// https://github.com/dequelabs/axe-core/issues/3505
|
|
498
1209
|
value: segment.value,
|
|
499
1210
|
textValue: textValue,
|
|
500
1211
|
minValue: segment.minValue,
|
|
@@ -548,36 +1259,6 @@ function $5c015c6316d1904d$export$1315d136e6f7581(segment, state, ref) {
|
|
|
548
1259
|
if (e.key === 'a' && ($IwcIq$reactariautils.isMac() ? e.metaKey : e.ctrlKey)) e.preventDefault();
|
|
549
1260
|
if (e.ctrlKey || e.metaKey || e.shiftKey || e.altKey) return;
|
|
550
1261
|
switch(e.key){
|
|
551
|
-
case 'ArrowLeft':
|
|
552
|
-
e.preventDefault();
|
|
553
|
-
e.stopPropagation();
|
|
554
|
-
if (direction === 'rtl') focusManager.focusNext({
|
|
555
|
-
tabbable: true
|
|
556
|
-
});
|
|
557
|
-
else focusManager.focusPrevious({
|
|
558
|
-
tabbable: true
|
|
559
|
-
});
|
|
560
|
-
break;
|
|
561
|
-
case 'ArrowRight':
|
|
562
|
-
e.preventDefault();
|
|
563
|
-
e.stopPropagation();
|
|
564
|
-
if (direction === 'rtl') focusManager.focusPrevious({
|
|
565
|
-
tabbable: true
|
|
566
|
-
});
|
|
567
|
-
else focusManager.focusNext({
|
|
568
|
-
tabbable: true
|
|
569
|
-
});
|
|
570
|
-
break;
|
|
571
|
-
case 'Enter':
|
|
572
|
-
e.preventDefault();
|
|
573
|
-
e.stopPropagation();
|
|
574
|
-
if (segment.isPlaceholder && !state.isReadOnly) state.confirmPlaceholder(segment.type);
|
|
575
|
-
focusManager.focusNext({
|
|
576
|
-
tabbable: true
|
|
577
|
-
});
|
|
578
|
-
break;
|
|
579
|
-
case 'Tab':
|
|
580
|
-
break;
|
|
581
1262
|
case 'Backspace':
|
|
582
1263
|
case 'Delete':
|
|
583
1264
|
// Safari on iOS does not fire beforeinput for the backspace key because the cursor is at the start.
|
|
@@ -611,6 +1292,42 @@ function $5c015c6316d1904d$export$1315d136e6f7581(segment, state, ref) {
|
|
|
611
1292
|
}, [
|
|
612
1293
|
amPmFormatter
|
|
613
1294
|
]);
|
|
1295
|
+
// Get a list of formatted era names so users can type the first character to choose one.
|
|
1296
|
+
let eraFormatter = $IwcIq$reactariai18n.useDateFormatter({
|
|
1297
|
+
year: 'numeric',
|
|
1298
|
+
era: 'narrow',
|
|
1299
|
+
timeZone: 'UTC'
|
|
1300
|
+
});
|
|
1301
|
+
let eras1 = $IwcIq$react.useMemo(()=>{
|
|
1302
|
+
if (segment.type !== 'era') return [];
|
|
1303
|
+
let date = $IwcIq$internationalizeddate.toCalendar(new $IwcIq$internationalizeddate.CalendarDate(1, 1, 1), state.calendar);
|
|
1304
|
+
let eras = state.calendar.getEras().map((era)=>{
|
|
1305
|
+
let eraDate = date.set({
|
|
1306
|
+
year: 1,
|
|
1307
|
+
month: 1,
|
|
1308
|
+
day: 1,
|
|
1309
|
+
era: era
|
|
1310
|
+
}).toDate('UTC');
|
|
1311
|
+
let parts = eraFormatter.formatToParts(eraDate);
|
|
1312
|
+
let formatted = parts.find((p)=>p.type === 'era'
|
|
1313
|
+
).value;
|
|
1314
|
+
return {
|
|
1315
|
+
era: era,
|
|
1316
|
+
formatted: formatted
|
|
1317
|
+
};
|
|
1318
|
+
});
|
|
1319
|
+
// Remove the common prefix from formatted values. This is so that in calendars with eras like
|
|
1320
|
+
// ERA0 and ERA1 (e.g. Ethiopic), users can press "0" and "1" to select an era. In other cases,
|
|
1321
|
+
// the first letter is used.
|
|
1322
|
+
let prefixLength = $5c015c6316d1904d$var$commonPrefixLength(eras.map((era)=>era.formatted
|
|
1323
|
+
));
|
|
1324
|
+
if (prefixLength) for (let era1 of eras)era1.formatted = era1.formatted.slice(prefixLength);
|
|
1325
|
+
return eras;
|
|
1326
|
+
}, [
|
|
1327
|
+
eraFormatter,
|
|
1328
|
+
state.calendar,
|
|
1329
|
+
segment.type
|
|
1330
|
+
]);
|
|
614
1331
|
let onInput = (key)=>{
|
|
615
1332
|
if (state.isDisabled || state.isReadOnly) return;
|
|
616
1333
|
let newValue = enteredKeys.current + key;
|
|
@@ -619,10 +1336,18 @@ function $5c015c6316d1904d$export$1315d136e6f7581(segment, state, ref) {
|
|
|
619
1336
|
if (startsWith(am, key)) state.setSegment('dayPeriod', 0);
|
|
620
1337
|
else if (startsWith(pm, key)) state.setSegment('dayPeriod', 12);
|
|
621
1338
|
else break;
|
|
622
|
-
focusManager.focusNext(
|
|
623
|
-
tabbable: true
|
|
624
|
-
});
|
|
1339
|
+
focusManager.focusNext();
|
|
625
1340
|
break;
|
|
1341
|
+
case 'era':
|
|
1342
|
+
{
|
|
1343
|
+
let matched = eras1.find((e)=>startsWith(e.formatted, key)
|
|
1344
|
+
);
|
|
1345
|
+
if (matched) {
|
|
1346
|
+
state.setSegment('era', matched.era);
|
|
1347
|
+
focusManager.focusNext();
|
|
1348
|
+
}
|
|
1349
|
+
break;
|
|
1350
|
+
}
|
|
626
1351
|
case 'day':
|
|
627
1352
|
case 'hour':
|
|
628
1353
|
case 'minute':
|
|
@@ -651,9 +1376,7 @@ function $5c015c6316d1904d$export$1315d136e6f7581(segment, state, ref) {
|
|
|
651
1376
|
if (shouldSetValue) state.setSegment(segment.type, segmentValue);
|
|
652
1377
|
if (Number(numberValue + '0') > segment.maxValue || newValue.length >= String(segment.maxValue).length) {
|
|
653
1378
|
enteredKeys.current = '';
|
|
654
|
-
if (shouldSetValue) focusManager.focusNext(
|
|
655
|
-
tabbable: true
|
|
656
|
-
});
|
|
1379
|
+
if (shouldSetValue) focusManager.focusNext();
|
|
657
1380
|
} else enteredKeys.current = newValue;
|
|
658
1381
|
break;
|
|
659
1382
|
}
|
|
@@ -662,12 +1385,9 @@ function $5c015c6316d1904d$export$1315d136e6f7581(segment, state, ref) {
|
|
|
662
1385
|
let onFocus = ()=>{
|
|
663
1386
|
enteredKeys.current = '';
|
|
664
1387
|
$IwcIq$reactariautils.scrollIntoView($IwcIq$reactariautils.getScrollParent(ref.current), ref.current);
|
|
665
|
-
//
|
|
666
|
-
// Since usePress disables text selection, this won't happen by default.
|
|
667
|
-
ref.current.style.webkitUserSelect = 'text';
|
|
1388
|
+
// Collapse selection to start or Chrome won't fire input events.
|
|
668
1389
|
let selection = window.getSelection();
|
|
669
1390
|
selection.collapse(ref.current);
|
|
670
|
-
ref.current.style.webkitUserSelect = '';
|
|
671
1391
|
};
|
|
672
1392
|
let compositionRef = $IwcIq$react.useRef('');
|
|
673
1393
|
// @ts-ignore - TODO: possibly old TS version? doesn't fail in my editor...
|
|
@@ -703,10 +1423,19 @@ function $5c015c6316d1904d$export$1315d136e6f7581(segment, state, ref) {
|
|
|
703
1423
|
break;
|
|
704
1424
|
}
|
|
705
1425
|
});
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
1426
|
+
$IwcIq$reactariautils.useLayoutEffect(()=>{
|
|
1427
|
+
let element = ref.current;
|
|
1428
|
+
return ()=>{
|
|
1429
|
+
// If the focused segment is removed, focus the previous one, or the next one if there was no previous one.
|
|
1430
|
+
if (document.activeElement === element) {
|
|
1431
|
+
let prev = focusManager.focusPrevious();
|
|
1432
|
+
if (!prev) focusManager.focusNext();
|
|
1433
|
+
}
|
|
1434
|
+
};
|
|
1435
|
+
}, [
|
|
1436
|
+
ref,
|
|
1437
|
+
focusManager
|
|
1438
|
+
]);
|
|
710
1439
|
// spinbuttons cannot be focused with VoiceOver on iOS.
|
|
711
1440
|
let touchPropOverrides = $IwcIq$reactariautils.isIOS() || segment.type === 'timeZoneName' ? {
|
|
712
1441
|
role: 'textbox',
|
|
@@ -746,8 +1475,8 @@ function $5c015c6316d1904d$export$1315d136e6f7581(segment, state, ref) {
|
|
|
746
1475
|
...touchPropOverrides,
|
|
747
1476
|
'aria-invalid': state.validationState === 'invalid' ? 'true' : undefined,
|
|
748
1477
|
'aria-describedby': ariaDescribedBy,
|
|
749
|
-
'aria-placeholder': segment.isPlaceholder ? segment.text : undefined,
|
|
750
1478
|
'aria-readonly': state.isReadOnly || !segment.isEditable ? 'true' : undefined,
|
|
1479
|
+
'data-placeholder': segment.isPlaceholder || undefined,
|
|
751
1480
|
contentEditable: isEditable,
|
|
752
1481
|
suppressContentEditableWarning: isEditable,
|
|
753
1482
|
spellCheck: isEditable ? 'false' : undefined,
|
|
@@ -755,14 +1484,12 @@ function $5c015c6316d1904d$export$1315d136e6f7581(segment, state, ref) {
|
|
|
755
1484
|
autoCorrect: isEditable ? 'off' : undefined,
|
|
756
1485
|
// Capitalization was changed in React 17...
|
|
757
1486
|
[parseInt(($parcel$interopDefault($IwcIq$react)).version, 10) >= 17 ? 'enterKeyHint' : 'enterkeyhint']: isEditable ? 'next' : undefined,
|
|
758
|
-
inputMode: state.isDisabled || segment.type === 'dayPeriod' || !isEditable ? undefined : 'numeric',
|
|
1487
|
+
inputMode: state.isDisabled || segment.type === 'dayPeriod' || segment.type === 'era' || !isEditable ? undefined : 'numeric',
|
|
759
1488
|
tabIndex: state.isDisabled ? undefined : 0,
|
|
760
1489
|
onKeyDown: onKeyDown,
|
|
761
1490
|
onFocus: onFocus,
|
|
762
1491
|
style: {
|
|
763
|
-
caretColor: 'transparent'
|
|
764
|
-
userSelect: 'none',
|
|
765
|
-
WebkitUserSelect: 'none'
|
|
1492
|
+
caretColor: 'transparent'
|
|
766
1493
|
},
|
|
767
1494
|
// Prevent pointer events from reaching useDatePickerGroup, and allow native browser behavior to focus the segment.
|
|
768
1495
|
onPointerDown (e) {
|
|
@@ -774,7 +1501,16 @@ function $5c015c6316d1904d$export$1315d136e6f7581(segment, state, ref) {
|
|
|
774
1501
|
})
|
|
775
1502
|
};
|
|
776
1503
|
}
|
|
777
|
-
|
|
1504
|
+
function $5c015c6316d1904d$var$commonPrefixLength(strings) {
|
|
1505
|
+
// Sort the strings, and compare the characters in the first and last to find the common prefix.
|
|
1506
|
+
strings.sort();
|
|
1507
|
+
let first = strings[0];
|
|
1508
|
+
let last = strings[strings.length - 1];
|
|
1509
|
+
for(let i = 0; i < first.length; i++){
|
|
1510
|
+
if (first[i] !== last[i]) return i;
|
|
1511
|
+
}
|
|
1512
|
+
return 0;
|
|
1513
|
+
}
|
|
778
1514
|
|
|
779
1515
|
|
|
780
1516
|
|
|
@@ -788,7 +1524,7 @@ function $5c015c6316d1904d$export$1315d136e6f7581(segment, state, ref) {
|
|
|
788
1524
|
|
|
789
1525
|
function $20f695b1b69e6b9e$export$12fd5f0e9f4bb192(props, state, ref) {
|
|
790
1526
|
var ref1, ref2;
|
|
791
|
-
let
|
|
1527
|
+
let stringFormatter = $IwcIq$reactariai18n.useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($c7d0e80b992ca68a$exports)));
|
|
792
1528
|
let { labelProps: labelProps , fieldProps: fieldProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps } = $IwcIq$reactarialabel.useField({
|
|
793
1529
|
...props,
|
|
794
1530
|
labelElementType: 'span'
|
|
@@ -798,34 +1534,33 @@ function $20f695b1b69e6b9e$export$12fd5f0e9f4bb192(props, state, ref) {
|
|
|
798
1534
|
let range = state.formatValue(locale, {
|
|
799
1535
|
month: 'long'
|
|
800
1536
|
});
|
|
801
|
-
let description = range ?
|
|
1537
|
+
let description = range ? stringFormatter.format('selectedRangeDescription', {
|
|
802
1538
|
startDate: range.start,
|
|
803
1539
|
endDate: range.end
|
|
804
1540
|
}) : '';
|
|
805
1541
|
let descProps = $IwcIq$reactariautils.useDescription(description);
|
|
806
1542
|
let startFieldProps = {
|
|
807
|
-
'aria-label':
|
|
1543
|
+
'aria-label': stringFormatter.format('startDate'),
|
|
808
1544
|
'aria-labelledby': labelledBy
|
|
809
1545
|
};
|
|
810
1546
|
let endFieldProps = {
|
|
811
|
-
'aria-label':
|
|
1547
|
+
'aria-label': stringFormatter.format('endDate'),
|
|
812
1548
|
'aria-labelledby': labelledBy
|
|
813
1549
|
};
|
|
814
1550
|
let buttonId = $IwcIq$reactariautils.useId();
|
|
815
1551
|
let dialogId = $IwcIq$reactariautils.useId();
|
|
816
1552
|
let groupProps = $715562ad3b4cced4$export$4a931266a3838b86(state, ref);
|
|
817
|
-
let { focusWithinProps: focusWithinProps } = $IwcIq$reactariainteractions.useFocusWithin({
|
|
818
|
-
onBlurWithin () {
|
|
819
|
-
state.confirmPlaceholder();
|
|
820
|
-
}
|
|
821
|
-
});
|
|
822
1553
|
let ariaDescribedBy = [
|
|
823
1554
|
descProps['aria-describedby'],
|
|
824
1555
|
fieldProps['aria-describedby']
|
|
825
1556
|
].filter(Boolean).join(' ') || undefined;
|
|
826
|
-
let focusManager = $IwcIq$react.useMemo(()=>$IwcIq$reactariafocus.createFocusManager(ref
|
|
1557
|
+
let focusManager = $IwcIq$react.useMemo(()=>$IwcIq$reactariafocus.createFocusManager(ref, {
|
|
1558
|
+
// Exclude the button from the focus manager.
|
|
1559
|
+
accept: (element)=>element.id !== buttonId
|
|
1560
|
+
})
|
|
827
1561
|
, [
|
|
828
|
-
ref
|
|
1562
|
+
ref,
|
|
1563
|
+
buttonId
|
|
829
1564
|
]);
|
|
830
1565
|
let commonFieldProps = {
|
|
831
1566
|
[$4acc2f407c169e55$export$7b3062cd49e80452]: focusManager,
|
|
@@ -844,7 +1579,7 @@ function $20f695b1b69e6b9e$export$12fd5f0e9f4bb192(props, state, ref) {
|
|
|
844
1579
|
};
|
|
845
1580
|
let domProps = $IwcIq$reactariautils.filterDOMProps(props);
|
|
846
1581
|
return {
|
|
847
|
-
groupProps: $IwcIq$reactariautils.mergeProps(domProps, groupProps, fieldProps, descProps,
|
|
1582
|
+
groupProps: $IwcIq$reactariautils.mergeProps(domProps, groupProps, fieldProps, descProps, {
|
|
848
1583
|
role: 'group',
|
|
849
1584
|
'aria-disabled': props.isDisabled || null,
|
|
850
1585
|
'aria-describedby': ariaDescribedBy
|
|
@@ -858,9 +1593,8 @@ function $20f695b1b69e6b9e$export$12fd5f0e9f4bb192(props, state, ref) {
|
|
|
858
1593
|
buttonProps: {
|
|
859
1594
|
...descProps,
|
|
860
1595
|
id: buttonId,
|
|
861
|
-
excludeFromTabOrder: true,
|
|
862
1596
|
'aria-haspopup': 'dialog',
|
|
863
|
-
'aria-label':
|
|
1597
|
+
'aria-label': stringFormatter.format('calendar'),
|
|
864
1598
|
'aria-labelledby': `${labelledBy} ${buttonId}`,
|
|
865
1599
|
'aria-describedby': ariaDescribedBy,
|
|
866
1600
|
onPress: ()=>state.setOpen(true)
|