@react-aria/datepicker 3.0.0-nightly.3036 → 3.0.0-nightly.3047
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 +693 -857
- package/dist/main.js.map +1 -1
- package/dist/module.js +691 -809
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +15 -15
package/dist/main.js
CHANGED
|
@@ -1,936 +1,772 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
useMessageFormatter,
|
|
25
|
-
useDateFormatter,
|
|
26
|
-
useFilter
|
|
27
|
-
} = require("@react-aria/i18n");
|
|
28
|
-
|
|
29
|
-
var {
|
|
30
|
-
useField
|
|
31
|
-
} = require("@react-aria/label");
|
|
32
|
-
|
|
33
|
-
var {
|
|
34
|
-
usePress,
|
|
35
|
-
useFocusWithin
|
|
36
|
-
} = require("@react-aria/interactions");
|
|
37
|
-
|
|
38
|
-
var {
|
|
39
|
-
mergeProps,
|
|
40
|
-
useDescription,
|
|
41
|
-
useId,
|
|
42
|
-
getScrollParent,
|
|
43
|
-
isIOS,
|
|
44
|
-
isMac,
|
|
45
|
-
scrollIntoView,
|
|
46
|
-
useEvent,
|
|
47
|
-
useLabels
|
|
48
|
-
} = require("@react-aria/utils");
|
|
49
|
-
|
|
50
|
-
var {
|
|
51
|
-
createFocusManager,
|
|
52
|
-
useFocusManager
|
|
53
|
-
} = require("@react-aria/focus");
|
|
54
|
-
|
|
55
|
-
var _babelRuntimeHelpersInteropRequireDefault = $parcel$interopDefault(require("@babel/runtime/helpers/interopRequireDefault"));
|
|
56
|
-
|
|
57
|
-
var _babelRuntimeHelpersExtends = $parcel$interopDefault(require("@babel/runtime/helpers/extends"));
|
|
1
|
+
var $RqPov$reactariafocus = require("@react-aria/focus");
|
|
2
|
+
var $RqPov$reactariautils = require("@react-aria/utils");
|
|
3
|
+
var $RqPov$reactarialabel = require("@react-aria/label");
|
|
4
|
+
var $RqPov$reactariai18n = require("@react-aria/i18n");
|
|
5
|
+
var $RqPov$reactariainteractions = require("@react-aria/interactions");
|
|
6
|
+
var $RqPov$internationalizednumber = require("@internationalized/number");
|
|
7
|
+
var $RqPov$react = require("react");
|
|
8
|
+
var $RqPov$reactariaspinbutton = require("@react-aria/spinbutton");
|
|
9
|
+
var $RqPov$internationalizedmessage = require("@internationalized/message");
|
|
10
|
+
|
|
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
|
+
|
|
17
|
+
Object.defineProperty(dest, key, {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function get() {
|
|
20
|
+
return source[key];
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
});
|
|
58
24
|
|
|
25
|
+
return dest;
|
|
26
|
+
}
|
|
59
27
|
function $parcel$interopDefault(a) {
|
|
60
28
|
return a && a.__esModule ? a.default : a;
|
|
61
29
|
}
|
|
30
|
+
function $parcel$export(e, n, v, s) {
|
|
31
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
32
|
+
}
|
|
33
|
+
var $cb7d2152263d2ab6$exports = {};
|
|
62
34
|
|
|
63
|
-
|
|
64
|
-
var $be926026280e076dd0b048671d4b$exports = {};
|
|
65
|
-
$be926026280e076dd0b048671d4b$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\":\"التوقيت\"}");
|
|
66
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/bg-BG.json
|
|
67
|
-
var $bab398828901e91cda5ace996e16743$exports = {};
|
|
68
|
-
$bab398828901e91cda5ace996e16743$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\":\"часова зона\"}");
|
|
69
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/cs-CZ.json
|
|
70
|
-
var $a1b39c1203bddacb07ac8af1bf09f93d$exports = {};
|
|
71
|
-
$a1b39c1203bddacb07ac8af1bf09f93d$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\"}");
|
|
72
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/da-DK.json
|
|
73
|
-
var $de6d54fc6253e3aab217ab66cc92632$exports = {};
|
|
74
|
-
$de6d54fc6253e3aab217ab66cc92632$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\"}");
|
|
75
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/de-DE.json
|
|
76
|
-
var $c62d85e73a4bc4d2d79c4e5438a0a3$exports = {};
|
|
77
|
-
$c62d85e73a4bc4d2d79c4e5438a0a3$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\"}");
|
|
78
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/el-GR.json
|
|
79
|
-
var $e7f2c17a4d052730760575ff7cf57df6$exports = {};
|
|
80
|
-
$e7f2c17a4d052730760575ff7cf57df6$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\":\"ζώνη ώρας\"}");
|
|
81
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/en-US.json
|
|
82
|
-
var $adfdcb0b7f4822eaafecdabf45f751$exports = {};
|
|
83
|
-
$adfdcb0b7f4822eaafecdabf45f751$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\"}");
|
|
84
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/es-ES.json
|
|
85
|
-
var $f9c516e0c25716b7d567ed2$exports = {};
|
|
86
|
-
$f9c516e0c25716b7d567ed2$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\"}");
|
|
87
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/et-EE.json
|
|
88
|
-
var $ba7274e4009469f7b66a9c93516dc421$exports = {};
|
|
89
|
-
$ba7274e4009469f7b66a9c93516dc421$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\"}");
|
|
90
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/fi-FI.json
|
|
91
|
-
var $c64b2869d31111b8a6212d3569c46edc$exports = {};
|
|
92
|
-
$c64b2869d31111b8a6212d3569c46edc$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\"}");
|
|
93
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/fr-FR.json
|
|
94
|
-
var $ba1e9adecce613badde3f8b2a91b9$exports = {};
|
|
95
|
-
$ba1e9adecce613badde3f8b2a91b9$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\"}");
|
|
96
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/he-IL.json
|
|
97
|
-
var $da5d80bcf16af82fe7b14fc1e9d9$exports = {};
|
|
98
|
-
$da5d80bcf16af82fe7b14fc1e9d9$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\":\"אזור זמן\"}");
|
|
99
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/hr-HR.json
|
|
100
|
-
var $c179e9a34711caa46568a537c351781$exports = {};
|
|
101
|
-
$c179e9a34711caa46568a537c351781$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\"}");
|
|
102
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/hu-HU.json
|
|
103
|
-
var $a40a6dd4cfb1bd1de71f82470d8716$exports = {};
|
|
104
|
-
$a40a6dd4cfb1bd1de71f82470d8716$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\"}");
|
|
105
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/it-IT.json
|
|
106
|
-
var $b9be9a4b72f2aadd1d314520c1acfc$exports = {};
|
|
107
|
-
$b9be9a4b72f2aadd1d314520c1acfc$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\"}");
|
|
108
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/ja-JP.json
|
|
109
|
-
var $b41d870af1ac3496d01f8698fb5c954$exports = {};
|
|
110
|
-
$b41d870af1ac3496d01f8698fb5c954$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\":\"タイムゾーン\"}");
|
|
111
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/ko-KR.json
|
|
112
|
-
var $fe0c574bf48312400dd82a37538c16ef$exports = {};
|
|
113
|
-
$fe0c574bf48312400dd82a37538c16ef$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\":\"시간대\"}");
|
|
114
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/lt-LT.json
|
|
115
|
-
var $b0ad35113dfe9f264970b85837$exports = {};
|
|
116
|
-
$b0ad35113dfe9f264970b85837$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\"}");
|
|
117
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/lv-LV.json
|
|
118
|
-
var $c670847f13ef745cf51c4d927173b$exports = {};
|
|
119
|
-
$c670847f13ef745cf51c4d927173b$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\"}");
|
|
120
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/nb-NO.json
|
|
121
|
-
var $d59ad4442794aa8d7415835505965b2$exports = {};
|
|
122
|
-
$d59ad4442794aa8d7415835505965b2$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\"}");
|
|
123
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/nl-NL.json
|
|
124
|
-
var $ea0bd7fd22f4939550fa7411df8295f2$exports = {};
|
|
125
|
-
$ea0bd7fd22f4939550fa7411df8295f2$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\"}");
|
|
126
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/pl-PL.json
|
|
127
|
-
var $c08613207efc8ea834b1fadda995620b$exports = {};
|
|
128
|
-
$c08613207efc8ea834b1fadda995620b$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\"}");
|
|
129
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/pt-BR.json
|
|
130
|
-
var $c53c2ff9b6580a8da286c11a97f27c0c$exports = {};
|
|
131
|
-
$c53c2ff9b6580a8da286c11a97f27c0c$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\"}");
|
|
132
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/pt-PT.json
|
|
133
|
-
var $d9eb517021c8b3bace06723f935$exports = {};
|
|
134
|
-
$d9eb517021c8b3bace06723f935$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\"}");
|
|
135
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/ro-RO.json
|
|
136
|
-
var $b374a5303a356023e59a4df3c152bebf$exports = {};
|
|
137
|
-
$b374a5303a356023e59a4df3c152bebf$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\"}");
|
|
138
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/ru-RU.json
|
|
139
|
-
var $e72056058c9fa1ea634cd2d7f7700$exports = {};
|
|
140
|
-
$e72056058c9fa1ea634cd2d7f7700$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\":\"часовой пояс\"}");
|
|
141
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/sk-SK.json
|
|
142
|
-
var $ab8e21cbc487e19c15c39cc2df98aed6$exports = {};
|
|
143
|
-
$ab8e21cbc487e19c15c39cc2df98aed6$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
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/sl-SI.json
|
|
145
|
-
var $a155de298a83a5c6e328091b4347a$exports = {};
|
|
146
|
-
$a155de298a83a5c6e328091b4347a$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\"}");
|
|
147
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/sr-SP.json
|
|
148
|
-
var $f93e8a2d2993e66b87975762a481$exports = {};
|
|
149
|
-
$f93e8a2d2993e66b87975762a481$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\":\"временска зона\"}");
|
|
150
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/sv-SE.json
|
|
151
|
-
var $d90bf5621eeb550e11f07fd645ee9375$exports = {};
|
|
152
|
-
$d90bf5621eeb550e11f07fd645ee9375$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\"}");
|
|
153
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/tr-TR.json
|
|
154
|
-
var $aa582d9ff36fb511de0ccb22bd9e2bb$exports = {};
|
|
155
|
-
$aa582d9ff36fb511de0ccb22bd9e2bb$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\"}");
|
|
156
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/uk-UA.json
|
|
157
|
-
var $a1ed5505308b04ac9cd1c488538019c3$exports = {};
|
|
158
|
-
$a1ed5505308b04ac9cd1c488538019c3$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\":\"часовий пояс\"}");
|
|
159
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/zh-CN.json
|
|
160
|
-
var $c6b9bcbebc7c1f385b7e70bbd744b53$exports = {};
|
|
161
|
-
$c6b9bcbebc7c1f385b7e70bbd744b53$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\":\"时区\"}");
|
|
162
|
-
// ASSET: /home/circleci/react-spectrum/packages/@react-aria/datepicker/intl/zh-TW.json
|
|
163
|
-
var $ae51b3cde9961c4855b77ac499ea$exports = {};
|
|
164
|
-
$ae51b3cde9961c4855b77ac499ea$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\":\"时区\"}");
|
|
165
|
-
|
|
166
|
-
function $e62c7e96a53f216814557ded9a8cf$export$useDatePickerGroup(state, ref) {
|
|
167
|
-
// Open the popover on alt + arrow down
|
|
168
|
-
let onKeyDown = e => {
|
|
169
|
-
if (e.altKey && e.key === 'ArrowDown' && 'setOpen' in state) {
|
|
170
|
-
e.preventDefault();
|
|
171
|
-
e.stopPropagation();
|
|
172
|
-
state.setOpen(true);
|
|
173
|
-
}
|
|
174
|
-
}; // Focus the first placeholder segment from the end on mouse down/touch up in the field.
|
|
35
|
+
$parcel$export($cb7d2152263d2ab6$exports, "useDatePicker", () => $cb7d2152263d2ab6$export$42df105a73306d51);
|
|
175
36
|
|
|
37
|
+
var $5766533e00be07f5$exports = {};
|
|
38
|
+
var $7e1d533dafdd7a3c$exports = {};
|
|
39
|
+
$7e1d533dafdd7a3c$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\":\"التوقيت\"}");
|
|
176
40
|
|
|
177
|
-
let focusLast = () => {
|
|
178
|
-
let elements = ref.current.querySelectorAll('[tabindex="0"]');
|
|
179
|
-
let index = elements.length - 1;
|
|
180
41
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
}
|
|
42
|
+
var $b645e4c88eddb7bc$exports = {};
|
|
43
|
+
$b645e4c88eddb7bc$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\":\"часова зона\"}");
|
|
184
44
|
|
|
185
|
-
index = Math.min(index + 1, elements.length - 1);
|
|
186
|
-
let element = elements[index];
|
|
187
45
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
let {
|
|
194
|
-
pressProps
|
|
195
|
-
} = usePress({
|
|
196
|
-
onPressStart(e) {
|
|
197
|
-
if (e.pointerType === 'mouse') {
|
|
198
|
-
focusLast();
|
|
199
|
-
}
|
|
200
|
-
},
|
|
46
|
+
var $c74d7d9a3a492e14$exports = {};
|
|
47
|
+
$c74d7d9a3a492e14$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\"}");
|
|
201
48
|
|
|
202
|
-
onPress(e) {
|
|
203
|
-
if (e.pointerType !== 'mouse') {
|
|
204
|
-
focusLast();
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
49
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
onKeyDown
|
|
211
|
-
});
|
|
212
|
-
}
|
|
50
|
+
var $2fdf441aacd54e7a$exports = {};
|
|
51
|
+
$2fdf441aacd54e7a$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\"}");
|
|
213
52
|
|
|
214
|
-
// @ts-ignore
|
|
215
|
-
const $faa51d1fd0ed7732821d1b830a6e9ae2$var$intlMessages = {
|
|
216
|
-
"ar-AE": _babelRuntimeHelpersInteropRequireDefault($be926026280e076dd0b048671d4b$exports).default,
|
|
217
|
-
"bg-BG": _babelRuntimeHelpersInteropRequireDefault($bab398828901e91cda5ace996e16743$exports).default,
|
|
218
|
-
"cs-CZ": _babelRuntimeHelpersInteropRequireDefault($a1b39c1203bddacb07ac8af1bf09f93d$exports).default,
|
|
219
|
-
"da-DK": _babelRuntimeHelpersInteropRequireDefault($de6d54fc6253e3aab217ab66cc92632$exports).default,
|
|
220
|
-
"de-DE": _babelRuntimeHelpersInteropRequireDefault($c62d85e73a4bc4d2d79c4e5438a0a3$exports).default,
|
|
221
|
-
"el-GR": _babelRuntimeHelpersInteropRequireDefault($e7f2c17a4d052730760575ff7cf57df6$exports).default,
|
|
222
|
-
"en-US": _babelRuntimeHelpersInteropRequireDefault($adfdcb0b7f4822eaafecdabf45f751$exports).default,
|
|
223
|
-
"es-ES": _babelRuntimeHelpersInteropRequireDefault($f9c516e0c25716b7d567ed2$exports).default,
|
|
224
|
-
"et-EE": _babelRuntimeHelpersInteropRequireDefault($ba7274e4009469f7b66a9c93516dc421$exports).default,
|
|
225
|
-
"fi-FI": _babelRuntimeHelpersInteropRequireDefault($c64b2869d31111b8a6212d3569c46edc$exports).default,
|
|
226
|
-
"fr-FR": _babelRuntimeHelpersInteropRequireDefault($ba1e9adecce613badde3f8b2a91b9$exports).default,
|
|
227
|
-
"he-IL": _babelRuntimeHelpersInteropRequireDefault($da5d80bcf16af82fe7b14fc1e9d9$exports).default,
|
|
228
|
-
"hr-HR": _babelRuntimeHelpersInteropRequireDefault($c179e9a34711caa46568a537c351781$exports).default,
|
|
229
|
-
"hu-HU": _babelRuntimeHelpersInteropRequireDefault($a40a6dd4cfb1bd1de71f82470d8716$exports).default,
|
|
230
|
-
"it-IT": _babelRuntimeHelpersInteropRequireDefault($b9be9a4b72f2aadd1d314520c1acfc$exports).default,
|
|
231
|
-
"ja-JP": _babelRuntimeHelpersInteropRequireDefault($b41d870af1ac3496d01f8698fb5c954$exports).default,
|
|
232
|
-
"ko-KR": _babelRuntimeHelpersInteropRequireDefault($fe0c574bf48312400dd82a37538c16ef$exports).default,
|
|
233
|
-
"lt-LT": _babelRuntimeHelpersInteropRequireDefault($b0ad35113dfe9f264970b85837$exports).default,
|
|
234
|
-
"lv-LV": _babelRuntimeHelpersInteropRequireDefault($c670847f13ef745cf51c4d927173b$exports).default,
|
|
235
|
-
"nb-NO": _babelRuntimeHelpersInteropRequireDefault($d59ad4442794aa8d7415835505965b2$exports).default,
|
|
236
|
-
"nl-NL": _babelRuntimeHelpersInteropRequireDefault($ea0bd7fd22f4939550fa7411df8295f2$exports).default,
|
|
237
|
-
"pl-PL": _babelRuntimeHelpersInteropRequireDefault($c08613207efc8ea834b1fadda995620b$exports).default,
|
|
238
|
-
"pt-BR": _babelRuntimeHelpersInteropRequireDefault($c53c2ff9b6580a8da286c11a97f27c0c$exports).default,
|
|
239
|
-
"pt-PT": _babelRuntimeHelpersInteropRequireDefault($d9eb517021c8b3bace06723f935$exports).default,
|
|
240
|
-
"ro-RO": _babelRuntimeHelpersInteropRequireDefault($b374a5303a356023e59a4df3c152bebf$exports).default,
|
|
241
|
-
"ru-RU": _babelRuntimeHelpersInteropRequireDefault($e72056058c9fa1ea634cd2d7f7700$exports).default,
|
|
242
|
-
"sk-SK": _babelRuntimeHelpersInteropRequireDefault($ab8e21cbc487e19c15c39cc2df98aed6$exports).default,
|
|
243
|
-
"sl-SI": _babelRuntimeHelpersInteropRequireDefault($a155de298a83a5c6e328091b4347a$exports).default,
|
|
244
|
-
"sr-SP": _babelRuntimeHelpersInteropRequireDefault($f93e8a2d2993e66b87975762a481$exports).default,
|
|
245
|
-
"sv-SE": _babelRuntimeHelpersInteropRequireDefault($d90bf5621eeb550e11f07fd645ee9375$exports).default,
|
|
246
|
-
"tr-TR": _babelRuntimeHelpersInteropRequireDefault($aa582d9ff36fb511de0ccb22bd9e2bb$exports).default,
|
|
247
|
-
"uk-UA": _babelRuntimeHelpersInteropRequireDefault($a1ed5505308b04ac9cd1c488538019c3$exports).default,
|
|
248
|
-
"zh-CN": _babelRuntimeHelpersInteropRequireDefault($c6b9bcbebc7c1f385b7e70bbd744b53$exports).default,
|
|
249
|
-
"zh-TW": _babelRuntimeHelpersInteropRequireDefault($ae51b3cde9961c4855b77ac499ea$exports).default
|
|
250
|
-
};
|
|
251
53
|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
let dialogId = useId();
|
|
255
|
-
let formatMessage = useMessageFormatter($faa51d1fd0ed7732821d1b830a6e9ae2$var$intlMessages);
|
|
256
|
-
let {
|
|
257
|
-
labelProps,
|
|
258
|
-
fieldProps,
|
|
259
|
-
descriptionProps,
|
|
260
|
-
errorMessageProps
|
|
261
|
-
} = useField(_babelRuntimeHelpersExtends({}, props, {
|
|
262
|
-
labelElementType: 'span'
|
|
263
|
-
}));
|
|
264
|
-
let groupProps = $e62c7e96a53f216814557ded9a8cf$export$useDatePickerGroup(state, ref);
|
|
265
|
-
let labelledBy = fieldProps['aria-labelledby'] || fieldProps.id;
|
|
266
|
-
let {
|
|
267
|
-
locale
|
|
268
|
-
} = useLocale();
|
|
269
|
-
let descProps = useDescription(state.formatValue(locale, {
|
|
270
|
-
month: 'long'
|
|
271
|
-
}));
|
|
272
|
-
let ariaDescribedBy = [descProps['aria-describedby'], fieldProps['aria-describedby']].filter(Boolean).join(' ') || undefined;
|
|
273
|
-
return {
|
|
274
|
-
groupProps: mergeProps(groupProps, descProps, {
|
|
275
|
-
role: 'group',
|
|
276
|
-
'aria-disabled': props.isDisabled || null,
|
|
277
|
-
'aria-labelledby': labelledBy,
|
|
278
|
-
'aria-describedby': ariaDescribedBy
|
|
279
|
-
}),
|
|
280
|
-
labelProps: _babelRuntimeHelpersExtends({}, labelProps, {
|
|
281
|
-
onClick: () => {
|
|
282
|
-
let focusManager = createFocusManager(ref);
|
|
283
|
-
focusManager.focusFirst();
|
|
284
|
-
}
|
|
285
|
-
}),
|
|
286
|
-
fieldProps,
|
|
287
|
-
descriptionProps,
|
|
288
|
-
errorMessageProps,
|
|
289
|
-
buttonProps: _babelRuntimeHelpersExtends({}, descProps, {
|
|
290
|
-
id: buttonId,
|
|
291
|
-
excludeFromTabOrder: true,
|
|
292
|
-
'aria-haspopup': 'dialog',
|
|
293
|
-
'aria-label': formatMessage('calendar'),
|
|
294
|
-
'aria-labelledby': labelledBy + " " + buttonId,
|
|
295
|
-
'aria-describedby': ariaDescribedBy
|
|
296
|
-
}),
|
|
297
|
-
dialogProps: {
|
|
298
|
-
id: dialogId,
|
|
299
|
-
'aria-labelledby': labelledBy + " " + buttonId
|
|
300
|
-
}
|
|
301
|
-
};
|
|
302
|
-
}
|
|
54
|
+
var $cc895f32c87cd395$exports = {};
|
|
55
|
+
$cc895f32c87cd395$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\"}");
|
|
303
56
|
|
|
304
|
-
exports.useDatePicker = useDatePicker;
|
|
305
|
-
const labelIds = new WeakMap();
|
|
306
|
-
exports.labelIds = labelIds;
|
|
307
|
-
|
|
308
|
-
function useDateField(props, state, ref) {
|
|
309
|
-
let {
|
|
310
|
-
labelProps,
|
|
311
|
-
fieldProps,
|
|
312
|
-
descriptionProps,
|
|
313
|
-
errorMessageProps
|
|
314
|
-
} = useField(_babelRuntimeHelpersExtends({}, props, {
|
|
315
|
-
labelElementType: 'span'
|
|
316
|
-
}));
|
|
317
|
-
let groupProps = $e62c7e96a53f216814557ded9a8cf$export$useDatePickerGroup(state, ref);
|
|
318
|
-
let {
|
|
319
|
-
focusWithinProps
|
|
320
|
-
} = useFocusWithin({
|
|
321
|
-
onBlurWithin() {
|
|
322
|
-
state.confirmPlaceholder();
|
|
323
|
-
}
|
|
324
57
|
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
month: 'long'
|
|
328
|
-
}));
|
|
329
|
-
let descProps = useDescription(state.value ? formatter.format(state.dateValue) : null);
|
|
330
|
-
let segmentLabelledBy = fieldProps['aria-labelledby'] || fieldProps.id;
|
|
331
|
-
let describedBy = [descProps['aria-describedby'], fieldProps['aria-describedby']].filter(Boolean).join(' ') || undefined;
|
|
332
|
-
labelIds.set(state, {
|
|
333
|
-
ariaLabelledBy: segmentLabelledBy,
|
|
334
|
-
ariaDescribedBy: describedBy
|
|
335
|
-
});
|
|
336
|
-
return {
|
|
337
|
-
labelProps: _babelRuntimeHelpersExtends({}, labelProps, {
|
|
338
|
-
onClick: () => {
|
|
339
|
-
let focusManager = createFocusManager(ref);
|
|
340
|
-
focusManager.focusFirst();
|
|
341
|
-
}
|
|
342
|
-
}),
|
|
343
|
-
fieldProps: mergeProps(fieldProps, descProps, groupProps, focusWithinProps, {
|
|
344
|
-
role: 'group',
|
|
345
|
-
'aria-disabled': props.isDisabled || undefined,
|
|
346
|
-
'aria-describedby': describedBy
|
|
347
|
-
}),
|
|
348
|
-
descriptionProps,
|
|
349
|
-
errorMessageProps
|
|
350
|
-
};
|
|
351
|
-
}
|
|
58
|
+
var $5f40c68998a77c84$exports = {};
|
|
59
|
+
$5f40c68998a77c84$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\":\"ζώνη ώρας\"}");
|
|
352
60
|
|
|
353
|
-
exports.useDateField = useDateField;
|
|
354
|
-
|
|
355
|
-
/*
|
|
356
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
357
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
358
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
359
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
360
|
-
*
|
|
361
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
362
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
363
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
364
|
-
* governing permissions and limitations under the License.
|
|
365
|
-
*/
|
|
366
|
-
// @ts-ignore
|
|
367
|
-
const $c1a8bb7b70528f3f1285786fdf18b77$var$intlMessages = {
|
|
368
|
-
"ar-AE": _babelRuntimeHelpersInteropRequireDefault($be926026280e076dd0b048671d4b$exports).default,
|
|
369
|
-
"bg-BG": _babelRuntimeHelpersInteropRequireDefault($bab398828901e91cda5ace996e16743$exports).default,
|
|
370
|
-
"cs-CZ": _babelRuntimeHelpersInteropRequireDefault($a1b39c1203bddacb07ac8af1bf09f93d$exports).default,
|
|
371
|
-
"da-DK": _babelRuntimeHelpersInteropRequireDefault($de6d54fc6253e3aab217ab66cc92632$exports).default,
|
|
372
|
-
"de-DE": _babelRuntimeHelpersInteropRequireDefault($c62d85e73a4bc4d2d79c4e5438a0a3$exports).default,
|
|
373
|
-
"el-GR": _babelRuntimeHelpersInteropRequireDefault($e7f2c17a4d052730760575ff7cf57df6$exports).default,
|
|
374
|
-
"en-US": _babelRuntimeHelpersInteropRequireDefault($adfdcb0b7f4822eaafecdabf45f751$exports).default,
|
|
375
|
-
"es-ES": _babelRuntimeHelpersInteropRequireDefault($f9c516e0c25716b7d567ed2$exports).default,
|
|
376
|
-
"et-EE": _babelRuntimeHelpersInteropRequireDefault($ba7274e4009469f7b66a9c93516dc421$exports).default,
|
|
377
|
-
"fi-FI": _babelRuntimeHelpersInteropRequireDefault($c64b2869d31111b8a6212d3569c46edc$exports).default,
|
|
378
|
-
"fr-FR": _babelRuntimeHelpersInteropRequireDefault($ba1e9adecce613badde3f8b2a91b9$exports).default,
|
|
379
|
-
"he-IL": _babelRuntimeHelpersInteropRequireDefault($da5d80bcf16af82fe7b14fc1e9d9$exports).default,
|
|
380
|
-
"hr-HR": _babelRuntimeHelpersInteropRequireDefault($c179e9a34711caa46568a537c351781$exports).default,
|
|
381
|
-
"hu-HU": _babelRuntimeHelpersInteropRequireDefault($a40a6dd4cfb1bd1de71f82470d8716$exports).default,
|
|
382
|
-
"it-IT": _babelRuntimeHelpersInteropRequireDefault($b9be9a4b72f2aadd1d314520c1acfc$exports).default,
|
|
383
|
-
"ja-JP": _babelRuntimeHelpersInteropRequireDefault($b41d870af1ac3496d01f8698fb5c954$exports).default,
|
|
384
|
-
"ko-KR": _babelRuntimeHelpersInteropRequireDefault($fe0c574bf48312400dd82a37538c16ef$exports).default,
|
|
385
|
-
"lt-LT": _babelRuntimeHelpersInteropRequireDefault($b0ad35113dfe9f264970b85837$exports).default,
|
|
386
|
-
"lv-LV": _babelRuntimeHelpersInteropRequireDefault($c670847f13ef745cf51c4d927173b$exports).default,
|
|
387
|
-
"nb-NO": _babelRuntimeHelpersInteropRequireDefault($d59ad4442794aa8d7415835505965b2$exports).default,
|
|
388
|
-
"nl-NL": _babelRuntimeHelpersInteropRequireDefault($ea0bd7fd22f4939550fa7411df8295f2$exports).default,
|
|
389
|
-
"pl-PL": _babelRuntimeHelpersInteropRequireDefault($c08613207efc8ea834b1fadda995620b$exports).default,
|
|
390
|
-
"pt-BR": _babelRuntimeHelpersInteropRequireDefault($c53c2ff9b6580a8da286c11a97f27c0c$exports).default,
|
|
391
|
-
"pt-PT": _babelRuntimeHelpersInteropRequireDefault($d9eb517021c8b3bace06723f935$exports).default,
|
|
392
|
-
"ro-RO": _babelRuntimeHelpersInteropRequireDefault($b374a5303a356023e59a4df3c152bebf$exports).default,
|
|
393
|
-
"ru-RU": _babelRuntimeHelpersInteropRequireDefault($e72056058c9fa1ea634cd2d7f7700$exports).default,
|
|
394
|
-
"sk-SK": _babelRuntimeHelpersInteropRequireDefault($ab8e21cbc487e19c15c39cc2df98aed6$exports).default,
|
|
395
|
-
"sl-SI": _babelRuntimeHelpersInteropRequireDefault($a155de298a83a5c6e328091b4347a$exports).default,
|
|
396
|
-
"sr-SP": _babelRuntimeHelpersInteropRequireDefault($f93e8a2d2993e66b87975762a481$exports).default,
|
|
397
|
-
"sv-SE": _babelRuntimeHelpersInteropRequireDefault($d90bf5621eeb550e11f07fd645ee9375$exports).default,
|
|
398
|
-
"tr-TR": _babelRuntimeHelpersInteropRequireDefault($aa582d9ff36fb511de0ccb22bd9e2bb$exports).default,
|
|
399
|
-
"uk-UA": _babelRuntimeHelpersInteropRequireDefault($a1ed5505308b04ac9cd1c488538019c3$exports).default,
|
|
400
|
-
"zh-CN": _babelRuntimeHelpersInteropRequireDefault($c6b9bcbebc7c1f385b7e70bbd744b53$exports).default,
|
|
401
|
-
"zh-TW": _babelRuntimeHelpersInteropRequireDefault($ae51b3cde9961c4855b77ac499ea$exports).default
|
|
402
|
-
};
|
|
403
61
|
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
locale
|
|
407
|
-
} = useLocale();
|
|
408
|
-
return useMemo(() => {
|
|
409
|
-
// Try to use Intl.DisplayNames if possible. It may be supported in browsers, but not support the dateTimeField
|
|
410
|
-
// type as that was only added in v2. https://github.com/tc39/intl-displaynames-v2
|
|
411
|
-
try {
|
|
412
|
-
// @ts-ignore
|
|
413
|
-
return new Intl.DisplayNames(locale, {
|
|
414
|
-
type: 'dateTimeField'
|
|
415
|
-
});
|
|
416
|
-
} catch (err) {
|
|
417
|
-
return new $c1a8bb7b70528f3f1285786fdf18b77$var$DisplayNamesPolyfill(locale);
|
|
418
|
-
}
|
|
419
|
-
}, [locale]);
|
|
420
|
-
}
|
|
62
|
+
var $8ce6e70e61f75190$exports = {};
|
|
63
|
+
$8ce6e70e61f75190$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\"}");
|
|
421
64
|
|
|
422
|
-
exports.useDisplayNames = useDisplayNames;
|
|
423
65
|
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
this.locale = void 0;
|
|
427
|
-
this.dictionary = void 0;
|
|
428
|
-
this.locale = locale;
|
|
429
|
-
this.dictionary = new MessageDictionary($c1a8bb7b70528f3f1285786fdf18b77$var$intlMessages);
|
|
430
|
-
}
|
|
66
|
+
var $435f97ce46f2f3b7$exports = {};
|
|
67
|
+
$435f97ce46f2f3b7$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\"}");
|
|
431
68
|
|
|
432
|
-
of(field) {
|
|
433
|
-
return this.dictionary.getStringForLocale(field, this.locale);
|
|
434
|
-
}
|
|
435
69
|
|
|
436
|
-
}
|
|
70
|
+
var $6c72b2fc022593ee$exports = {};
|
|
71
|
+
$6c72b2fc022593ee$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\"}");
|
|
437
72
|
|
|
438
|
-
function useDateSegment(props, segment, state, ref) {
|
|
439
|
-
let enteredKeys = useRef('');
|
|
440
|
-
let {
|
|
441
|
-
locale,
|
|
442
|
-
direction
|
|
443
|
-
} = useLocale();
|
|
444
|
-
let displayNames = useDisplayNames();
|
|
445
|
-
let focusManager = useFocusManager();
|
|
446
|
-
let textValue = segment.text;
|
|
447
|
-
let options = useMemo(() => state.dateFormatter.resolvedOptions(), [state.dateFormatter]);
|
|
448
|
-
let monthDateFormatter = useDateFormatter({
|
|
449
|
-
month: 'long',
|
|
450
|
-
timeZone: options.timeZone
|
|
451
|
-
});
|
|
452
|
-
let hourDateFormatter = useDateFormatter({
|
|
453
|
-
hour: 'numeric',
|
|
454
|
-
hour12: options.hour12,
|
|
455
|
-
timeZone: options.timeZone
|
|
456
|
-
});
|
|
457
73
|
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
textValue = monthTextValue !== textValue ? textValue + " \u2013 " + monthTextValue : monthTextValue;
|
|
461
|
-
} else if (segment.type === 'hour' || segment.type === 'dayPeriod') {
|
|
462
|
-
textValue = hourDateFormatter.format(state.dateValue);
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
let {
|
|
466
|
-
spinButtonProps
|
|
467
|
-
} = useSpinButton({
|
|
468
|
-
value: segment.value,
|
|
469
|
-
textValue,
|
|
470
|
-
minValue: segment.minValue,
|
|
471
|
-
maxValue: segment.maxValue,
|
|
472
|
-
isDisabled: props.isDisabled,
|
|
473
|
-
isReadOnly: props.isReadOnly || !segment.isEditable,
|
|
474
|
-
isRequired: props.isRequired,
|
|
475
|
-
onIncrement: () => {
|
|
476
|
-
enteredKeys.current = '';
|
|
477
|
-
state.increment(segment.type);
|
|
478
|
-
},
|
|
479
|
-
onDecrement: () => {
|
|
480
|
-
enteredKeys.current = '';
|
|
481
|
-
state.decrement(segment.type);
|
|
482
|
-
},
|
|
483
|
-
onIncrementPage: () => {
|
|
484
|
-
enteredKeys.current = '';
|
|
485
|
-
state.incrementPage(segment.type);
|
|
486
|
-
},
|
|
487
|
-
onDecrementPage: () => {
|
|
488
|
-
enteredKeys.current = '';
|
|
489
|
-
state.decrementPage(segment.type);
|
|
490
|
-
},
|
|
491
|
-
onIncrementToMax: () => {
|
|
492
|
-
enteredKeys.current = '';
|
|
493
|
-
state.setSegment(segment.type, segment.maxValue);
|
|
494
|
-
},
|
|
495
|
-
onDecrementToMin: () => {
|
|
496
|
-
enteredKeys.current = '';
|
|
497
|
-
state.setSegment(segment.type, segment.minValue);
|
|
498
|
-
}
|
|
499
|
-
});
|
|
500
|
-
let parser = useMemo(() => new NumberParser(locale, {
|
|
501
|
-
maximumFractionDigits: 0
|
|
502
|
-
}), [locale]);
|
|
503
|
-
|
|
504
|
-
let backspace = () => {
|
|
505
|
-
if (parser.isValidPartialNumber(segment.text) && !props.isReadOnly && !segment.isPlaceholder) {
|
|
506
|
-
let newValue = segment.text.slice(0, -1);
|
|
507
|
-
let parsed = parser.parse(newValue);
|
|
508
|
-
|
|
509
|
-
if (newValue.length === 0 || parsed === 0) {
|
|
510
|
-
state.clearSegment(segment.type);
|
|
511
|
-
} else {
|
|
512
|
-
state.setSegment(segment.type, parsed);
|
|
513
|
-
}
|
|
74
|
+
var $2c0058ef1406d1e1$exports = {};
|
|
75
|
+
$2c0058ef1406d1e1$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\"}");
|
|
514
76
|
|
|
515
|
-
enteredKeys.current = newValue;
|
|
516
|
-
} else if (segment.type === 'dayPeriod') {
|
|
517
|
-
state.clearSegment(segment.type);
|
|
518
|
-
}
|
|
519
|
-
};
|
|
520
77
|
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
// https://bugzilla.mozilla.org/show_bug.cgi?id=1742153
|
|
524
|
-
if (e.key === 'a' && (isMac() ? e.metaKey : e.ctrlKey)) {
|
|
525
|
-
e.preventDefault();
|
|
526
|
-
}
|
|
78
|
+
var $351fc2d9da05f66d$exports = {};
|
|
79
|
+
$351fc2d9da05f66d$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\"}");
|
|
527
80
|
|
|
528
|
-
if (e.ctrlKey || e.metaKey || e.shiftKey || e.altKey) {
|
|
529
|
-
return;
|
|
530
|
-
}
|
|
531
81
|
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
e.preventDefault();
|
|
535
|
-
e.stopPropagation();
|
|
82
|
+
var $1c3921a882c95ab5$exports = {};
|
|
83
|
+
$1c3921a882c95ab5$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\":\"אזור זמן\"}");
|
|
536
84
|
|
|
537
|
-
if (direction === 'rtl') {
|
|
538
|
-
focusManager.focusNext();
|
|
539
|
-
} else {
|
|
540
|
-
focusManager.focusPrevious();
|
|
541
|
-
}
|
|
542
85
|
|
|
543
|
-
|
|
86
|
+
var $c20d0e8e557c2a17$exports = {};
|
|
87
|
+
$c20d0e8e557c2a17$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\"}");
|
|
544
88
|
|
|
545
|
-
case 'ArrowRight':
|
|
546
|
-
e.preventDefault();
|
|
547
|
-
e.stopPropagation();
|
|
548
89
|
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
} else {
|
|
552
|
-
focusManager.focusNext();
|
|
553
|
-
}
|
|
90
|
+
var $2cc5b3664294ea6e$exports = {};
|
|
91
|
+
$2cc5b3664294ea6e$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\"}");
|
|
554
92
|
|
|
555
|
-
break;
|
|
556
93
|
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
e.stopPropagation();
|
|
94
|
+
var $beafd07706552b1a$exports = {};
|
|
95
|
+
$beafd07706552b1a$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\"}");
|
|
560
96
|
|
|
561
|
-
if (segment.isPlaceholder && !props.isReadOnly) {
|
|
562
|
-
state.confirmPlaceholder(segment.type);
|
|
563
|
-
}
|
|
564
97
|
|
|
565
|
-
|
|
566
|
-
|
|
98
|
+
var $b65cee7817fd570b$exports = {};
|
|
99
|
+
$b65cee7817fd570b$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 $db6eff1d2cc9305e$exports = {};
|
|
103
|
+
$db6eff1d2cc9305e$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 $39c9eeb53669dbc8$exports = {};
|
|
107
|
+
$39c9eeb53669dbc8$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 $c28282c169c4dba9$exports = {};
|
|
111
|
+
$c28282c169c4dba9$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 $779bf05b7c5c6985$exports = {};
|
|
115
|
+
$779bf05b7c5c6985$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 $665a9e26595f0b7a$exports = {};
|
|
119
|
+
$665a9e26595f0b7a$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 $b75ff73faae35a35$exports = {};
|
|
123
|
+
$b75ff73faae35a35$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 $d012e405a4afd3e7$exports = {};
|
|
127
|
+
$d012e405a4afd3e7$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 $defe0662285d1701$exports = {};
|
|
131
|
+
$defe0662285d1701$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 $f9acea7b67f5fdff$exports = {};
|
|
135
|
+
$f9acea7b67f5fdff$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 $44d161a4fd9a4479$exports = {};
|
|
139
|
+
$44d161a4fd9a4479$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 $f88e5125acb59f4e$exports = {};
|
|
143
|
+
$f88e5125acb59f4e$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 $3f60f00afb879ab9$exports = {};
|
|
147
|
+
$3f60f00afb879ab9$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 $2c429c74b95fbbb3$exports = {};
|
|
151
|
+
$2c429c74b95fbbb3$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 $c3ae416e0c8ea35d$exports = {};
|
|
155
|
+
$c3ae416e0c8ea35d$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 $6548dada79dc88ed$exports = {};
|
|
159
|
+
$6548dada79dc88ed$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 $75ff58c24ecc2405$exports = {};
|
|
163
|
+
$75ff58c24ecc2405$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 $b300ea50d0bc8474$exports = {};
|
|
167
|
+
$b300ea50d0bc8474$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 $a018547010e33d31$exports = {};
|
|
171
|
+
$a018547010e33d31$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
|
+
$5766533e00be07f5$exports = {
|
|
175
|
+
"ar-AE": $7e1d533dafdd7a3c$exports,
|
|
176
|
+
"bg-BG": $b645e4c88eddb7bc$exports,
|
|
177
|
+
"cs-CZ": $c74d7d9a3a492e14$exports,
|
|
178
|
+
"da-DK": $2fdf441aacd54e7a$exports,
|
|
179
|
+
"de-DE": $cc895f32c87cd395$exports,
|
|
180
|
+
"el-GR": $5f40c68998a77c84$exports,
|
|
181
|
+
"en-US": $8ce6e70e61f75190$exports,
|
|
182
|
+
"es-ES": $435f97ce46f2f3b7$exports,
|
|
183
|
+
"et-EE": $6c72b2fc022593ee$exports,
|
|
184
|
+
"fi-FI": $2c0058ef1406d1e1$exports,
|
|
185
|
+
"fr-FR": $351fc2d9da05f66d$exports,
|
|
186
|
+
"he-IL": $1c3921a882c95ab5$exports,
|
|
187
|
+
"hr-HR": $c20d0e8e557c2a17$exports,
|
|
188
|
+
"hu-HU": $2cc5b3664294ea6e$exports,
|
|
189
|
+
"it-IT": $beafd07706552b1a$exports,
|
|
190
|
+
"ja-JP": $b65cee7817fd570b$exports,
|
|
191
|
+
"ko-KR": $db6eff1d2cc9305e$exports,
|
|
192
|
+
"lt-LT": $39c9eeb53669dbc8$exports,
|
|
193
|
+
"lv-LV": $c28282c169c4dba9$exports,
|
|
194
|
+
"nb-NO": $779bf05b7c5c6985$exports,
|
|
195
|
+
"nl-NL": $665a9e26595f0b7a$exports,
|
|
196
|
+
"pl-PL": $b75ff73faae35a35$exports,
|
|
197
|
+
"pt-BR": $d012e405a4afd3e7$exports,
|
|
198
|
+
"pt-PT": $defe0662285d1701$exports,
|
|
199
|
+
"ro-RO": $f9acea7b67f5fdff$exports,
|
|
200
|
+
"ru-RU": $44d161a4fd9a4479$exports,
|
|
201
|
+
"sk-SK": $f88e5125acb59f4e$exports,
|
|
202
|
+
"sl-SI": $3f60f00afb879ab9$exports,
|
|
203
|
+
"sr-SP": $2c429c74b95fbbb3$exports,
|
|
204
|
+
"sv-SE": $c3ae416e0c8ea35d$exports,
|
|
205
|
+
"tr-TR": $6548dada79dc88ed$exports,
|
|
206
|
+
"uk-UA": $75ff58c24ecc2405$exports,
|
|
207
|
+
"zh-CN": $b300ea50d0bc8474$exports,
|
|
208
|
+
"zh-TW": $a018547010e33d31$exports
|
|
209
|
+
};
|
|
567
210
|
|
|
568
|
-
case 'Tab':
|
|
569
|
-
break;
|
|
570
211
|
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
function $56725a1cb2afa258$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);
|
|
579
222
|
}
|
|
580
|
-
}
|
|
581
|
-
|
|
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 } = $RqPov$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 $RqPov$reactariautils.mergeProps(pressProps, {
|
|
242
|
+
onKeyDown: onKeyDown
|
|
243
|
+
});
|
|
244
|
+
}
|
|
582
245
|
|
|
583
246
|
|
|
584
|
-
let {
|
|
585
|
-
startsWith
|
|
586
|
-
} = useFilter({
|
|
587
|
-
sensitivity: 'base'
|
|
588
|
-
});
|
|
589
|
-
let amPmFormatter = useDateFormatter({
|
|
590
|
-
hour: 'numeric',
|
|
591
|
-
hour12: true
|
|
592
|
-
});
|
|
593
|
-
let am = useMemo(() => {
|
|
594
|
-
let date = new Date();
|
|
595
|
-
date.setHours(0);
|
|
596
|
-
return amPmFormatter.formatToParts(date).find(part => part.type === 'dayPeriod').value;
|
|
597
|
-
}, [amPmFormatter]);
|
|
598
|
-
let pm = useMemo(() => {
|
|
599
|
-
let date = new Date();
|
|
600
|
-
date.setHours(12);
|
|
601
|
-
return amPmFormatter.formatToParts(date).find(part => part.type === 'dayPeriod').value;
|
|
602
|
-
}, [amPmFormatter]);
|
|
603
|
-
|
|
604
|
-
let onInput = key => {
|
|
605
|
-
if (props.isDisabled || props.isReadOnly) {
|
|
606
|
-
return;
|
|
607
|
-
}
|
|
608
247
|
|
|
609
|
-
let newValue = enteredKeys.current + key;
|
|
610
248
|
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
249
|
+
function $cb7d2152263d2ab6$export$42df105a73306d51(props, state, ref) {
|
|
250
|
+
let buttonId = $RqPov$reactariautils.useId();
|
|
251
|
+
let dialogId = $RqPov$reactariautils.useId();
|
|
252
|
+
let formatMessage = $RqPov$reactariai18n.useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($5766533e00be07f5$exports)));
|
|
253
|
+
let { labelProps: labelProps , fieldProps: fieldProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps } = $RqPov$reactarialabel.useField({
|
|
254
|
+
...props,
|
|
255
|
+
labelElementType: 'span'
|
|
256
|
+
});
|
|
257
|
+
let groupProps = $56725a1cb2afa258$export$4a931266a3838b86(state, ref);
|
|
258
|
+
let labelledBy = fieldProps['aria-labelledby'] || fieldProps.id;
|
|
259
|
+
let { locale: locale } = $RqPov$reactariai18n.useLocale();
|
|
260
|
+
let descProps = $RqPov$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: $RqPov$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 = $RqPov$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}`
|
|
619
296
|
}
|
|
297
|
+
};
|
|
298
|
+
}
|
|
620
299
|
|
|
621
|
-
focusManager.focusNext();
|
|
622
|
-
break;
|
|
623
|
-
|
|
624
|
-
case 'day':
|
|
625
|
-
case 'hour':
|
|
626
|
-
case 'minute':
|
|
627
|
-
case 'second':
|
|
628
|
-
case 'month':
|
|
629
|
-
case 'year':
|
|
630
|
-
{
|
|
631
|
-
if (!parser.isValidPartialNumber(newValue)) {
|
|
632
|
-
return;
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
let numberValue = parser.parse(newValue);
|
|
636
|
-
let segmentValue = numberValue;
|
|
637
|
-
let allowsZero = segment.minValue === 0;
|
|
638
|
-
|
|
639
|
-
if (segment.type === 'hour' && state.dateFormatter.resolvedOptions().hour12) {
|
|
640
|
-
switch (state.dateFormatter.resolvedOptions().hourCycle) {
|
|
641
|
-
case 'h11':
|
|
642
|
-
if (numberValue > 11) {
|
|
643
|
-
segmentValue = parser.parse(key);
|
|
644
|
-
}
|
|
645
300
|
|
|
646
|
-
|
|
301
|
+
var $93e3e69cab166b00$exports = {};
|
|
647
302
|
|
|
648
|
-
|
|
649
|
-
allowsZero = false;
|
|
303
|
+
$parcel$export($93e3e69cab166b00$exports, "useDateSegment", () => $93e3e69cab166b00$export$1315d136e6f7581);
|
|
650
304
|
|
|
651
|
-
|
|
652
|
-
segmentValue = parser.parse(key);
|
|
653
|
-
}
|
|
305
|
+
var $0a17b9b24fd61cc6$exports = {};
|
|
654
306
|
|
|
655
|
-
|
|
656
|
-
|
|
307
|
+
$parcel$export($0a17b9b24fd61cc6$exports, "labelIds", () => $0a17b9b24fd61cc6$export$beb2340c1222c6d);
|
|
308
|
+
$parcel$export($0a17b9b24fd61cc6$exports, "useDateField", () => $0a17b9b24fd61cc6$export$5591b0b878c1a989);
|
|
657
309
|
|
|
658
|
-
if (segment.value >= 12 && numberValue > 1) {
|
|
659
|
-
numberValue += 12;
|
|
660
|
-
}
|
|
661
|
-
} else if (numberValue > segment.maxValue) {
|
|
662
|
-
segmentValue = parser.parse(key);
|
|
663
|
-
}
|
|
664
310
|
|
|
665
|
-
if (isNaN(numberValue)) {
|
|
666
|
-
return;
|
|
667
|
-
}
|
|
668
311
|
|
|
669
|
-
let shouldSetValue = segmentValue !== 0 || allowsZero;
|
|
670
312
|
|
|
671
|
-
if (shouldSetValue) {
|
|
672
|
-
state.setSegment(segment.type, segmentValue);
|
|
673
|
-
}
|
|
674
313
|
|
|
675
|
-
if (Number(numberValue + '0') > segment.maxValue || newValue.length >= String(segment.maxValue).length) {
|
|
676
|
-
enteredKeys.current = '';
|
|
677
314
|
|
|
678
|
-
|
|
679
|
-
|
|
315
|
+
const $0a17b9b24fd61cc6$export$beb2340c1222c6d = new WeakMap();
|
|
316
|
+
function $0a17b9b24fd61cc6$export$5591b0b878c1a989(props, state, ref) {
|
|
317
|
+
let { labelProps: labelProps , fieldProps: fieldProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps } = $RqPov$reactarialabel.useField({
|
|
318
|
+
...props,
|
|
319
|
+
labelElementType: 'span'
|
|
320
|
+
});
|
|
321
|
+
let groupProps = $56725a1cb2afa258$export$4a931266a3838b86(state, ref);
|
|
322
|
+
let { focusWithinProps: focusWithinProps } = $RqPov$reactariainteractions.useFocusWithin({
|
|
323
|
+
onBlurWithin () {
|
|
324
|
+
state.confirmPlaceholder();
|
|
325
|
+
}
|
|
326
|
+
});
|
|
327
|
+
let formatter = $RqPov$reactariai18n.useDateFormatter(state.getFormatOptions({
|
|
328
|
+
month: 'long'
|
|
329
|
+
}));
|
|
330
|
+
let descProps = $RqPov$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
|
+
$0a17b9b24fd61cc6$export$beb2340c1222c6d.set(state, {
|
|
337
|
+
ariaLabelledBy: segmentLabelledBy,
|
|
338
|
+
ariaDescribedBy: describedBy
|
|
339
|
+
});
|
|
340
|
+
return {
|
|
341
|
+
labelProps: {
|
|
342
|
+
...labelProps,
|
|
343
|
+
onClick: ()=>{
|
|
344
|
+
let focusManager = $RqPov$reactariafocus.createFocusManager(ref);
|
|
345
|
+
focusManager.focusFirst();
|
|
680
346
|
}
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
347
|
+
},
|
|
348
|
+
fieldProps: $RqPov$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 $2b06c75983817eb5$exports = {};
|
|
363
|
+
|
|
364
|
+
$parcel$export($2b06c75983817eb5$exports, "useDisplayNames", () => $2b06c75983817eb5$export$d42c60378c8168f8);
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
684
368
|
|
|
685
|
-
|
|
369
|
+
function $2b06c75983817eb5$export$d42c60378c8168f8() {
|
|
370
|
+
let { locale: locale } = $RqPov$reactariai18n.useLocale();
|
|
371
|
+
return $RqPov$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 $2b06c75983817eb5$var$DisplayNamesPolyfill(locale);
|
|
686
381
|
}
|
|
382
|
+
}, [
|
|
383
|
+
locale
|
|
384
|
+
]);
|
|
385
|
+
}
|
|
386
|
+
class $2b06c75983817eb5$var$DisplayNamesPolyfill {
|
|
387
|
+
constructor(locale){
|
|
388
|
+
this.locale = locale;
|
|
389
|
+
this.dictionary = new $RqPov$internationalizedmessage.MessageDictionary((/*@__PURE__*/$parcel$interopDefault($5766533e00be07f5$exports)));
|
|
390
|
+
}
|
|
391
|
+
of(field) {
|
|
392
|
+
return this.dictionary.getStringForLocale(field, this.locale);
|
|
687
393
|
}
|
|
688
|
-
|
|
394
|
+
}
|
|
689
395
|
|
|
690
|
-
let onFocus = () => {
|
|
691
|
-
enteredKeys.current = '';
|
|
692
|
-
scrollIntoView(getScrollParent(ref.current), ref.current); // Safari requires that a selection is set or it won't fire input events.
|
|
693
|
-
// Since usePress disables text selection, this won't happen by default.
|
|
694
396
|
|
|
695
|
-
ref.current.style.webkitUserSelect = 'text';
|
|
696
|
-
let selection = window.getSelection();
|
|
697
|
-
selection.collapse(ref.current);
|
|
698
|
-
ref.current.style.webkitUserSelect = '';
|
|
699
|
-
};
|
|
700
397
|
|
|
701
|
-
let compositionRef = useRef(''); // @ts-ignore - TODO: possibly old TS version? doesn't fail in my editor...
|
|
702
398
|
|
|
703
|
-
useEvent(ref, 'beforeinput', e => {
|
|
704
|
-
e.preventDefault();
|
|
705
399
|
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
400
|
+
function $93e3e69cab166b00$export$1315d136e6f7581(props, segment, state, ref) {
|
|
401
|
+
let enteredKeys = $RqPov$react.useRef('');
|
|
402
|
+
let { locale: locale , direction: direction } = $RqPov$reactariai18n.useLocale();
|
|
403
|
+
let displayNames = $2b06c75983817eb5$export$d42c60378c8168f8();
|
|
404
|
+
let focusManager = $RqPov$reactariafocus.useFocusManager();
|
|
405
|
+
let textValue = segment.text;
|
|
406
|
+
let options = $RqPov$react.useMemo(()=>state.dateFormatter.resolvedOptions()
|
|
407
|
+
, [
|
|
408
|
+
state.dateFormatter
|
|
409
|
+
]);
|
|
410
|
+
let monthDateFormatter = $RqPov$reactariai18n.useDateFormatter({
|
|
411
|
+
month: 'long',
|
|
412
|
+
timeZone: options.timeZone
|
|
413
|
+
});
|
|
414
|
+
let hourDateFormatter = $RqPov$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 } = $RqPov$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 = $RqPov$react.useMemo(()=>new $RqPov$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' && ($RqPov$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;
|
|
711
504
|
}
|
|
505
|
+
};
|
|
506
|
+
// Safari dayPeriod option doesn't work...
|
|
507
|
+
let { startsWith: startsWith } = $RqPov$reactariai18n.useFilter({
|
|
508
|
+
sensitivity: 'base'
|
|
509
|
+
});
|
|
510
|
+
let amPmFormatter = $RqPov$reactariai18n.useDateFormatter({
|
|
511
|
+
hour: 'numeric',
|
|
512
|
+
hour12: true
|
|
513
|
+
});
|
|
514
|
+
let am = $RqPov$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 = $RqPov$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
|
+
$RqPov$reactariautils.scrollIntoView($RqPov$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 = $RqPov$react.useRef('');
|
|
585
|
+
// @ts-ignore - TODO: possibly old TS version? doesn't fail in my editor...
|
|
586
|
+
$RqPov$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
|
+
$RqPov$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 } = $RqPov$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
|
+
$RqPov$reactariautils.useEvent(ref, 'selectstart', (e)=>{
|
|
631
|
+
e.preventDefault();
|
|
632
|
+
});
|
|
633
|
+
// spinbuttons cannot be focused with VoiceOver on iOS.
|
|
634
|
+
let touchPropOverrides = $RqPov$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 } = $0a17b9b24fd61cc6$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 = $RqPov$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 = $RqPov$reactariautils.useId(props.id);
|
|
652
|
+
let isEditable = !props.isDisabled && !props.isReadOnly && segment.isEditable;
|
|
653
|
+
return {
|
|
654
|
+
segmentProps: $RqPov$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($RqPov$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
|
+
}
|
|
712
679
|
|
|
713
|
-
break;
|
|
714
680
|
|
|
715
|
-
case 'insertCompositionText':
|
|
716
|
-
// insertCompositionText cannot be canceled.
|
|
717
|
-
// Record the current state of the element so we can restore it in the `input` event below.
|
|
718
|
-
compositionRef.current = ref.current.textContent; // Safari gets stuck in a composition state unless we also assign to the value here.
|
|
719
|
-
// eslint-disable-next-line no-self-assign
|
|
720
681
|
|
|
721
|
-
|
|
722
|
-
break;
|
|
682
|
+
var $53ea40b9383d8ad0$exports = {};
|
|
723
683
|
|
|
724
|
-
|
|
725
|
-
if (e.data != null) {
|
|
726
|
-
onInput(e.data);
|
|
727
|
-
}
|
|
684
|
+
$parcel$export($53ea40b9383d8ad0$exports, "useDateRangePicker", () => $53ea40b9383d8ad0$export$12fd5f0e9f4bb192);
|
|
728
685
|
|
|
729
|
-
break;
|
|
730
|
-
}
|
|
731
|
-
});
|
|
732
|
-
useEvent(ref, 'input', e => {
|
|
733
|
-
let {
|
|
734
|
-
inputType,
|
|
735
|
-
data
|
|
736
|
-
} = e;
|
|
737
|
-
|
|
738
|
-
switch (inputType) {
|
|
739
|
-
case 'insertCompositionText':
|
|
740
|
-
// Reset the DOM to how it was in the beforeinput event.
|
|
741
|
-
ref.current.textContent = compositionRef.current; // Android sometimes fires key presses of letters as composition events. Need to handle am/pm keys here too.
|
|
742
|
-
// Can also happen e.g. with Pinyin keyboard on iOS.
|
|
743
|
-
|
|
744
|
-
if (startsWith(am, data) || startsWith(pm, data)) {
|
|
745
|
-
onInput(data);
|
|
746
|
-
}
|
|
747
686
|
|
|
748
|
-
break;
|
|
749
|
-
}
|
|
750
|
-
}); // Focus on mouse down/touch up to match native textfield behavior.
|
|
751
|
-
// usePress handles canceling text selection.
|
|
752
|
-
|
|
753
|
-
let {
|
|
754
|
-
pressProps
|
|
755
|
-
} = usePress({
|
|
756
|
-
preventFocusOnPress: true,
|
|
757
|
-
onPressStart: e => {
|
|
758
|
-
if (e.pointerType === 'mouse') {
|
|
759
|
-
e.target.focus();
|
|
760
|
-
}
|
|
761
|
-
},
|
|
762
687
|
|
|
763
|
-
onPress(e) {
|
|
764
|
-
if (e.pointerType !== 'mouse') {
|
|
765
|
-
e.target.focus();
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
688
|
|
|
769
|
-
}); // For Android: prevent selection on long press.
|
|
770
|
-
|
|
771
|
-
useEvent(ref, 'selectstart', e => {
|
|
772
|
-
e.preventDefault();
|
|
773
|
-
}); // spinbuttons cannot be focused with VoiceOver on iOS.
|
|
774
|
-
|
|
775
|
-
let touchPropOverrides = isIOS() || segment.type === 'timeZoneName' ? {
|
|
776
|
-
role: 'textbox',
|
|
777
|
-
'aria-valuemax': null,
|
|
778
|
-
'aria-valuemin': null,
|
|
779
|
-
'aria-valuetext': null,
|
|
780
|
-
'aria-valuenow': null
|
|
781
|
-
} : {};
|
|
782
|
-
let {
|
|
783
|
-
ariaLabelledBy,
|
|
784
|
-
ariaDescribedBy
|
|
785
|
-
} = labelIds.get(state); // Only apply aria-describedby to the first segment, unless the field is invalid. This avoids it being
|
|
786
|
-
// read every time the user navigates to a new segment.
|
|
787
|
-
|
|
788
|
-
let firstSegment = useMemo(() => state.segments.find(s => s.isEditable), [state.segments]);
|
|
789
|
-
|
|
790
|
-
if (segment !== firstSegment && state.validationState !== 'invalid') {
|
|
791
|
-
ariaDescribedBy = undefined;
|
|
792
|
-
}
|
|
793
|
-
|
|
794
|
-
let id = useId(props.id);
|
|
795
|
-
let isEditable = !props.isDisabled && !props.isReadOnly && segment.isEditable;
|
|
796
|
-
return {
|
|
797
|
-
segmentProps: mergeProps(spinButtonProps, pressProps, _babelRuntimeHelpersExtends({
|
|
798
|
-
id
|
|
799
|
-
}, touchPropOverrides, {
|
|
800
|
-
'aria-controls': props['aria-controls'],
|
|
801
|
-
// 'aria-haspopup': props['aria-haspopup'], // deprecated in ARIA 1.2
|
|
802
|
-
'aria-invalid': state.validationState === 'invalid' ? 'true' : undefined,
|
|
803
|
-
'aria-label': segment.type !== 'literal' ? displayNames.of(segment.type) : undefined,
|
|
804
|
-
'aria-labelledby': ariaLabelledBy + " " + id,
|
|
805
|
-
'aria-describedby': ariaDescribedBy,
|
|
806
|
-
'aria-placeholder': segment.isPlaceholder ? segment.text : undefined,
|
|
807
|
-
'aria-readonly': props.isReadOnly || !segment.isEditable ? 'true' : undefined,
|
|
808
|
-
contentEditable: isEditable,
|
|
809
|
-
suppressContentEditableWarning: isEditable,
|
|
810
|
-
spellCheck: isEditable ? 'false' : undefined,
|
|
811
|
-
autoCapitalize: isEditable ? 'off' : undefined,
|
|
812
|
-
autoCorrect: isEditable ? 'off' : undefined,
|
|
813
|
-
// Capitalization was changed in React 17...
|
|
814
|
-
[parseInt(_react.version, 10) >= 17 ? 'enterKeyHint' : 'enterkeyhint']: isEditable ? 'next' : undefined,
|
|
815
|
-
inputMode: props.isDisabled || segment.type === 'dayPeriod' || !isEditable ? undefined : 'numeric',
|
|
816
|
-
tabIndex: props.isDisabled ? undefined : 0,
|
|
817
|
-
onKeyDown,
|
|
818
|
-
onFocus
|
|
819
|
-
}))
|
|
820
|
-
};
|
|
821
|
-
}
|
|
822
689
|
|
|
823
|
-
exports.useDateSegment = useDateSegment;
|
|
824
|
-
// @ts-ignore
|
|
825
|
-
const $ddcda6963a16ac7df68e63c656b9bc76$var$intlMessages = {
|
|
826
|
-
"ar-AE": _babelRuntimeHelpersInteropRequireDefault($be926026280e076dd0b048671d4b$exports).default,
|
|
827
|
-
"bg-BG": _babelRuntimeHelpersInteropRequireDefault($bab398828901e91cda5ace996e16743$exports).default,
|
|
828
|
-
"cs-CZ": _babelRuntimeHelpersInteropRequireDefault($a1b39c1203bddacb07ac8af1bf09f93d$exports).default,
|
|
829
|
-
"da-DK": _babelRuntimeHelpersInteropRequireDefault($de6d54fc6253e3aab217ab66cc92632$exports).default,
|
|
830
|
-
"de-DE": _babelRuntimeHelpersInteropRequireDefault($c62d85e73a4bc4d2d79c4e5438a0a3$exports).default,
|
|
831
|
-
"el-GR": _babelRuntimeHelpersInteropRequireDefault($e7f2c17a4d052730760575ff7cf57df6$exports).default,
|
|
832
|
-
"en-US": _babelRuntimeHelpersInteropRequireDefault($adfdcb0b7f4822eaafecdabf45f751$exports).default,
|
|
833
|
-
"es-ES": _babelRuntimeHelpersInteropRequireDefault($f9c516e0c25716b7d567ed2$exports).default,
|
|
834
|
-
"et-EE": _babelRuntimeHelpersInteropRequireDefault($ba7274e4009469f7b66a9c93516dc421$exports).default,
|
|
835
|
-
"fi-FI": _babelRuntimeHelpersInteropRequireDefault($c64b2869d31111b8a6212d3569c46edc$exports).default,
|
|
836
|
-
"fr-FR": _babelRuntimeHelpersInteropRequireDefault($ba1e9adecce613badde3f8b2a91b9$exports).default,
|
|
837
|
-
"he-IL": _babelRuntimeHelpersInteropRequireDefault($da5d80bcf16af82fe7b14fc1e9d9$exports).default,
|
|
838
|
-
"hr-HR": _babelRuntimeHelpersInteropRequireDefault($c179e9a34711caa46568a537c351781$exports).default,
|
|
839
|
-
"hu-HU": _babelRuntimeHelpersInteropRequireDefault($a40a6dd4cfb1bd1de71f82470d8716$exports).default,
|
|
840
|
-
"it-IT": _babelRuntimeHelpersInteropRequireDefault($b9be9a4b72f2aadd1d314520c1acfc$exports).default,
|
|
841
|
-
"ja-JP": _babelRuntimeHelpersInteropRequireDefault($b41d870af1ac3496d01f8698fb5c954$exports).default,
|
|
842
|
-
"ko-KR": _babelRuntimeHelpersInteropRequireDefault($fe0c574bf48312400dd82a37538c16ef$exports).default,
|
|
843
|
-
"lt-LT": _babelRuntimeHelpersInteropRequireDefault($b0ad35113dfe9f264970b85837$exports).default,
|
|
844
|
-
"lv-LV": _babelRuntimeHelpersInteropRequireDefault($c670847f13ef745cf51c4d927173b$exports).default,
|
|
845
|
-
"nb-NO": _babelRuntimeHelpersInteropRequireDefault($d59ad4442794aa8d7415835505965b2$exports).default,
|
|
846
|
-
"nl-NL": _babelRuntimeHelpersInteropRequireDefault($ea0bd7fd22f4939550fa7411df8295f2$exports).default,
|
|
847
|
-
"pl-PL": _babelRuntimeHelpersInteropRequireDefault($c08613207efc8ea834b1fadda995620b$exports).default,
|
|
848
|
-
"pt-BR": _babelRuntimeHelpersInteropRequireDefault($c53c2ff9b6580a8da286c11a97f27c0c$exports).default,
|
|
849
|
-
"pt-PT": _babelRuntimeHelpersInteropRequireDefault($d9eb517021c8b3bace06723f935$exports).default,
|
|
850
|
-
"ro-RO": _babelRuntimeHelpersInteropRequireDefault($b374a5303a356023e59a4df3c152bebf$exports).default,
|
|
851
|
-
"ru-RU": _babelRuntimeHelpersInteropRequireDefault($e72056058c9fa1ea634cd2d7f7700$exports).default,
|
|
852
|
-
"sk-SK": _babelRuntimeHelpersInteropRequireDefault($ab8e21cbc487e19c15c39cc2df98aed6$exports).default,
|
|
853
|
-
"sl-SI": _babelRuntimeHelpersInteropRequireDefault($a155de298a83a5c6e328091b4347a$exports).default,
|
|
854
|
-
"sr-SP": _babelRuntimeHelpersInteropRequireDefault($f93e8a2d2993e66b87975762a481$exports).default,
|
|
855
|
-
"sv-SE": _babelRuntimeHelpersInteropRequireDefault($d90bf5621eeb550e11f07fd645ee9375$exports).default,
|
|
856
|
-
"tr-TR": _babelRuntimeHelpersInteropRequireDefault($aa582d9ff36fb511de0ccb22bd9e2bb$exports).default,
|
|
857
|
-
"uk-UA": _babelRuntimeHelpersInteropRequireDefault($a1ed5505308b04ac9cd1c488538019c3$exports).default,
|
|
858
|
-
"zh-CN": _babelRuntimeHelpersInteropRequireDefault($c6b9bcbebc7c1f385b7e70bbd744b53$exports).default,
|
|
859
|
-
"zh-TW": _babelRuntimeHelpersInteropRequireDefault($ae51b3cde9961c4855b77ac499ea$exports).default
|
|
860
|
-
};
|
|
861
690
|
|
|
862
|
-
function useDateRangePicker(props, state, ref) {
|
|
863
|
-
let formatMessage = useMessageFormatter($ddcda6963a16ac7df68e63c656b9bc76$var$intlMessages);
|
|
864
|
-
let {
|
|
865
|
-
labelProps,
|
|
866
|
-
fieldProps,
|
|
867
|
-
descriptionProps,
|
|
868
|
-
errorMessageProps
|
|
869
|
-
} = useField(_babelRuntimeHelpersExtends({}, props, {
|
|
870
|
-
labelElementType: 'span'
|
|
871
|
-
}));
|
|
872
|
-
let labelledBy = fieldProps['aria-labelledby'] || fieldProps.id;
|
|
873
|
-
let {
|
|
874
|
-
locale
|
|
875
|
-
} = useLocale();
|
|
876
|
-
let description = state.formatValue(locale, {
|
|
877
|
-
month: 'long'
|
|
878
|
-
});
|
|
879
|
-
let descProps = useDescription(description);
|
|
880
|
-
let startFieldProps = useLabels({
|
|
881
|
-
'aria-label': formatMessage('startDate'),
|
|
882
|
-
'aria-labelledby': labelledBy
|
|
883
|
-
});
|
|
884
|
-
let endFieldProps = useLabels({
|
|
885
|
-
'aria-label': formatMessage('endDate'),
|
|
886
|
-
'aria-labelledby': labelledBy
|
|
887
|
-
});
|
|
888
|
-
let buttonId = useId();
|
|
889
|
-
let dialogId = useId();
|
|
890
|
-
let groupProps = $e62c7e96a53f216814557ded9a8cf$export$useDatePickerGroup(state, ref);
|
|
891
|
-
let {
|
|
892
|
-
focusWithinProps
|
|
893
|
-
} = useFocusWithin({
|
|
894
|
-
onBlurWithin() {
|
|
895
|
-
state.confirmPlaceholder();
|
|
896
|
-
}
|
|
897
691
|
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
})
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
692
|
+
function $53ea40b9383d8ad0$export$12fd5f0e9f4bb192(props, state, ref) {
|
|
693
|
+
let formatMessage = $RqPov$reactariai18n.useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($5766533e00be07f5$exports)));
|
|
694
|
+
let { labelProps: labelProps , fieldProps: fieldProps , descriptionProps: descriptionProps , errorMessageProps: errorMessageProps } = $RqPov$reactarialabel.useField({
|
|
695
|
+
...props,
|
|
696
|
+
labelElementType: 'span'
|
|
697
|
+
});
|
|
698
|
+
let labelledBy = fieldProps['aria-labelledby'] || fieldProps.id;
|
|
699
|
+
let { locale: locale } = $RqPov$reactariai18n.useLocale();
|
|
700
|
+
let description = state.formatValue(locale, {
|
|
701
|
+
month: 'long'
|
|
702
|
+
});
|
|
703
|
+
let descProps = $RqPov$reactariautils.useDescription(description);
|
|
704
|
+
let startFieldProps = $RqPov$reactariautils.useLabels({
|
|
705
|
+
'aria-label': formatMessage('startDate'),
|
|
706
|
+
'aria-labelledby': labelledBy
|
|
707
|
+
});
|
|
708
|
+
let endFieldProps = $RqPov$reactariautils.useLabels({
|
|
709
|
+
'aria-label': formatMessage('endDate'),
|
|
710
|
+
'aria-labelledby': labelledBy
|
|
711
|
+
});
|
|
712
|
+
let buttonId = $RqPov$reactariautils.useId();
|
|
713
|
+
let dialogId = $RqPov$reactariautils.useId();
|
|
714
|
+
let groupProps = $56725a1cb2afa258$export$4a931266a3838b86(state, ref);
|
|
715
|
+
let { focusWithinProps: focusWithinProps } = $RqPov$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: $RqPov$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 = $RqPov$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
|
+
};
|
|
933
761
|
}
|
|
934
762
|
|
|
935
|
-
|
|
763
|
+
|
|
764
|
+
|
|
765
|
+
$parcel$exportWildcard(module.exports, $cb7d2152263d2ab6$exports);
|
|
766
|
+
$parcel$exportWildcard(module.exports, $93e3e69cab166b00$exports);
|
|
767
|
+
$parcel$exportWildcard(module.exports, $0a17b9b24fd61cc6$exports);
|
|
768
|
+
$parcel$exportWildcard(module.exports, $53ea40b9383d8ad0$exports);
|
|
769
|
+
$parcel$exportWildcard(module.exports, $2b06c75983817eb5$exports);
|
|
770
|
+
|
|
771
|
+
|
|
936
772
|
//# sourceMappingURL=main.js.map
|