@react-aria/datepicker 3.0.0-nightly.3113 → 3.0.0-nightly.3114
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/ar-AE.main.js +21 -0
- package/dist/ar-AE.main.js.map +1 -0
- package/dist/ar-AE.mjs +23 -0
- package/dist/ar-AE.module.js +23 -0
- package/dist/ar-AE.module.js.map +1 -0
- package/dist/bg-BG.main.js +21 -0
- package/dist/bg-BG.main.js.map +1 -0
- package/dist/bg-BG.mjs +23 -0
- package/dist/bg-BG.module.js +23 -0
- package/dist/bg-BG.module.js.map +1 -0
- package/dist/cs-CZ.main.js +21 -0
- package/dist/cs-CZ.main.js.map +1 -0
- package/dist/cs-CZ.mjs +23 -0
- package/dist/cs-CZ.module.js +23 -0
- package/dist/cs-CZ.module.js.map +1 -0
- package/dist/da-DK.main.js +21 -0
- package/dist/da-DK.main.js.map +1 -0
- package/dist/da-DK.mjs +23 -0
- package/dist/da-DK.module.js +23 -0
- package/dist/da-DK.module.js.map +1 -0
- package/dist/de-DE.main.js +21 -0
- package/dist/de-DE.main.js.map +1 -0
- package/dist/de-DE.mjs +23 -0
- package/dist/de-DE.module.js +23 -0
- package/dist/de-DE.module.js.map +1 -0
- package/dist/el-GR.main.js +21 -0
- package/dist/el-GR.main.js.map +1 -0
- package/dist/el-GR.mjs +23 -0
- package/dist/el-GR.module.js +23 -0
- package/dist/el-GR.module.js.map +1 -0
- package/dist/en-US.main.js +21 -0
- package/dist/en-US.main.js.map +1 -0
- package/dist/en-US.mjs +23 -0
- package/dist/en-US.module.js +23 -0
- package/dist/en-US.module.js.map +1 -0
- package/dist/es-ES.main.js +21 -0
- package/dist/es-ES.main.js.map +1 -0
- package/dist/es-ES.mjs +23 -0
- package/dist/es-ES.module.js +23 -0
- package/dist/es-ES.module.js.map +1 -0
- package/dist/et-EE.main.js +21 -0
- package/dist/et-EE.main.js.map +1 -0
- package/dist/et-EE.mjs +23 -0
- package/dist/et-EE.module.js +23 -0
- package/dist/et-EE.module.js.map +1 -0
- package/dist/fi-FI.main.js +21 -0
- package/dist/fi-FI.main.js.map +1 -0
- package/dist/fi-FI.mjs +23 -0
- package/dist/fi-FI.module.js +23 -0
- package/dist/fi-FI.module.js.map +1 -0
- package/dist/fr-FR.main.js +21 -0
- package/dist/fr-FR.main.js.map +1 -0
- package/dist/fr-FR.mjs +23 -0
- package/dist/fr-FR.module.js +23 -0
- package/dist/fr-FR.module.js.map +1 -0
- package/dist/he-IL.main.js +21 -0
- package/dist/he-IL.main.js.map +1 -0
- package/dist/he-IL.mjs +23 -0
- package/dist/he-IL.module.js +23 -0
- package/dist/he-IL.module.js.map +1 -0
- package/dist/hr-HR.main.js +21 -0
- package/dist/hr-HR.main.js.map +1 -0
- package/dist/hr-HR.mjs +23 -0
- package/dist/hr-HR.module.js +23 -0
- package/dist/hr-HR.module.js.map +1 -0
- package/dist/hu-HU.main.js +21 -0
- package/dist/hu-HU.main.js.map +1 -0
- package/dist/hu-HU.mjs +23 -0
- package/dist/hu-HU.module.js +23 -0
- package/dist/hu-HU.module.js.map +1 -0
- package/dist/import.mjs +25 -0
- package/dist/intlStrings.main.js +108 -0
- package/dist/intlStrings.main.js.map +1 -0
- package/dist/intlStrings.mjs +110 -0
- package/dist/intlStrings.module.js +110 -0
- package/dist/intlStrings.module.js.map +1 -0
- package/dist/it-IT.main.js +21 -0
- package/dist/it-IT.main.js.map +1 -0
- package/dist/it-IT.mjs +23 -0
- package/dist/it-IT.module.js +23 -0
- package/dist/it-IT.module.js.map +1 -0
- package/dist/ja-JP.main.js +21 -0
- package/dist/ja-JP.main.js.map +1 -0
- package/dist/ja-JP.mjs +23 -0
- package/dist/ja-JP.module.js +23 -0
- package/dist/ja-JP.module.js.map +1 -0
- package/dist/ko-KR.main.js +21 -0
- package/dist/ko-KR.main.js.map +1 -0
- package/dist/ko-KR.mjs +23 -0
- package/dist/ko-KR.module.js +23 -0
- package/dist/ko-KR.module.js.map +1 -0
- package/dist/lt-LT.main.js +21 -0
- package/dist/lt-LT.main.js.map +1 -0
- package/dist/lt-LT.mjs +23 -0
- package/dist/lt-LT.module.js +23 -0
- package/dist/lt-LT.module.js.map +1 -0
- package/dist/lv-LV.main.js +21 -0
- package/dist/lv-LV.main.js.map +1 -0
- package/dist/lv-LV.mjs +23 -0
- package/dist/lv-LV.module.js +23 -0
- package/dist/lv-LV.module.js.map +1 -0
- package/dist/main.js +22 -759
- package/dist/main.js.map +1 -1
- package/dist/module.js +17 -744
- package/dist/module.js.map +1 -1
- package/dist/nb-NO.main.js +21 -0
- package/dist/nb-NO.main.js.map +1 -0
- package/dist/nb-NO.mjs +23 -0
- package/dist/nb-NO.module.js +23 -0
- package/dist/nb-NO.module.js.map +1 -0
- package/dist/nl-NL.main.js +21 -0
- package/dist/nl-NL.main.js.map +1 -0
- package/dist/nl-NL.mjs +23 -0
- package/dist/nl-NL.module.js +23 -0
- package/dist/nl-NL.module.js.map +1 -0
- package/dist/pl-PL.main.js +21 -0
- package/dist/pl-PL.main.js.map +1 -0
- package/dist/pl-PL.mjs +23 -0
- package/dist/pl-PL.module.js +23 -0
- package/dist/pl-PL.module.js.map +1 -0
- package/dist/pt-BR.main.js +21 -0
- package/dist/pt-BR.main.js.map +1 -0
- package/dist/pt-BR.mjs +23 -0
- package/dist/pt-BR.module.js +23 -0
- package/dist/pt-BR.module.js.map +1 -0
- package/dist/pt-PT.main.js +21 -0
- package/dist/pt-PT.main.js.map +1 -0
- package/dist/pt-PT.mjs +23 -0
- package/dist/pt-PT.module.js +23 -0
- package/dist/pt-PT.module.js.map +1 -0
- package/dist/ro-RO.main.js +21 -0
- package/dist/ro-RO.main.js.map +1 -0
- package/dist/ro-RO.mjs +23 -0
- package/dist/ro-RO.module.js +23 -0
- package/dist/ro-RO.module.js.map +1 -0
- package/dist/ru-RU.main.js +21 -0
- package/dist/ru-RU.main.js.map +1 -0
- package/dist/ru-RU.mjs +23 -0
- package/dist/ru-RU.module.js +23 -0
- package/dist/ru-RU.module.js.map +1 -0
- package/dist/sk-SK.main.js +21 -0
- package/dist/sk-SK.main.js.map +1 -0
- package/dist/sk-SK.mjs +23 -0
- package/dist/sk-SK.module.js +23 -0
- package/dist/sk-SK.module.js.map +1 -0
- package/dist/sl-SI.main.js +21 -0
- package/dist/sl-SI.main.js.map +1 -0
- package/dist/sl-SI.mjs +23 -0
- package/dist/sl-SI.module.js +23 -0
- package/dist/sl-SI.module.js.map +1 -0
- package/dist/sr-SP.main.js +21 -0
- package/dist/sr-SP.main.js.map +1 -0
- package/dist/sr-SP.mjs +23 -0
- package/dist/sr-SP.module.js +23 -0
- package/dist/sr-SP.module.js.map +1 -0
- package/dist/sv-SE.main.js +21 -0
- package/dist/sv-SE.main.js.map +1 -0
- package/dist/sv-SE.mjs +23 -0
- package/dist/sv-SE.module.js +23 -0
- package/dist/sv-SE.module.js.map +1 -0
- package/dist/tr-TR.main.js +21 -0
- package/dist/tr-TR.main.js.map +1 -0
- package/dist/tr-TR.mjs +23 -0
- package/dist/tr-TR.module.js +23 -0
- package/dist/tr-TR.module.js.map +1 -0
- package/dist/types.d.ts +88 -37
- package/dist/types.d.ts.map +1 -1
- package/dist/uk-UA.main.js +21 -0
- package/dist/uk-UA.main.js.map +1 -0
- package/dist/uk-UA.mjs +23 -0
- package/dist/uk-UA.module.js +23 -0
- package/dist/uk-UA.module.js.map +1 -0
- package/dist/useDateField.main.js +177 -0
- package/dist/useDateField.main.js.map +1 -0
- package/dist/useDateField.mjs +168 -0
- package/dist/useDateField.module.js +168 -0
- package/dist/useDateField.module.js.map +1 -0
- package/dist/useDatePicker.main.js +158 -0
- package/dist/useDatePicker.main.js.map +1 -0
- package/dist/useDatePicker.mjs +153 -0
- package/dist/useDatePicker.module.js +153 -0
- package/dist/useDatePicker.module.js.map +1 -0
- package/dist/useDatePickerGroup.main.js +91 -0
- package/dist/useDatePickerGroup.main.js.map +1 -0
- package/dist/useDatePickerGroup.mjs +86 -0
- package/dist/useDatePickerGroup.module.js +86 -0
- package/dist/useDatePickerGroup.module.js.map +1 -0
- package/dist/useDateRangePicker.main.js +201 -0
- package/dist/useDateRangePicker.main.js.map +1 -0
- package/dist/useDateRangePicker.mjs +196 -0
- package/dist/useDateRangePicker.module.js +196 -0
- package/dist/useDateRangePicker.module.js.map +1 -0
- package/dist/useDateSegment.main.js +373 -0
- package/dist/useDateSegment.main.js.map +1 -0
- package/dist/useDateSegment.mjs +364 -0
- package/dist/useDateSegment.module.js +364 -0
- package/dist/useDateSegment.module.js.map +1 -0
- package/dist/useDisplayNames.main.js +59 -0
- package/dist/useDisplayNames.main.js.map +1 -0
- package/dist/useDisplayNames.mjs +54 -0
- package/dist/useDisplayNames.module.js +54 -0
- package/dist/useDisplayNames.module.js.map +1 -0
- package/dist/zh-CN.main.js +21 -0
- package/dist/zh-CN.main.js.map +1 -0
- package/dist/zh-CN.mjs +23 -0
- package/dist/zh-CN.module.js +23 -0
- package/dist/zh-CN.module.js.map +1 -0
- package/dist/zh-TW.main.js +21 -0
- package/dist/zh-TW.main.js.map +1 -0
- package/dist/zh-TW.mjs +23 -0
- package/dist/zh-TW.module.js +23 -0
- package/dist/zh-TW.module.js.map +1 -0
- package/package.json +27 -18
- package/src/index.ts +12 -5
- package/src/useDateField.ts +163 -32
- package/src/useDatePicker.ts +113 -26
- package/src/useDatePickerGroup.ts +71 -13
- package/src/useDateRangePicker.ts +149 -38
- package/src/useDateSegment.ts +145 -91
- package/src/useDisplayNames.ts +10 -8
package/dist/main.js
CHANGED
|
@@ -1,772 +1,35 @@
|
|
|
1
|
-
var $
|
|
2
|
-
var $
|
|
3
|
-
var $
|
|
4
|
-
var $
|
|
5
|
-
var $
|
|
6
|
-
var $IwcIq$internationalizednumber = require("@internationalized/number");
|
|
7
|
-
var $IwcIq$react = require("react");
|
|
8
|
-
var $IwcIq$reactariaspinbutton = require("@react-aria/spinbutton");
|
|
9
|
-
var $IwcIq$internationalizedmessage = require("@internationalized/message");
|
|
1
|
+
var $e90ae7c26a69c6b1$exports = require("./useDatePicker.main.js");
|
|
2
|
+
var $5c015c6316d1904d$exports = require("./useDateSegment.main.js");
|
|
3
|
+
var $4acc2f407c169e55$exports = require("./useDateField.main.js");
|
|
4
|
+
var $20f695b1b69e6b9e$exports = require("./useDateRangePicker.main.js");
|
|
5
|
+
var $934ac650a0aceb4b$exports = require("./useDisplayNames.main.js");
|
|
10
6
|
|
|
11
|
-
function $parcel$exportWildcard(dest, source) {
|
|
12
|
-
Object.keys(source).forEach(function(key) {
|
|
13
|
-
if (key === 'default' || key === '__esModule' || dest.hasOwnProperty(key)) {
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
7
|
|
|
17
|
-
Object.defineProperty(dest, key, {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function get() {
|
|
20
|
-
return source[key];
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
return dest;
|
|
26
|
-
}
|
|
27
|
-
function $parcel$interopDefault(a) {
|
|
28
|
-
return a && a.__esModule ? a.default : a;
|
|
29
|
-
}
|
|
30
8
|
function $parcel$export(e, n, v, s) {
|
|
31
9
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
32
10
|
}
|
|
33
|
-
var $e90ae7c26a69c6b1$exports = {};
|
|
34
|
-
|
|
35
|
-
$parcel$export($e90ae7c26a69c6b1$exports, "useDatePicker", () => $e90ae7c26a69c6b1$export$42df105a73306d51);
|
|
36
|
-
|
|
37
|
-
var $c7d0e80b992ca68a$exports = {};
|
|
38
|
-
var $aa344be62785b256$exports = {};
|
|
39
|
-
$aa344be62785b256$exports = JSON.parse("{\"calendar\":\"التقويم\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"{start, date, long} إلى {end, date, long}\",\"date\":\"التاريخ\",\"dateRange\":\"نطاق التاريخ\",\"day\":\"يوم\",\"dayPeriod\":\"ص/م\",\"endDate\":\"تاريخ الانتهاء\",\"era\":\"العصر\",\"hour\":\"الساعات\",\"minute\":\"الدقائق\",\"month\":\"الشهر\",\"second\":\"الثواني\",\"startDate\":\"تاريخ البدء\",\"year\":\"السنة\",\"weekday\":\"اليوم\",\"timeZoneName\":\"التوقيت\"}");
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
var $615986c3475e7c8c$exports = {};
|
|
43
|
-
$615986c3475e7c8c$exports = JSON.parse("{\"calendar\":\"Календар\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"{start, date, long} до {end, date, long}\",\"date\":\"Дата\",\"dateRange\":\"Времеви интервал\",\"day\":\"ден\",\"dayPeriod\":\"пр.об./сл.об.\",\"endDate\":\"Крайна дата\",\"era\":\"ера\",\"hour\":\"час\",\"minute\":\"минута\",\"month\":\"месец\",\"second\":\"секунда\",\"startDate\":\"Начална дата\",\"year\":\"година\",\"weekday\":\"ден от седмицата\",\"timeZoneName\":\"часова зона\"}");
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
var $6c6207692f1ab248$exports = {};
|
|
47
|
-
$6c6207692f1ab248$exports = JSON.parse("{\"calendar\":\"Kalendář\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"{start, date, long} až {end, date, long}\",\"date\":\"Datum\",\"dateRange\":\"Rozsah dat\",\"day\":\"den\",\"dayPeriod\":\"část dne\",\"endDate\":\"Konečné datum\",\"era\":\"letopočet\",\"hour\":\"hodina\",\"minute\":\"minuta\",\"month\":\"měsíc\",\"second\":\"sekunda\",\"startDate\":\"Počáteční datum\",\"year\":\"rok\",\"weekday\":\"den v týdnu\",\"timeZoneName\":\"časové pásmo\"}");
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
var $fb37a9d024dd70f8$exports = {};
|
|
51
|
-
$fb37a9d024dd70f8$exports = JSON.parse("{\"calendar\":\"Kalender\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"{start, date, long} til {end, date, long}\",\"date\":\"Dato\",\"dateRange\":\"Datointerval\",\"day\":\"dag\",\"dayPeriod\":\"AM/PM\",\"endDate\":\"Slutdato\",\"era\":\"æra\",\"hour\":\"time\",\"minute\":\"minut\",\"month\":\"måned\",\"second\":\"sekund\",\"startDate\":\"Startdato\",\"year\":\"år\",\"weekday\":\"ugedag\",\"timeZoneName\":\"tidszone\"}");
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
var $d7780bd4790f7ae9$exports = {};
|
|
55
|
-
$d7780bd4790f7ae9$exports = JSON.parse("{\"calendar\":\"Kalender\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"{start, date, long} bis {end, date, long}\",\"date\":\"Datum\",\"dateRange\":\"Datumsbereich\",\"day\":\"Tag\",\"dayPeriod\":\"Tageshälfte\",\"endDate\":\"Enddatum\",\"era\":\"Epoche\",\"hour\":\"Stunde\",\"minute\":\"Minute\",\"month\":\"Monat\",\"second\":\"Sekunde\",\"startDate\":\"Anfangsdatum\",\"year\":\"Jahr\",\"weekday\":\"Wochentag\",\"timeZoneName\":\"Zeitzone\"}");
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
var $9cdf03311f06c4ac$exports = {};
|
|
59
|
-
$9cdf03311f06c4ac$exports = JSON.parse("{\"calendar\":\"Ημερολόγιο\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"{start, date, long} ως {end, date, long}\",\"date\":\"Ημερομηνία\",\"dateRange\":\"Εύρος ημερομηνιών\",\"day\":\"ημέρα\",\"dayPeriod\":\"π.μ./μ.μ.\",\"endDate\":\"Ημερομηνία λήξης\",\"era\":\"περίοδος\",\"hour\":\"ώρα\",\"minute\":\"λεπτό\",\"month\":\"μήνας\",\"second\":\"δευτερόλεπτο\",\"startDate\":\"Ημερομηνία έναρξης\",\"year\":\"έτος\",\"weekday\":\"καθημερινή\",\"timeZoneName\":\"ζώνη ώρας\"}");
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
var $f93fc9e164ae811c$exports = {};
|
|
63
|
-
$f93fc9e164ae811c$exports = JSON.parse("{\"era\":\"era\",\"year\":\"year\",\"month\":\"month\",\"day\":\"day\",\"hour\":\"hour\",\"minute\":\"minute\",\"second\":\"second\",\"dayPeriod\":\"AM/PM\",\"calendar\":\"Calendar\",\"date\":\"Date\",\"dateRange\":\"Date Range\",\"startDate\":\"Start Date\",\"endDate\":\"End Date\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"{start, date, long} to {end, date, long}\",\"weekday\":\"day of the week\",\"timeZoneName\":\"time zone\"}");
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
var $7426c3264bf5ffea$exports = {};
|
|
67
|
-
$7426c3264bf5ffea$exports = JSON.parse("{\"calendar\":\"Calendario\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"{start, date, long} a {end, date, long}\",\"date\":\"Fecha\",\"dateRange\":\"Intervalo de fecha\",\"day\":\"día\",\"dayPeriod\":\"a. m./p. m.\",\"endDate\":\"Fecha final\",\"era\":\"era\",\"hour\":\"hora\",\"minute\":\"minuto\",\"month\":\"mes\",\"second\":\"segundo\",\"startDate\":\"Fecha de inicio\",\"year\":\"año\",\"weekday\":\"día de la semana\",\"timeZoneName\":\"zona horaria\"}");
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
var $1115cc0042de790c$exports = {};
|
|
71
|
-
$1115cc0042de790c$exports = JSON.parse("{\"calendar\":\"Kalender\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"{start, date, long} kuni {end, date, long}\",\"date\":\"Kuupäev\",\"dateRange\":\"Kuupäevavahemik\",\"day\":\"päev\",\"dayPeriod\":\"enne/pärast lõunat\",\"endDate\":\"Lõppkuupäev\",\"era\":\"ajastu\",\"hour\":\"tund\",\"minute\":\"minut\",\"month\":\"kuu\",\"second\":\"sekund\",\"startDate\":\"Alguskuupäev\",\"year\":\"aasta\",\"weekday\":\"nädalapäev\",\"timeZoneName\":\"ajavöönd\"}");
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
var $4e80389dccb9283f$exports = {};
|
|
75
|
-
$4e80389dccb9283f$exports = JSON.parse("{\"calendar\":\"Kalenteri\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"{start, date, long}–{end, date, long}\",\"date\":\"Päivämäärä\",\"dateRange\":\"Päivämääräalue\",\"day\":\"päivä\",\"dayPeriod\":\"vuorokaudenaika\",\"endDate\":\"Päättymispäivä\",\"era\":\"aikakausi\",\"hour\":\"tunti\",\"minute\":\"minuutti\",\"month\":\"kuukausi\",\"second\":\"sekunti\",\"startDate\":\"Alkamispäivä\",\"year\":\"vuosi\",\"weekday\":\"viikonpäivä\",\"timeZoneName\":\"aikavyöhyke\"}");
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
var $78ad6f738c1f38d1$exports = {};
|
|
79
|
-
$78ad6f738c1f38d1$exports = JSON.parse("{\"calendar\":\"Calendrier\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"{start, date, long} au {end, date, long}\",\"date\":\"Date\",\"dateRange\":\"Plage de dates\",\"day\":\"jour\",\"dayPeriod\":\"cadran\",\"endDate\":\"Date de fin\",\"era\":\"ère\",\"hour\":\"heure\",\"minute\":\"minute\",\"month\":\"mois\",\"second\":\"seconde\",\"startDate\":\"Date de début\",\"year\":\"année\",\"weekday\":\"jour de la semaine\",\"timeZoneName\":\"fuseau horaire\"}");
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
var $50fa4716d827cd97$exports = {};
|
|
83
|
-
$50fa4716d827cd97$exports = JSON.parse("{\"calendar\":\"לוח שנה\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"מ-{start, date, long} ועד {end, date, long}\",\"date\":\"תאריך\",\"dateRange\":\"טווח תאריכים\",\"day\":\"יום\",\"dayPeriod\":\"לפנה״צ/אחה״צ\",\"endDate\":\"תאריך סיום\",\"era\":\"תקופה\",\"hour\":\"שעה\",\"minute\":\"דקה\",\"month\":\"חודש\",\"second\":\"שנייה\",\"startDate\":\"תאריך התחלה\",\"year\":\"שנה\",\"weekday\":\"יום בשבוע\",\"timeZoneName\":\"אזור זמן\"}");
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
var $7297908fac4cf6c2$exports = {};
|
|
87
|
-
$7297908fac4cf6c2$exports = JSON.parse("{\"calendar\":\"Kalendar\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"{start, date, long} do {end, date, long}\",\"date\":\"Datum\",\"dateRange\":\"Raspon datuma\",\"day\":\"dan\",\"dayPeriod\":\"AM/PM\",\"endDate\":\"Datum završetka\",\"era\":\"era\",\"hour\":\"sat\",\"minute\":\"minuta\",\"month\":\"mjesec\",\"second\":\"sekunda\",\"startDate\":\"Datum početka\",\"year\":\"godina\",\"weekday\":\"dan u tjednu\",\"timeZoneName\":\"vremenska zona\"}");
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
var $f95c1b06e1d5ba32$exports = {};
|
|
91
|
-
$f95c1b06e1d5ba32$exports = JSON.parse("{\"calendar\":\"Naptár\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"{start, date, long} – {end, date, long}\",\"date\":\"Dátum\",\"dateRange\":\"Dátumtartomány\",\"day\":\"nap\",\"dayPeriod\":\"napszak\",\"endDate\":\"Befejező dátum\",\"era\":\"éra\",\"hour\":\"óra\",\"minute\":\"perc\",\"month\":\"hónap\",\"second\":\"másodperc\",\"startDate\":\"Kezdő dátum\",\"year\":\"év\",\"weekday\":\"hét napja\",\"timeZoneName\":\"időzóna\"}");
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
var $437a8dc519258a01$exports = {};
|
|
95
|
-
$437a8dc519258a01$exports = JSON.parse("{\"calendar\":\"Calendario\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"Da {start, date, long} a {end, date, long}\",\"date\":\"Data\",\"dateRange\":\"Intervallo date\",\"day\":\"giorno\",\"dayPeriod\":\"AM/PM\",\"endDate\":\"Data finale\",\"era\":\"era\",\"hour\":\"ora\",\"minute\":\"minuto\",\"month\":\"mese\",\"second\":\"secondo\",\"startDate\":\"Data iniziale\",\"year\":\"anno\",\"weekday\":\"giorno della settimana\",\"timeZoneName\":\"fuso orario\"}");
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
var $bd0aa2b50092a836$exports = {};
|
|
99
|
-
$bd0aa2b50092a836$exports = JSON.parse("{\"calendar\":\"カレンダー\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"{start, date, long} ~ {end, date, long}\",\"date\":\"日付\",\"dateRange\":\"日付範囲\",\"day\":\"日\",\"dayPeriod\":\"午前/午後\",\"endDate\":\"終了日\",\"era\":\"時代\",\"hour\":\"時\",\"minute\":\"分\",\"month\":\"月\",\"second\":\"秒\",\"startDate\":\"開始日\",\"year\":\"年\",\"weekday\":\"曜日\",\"timeZoneName\":\"タイムゾーン\"}");
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
var $bbd8176c2e044bc1$exports = {};
|
|
103
|
-
$bbd8176c2e044bc1$exports = JSON.parse("{\"calendar\":\"달력\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"{start, date, long} ~ {end, date, long}\",\"date\":\"날짜\",\"dateRange\":\"날짜 범위\",\"day\":\"일\",\"dayPeriod\":\"오전/오후\",\"endDate\":\"종료 날짜\",\"era\":\"연호\",\"hour\":\"시\",\"minute\":\"분\",\"month\":\"월\",\"second\":\"초\",\"startDate\":\"시작 날짜\",\"year\":\"년\",\"weekday\":\"요일\",\"timeZoneName\":\"시간대\"}");
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
var $1af703df56ff5180$exports = {};
|
|
107
|
-
$1af703df56ff5180$exports = JSON.parse("{\"calendar\":\"Kalendorius\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"Nuo {start, date, long} iki {end, date, long}\",\"date\":\"Data\",\"dateRange\":\"Datų intervalas\",\"day\":\"diena\",\"dayPeriod\":\"iki pietų / po pietų\",\"endDate\":\"Pabaigos data\",\"era\":\"era\",\"hour\":\"valanda\",\"minute\":\"minutė\",\"month\":\"mėnuo\",\"second\":\"sekundė\",\"startDate\":\"Pradžios data\",\"year\":\"metai\",\"weekday\":\"savaitės diena\",\"timeZoneName\":\"laiko juosta\"}");
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
var $9705eb4511dea9f8$exports = {};
|
|
111
|
-
$9705eb4511dea9f8$exports = JSON.parse("{\"calendar\":\"Kalendārs\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"{start, date, long} līdz {end, date, long}\",\"date\":\"Datums\",\"dateRange\":\"Datumu diapazons\",\"day\":\"diena\",\"dayPeriod\":\"priekšpusdienā/pēcpusdienā\",\"endDate\":\"Beigu datums\",\"era\":\"ēra\",\"hour\":\"stundas\",\"minute\":\"minūtes\",\"month\":\"mēnesis\",\"second\":\"sekundes\",\"startDate\":\"Sākuma datums\",\"year\":\"gads\",\"weekday\":\"nedēļas diena\",\"timeZoneName\":\"laika josla\"}");
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
var $8ef984876a7160bc$exports = {};
|
|
115
|
-
$8ef984876a7160bc$exports = JSON.parse("{\"calendar\":\"Kalender\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"{start, date, long} til {end, date, long}\",\"date\":\"Dato\",\"dateRange\":\"Datoområde\",\"day\":\"dag\",\"dayPeriod\":\"a.m./p.m.\",\"endDate\":\"Sluttdato\",\"era\":\"tidsalder\",\"hour\":\"time\",\"minute\":\"minutt\",\"month\":\"måned\",\"second\":\"sekund\",\"startDate\":\"Startdato\",\"year\":\"år\",\"weekday\":\"ukedag\",\"timeZoneName\":\"tidssone\"}");
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
var $b6e9809e1ecaa25e$exports = {};
|
|
119
|
-
$b6e9809e1ecaa25e$exports = JSON.parse("{\"calendar\":\"Kalender\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"{start, date, long} t/m {end, date, long}\",\"date\":\"Datum\",\"dateRange\":\"Datumbereik\",\"day\":\"dag\",\"dayPeriod\":\"a.m./p.m.\",\"endDate\":\"Einddatum\",\"era\":\"tijdperk\",\"hour\":\"uur\",\"minute\":\"minuut\",\"month\":\"maand\",\"second\":\"seconde\",\"startDate\":\"Startdatum\",\"year\":\"jaar\",\"weekday\":\"dag van de week\",\"timeZoneName\":\"tijdzone\"}");
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
var $deb2fa609661fe31$exports = {};
|
|
123
|
-
$deb2fa609661fe31$exports = JSON.parse("{\"calendar\":\"Kalendarz\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"{start, date, long} do {end, date, long}\",\"date\":\"Data\",\"dateRange\":\"Zakres dat\",\"day\":\"dzień\",\"dayPeriod\":\"rano / po południu / wieczorem\",\"endDate\":\"Data końcowa\",\"era\":\"era\",\"hour\":\"godzina\",\"minute\":\"minuta\",\"month\":\"miesiąc\",\"second\":\"sekunda\",\"startDate\":\"Data początkowa\",\"year\":\"rok\",\"weekday\":\"dzień tygodnia\",\"timeZoneName\":\"strefa czasowa\"}");
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
var $591c8c054c84fa56$exports = {};
|
|
127
|
-
$591c8c054c84fa56$exports = JSON.parse("{\"calendar\":\"Calendário\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"{start, date, long} a {end, date, long}\",\"date\":\"Data\",\"dateRange\":\"Intervalo de datas\",\"day\":\"dia\",\"dayPeriod\":\"AM/PM\",\"endDate\":\"Data final\",\"era\":\"era\",\"hour\":\"hora\",\"minute\":\"minuto\",\"month\":\"mês\",\"second\":\"segundo\",\"startDate\":\"Data inicial\",\"year\":\"ano\",\"weekday\":\"dia da semana\",\"timeZoneName\":\"fuso horário\"}");
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
var $f1633bd6cbc228e8$exports = {};
|
|
131
|
-
$f1633bd6cbc228e8$exports = JSON.parse("{\"calendar\":\"Calendário\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"{start, date, long} a {end, date, long}\",\"date\":\"Data\",\"dateRange\":\"Intervalo de datas\",\"day\":\"dia\",\"dayPeriod\":\"am/pm\",\"endDate\":\"Data de Término\",\"era\":\"era\",\"hour\":\"hora\",\"minute\":\"minuto\",\"month\":\"mês\",\"second\":\"segundo\",\"startDate\":\"Data de Início\",\"year\":\"ano\",\"weekday\":\"dia da semana\",\"timeZoneName\":\"fuso horário\"}");
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
var $14e09da03f3d1c5b$exports = {};
|
|
135
|
-
$14e09da03f3d1c5b$exports = JSON.parse("{\"calendar\":\"Calendar\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"{start, date, long} - {end, date, long}\",\"date\":\"Dată\",\"dateRange\":\"Raza datei\",\"day\":\"zi\",\"dayPeriod\":\"a.m/p.m.\",\"endDate\":\"Dată final\",\"era\":\"eră\",\"hour\":\"oră\",\"minute\":\"minut\",\"month\":\"lună\",\"second\":\"secundă\",\"startDate\":\"Dată început\",\"year\":\"an\",\"weekday\":\"ziua din săptămână\",\"timeZoneName\":\"fus orar\"}");
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
var $63247a3456bc40d1$exports = {};
|
|
139
|
-
$63247a3456bc40d1$exports = JSON.parse("{\"calendar\":\"Календарь\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"{start, date, long} – {end, date, long}\",\"date\":\"Дата\",\"dateRange\":\"Диапазон дат\",\"day\":\"день\",\"dayPeriod\":\"AM/PM\",\"endDate\":\"Дата окончания\",\"era\":\"эра\",\"hour\":\"час\",\"minute\":\"минута\",\"month\":\"месяц\",\"second\":\"секунда\",\"startDate\":\"Дата начала\",\"year\":\"год\",\"weekday\":\"день недели\",\"timeZoneName\":\"часовой пояс\"}");
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
var $22150dd20c353dd4$exports = {};
|
|
143
|
-
$22150dd20c353dd4$exports = JSON.parse("{\"calendar\":\"Kalendár\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"{start, date, long} do {end, date, long}\",\"date\":\"Dátum\",\"dateRange\":\"Rozsah dátumov\",\"day\":\"deň\",\"dayPeriod\":\"AM/PM\",\"endDate\":\"Dátum ukončenia\",\"era\":\"letopočet\",\"hour\":\"hodina\",\"minute\":\"minúta\",\"month\":\"mesiac\",\"second\":\"sekunda\",\"startDate\":\"Dátum začatia\",\"year\":\"rok\",\"weekday\":\"deň týždňa\",\"timeZoneName\":\"časové pásmo\"}");
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
var $701eb9a0385c55fd$exports = {};
|
|
147
|
-
$701eb9a0385c55fd$exports = JSON.parse("{\"calendar\":\"Koledar\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"{start, date, long} do {end, date, long}\",\"date\":\"Datum\",\"dateRange\":\"Datumski obseg\",\"day\":\"dan\",\"dayPeriod\":\"dop/pop\",\"endDate\":\"Datum konca\",\"era\":\"doba\",\"hour\":\"ura\",\"minute\":\"minuta\",\"month\":\"mesec\",\"second\":\"sekunda\",\"startDate\":\"Datum začetka\",\"year\":\"leto\",\"weekday\":\"dan v tednu\",\"timeZoneName\":\"časovni pas\"}");
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
var $54684a4891ca6dc5$exports = {};
|
|
151
|
-
$54684a4891ca6dc5$exports = JSON.parse("{\"calendar\":\"Kalendar\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"{start, date, long} do {end, date, long}\",\"date\":\"Datum\",\"dateRange\":\"Opseg datuma\",\"day\":\"дан\",\"dayPeriod\":\"пре подне/по подне\",\"endDate\":\"Datum završetka\",\"era\":\"ера\",\"hour\":\"сат\",\"minute\":\"минут\",\"month\":\"месец\",\"second\":\"секунд\",\"startDate\":\"Datum početka\",\"year\":\"година\",\"weekday\":\"дан у недељи\",\"timeZoneName\":\"временска зона\"}");
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
var $545887f88a5a52db$exports = {};
|
|
155
|
-
$545887f88a5a52db$exports = JSON.parse("{\"calendar\":\"Kalender\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"{start, date, long} till {end, date, long}\",\"date\":\"Datum\",\"dateRange\":\"Datumintervall\",\"day\":\"dag\",\"dayPeriod\":\"fm/em\",\"endDate\":\"Slutdatum\",\"era\":\"era\",\"hour\":\"timme\",\"minute\":\"minut\",\"month\":\"månad\",\"second\":\"sekund\",\"startDate\":\"Startdatum\",\"year\":\"år\",\"weekday\":\"veckodag\",\"timeZoneName\":\"tidszon\"}");
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
var $492d49420dd96ff4$exports = {};
|
|
159
|
-
$492d49420dd96ff4$exports = JSON.parse("{\"calendar\":\"Takvim\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"{start, date, long} - {end, date, long}\",\"date\":\"Tarih\",\"dateRange\":\"Tarih Aralığı\",\"day\":\"gün\",\"dayPeriod\":\"ÖÖ/ÖS\",\"endDate\":\"Bitiş Tarihi\",\"era\":\"çağ\",\"hour\":\"saat\",\"minute\":\"dakika\",\"month\":\"ay\",\"second\":\"saniye\",\"startDate\":\"Başlangıç Tarihi\",\"year\":\"yıl\",\"weekday\":\"haftanın günü\",\"timeZoneName\":\"saat dilimi\"}");
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
var $dc85765e85e8f267$exports = {};
|
|
163
|
-
$dc85765e85e8f267$exports = JSON.parse("{\"calendar\":\"Календар\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"Від {start, date, long} до {end, date, long}\",\"date\":\"Дата\",\"dateRange\":\"Діапазон дат\",\"day\":\"день\",\"dayPeriod\":\"дп/пп\",\"endDate\":\"Дата завершення\",\"era\":\"ера\",\"hour\":\"година\",\"minute\":\"хвилина\",\"month\":\"місяць\",\"second\":\"секунда\",\"startDate\":\"Дата початку\",\"year\":\"рік\",\"weekday\":\"день тижня\",\"timeZoneName\":\"часовий пояс\"}");
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
var $2157d63cb80c7c63$exports = {};
|
|
167
|
-
$2157d63cb80c7c63$exports = JSON.parse("{\"calendar\":\"日历\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"{start, date, long} 至 {end, date, long}\",\"date\":\"日期\",\"dateRange\":\"日期范围\",\"day\":\"日\",\"dayPeriod\":\"上午/下午\",\"endDate\":\"结束日期\",\"era\":\"纪元\",\"hour\":\"小时\",\"minute\":\"分钟\",\"month\":\"月\",\"second\":\"秒\",\"startDate\":\"开始日期\",\"year\":\"年\",\"weekday\":\"工作日\",\"timeZoneName\":\"时区\"}");
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
var $0335c3ddb5f70cbe$exports = {};
|
|
171
|
-
$0335c3ddb5f70cbe$exports = JSON.parse("{\"calendar\":\"日曆\",\"currentDate\":\"{date, date, full}\",\"currentDateRange\":\"{start, date, long}至 {end, date, long}\",\"date\":\"日期\",\"dateRange\":\"日期範圍\",\"day\":\"日\",\"dayPeriod\":\"上午/下午\",\"endDate\":\"結束日期\",\"era\":\"纪元\",\"hour\":\"小时\",\"minute\":\"分钟\",\"month\":\"月\",\"second\":\"秒\",\"startDate\":\"開始日期\",\"year\":\"年\",\"weekday\":\"工作日\",\"timeZoneName\":\"时区\"}");
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
$c7d0e80b992ca68a$exports = {
|
|
175
|
-
"ar-AE": $aa344be62785b256$exports,
|
|
176
|
-
"bg-BG": $615986c3475e7c8c$exports,
|
|
177
|
-
"cs-CZ": $6c6207692f1ab248$exports,
|
|
178
|
-
"da-DK": $fb37a9d024dd70f8$exports,
|
|
179
|
-
"de-DE": $d7780bd4790f7ae9$exports,
|
|
180
|
-
"el-GR": $9cdf03311f06c4ac$exports,
|
|
181
|
-
"en-US": $f93fc9e164ae811c$exports,
|
|
182
|
-
"es-ES": $7426c3264bf5ffea$exports,
|
|
183
|
-
"et-EE": $1115cc0042de790c$exports,
|
|
184
|
-
"fi-FI": $4e80389dccb9283f$exports,
|
|
185
|
-
"fr-FR": $78ad6f738c1f38d1$exports,
|
|
186
|
-
"he-IL": $50fa4716d827cd97$exports,
|
|
187
|
-
"hr-HR": $7297908fac4cf6c2$exports,
|
|
188
|
-
"hu-HU": $f95c1b06e1d5ba32$exports,
|
|
189
|
-
"it-IT": $437a8dc519258a01$exports,
|
|
190
|
-
"ja-JP": $bd0aa2b50092a836$exports,
|
|
191
|
-
"ko-KR": $bbd8176c2e044bc1$exports,
|
|
192
|
-
"lt-LT": $1af703df56ff5180$exports,
|
|
193
|
-
"lv-LV": $9705eb4511dea9f8$exports,
|
|
194
|
-
"nb-NO": $8ef984876a7160bc$exports,
|
|
195
|
-
"nl-NL": $b6e9809e1ecaa25e$exports,
|
|
196
|
-
"pl-PL": $deb2fa609661fe31$exports,
|
|
197
|
-
"pt-BR": $591c8c054c84fa56$exports,
|
|
198
|
-
"pt-PT": $f1633bd6cbc228e8$exports,
|
|
199
|
-
"ro-RO": $14e09da03f3d1c5b$exports,
|
|
200
|
-
"ru-RU": $63247a3456bc40d1$exports,
|
|
201
|
-
"sk-SK": $22150dd20c353dd4$exports,
|
|
202
|
-
"sl-SI": $701eb9a0385c55fd$exports,
|
|
203
|
-
"sr-SP": $54684a4891ca6dc5$exports,
|
|
204
|
-
"sv-SE": $545887f88a5a52db$exports,
|
|
205
|
-
"tr-TR": $492d49420dd96ff4$exports,
|
|
206
|
-
"uk-UA": $dc85765e85e8f267$exports,
|
|
207
|
-
"zh-CN": $2157d63cb80c7c63$exports,
|
|
208
|
-
"zh-TW": $0335c3ddb5f70cbe$exports
|
|
209
|
-
};
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
function $715562ad3b4cced4$export$4a931266a3838b86(state, ref) {
|
|
216
|
-
// Open the popover on alt + arrow down
|
|
217
|
-
let onKeyDown = (e)=>{
|
|
218
|
-
if (e.altKey && e.key === 'ArrowDown' && 'setOpen' in state) {
|
|
219
|
-
e.preventDefault();
|
|
220
|
-
e.stopPropagation();
|
|
221
|
-
state.setOpen(true);
|
|
222
|
-
}
|
|
223
|
-
};
|
|
224
|
-
// Focus the first placeholder segment from the end on mouse down/touch up in the field.
|
|
225
|
-
let focusLast = ()=>{
|
|
226
|
-
let elements = ref.current.querySelectorAll('[tabindex="0"]');
|
|
227
|
-
let index = elements.length - 1;
|
|
228
|
-
while(index >= 0 && elements[index].getAttribute('aria-placeholder'))index--;
|
|
229
|
-
index = Math.min(index + 1, elements.length - 1);
|
|
230
|
-
let element = elements[index];
|
|
231
|
-
if (element) element.focus();
|
|
232
|
-
};
|
|
233
|
-
let { pressProps: pressProps } = $IwcIq$reactariainteractions.usePress({
|
|
234
|
-
onPressStart (e) {
|
|
235
|
-
if (e.pointerType === 'mouse') focusLast();
|
|
236
|
-
},
|
|
237
|
-
onPress (e) {
|
|
238
|
-
if (e.pointerType !== 'mouse') focusLast();
|
|
239
|
-
}
|
|
240
|
-
});
|
|
241
|
-
return $IwcIq$reactariautils.mergeProps(pressProps, {
|
|
242
|
-
onKeyDown: onKeyDown
|
|
243
|
-
});
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
function $e90ae7c26a69c6b1$export$42df105a73306d51(props, state, ref) {
|
|
250
|
-
let buttonId = $IwcIq$reactariautils.useId();
|
|
251
|
-
let dialogId = $IwcIq$reactariautils.useId();
|
|
252
|
-
let formatMessage = $IwcIq$reactariai18n.useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($c7d0e80b992ca68a$exports)));
|
|
253
|
-
let { labelProps: labelProps , fieldProps: fieldProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps } = $IwcIq$reactarialabel.useField({
|
|
254
|
-
...props,
|
|
255
|
-
labelElementType: 'span'
|
|
256
|
-
});
|
|
257
|
-
let groupProps = $715562ad3b4cced4$export$4a931266a3838b86(state, ref);
|
|
258
|
-
let labelledBy = fieldProps['aria-labelledby'] || fieldProps.id;
|
|
259
|
-
let { locale: locale } = $IwcIq$reactariai18n.useLocale();
|
|
260
|
-
let descProps = $IwcIq$reactariautils.useDescription(state.formatValue(locale, {
|
|
261
|
-
month: 'long'
|
|
262
|
-
}));
|
|
263
|
-
let ariaDescribedBy = [
|
|
264
|
-
descProps['aria-describedby'],
|
|
265
|
-
fieldProps['aria-describedby']
|
|
266
|
-
].filter(Boolean).join(' ') || undefined;
|
|
267
|
-
return {
|
|
268
|
-
groupProps: $IwcIq$reactariautils.mergeProps(groupProps, descProps, {
|
|
269
|
-
role: 'group',
|
|
270
|
-
'aria-disabled': props.isDisabled || null,
|
|
271
|
-
'aria-labelledby': labelledBy,
|
|
272
|
-
'aria-describedby': ariaDescribedBy
|
|
273
|
-
}),
|
|
274
|
-
labelProps: {
|
|
275
|
-
...labelProps,
|
|
276
|
-
onClick: ()=>{
|
|
277
|
-
let focusManager = $IwcIq$reactariafocus.createFocusManager(ref);
|
|
278
|
-
focusManager.focusFirst();
|
|
279
|
-
}
|
|
280
|
-
},
|
|
281
|
-
fieldProps: fieldProps,
|
|
282
|
-
descriptionProps: descriptionProps,
|
|
283
|
-
errorMessageProps: errorMessageProps,
|
|
284
|
-
buttonProps: {
|
|
285
|
-
...descProps,
|
|
286
|
-
id: buttonId,
|
|
287
|
-
excludeFromTabOrder: true,
|
|
288
|
-
'aria-haspopup': 'dialog',
|
|
289
|
-
'aria-label': formatMessage('calendar'),
|
|
290
|
-
'aria-labelledby': `${labelledBy} ${buttonId}`,
|
|
291
|
-
'aria-describedby': ariaDescribedBy
|
|
292
|
-
},
|
|
293
|
-
dialogProps: {
|
|
294
|
-
id: dialogId,
|
|
295
|
-
'aria-labelledby': `${labelledBy} ${buttonId}`
|
|
296
|
-
}
|
|
297
|
-
};
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
var $5c015c6316d1904d$exports = {};
|
|
302
|
-
|
|
303
|
-
$parcel$export($5c015c6316d1904d$exports, "useDateSegment", () => $5c015c6316d1904d$export$1315d136e6f7581);
|
|
304
|
-
|
|
305
|
-
var $4acc2f407c169e55$exports = {};
|
|
306
|
-
|
|
307
|
-
$parcel$export($4acc2f407c169e55$exports, "labelIds", () => $4acc2f407c169e55$export$beb2340c1222c6d);
|
|
308
|
-
$parcel$export($4acc2f407c169e55$exports, "useDateField", () => $4acc2f407c169e55$export$5591b0b878c1a989);
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
const $4acc2f407c169e55$export$beb2340c1222c6d = new WeakMap();
|
|
316
|
-
function $4acc2f407c169e55$export$5591b0b878c1a989(props, state, ref) {
|
|
317
|
-
let { labelProps: labelProps , fieldProps: fieldProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps } = $IwcIq$reactarialabel.useField({
|
|
318
|
-
...props,
|
|
319
|
-
labelElementType: 'span'
|
|
320
|
-
});
|
|
321
|
-
let groupProps = $715562ad3b4cced4$export$4a931266a3838b86(state, ref);
|
|
322
|
-
let { focusWithinProps: focusWithinProps } = $IwcIq$reactariainteractions.useFocusWithin({
|
|
323
|
-
onBlurWithin () {
|
|
324
|
-
state.confirmPlaceholder();
|
|
325
|
-
}
|
|
326
|
-
});
|
|
327
|
-
let formatter = $IwcIq$reactariai18n.useDateFormatter(state.getFormatOptions({
|
|
328
|
-
month: 'long'
|
|
329
|
-
}));
|
|
330
|
-
let descProps = $IwcIq$reactariautils.useDescription(state.value ? formatter.format(state.dateValue) : null);
|
|
331
|
-
let segmentLabelledBy = fieldProps['aria-labelledby'] || fieldProps.id;
|
|
332
|
-
let describedBy = [
|
|
333
|
-
descProps['aria-describedby'],
|
|
334
|
-
fieldProps['aria-describedby']
|
|
335
|
-
].filter(Boolean).join(' ') || undefined;
|
|
336
|
-
$4acc2f407c169e55$export$beb2340c1222c6d.set(state, {
|
|
337
|
-
ariaLabelledBy: segmentLabelledBy,
|
|
338
|
-
ariaDescribedBy: describedBy
|
|
339
|
-
});
|
|
340
|
-
return {
|
|
341
|
-
labelProps: {
|
|
342
|
-
...labelProps,
|
|
343
|
-
onClick: ()=>{
|
|
344
|
-
let focusManager = $IwcIq$reactariafocus.createFocusManager(ref);
|
|
345
|
-
focusManager.focusFirst();
|
|
346
|
-
}
|
|
347
|
-
},
|
|
348
|
-
fieldProps: $IwcIq$reactariautils.mergeProps(fieldProps, descProps, groupProps, focusWithinProps, {
|
|
349
|
-
role: 'group',
|
|
350
|
-
'aria-disabled': props.isDisabled || undefined,
|
|
351
|
-
'aria-describedby': describedBy
|
|
352
|
-
}),
|
|
353
|
-
descriptionProps: descriptionProps,
|
|
354
|
-
errorMessageProps: errorMessageProps
|
|
355
|
-
};
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
var $934ac650a0aceb4b$exports = {};
|
|
363
|
-
|
|
364
|
-
$parcel$export($934ac650a0aceb4b$exports, "useDisplayNames", () => $934ac650a0aceb4b$export$d42c60378c8168f8);
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
function $934ac650a0aceb4b$export$d42c60378c8168f8() {
|
|
370
|
-
let { locale: locale } = $IwcIq$reactariai18n.useLocale();
|
|
371
|
-
return $IwcIq$react.useMemo(()=>{
|
|
372
|
-
// Try to use Intl.DisplayNames if possible. It may be supported in browsers, but not support the dateTimeField
|
|
373
|
-
// type as that was only added in v2. https://github.com/tc39/intl-displaynames-v2
|
|
374
|
-
try {
|
|
375
|
-
// @ts-ignore
|
|
376
|
-
return new Intl.DisplayNames(locale, {
|
|
377
|
-
type: 'dateTimeField'
|
|
378
|
-
});
|
|
379
|
-
} catch (err) {
|
|
380
|
-
return new $934ac650a0aceb4b$var$DisplayNamesPolyfill(locale);
|
|
381
|
-
}
|
|
382
|
-
}, [
|
|
383
|
-
locale
|
|
384
|
-
]);
|
|
385
|
-
}
|
|
386
|
-
class $934ac650a0aceb4b$var$DisplayNamesPolyfill {
|
|
387
|
-
of(field) {
|
|
388
|
-
return this.dictionary.getStringForLocale(field, this.locale);
|
|
389
|
-
}
|
|
390
|
-
constructor(locale){
|
|
391
|
-
this.locale = locale;
|
|
392
|
-
this.dictionary = new $IwcIq$internationalizedmessage.MessageDictionary((/*@__PURE__*/$parcel$interopDefault($c7d0e80b992ca68a$exports)));
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
|
|
396
11
|
|
|
12
|
+
$parcel$export(module.exports, "useDatePicker", () => $e90ae7c26a69c6b1$exports.useDatePicker);
|
|
13
|
+
$parcel$export(module.exports, "useDateSegment", () => $5c015c6316d1904d$exports.useDateSegment);
|
|
14
|
+
$parcel$export(module.exports, "useDateField", () => $4acc2f407c169e55$exports.useDateField);
|
|
15
|
+
$parcel$export(module.exports, "useTimeField", () => $4acc2f407c169e55$exports.useTimeField);
|
|
16
|
+
$parcel$export(module.exports, "useDateRangePicker", () => $20f695b1b69e6b9e$exports.useDateRangePicker);
|
|
17
|
+
$parcel$export(module.exports, "useDisplayNames", () => $934ac650a0aceb4b$exports.useDisplayNames);
|
|
18
|
+
/*
|
|
19
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
20
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
21
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
22
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
23
|
+
*
|
|
24
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
25
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
26
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
27
|
+
* governing permissions and limitations under the License.
|
|
28
|
+
*/
|
|
397
29
|
|
|
398
30
|
|
|
399
31
|
|
|
400
|
-
function $5c015c6316d1904d$export$1315d136e6f7581(props, segment, state, ref) {
|
|
401
|
-
let enteredKeys = $IwcIq$react.useRef('');
|
|
402
|
-
let { locale: locale , direction: direction } = $IwcIq$reactariai18n.useLocale();
|
|
403
|
-
let displayNames = $934ac650a0aceb4b$export$d42c60378c8168f8();
|
|
404
|
-
let focusManager = $IwcIq$reactariafocus.useFocusManager();
|
|
405
|
-
let textValue = segment.text;
|
|
406
|
-
let options = $IwcIq$react.useMemo(()=>state.dateFormatter.resolvedOptions()
|
|
407
|
-
, [
|
|
408
|
-
state.dateFormatter
|
|
409
|
-
]);
|
|
410
|
-
let monthDateFormatter = $IwcIq$reactariai18n.useDateFormatter({
|
|
411
|
-
month: 'long',
|
|
412
|
-
timeZone: options.timeZone
|
|
413
|
-
});
|
|
414
|
-
let hourDateFormatter = $IwcIq$reactariai18n.useDateFormatter({
|
|
415
|
-
hour: 'numeric',
|
|
416
|
-
hour12: options.hour12,
|
|
417
|
-
timeZone: options.timeZone
|
|
418
|
-
});
|
|
419
|
-
if (segment.type === 'month') {
|
|
420
|
-
let monthTextValue = monthDateFormatter.format(state.dateValue);
|
|
421
|
-
textValue = monthTextValue !== textValue ? `${textValue} – ${monthTextValue}` : monthTextValue;
|
|
422
|
-
} else if (segment.type === 'hour' || segment.type === 'dayPeriod') textValue = hourDateFormatter.format(state.dateValue);
|
|
423
|
-
let { spinButtonProps: spinButtonProps } = $IwcIq$reactariaspinbutton.useSpinButton({
|
|
424
|
-
value: segment.value,
|
|
425
|
-
textValue: textValue,
|
|
426
|
-
minValue: segment.minValue,
|
|
427
|
-
maxValue: segment.maxValue,
|
|
428
|
-
isDisabled: props.isDisabled,
|
|
429
|
-
isReadOnly: props.isReadOnly || !segment.isEditable,
|
|
430
|
-
isRequired: props.isRequired,
|
|
431
|
-
onIncrement: ()=>{
|
|
432
|
-
enteredKeys.current = '';
|
|
433
|
-
state.increment(segment.type);
|
|
434
|
-
},
|
|
435
|
-
onDecrement: ()=>{
|
|
436
|
-
enteredKeys.current = '';
|
|
437
|
-
state.decrement(segment.type);
|
|
438
|
-
},
|
|
439
|
-
onIncrementPage: ()=>{
|
|
440
|
-
enteredKeys.current = '';
|
|
441
|
-
state.incrementPage(segment.type);
|
|
442
|
-
},
|
|
443
|
-
onDecrementPage: ()=>{
|
|
444
|
-
enteredKeys.current = '';
|
|
445
|
-
state.decrementPage(segment.type);
|
|
446
|
-
},
|
|
447
|
-
onIncrementToMax: ()=>{
|
|
448
|
-
enteredKeys.current = '';
|
|
449
|
-
state.setSegment(segment.type, segment.maxValue);
|
|
450
|
-
},
|
|
451
|
-
onDecrementToMin: ()=>{
|
|
452
|
-
enteredKeys.current = '';
|
|
453
|
-
state.setSegment(segment.type, segment.minValue);
|
|
454
|
-
}
|
|
455
|
-
});
|
|
456
|
-
let parser = $IwcIq$react.useMemo(()=>new $IwcIq$internationalizednumber.NumberParser(locale, {
|
|
457
|
-
maximumFractionDigits: 0
|
|
458
|
-
})
|
|
459
|
-
, [
|
|
460
|
-
locale
|
|
461
|
-
]);
|
|
462
|
-
let backspace = ()=>{
|
|
463
|
-
if (parser.isValidPartialNumber(segment.text) && !props.isReadOnly && !segment.isPlaceholder) {
|
|
464
|
-
let newValue = segment.text.slice(0, -1);
|
|
465
|
-
let parsed = parser.parse(newValue);
|
|
466
|
-
if (newValue.length === 0 || parsed === 0) state.clearSegment(segment.type);
|
|
467
|
-
else state.setSegment(segment.type, parsed);
|
|
468
|
-
enteredKeys.current = newValue;
|
|
469
|
-
} else if (segment.type === 'dayPeriod') state.clearSegment(segment.type);
|
|
470
|
-
};
|
|
471
|
-
let onKeyDown = (e)=>{
|
|
472
|
-
// Firefox does not fire selectstart for Ctrl/Cmd + A
|
|
473
|
-
// https://bugzilla.mozilla.org/show_bug.cgi?id=1742153
|
|
474
|
-
if (e.key === 'a' && ($IwcIq$reactariautils.isMac() ? e.metaKey : e.ctrlKey)) e.preventDefault();
|
|
475
|
-
if (e.ctrlKey || e.metaKey || e.shiftKey || e.altKey) return;
|
|
476
|
-
switch(e.key){
|
|
477
|
-
case 'ArrowLeft':
|
|
478
|
-
e.preventDefault();
|
|
479
|
-
e.stopPropagation();
|
|
480
|
-
if (direction === 'rtl') focusManager.focusNext();
|
|
481
|
-
else focusManager.focusPrevious();
|
|
482
|
-
break;
|
|
483
|
-
case 'ArrowRight':
|
|
484
|
-
e.preventDefault();
|
|
485
|
-
e.stopPropagation();
|
|
486
|
-
if (direction === 'rtl') focusManager.focusPrevious();
|
|
487
|
-
else focusManager.focusNext();
|
|
488
|
-
break;
|
|
489
|
-
case 'Enter':
|
|
490
|
-
e.preventDefault();
|
|
491
|
-
e.stopPropagation();
|
|
492
|
-
if (segment.isPlaceholder && !props.isReadOnly) state.confirmPlaceholder(segment.type);
|
|
493
|
-
focusManager.focusNext();
|
|
494
|
-
break;
|
|
495
|
-
case 'Tab':
|
|
496
|
-
break;
|
|
497
|
-
case 'Backspace':
|
|
498
|
-
case 'Delete':
|
|
499
|
-
// Safari on iOS does not fire beforeinput for the backspace key because the cursor is at the start.
|
|
500
|
-
e.preventDefault();
|
|
501
|
-
e.stopPropagation();
|
|
502
|
-
backspace();
|
|
503
|
-
break;
|
|
504
|
-
}
|
|
505
|
-
};
|
|
506
|
-
// Safari dayPeriod option doesn't work...
|
|
507
|
-
let { startsWith: startsWith } = $IwcIq$reactariai18n.useFilter({
|
|
508
|
-
sensitivity: 'base'
|
|
509
|
-
});
|
|
510
|
-
let amPmFormatter = $IwcIq$reactariai18n.useDateFormatter({
|
|
511
|
-
hour: 'numeric',
|
|
512
|
-
hour12: true
|
|
513
|
-
});
|
|
514
|
-
let am = $IwcIq$react.useMemo(()=>{
|
|
515
|
-
let date = new Date();
|
|
516
|
-
date.setHours(0);
|
|
517
|
-
return amPmFormatter.formatToParts(date).find((part)=>part.type === 'dayPeriod'
|
|
518
|
-
).value;
|
|
519
|
-
}, [
|
|
520
|
-
amPmFormatter
|
|
521
|
-
]);
|
|
522
|
-
let pm = $IwcIq$react.useMemo(()=>{
|
|
523
|
-
let date = new Date();
|
|
524
|
-
date.setHours(12);
|
|
525
|
-
return amPmFormatter.formatToParts(date).find((part)=>part.type === 'dayPeriod'
|
|
526
|
-
).value;
|
|
527
|
-
}, [
|
|
528
|
-
amPmFormatter
|
|
529
|
-
]);
|
|
530
|
-
let onInput = (key)=>{
|
|
531
|
-
if (props.isDisabled || props.isReadOnly) return;
|
|
532
|
-
let newValue = enteredKeys.current + key;
|
|
533
|
-
switch(segment.type){
|
|
534
|
-
case 'dayPeriod':
|
|
535
|
-
if (startsWith(am, key)) state.setSegment('dayPeriod', 0);
|
|
536
|
-
else if (startsWith(pm, key)) state.setSegment('dayPeriod', 12);
|
|
537
|
-
else break;
|
|
538
|
-
focusManager.focusNext();
|
|
539
|
-
break;
|
|
540
|
-
case 'day':
|
|
541
|
-
case 'hour':
|
|
542
|
-
case 'minute':
|
|
543
|
-
case 'second':
|
|
544
|
-
case 'month':
|
|
545
|
-
case 'year':
|
|
546
|
-
{
|
|
547
|
-
if (!parser.isValidPartialNumber(newValue)) return;
|
|
548
|
-
let numberValue = parser.parse(newValue);
|
|
549
|
-
let segmentValue = numberValue;
|
|
550
|
-
let allowsZero = segment.minValue === 0;
|
|
551
|
-
if (segment.type === 'hour' && state.dateFormatter.resolvedOptions().hour12) {
|
|
552
|
-
switch(state.dateFormatter.resolvedOptions().hourCycle){
|
|
553
|
-
case 'h11':
|
|
554
|
-
if (numberValue > 11) segmentValue = parser.parse(key);
|
|
555
|
-
break;
|
|
556
|
-
case 'h12':
|
|
557
|
-
allowsZero = false;
|
|
558
|
-
if (numberValue > 12) segmentValue = parser.parse(key);
|
|
559
|
-
break;
|
|
560
|
-
}
|
|
561
|
-
if (segment.value >= 12 && numberValue > 1) numberValue += 12;
|
|
562
|
-
} else if (numberValue > segment.maxValue) segmentValue = parser.parse(key);
|
|
563
|
-
if (isNaN(numberValue)) return;
|
|
564
|
-
let shouldSetValue = segmentValue !== 0 || allowsZero;
|
|
565
|
-
if (shouldSetValue) state.setSegment(segment.type, segmentValue);
|
|
566
|
-
if (Number(numberValue + '0') > segment.maxValue || newValue.length >= String(segment.maxValue).length) {
|
|
567
|
-
enteredKeys.current = '';
|
|
568
|
-
if (shouldSetValue) focusManager.focusNext();
|
|
569
|
-
} else enteredKeys.current = newValue;
|
|
570
|
-
break;
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
};
|
|
574
|
-
let onFocus = ()=>{
|
|
575
|
-
enteredKeys.current = '';
|
|
576
|
-
$IwcIq$reactariautils.scrollIntoView($IwcIq$reactariautils.getScrollParent(ref.current), ref.current);
|
|
577
|
-
// Safari requires that a selection is set or it won't fire input events.
|
|
578
|
-
// Since usePress disables text selection, this won't happen by default.
|
|
579
|
-
ref.current.style.webkitUserSelect = 'text';
|
|
580
|
-
let selection = window.getSelection();
|
|
581
|
-
selection.collapse(ref.current);
|
|
582
|
-
ref.current.style.webkitUserSelect = '';
|
|
583
|
-
};
|
|
584
|
-
let compositionRef = $IwcIq$react.useRef('');
|
|
585
|
-
// @ts-ignore - TODO: possibly old TS version? doesn't fail in my editor...
|
|
586
|
-
$IwcIq$reactariautils.useEvent(ref, 'beforeinput', (e)=>{
|
|
587
|
-
e.preventDefault();
|
|
588
|
-
switch(e.inputType){
|
|
589
|
-
case 'deleteContentBackward':
|
|
590
|
-
case 'deleteContentForward':
|
|
591
|
-
if (parser.isValidPartialNumber(segment.text) && !props.isReadOnly) backspace();
|
|
592
|
-
break;
|
|
593
|
-
case 'insertCompositionText':
|
|
594
|
-
// insertCompositionText cannot be canceled.
|
|
595
|
-
// Record the current state of the element so we can restore it in the `input` event below.
|
|
596
|
-
compositionRef.current = ref.current.textContent;
|
|
597
|
-
// Safari gets stuck in a composition state unless we also assign to the value here.
|
|
598
|
-
// eslint-disable-next-line no-self-assign
|
|
599
|
-
ref.current.textContent = ref.current.textContent;
|
|
600
|
-
break;
|
|
601
|
-
default:
|
|
602
|
-
if (e.data != null) onInput(e.data);
|
|
603
|
-
break;
|
|
604
|
-
}
|
|
605
|
-
});
|
|
606
|
-
$IwcIq$reactariautils.useEvent(ref, 'input', (e)=>{
|
|
607
|
-
let { inputType: inputType , data: data } = e;
|
|
608
|
-
switch(inputType){
|
|
609
|
-
case 'insertCompositionText':
|
|
610
|
-
// Reset the DOM to how it was in the beforeinput event.
|
|
611
|
-
ref.current.textContent = compositionRef.current;
|
|
612
|
-
// Android sometimes fires key presses of letters as composition events. Need to handle am/pm keys here too.
|
|
613
|
-
// Can also happen e.g. with Pinyin keyboard on iOS.
|
|
614
|
-
if (startsWith(am, data) || startsWith(pm, data)) onInput(data);
|
|
615
|
-
break;
|
|
616
|
-
}
|
|
617
|
-
});
|
|
618
|
-
// Focus on mouse down/touch up to match native textfield behavior.
|
|
619
|
-
// usePress handles canceling text selection.
|
|
620
|
-
let { pressProps: pressProps } = $IwcIq$reactariainteractions.usePress({
|
|
621
|
-
preventFocusOnPress: true,
|
|
622
|
-
onPressStart: (e)=>{
|
|
623
|
-
if (e.pointerType === 'mouse') e.target.focus();
|
|
624
|
-
},
|
|
625
|
-
onPress (e) {
|
|
626
|
-
if (e.pointerType !== 'mouse') e.target.focus();
|
|
627
|
-
}
|
|
628
|
-
});
|
|
629
|
-
// For Android: prevent selection on long press.
|
|
630
|
-
$IwcIq$reactariautils.useEvent(ref, 'selectstart', (e)=>{
|
|
631
|
-
e.preventDefault();
|
|
632
|
-
});
|
|
633
|
-
// spinbuttons cannot be focused with VoiceOver on iOS.
|
|
634
|
-
let touchPropOverrides = $IwcIq$reactariautils.isIOS() || segment.type === 'timeZoneName' ? {
|
|
635
|
-
role: 'textbox',
|
|
636
|
-
'aria-valuemax': null,
|
|
637
|
-
'aria-valuemin': null,
|
|
638
|
-
'aria-valuetext': null,
|
|
639
|
-
'aria-valuenow': null
|
|
640
|
-
} : {
|
|
641
|
-
};
|
|
642
|
-
let { ariaLabelledBy: ariaLabelledBy , ariaDescribedBy: ariaDescribedBy } = $4acc2f407c169e55$export$beb2340c1222c6d.get(state);
|
|
643
|
-
// Only apply aria-describedby to the first segment, unless the field is invalid. This avoids it being
|
|
644
|
-
// read every time the user navigates to a new segment.
|
|
645
|
-
let firstSegment = $IwcIq$react.useMemo(()=>state.segments.find((s)=>s.isEditable
|
|
646
|
-
)
|
|
647
|
-
, [
|
|
648
|
-
state.segments
|
|
649
|
-
]);
|
|
650
|
-
if (segment !== firstSegment && state.validationState !== 'invalid') ariaDescribedBy = undefined;
|
|
651
|
-
let id = $IwcIq$reactariautils.useId(props.id);
|
|
652
|
-
let isEditable = !props.isDisabled && !props.isReadOnly && segment.isEditable;
|
|
653
|
-
return {
|
|
654
|
-
segmentProps: $IwcIq$reactariautils.mergeProps(spinButtonProps, pressProps, {
|
|
655
|
-
id: id,
|
|
656
|
-
...touchPropOverrides,
|
|
657
|
-
'aria-controls': props['aria-controls'],
|
|
658
|
-
// 'aria-haspopup': props['aria-haspopup'], // deprecated in ARIA 1.2
|
|
659
|
-
'aria-invalid': state.validationState === 'invalid' ? 'true' : undefined,
|
|
660
|
-
'aria-label': segment.type !== 'literal' ? displayNames.of(segment.type) : undefined,
|
|
661
|
-
'aria-labelledby': `${ariaLabelledBy} ${id}`,
|
|
662
|
-
'aria-describedby': ariaDescribedBy,
|
|
663
|
-
'aria-placeholder': segment.isPlaceholder ? segment.text : undefined,
|
|
664
|
-
'aria-readonly': props.isReadOnly || !segment.isEditable ? 'true' : undefined,
|
|
665
|
-
contentEditable: isEditable,
|
|
666
|
-
suppressContentEditableWarning: isEditable,
|
|
667
|
-
spellCheck: isEditable ? 'false' : undefined,
|
|
668
|
-
autoCapitalize: isEditable ? 'off' : undefined,
|
|
669
|
-
autoCorrect: isEditable ? 'off' : undefined,
|
|
670
|
-
// Capitalization was changed in React 17...
|
|
671
|
-
[parseInt(($parcel$interopDefault($IwcIq$react)).version, 10) >= 17 ? 'enterKeyHint' : 'enterkeyhint']: isEditable ? 'next' : undefined,
|
|
672
|
-
inputMode: props.isDisabled || segment.type === 'dayPeriod' || !isEditable ? undefined : 'numeric',
|
|
673
|
-
tabIndex: props.isDisabled ? undefined : 0,
|
|
674
|
-
onKeyDown: onKeyDown,
|
|
675
|
-
onFocus: onFocus
|
|
676
|
-
})
|
|
677
|
-
};
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
var $20f695b1b69e6b9e$exports = {};
|
|
683
|
-
|
|
684
|
-
$parcel$export($20f695b1b69e6b9e$exports, "useDateRangePicker", () => $20f695b1b69e6b9e$export$12fd5f0e9f4bb192);
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
function $20f695b1b69e6b9e$export$12fd5f0e9f4bb192(props, state, ref) {
|
|
693
|
-
let formatMessage = $IwcIq$reactariai18n.useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($c7d0e80b992ca68a$exports)));
|
|
694
|
-
let { labelProps: labelProps , fieldProps: fieldProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps } = $IwcIq$reactarialabel.useField({
|
|
695
|
-
...props,
|
|
696
|
-
labelElementType: 'span'
|
|
697
|
-
});
|
|
698
|
-
let labelledBy = fieldProps['aria-labelledby'] || fieldProps.id;
|
|
699
|
-
let { locale: locale } = $IwcIq$reactariai18n.useLocale();
|
|
700
|
-
let description = state.formatValue(locale, {
|
|
701
|
-
month: 'long'
|
|
702
|
-
});
|
|
703
|
-
let descProps = $IwcIq$reactariautils.useDescription(description);
|
|
704
|
-
let startFieldProps = $IwcIq$reactariautils.useLabels({
|
|
705
|
-
'aria-label': formatMessage('startDate'),
|
|
706
|
-
'aria-labelledby': labelledBy
|
|
707
|
-
});
|
|
708
|
-
let endFieldProps = $IwcIq$reactariautils.useLabels({
|
|
709
|
-
'aria-label': formatMessage('endDate'),
|
|
710
|
-
'aria-labelledby': labelledBy
|
|
711
|
-
});
|
|
712
|
-
let buttonId = $IwcIq$reactariautils.useId();
|
|
713
|
-
let dialogId = $IwcIq$reactariautils.useId();
|
|
714
|
-
let groupProps = $715562ad3b4cced4$export$4a931266a3838b86(state, ref);
|
|
715
|
-
let { focusWithinProps: focusWithinProps } = $IwcIq$reactariainteractions.useFocusWithin({
|
|
716
|
-
onBlurWithin () {
|
|
717
|
-
state.confirmPlaceholder();
|
|
718
|
-
}
|
|
719
|
-
});
|
|
720
|
-
let ariaDescribedBy = [
|
|
721
|
-
descProps['aria-describedby'],
|
|
722
|
-
fieldProps['aria-describedby']
|
|
723
|
-
].filter(Boolean).join(' ') || undefined;
|
|
724
|
-
return {
|
|
725
|
-
groupProps: $IwcIq$reactariautils.mergeProps(groupProps, fieldProps, descProps, focusWithinProps, {
|
|
726
|
-
role: 'group',
|
|
727
|
-
'aria-disabled': props.isDisabled || null,
|
|
728
|
-
'aria-describedby': ariaDescribedBy
|
|
729
|
-
}),
|
|
730
|
-
labelProps: {
|
|
731
|
-
...labelProps,
|
|
732
|
-
onClick: ()=>{
|
|
733
|
-
let focusManager = $IwcIq$reactariafocus.createFocusManager(ref);
|
|
734
|
-
focusManager.focusFirst();
|
|
735
|
-
}
|
|
736
|
-
},
|
|
737
|
-
buttonProps: {
|
|
738
|
-
...descProps,
|
|
739
|
-
id: buttonId,
|
|
740
|
-
excludeFromTabOrder: true,
|
|
741
|
-
'aria-haspopup': 'dialog',
|
|
742
|
-
'aria-label': formatMessage('calendar'),
|
|
743
|
-
'aria-labelledby': `${labelledBy} ${buttonId}`,
|
|
744
|
-
'aria-describedby': ariaDescribedBy
|
|
745
|
-
},
|
|
746
|
-
dialogProps: {
|
|
747
|
-
id: dialogId,
|
|
748
|
-
'aria-labelledby': `${labelledBy} ${buttonId}`
|
|
749
|
-
},
|
|
750
|
-
startFieldProps: {
|
|
751
|
-
...startFieldProps,
|
|
752
|
-
'aria-describedby': fieldProps['aria-describedby']
|
|
753
|
-
},
|
|
754
|
-
endFieldProps: {
|
|
755
|
-
...endFieldProps,
|
|
756
|
-
'aria-describedby': fieldProps['aria-describedby']
|
|
757
|
-
},
|
|
758
|
-
descriptionProps: descriptionProps,
|
|
759
|
-
errorMessageProps: errorMessageProps
|
|
760
|
-
};
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
|
|
764
32
|
|
|
765
|
-
$parcel$exportWildcard(module.exports, $e90ae7c26a69c6b1$exports);
|
|
766
|
-
$parcel$exportWildcard(module.exports, $5c015c6316d1904d$exports);
|
|
767
|
-
$parcel$exportWildcard(module.exports, $4acc2f407c169e55$exports);
|
|
768
|
-
$parcel$exportWildcard(module.exports, $20f695b1b69e6b9e$exports);
|
|
769
|
-
$parcel$exportWildcard(module.exports, $934ac650a0aceb4b$exports);
|
|
770
33
|
|
|
771
34
|
|
|
772
35
|
//# sourceMappingURL=main.js.map
|