@react-aria/datepicker 3.0.0-nightly.3148 → 3.0.0-nightly.3168
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 +4 -2
- package/dist/main.js.map +1 -1
- package/dist/module.js +4 -2
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +16 -16
- package/src/useDatePicker.ts +2 -1
- package/src/useDateRangePicker.ts +2 -1
package/dist/main.js
CHANGED
|
@@ -341,7 +341,8 @@ function $e90ae7c26a69c6b1$export$42df105a73306d51(props, state, ref) {
|
|
|
341
341
|
maxValue: props.maxValue,
|
|
342
342
|
isDisabled: props.isDisabled,
|
|
343
343
|
isReadOnly: props.isReadOnly,
|
|
344
|
-
isDateDisabled: props.isDateDisabled
|
|
344
|
+
isDateDisabled: props.isDateDisabled,
|
|
345
|
+
defaultFocusedValue: state.dateValue ? undefined : props.placeholderValue
|
|
345
346
|
}
|
|
346
347
|
};
|
|
347
348
|
}
|
|
@@ -460,7 +461,8 @@ function $20f695b1b69e6b9e$export$12fd5f0e9f4bb192(props, state, ref) {
|
|
|
460
461
|
maxValue: props.maxValue,
|
|
461
462
|
isDisabled: props.isDisabled,
|
|
462
463
|
isReadOnly: props.isReadOnly,
|
|
463
|
-
isDateDisabled: props.isDateDisabled
|
|
464
|
+
isDateDisabled: props.isDateDisabled,
|
|
465
|
+
defaultFocusedValue: state.dateRange ? undefined : props.placeholderValue
|
|
464
466
|
}
|
|
465
467
|
};
|
|
466
468
|
}
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AGAA,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA4c;;;;ACAxe,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA8d;;;;ACA1f,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA2d;;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AAE,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,IAAI,GAAG,SAAS;YACpE,CAAe,gBAAE,KAAK,CAAC,UAAU,KAAK,OAAO,CAAC,UAAU,GAAG,CAAM,QAAG,SAAS;YAC7E,eAAe,EAAE,UAAU;YAC3B,8BAA8B,EAAE,UAAU;YAC1C,UAAU,EAAE,UAAU,GAAG,CAAO,SAAG,SAAS;YAC5C,cAAc,EAAE,UAAU,GAAG,CAAK,OAAG,SAAS;YAC9C,WAAW,EAAE,UAAU,GAAG,CAAK,OAAG,SAAS;YAC3C,EAA4C,AAA5C,0CAA4C;aAC3C,QAAQ,CAAC,sCAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,CAAc,gBAAG,CAAc,gBAAG,UAAU,GAAG,CAAM,QAAG,SAAS;YACtG,SAAS,EAAE,KAAK,CAAC,UAAU,IAAI,OAAO,CAAC,IAAI,KAAK,CAAW,eAAK,UAAU,GAAG,SAAS,GAAG,CAAS;YAClG,QAAQ,EAAE,KAAK,CAAC,UAAU,GAAG,SAAS,GAAG,CAAC;uBAC1C,SAAS;qBACT,OAAO;YACP,KAAK,EAAE,CAAC;gBACN,UAAU,EAAE,CAAa;YAC3B,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC;;","sources":["packages/@react-aria/datepicker/src/index.ts","packages/@react-aria/datepicker/src/useDatePicker.ts","packages/@react-aria/datepicker/intl/*.js","packages/@react-aria/datepicker/intl/ar-AE.json","packages/@react-aria/datepicker/intl/bg-BG.json","packages/@react-aria/datepicker/intl/cs-CZ.json","packages/@react-aria/datepicker/intl/da-DK.json","packages/@react-aria/datepicker/intl/de-DE.json","packages/@react-aria/datepicker/intl/el-GR.json","packages/@react-aria/datepicker/intl/en-US.json","packages/@react-aria/datepicker/intl/es-ES.json","packages/@react-aria/datepicker/intl/et-EE.json","packages/@react-aria/datepicker/intl/fi-FI.json","packages/@react-aria/datepicker/intl/fr-FR.json","packages/@react-aria/datepicker/intl/he-IL.json","packages/@react-aria/datepicker/intl/hr-HR.json","packages/@react-aria/datepicker/intl/hu-HU.json","packages/@react-aria/datepicker/intl/it-IT.json","packages/@react-aria/datepicker/intl/ja-JP.json","packages/@react-aria/datepicker/intl/ko-KR.json","packages/@react-aria/datepicker/intl/lt-LT.json","packages/@react-aria/datepicker/intl/lv-LV.json","packages/@react-aria/datepicker/intl/nb-NO.json","packages/@react-aria/datepicker/intl/nl-NL.json","packages/@react-aria/datepicker/intl/pl-PL.json","packages/@react-aria/datepicker/intl/pt-BR.json","packages/@react-aria/datepicker/intl/pt-PT.json","packages/@react-aria/datepicker/intl/ro-RO.json","packages/@react-aria/datepicker/intl/ru-RU.json","packages/@react-aria/datepicker/intl/sk-SK.json","packages/@react-aria/datepicker/intl/sl-SI.json","packages/@react-aria/datepicker/intl/sr-SP.json","packages/@react-aria/datepicker/intl/sv-SE.json","packages/@react-aria/datepicker/intl/tr-TR.json","packages/@react-aria/datepicker/intl/uk-UA.json","packages/@react-aria/datepicker/intl/zh-CN.json","packages/@react-aria/datepicker/intl/zh-TW.json","packages/@react-aria/datepicker/src/useDatePickerGroup.ts","packages/@react-aria/datepicker/src/useDateSegment.ts","packages/@react-aria/datepicker/src/useDateField.ts","packages/@react-aria/datepicker/src/useDateRangePicker.ts","packages/@react-aria/datepicker/src/useDisplayNames.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport {useDatePicker} from './useDatePicker';\nexport {useDateSegment} from './useDateSegment';\nexport {useDateField, useTimeField} from './useDateField';\nexport {useDateRangePicker} from './useDateRangePicker';\nexport * from './useDisplayNames';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaButtonProps} from '@react-types/button';\nimport {AriaDatePickerProps, DateValue} from '@react-types/datepicker';\nimport {AriaDialogProps} from '@react-types/dialog';\nimport {CalendarProps} from '@react-types/calendar';\nimport {createFocusManager} from '@react-aria/focus';\nimport {DatePickerState} from '@react-stately/datepicker';\nimport {HTMLAttributes, RefObject} from 'react';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {mergeProps, useDescription, useId} from '@react-aria/utils';\nimport {useDatePickerGroup} from './useDatePickerGroup';\nimport {useField} from '@react-aria/label';\nimport {useLocale, useMessageFormatter} from '@react-aria/i18n';\n\ninterface DatePickerAria {\n /** Props for the date picker's visible label element, if any. */\n labelProps: HTMLAttributes<HTMLElement>,\n /** Props for the grouping element containing the date field and button. */\n groupProps: HTMLAttributes<HTMLElement>,\n /** Props for the date field. */\n fieldProps: AriaDatePickerProps<DateValue>,\n /** Props for the popover trigger button. */\n buttonProps: AriaButtonProps,\n /** Props for the description element, if any. */\n descriptionProps: HTMLAttributes<HTMLElement>,\n /** Props for the error message element, if any. */\n errorMessageProps: HTMLAttributes<HTMLElement>,\n /** Props for the popover dialog. */\n dialogProps: AriaDialogProps,\n /** Props for the calendar within the popover dialog. */\n calendarProps: CalendarProps<DateValue>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a date picker component.\n * A date picker combines a DateField and a Calendar popover to allow users to enter or select a date and time value.\n */\nexport function useDatePicker<T extends DateValue>(props: AriaDatePickerProps<T>, state: DatePickerState, ref: RefObject<HTMLElement>): DatePickerAria {\n let buttonId = useId();\n let dialogId = useId();\n let formatMessage = useMessageFormatter(intlMessages);\n\n let {labelProps, fieldProps, descriptionProps, errorMessageProps} = useField({\n ...props,\n labelElementType: 'span'\n });\n\n let groupProps = useDatePickerGroup(state, ref);\n\n let labelledBy = fieldProps['aria-labelledby'] || fieldProps.id;\n\n let {locale} = useLocale();\n let descProps = useDescription(state.formatValue(locale, {month: 'long'}));\n let ariaDescribedBy = [descProps['aria-describedby'], fieldProps['aria-describedby']].filter(Boolean).join(' ') || undefined;\n\n return {\n groupProps: mergeProps(groupProps, descProps, {\n role: 'group',\n 'aria-disabled': props.isDisabled || null,\n 'aria-labelledby': labelledBy,\n 'aria-describedby': ariaDescribedBy\n }),\n labelProps: {\n ...labelProps,\n onClick: () => {\n let focusManager = createFocusManager(ref);\n focusManager.focusFirst();\n }\n },\n fieldProps: {\n ...fieldProps,\n value: state.value,\n onChange: state.setValue,\n minValue: props.minValue,\n maxValue: props.maxValue,\n placeholderValue: props.placeholderValue,\n hideTimeZone: props.hideTimeZone,\n hourCycle: props.hourCycle,\n granularity: props.granularity,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isRequired: props.isRequired,\n validationState: state.validationState,\n autoFocus: props.autoFocus\n },\n descriptionProps,\n errorMessageProps,\n buttonProps: {\n ...descProps,\n id: buttonId,\n excludeFromTabOrder: true,\n 'aria-haspopup': 'dialog',\n 'aria-label': formatMessage('calendar'),\n 'aria-labelledby': `${labelledBy} ${buttonId}`,\n 'aria-describedby': ariaDescribedBy,\n onPress: () => state.setOpen(true)\n },\n dialogProps: {\n id: dialogId,\n 'aria-labelledby': `${labelledBy} ${buttonId}`\n },\n calendarProps: {\n autoFocus: true,\n value: state.dateValue,\n onChange: state.setDateValue,\n minValue: props.minValue,\n maxValue: props.maxValue,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isDateDisabled: props.isDateDisabled\n }\n };\n}\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"calendar\": \"التقويم\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} إلى {end, date, long}\",\n \"date\": \"التاريخ\",\n \"dateRange\": \"نطاق التاريخ\",\n \"day\": \"يوم\",\n \"dayPeriod\": \"ص/م\",\n \"endDate\": \"تاريخ الانتهاء\",\n \"era\": \"العصر\",\n \"hour\": \"الساعات\",\n \"minute\": \"الدقائق\",\n \"month\": \"الشهر\",\n \"second\": \"الثواني\",\n \"startDate\": \"تاريخ البدء\",\n \"year\": \"السنة\",\n \"weekday\": \"اليوم\",\n \"timeZoneName\": \"التوقيت\"\n}\n","{\n \"calendar\": \"Календар\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} до {end, date, long}\",\n \"date\": \"Дата\",\n \"dateRange\": \"Времеви интервал\",\n \"day\": \"ден\",\n \"dayPeriod\": \"пр.об./сл.об.\",\n \"endDate\": \"Крайна дата\",\n \"era\": \"ера\",\n \"hour\": \"час\",\n \"minute\": \"минута\",\n \"month\": \"месец\",\n \"second\": \"секунда\",\n \"startDate\": \"Начална дата\",\n \"year\": \"година\",\n \"weekday\": \"ден от седмицата\",\n \"timeZoneName\": \"часова зона\"\n}\n","{\n \"calendar\": \"Kalendář\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} až {end, date, long}\",\n \"date\": \"Datum\",\n \"dateRange\": \"Rozsah dat\",\n \"day\": \"den\",\n \"dayPeriod\": \"část dne\",\n \"endDate\": \"Konečné datum\",\n \"era\": \"letopočet\",\n \"hour\": \"hodina\",\n \"minute\": \"minuta\",\n \"month\": \"měsíc\",\n \"second\": \"sekunda\",\n \"startDate\": \"Počáteční datum\",\n \"year\": \"rok\",\n \"weekday\": \"den v týdnu\",\n \"timeZoneName\": \"časové pásmo\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} til {end, date, long}\",\n \"date\": \"Dato\",\n \"dateRange\": \"Datointerval\",\n \"day\": \"dag\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Slutdato\",\n \"era\": \"æra\",\n \"hour\": \"time\",\n \"minute\": \"minut\",\n \"month\": \"måned\",\n \"second\": \"sekund\",\n \"startDate\": \"Startdato\",\n \"year\": \"år\",\n \"weekday\": \"ugedag\",\n \"timeZoneName\": \"tidszone\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} bis {end, date, long}\",\n \"date\": \"Datum\",\n \"dateRange\": \"Datumsbereich\",\n \"day\": \"Tag\",\n \"dayPeriod\": \"Tageshälfte\",\n \"endDate\": \"Enddatum\",\n \"era\": \"Epoche\",\n \"hour\": \"Stunde\",\n \"minute\": \"Minute\",\n \"month\": \"Monat\",\n \"second\": \"Sekunde\",\n \"startDate\": \"Anfangsdatum\",\n \"year\": \"Jahr\",\n \"weekday\": \"Wochentag\",\n \"timeZoneName\": \"Zeitzone\"\n}\n","{\n \"calendar\": \"Ημερολόγιο\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} ως {end, date, long}\",\n \"date\": \"Ημερομηνία\",\n \"dateRange\": \"Εύρος ημερομηνιών\",\n \"day\": \"ημέρα\",\n \"dayPeriod\": \"π.μ./μ.μ.\",\n \"endDate\": \"Ημερομηνία λήξης\",\n \"era\": \"περίοδος\",\n \"hour\": \"ώρα\",\n \"minute\": \"λεπτό\",\n \"month\": \"μήνας\",\n \"second\": \"δευτερόλεπτο\",\n \"startDate\": \"Ημερομηνία έναρξης\",\n \"year\": \"έτος\",\n \"weekday\": \"καθημερινή\",\n \"timeZoneName\": \"ζώνη ώρας\"\n}\n","{\n \"era\": \"era\",\n \"year\": \"year\",\n \"month\": \"month\",\n \"day\": \"day\",\n \"hour\": \"hour\",\n \"minute\": \"minute\",\n \"second\": \"second\",\n \"dayPeriod\": \"AM/PM\",\n \"calendar\": \"Calendar\",\n \"date\": \"Date\",\n \"dateRange\": \"Date Range\",\n \"startDate\": \"Start Date\",\n \"endDate\": \"End Date\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} to {end, date, long}\",\n \"weekday\": \"day of the week\",\n \"timeZoneName\": \"time zone\"\n}\n","{\n \"calendar\": \"Calendario\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} a {end, date, long}\",\n \"date\": \"Fecha\",\n \"dateRange\": \"Intervalo de fecha\",\n \"day\": \"día\",\n \"dayPeriod\": \"a. m./p. m.\",\n \"endDate\": \"Fecha final\",\n \"era\": \"era\",\n \"hour\": \"hora\",\n \"minute\": \"minuto\",\n \"month\": \"mes\",\n \"second\": \"segundo\",\n \"startDate\": \"Fecha de inicio\",\n \"year\": \"año\",\n \"weekday\": \"día de la semana\",\n \"timeZoneName\": \"zona horaria\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} kuni {end, date, long}\",\n \"date\": \"Kuupäev\",\n \"dateRange\": \"Kuupäevavahemik\",\n \"day\": \"päev\",\n \"dayPeriod\": \"enne/pärast lõunat\",\n \"endDate\": \"Lõppkuupäev\",\n \"era\": \"ajastu\",\n \"hour\": \"tund\",\n \"minute\": \"minut\",\n \"month\": \"kuu\",\n \"second\": \"sekund\",\n \"startDate\": \"Alguskuupäev\",\n \"year\": \"aasta\",\n \"weekday\": \"nädalapäev\",\n \"timeZoneName\": \"ajavöönd\"\n}\n","{\n \"calendar\": \"Kalenteri\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long}–{end, date, long}\",\n \"date\": \"Päivämäärä\",\n \"dateRange\": \"Päivämääräalue\",\n \"day\": \"päivä\",\n \"dayPeriod\": \"vuorokaudenaika\",\n \"endDate\": \"Päättymispäivä\",\n \"era\": \"aikakausi\",\n \"hour\": \"tunti\",\n \"minute\": \"minuutti\",\n \"month\": \"kuukausi\",\n \"second\": \"sekunti\",\n \"startDate\": \"Alkamispäivä\",\n \"year\": \"vuosi\",\n \"weekday\": \"viikonpäivä\",\n \"timeZoneName\": \"aikavyöhyke\"\n}\n","{\n \"calendar\": \"Calendrier\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} au {end, date, long}\",\n \"date\": \"Date\",\n \"dateRange\": \"Plage de dates\",\n \"day\": \"jour\",\n \"dayPeriod\": \"cadran\",\n \"endDate\": \"Date de fin\",\n \"era\": \"ère\",\n \"hour\": \"heure\",\n \"minute\": \"minute\",\n \"month\": \"mois\",\n \"second\": \"seconde\",\n \"startDate\": \"Date de début\",\n \"year\": \"année\",\n \"weekday\": \"jour de la semaine\",\n \"timeZoneName\": \"fuseau horaire\"\n}\n","{\n \"calendar\": \"לוח שנה\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"מ-{start, date, long} ועד {end, date, long}\",\n \"date\": \"תאריך\",\n \"dateRange\": \"טווח תאריכים\",\n \"day\": \"יום\",\n \"dayPeriod\": \"לפנה״צ/אחה״צ\",\n \"endDate\": \"תאריך סיום\",\n \"era\": \"תקופה\",\n \"hour\": \"שעה\",\n \"minute\": \"דקה\",\n \"month\": \"חודש\",\n \"second\": \"שנייה\",\n \"startDate\": \"תאריך התחלה\",\n \"year\": \"שנה\",\n \"weekday\": \"יום בשבוע\",\n \"timeZoneName\": \"אזור זמן\"\n}\n","{\n \"calendar\": \"Kalendar\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} do {end, date, long}\",\n \"date\": \"Datum\",\n \"dateRange\": \"Raspon datuma\",\n \"day\": \"dan\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Datum završetka\",\n \"era\": \"era\",\n \"hour\": \"sat\",\n \"minute\": \"minuta\",\n \"month\": \"mjesec\",\n \"second\": \"sekunda\",\n \"startDate\": \"Datum početka\",\n \"year\": \"godina\",\n \"weekday\": \"dan u tjednu\",\n \"timeZoneName\": \"vremenska zona\"\n}\n","{\n \"calendar\": \"Naptár\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} – {end, date, long}\",\n \"date\": \"Dátum\",\n \"dateRange\": \"Dátumtartomány\",\n \"day\": \"nap\",\n \"dayPeriod\": \"napszak\",\n \"endDate\": \"Befejező dátum\",\n \"era\": \"éra\",\n \"hour\": \"óra\",\n \"minute\": \"perc\",\n \"month\": \"hónap\",\n \"second\": \"másodperc\",\n \"startDate\": \"Kezdő dátum\",\n \"year\": \"év\",\n \"weekday\": \"hét napja\",\n \"timeZoneName\": \"időzóna\"\n}\n","{\n \"calendar\": \"Calendario\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"Da {start, date, long} a {end, date, long}\",\n \"date\": \"Data\",\n \"dateRange\": \"Intervallo date\",\n \"day\": \"giorno\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Data finale\",\n \"era\": \"era\",\n \"hour\": \"ora\",\n \"minute\": \"minuto\",\n \"month\": \"mese\",\n \"second\": \"secondo\",\n \"startDate\": \"Data iniziale\",\n \"year\": \"anno\",\n \"weekday\": \"giorno della settimana\",\n \"timeZoneName\": \"fuso orario\"\n}\n","{\n \"calendar\": \"カレンダー\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} ~ {end, date, long}\",\n \"date\": \"日付\",\n \"dateRange\": \"日付範囲\",\n \"day\": \"日\",\n \"dayPeriod\": \"午前/午後\",\n \"endDate\": \"終了日\",\n \"era\": \"時代\",\n \"hour\": \"時\",\n \"minute\": \"分\",\n \"month\": \"月\",\n \"second\": \"秒\",\n \"startDate\": \"開始日\",\n \"year\": \"年\",\n \"weekday\": \"曜日\",\n \"timeZoneName\": \"タイムゾーン\"\n}\n","{\n \"calendar\": \"달력\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} ~ {end, date, long}\",\n \"date\": \"날짜\",\n \"dateRange\": \"날짜 범위\",\n \"day\": \"일\",\n \"dayPeriod\": \"오전/오후\",\n \"endDate\": \"종료 날짜\",\n \"era\": \"연호\",\n \"hour\": \"시\",\n \"minute\": \"분\",\n \"month\": \"월\",\n \"second\": \"초\",\n \"startDate\": \"시작 날짜\",\n \"year\": \"년\",\n \"weekday\": \"요일\",\n \"timeZoneName\": \"시간대\"\n}\n","{\n \"calendar\": \"Kalendorius\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"Nuo {start, date, long} iki {end, date, long}\",\n \"date\": \"Data\",\n \"dateRange\": \"Datų intervalas\",\n \"day\": \"diena\",\n \"dayPeriod\": \"iki pietų / po pietų\",\n \"endDate\": \"Pabaigos data\",\n \"era\": \"era\",\n \"hour\": \"valanda\",\n \"minute\": \"minutė\",\n \"month\": \"mėnuo\",\n \"second\": \"sekundė\",\n \"startDate\": \"Pradžios data\",\n \"year\": \"metai\",\n \"weekday\": \"savaitės diena\",\n \"timeZoneName\": \"laiko juosta\"\n}\n","{\n \"calendar\": \"Kalendārs\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} līdz {end, date, long}\",\n \"date\": \"Datums\",\n \"dateRange\": \"Datumu diapazons\",\n \"day\": \"diena\",\n \"dayPeriod\": \"priekšpusdienā/pēcpusdienā\",\n \"endDate\": \"Beigu datums\",\n \"era\": \"ēra\",\n \"hour\": \"stundas\",\n \"minute\": \"minūtes\",\n \"month\": \"mēnesis\",\n \"second\": \"sekundes\",\n \"startDate\": \"Sākuma datums\",\n \"year\": \"gads\",\n \"weekday\": \"nedēļas diena\",\n \"timeZoneName\": \"laika josla\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} til {end, date, long}\",\n \"date\": \"Dato\",\n \"dateRange\": \"Datoområde\",\n \"day\": \"dag\",\n \"dayPeriod\": \"a.m./p.m.\",\n \"endDate\": \"Sluttdato\",\n \"era\": \"tidsalder\",\n \"hour\": \"time\",\n \"minute\": \"minutt\",\n \"month\": \"måned\",\n \"second\": \"sekund\",\n \"startDate\": \"Startdato\",\n \"year\": \"år\",\n \"weekday\": \"ukedag\",\n \"timeZoneName\": \"tidssone\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} t/m {end, date, long}\",\n \"date\": \"Datum\",\n \"dateRange\": \"Datumbereik\",\n \"day\": \"dag\",\n \"dayPeriod\": \"a.m./p.m.\",\n \"endDate\": \"Einddatum\",\n \"era\": \"tijdperk\",\n \"hour\": \"uur\",\n \"minute\": \"minuut\",\n \"month\": \"maand\",\n \"second\": \"seconde\",\n \"startDate\": \"Startdatum\",\n \"year\": \"jaar\",\n \"weekday\": \"dag van de week\",\n \"timeZoneName\": \"tijdzone\"\n}\n","{\n \"calendar\": \"Kalendarz\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} do {end, date, long}\",\n \"date\": \"Data\",\n \"dateRange\": \"Zakres dat\",\n \"day\": \"dzień\",\n \"dayPeriod\": \"rano / po południu / wieczorem\",\n \"endDate\": \"Data końcowa\",\n \"era\": \"era\",\n \"hour\": \"godzina\",\n \"minute\": \"minuta\",\n \"month\": \"miesiąc\",\n \"second\": \"sekunda\",\n \"startDate\": \"Data początkowa\",\n \"year\": \"rok\",\n \"weekday\": \"dzień tygodnia\",\n \"timeZoneName\": \"strefa czasowa\"\n}\n","{\n \"calendar\": \"Calendário\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} a {end, date, long}\",\n \"date\": \"Data\",\n \"dateRange\": \"Intervalo de datas\",\n \"day\": \"dia\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Data final\",\n \"era\": \"era\",\n \"hour\": \"hora\",\n \"minute\": \"minuto\",\n \"month\": \"mês\",\n \"second\": \"segundo\",\n \"startDate\": \"Data inicial\",\n \"year\": \"ano\",\n \"weekday\": \"dia da semana\",\n \"timeZoneName\": \"fuso horário\"\n}\n","{\n \"calendar\": \"Calendário\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} a {end, date, long}\",\n \"date\": \"Data\",\n \"dateRange\": \"Intervalo de datas\",\n \"day\": \"dia\",\n \"dayPeriod\": \"am/pm\",\n \"endDate\": \"Data de Término\",\n \"era\": \"era\",\n \"hour\": \"hora\",\n \"minute\": \"minuto\",\n \"month\": \"mês\",\n \"second\": \"segundo\",\n \"startDate\": \"Data de Início\",\n \"year\": \"ano\",\n \"weekday\": \"dia da semana\",\n \"timeZoneName\": \"fuso horário\"\n}\n","{\n \"calendar\": \"Calendar\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} - {end, date, long}\",\n \"date\": \"Dată\",\n \"dateRange\": \"Raza datei\",\n \"day\": \"zi\",\n \"dayPeriod\": \"a.m/p.m.\",\n \"endDate\": \"Dată final\",\n \"era\": \"eră\",\n \"hour\": \"oră\",\n \"minute\": \"minut\",\n \"month\": \"lună\",\n \"second\": \"secundă\",\n \"startDate\": \"Dată început\",\n \"year\": \"an\",\n \"weekday\": \"ziua din săptămână\",\n \"timeZoneName\": \"fus orar\"\n}\n","{\n \"calendar\": \"Календарь\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} – {end, date, long}\",\n \"date\": \"Дата\",\n \"dateRange\": \"Диапазон дат\",\n \"day\": \"день\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Дата окончания\",\n \"era\": \"эра\",\n \"hour\": \"час\",\n \"minute\": \"минута\",\n \"month\": \"месяц\",\n \"second\": \"секунда\",\n \"startDate\": \"Дата начала\",\n \"year\": \"год\",\n \"weekday\": \"день недели\",\n \"timeZoneName\": \"часовой пояс\"\n}\n","{\n \"calendar\": \"Kalendár\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} do {end, date, long}\",\n \"date\": \"Dátum\",\n \"dateRange\": \"Rozsah dátumov\",\n \"day\": \"deň\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Dátum ukončenia\",\n \"era\": \"letopočet\",\n \"hour\": \"hodina\",\n \"minute\": \"minúta\",\n \"month\": \"mesiac\",\n \"second\": \"sekunda\",\n \"startDate\": \"Dátum začatia\",\n \"year\": \"rok\",\n \"weekday\": \"deň týždňa\",\n \"timeZoneName\": \"časové pásmo\"\n}\n","{\n \"calendar\": \"Koledar\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} do {end, date, long}\",\n \"date\": \"Datum\",\n \"dateRange\": \"Datumski obseg\",\n \"day\": \"dan\",\n \"dayPeriod\": \"dop/pop\",\n \"endDate\": \"Datum konca\",\n \"era\": \"doba\",\n \"hour\": \"ura\",\n \"minute\": \"minuta\",\n \"month\": \"mesec\",\n \"second\": \"sekunda\",\n \"startDate\": \"Datum začetka\",\n \"year\": \"leto\",\n \"weekday\": \"dan v tednu\",\n \"timeZoneName\": \"časovni pas\"\n}\n","{\n \"calendar\": \"Kalendar\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} do {end, date, long}\",\n \"date\": \"Datum\",\n \"dateRange\": \"Opseg datuma\",\n \"day\": \"дан\",\n \"dayPeriod\": \"пре подне/по подне\",\n \"endDate\": \"Datum završetka\",\n \"era\": \"ера\",\n \"hour\": \"сат\",\n \"minute\": \"минут\",\n \"month\": \"месец\",\n \"second\": \"секунд\",\n \"startDate\": \"Datum početka\",\n \"year\": \"година\",\n \"weekday\": \"дан у недељи\",\n \"timeZoneName\": \"временска зона\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} till {end, date, long}\",\n \"date\": \"Datum\",\n \"dateRange\": \"Datumintervall\",\n \"day\": \"dag\",\n \"dayPeriod\": \"fm/em\",\n \"endDate\": \"Slutdatum\",\n \"era\": \"era\",\n \"hour\": \"timme\",\n \"minute\": \"minut\",\n \"month\": \"månad\",\n \"second\": \"sekund\",\n \"startDate\": \"Startdatum\",\n \"year\": \"år\",\n \"weekday\": \"veckodag\",\n \"timeZoneName\": \"tidszon\"\n}\n","{\n \"calendar\": \"Takvim\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} - {end, date, long}\",\n \"date\": \"Tarih\",\n \"dateRange\": \"Tarih Aralığı\",\n \"day\": \"gün\",\n \"dayPeriod\": \"ÖÖ/ÖS\",\n \"endDate\": \"Bitiş Tarihi\",\n \"era\": \"çağ\",\n \"hour\": \"saat\",\n \"minute\": \"dakika\",\n \"month\": \"ay\",\n \"second\": \"saniye\",\n \"startDate\": \"Başlangıç Tarihi\",\n \"year\": \"yıl\",\n \"weekday\": \"haftanın günü\",\n \"timeZoneName\": \"saat dilimi\"\n}\n","{\n \"calendar\": \"Календар\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"Від {start, date, long} до {end, date, long}\",\n \"date\": \"Дата\",\n \"dateRange\": \"Діапазон дат\",\n \"day\": \"день\",\n \"dayPeriod\": \"дп/пп\",\n \"endDate\": \"Дата завершення\",\n \"era\": \"ера\",\n \"hour\": \"година\",\n \"minute\": \"хвилина\",\n \"month\": \"місяць\",\n \"second\": \"секунда\",\n \"startDate\": \"Дата початку\",\n \"year\": \"рік\",\n \"weekday\": \"день тижня\",\n \"timeZoneName\": \"часовий пояс\"\n}\n","{\n \"calendar\": \"日历\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} 至 {end, date, long}\",\n \"date\": \"日期\",\n \"dateRange\": \"日期范围\",\n \"day\": \"日\",\n \"dayPeriod\": \"上午/下午\",\n \"endDate\": \"结束日期\",\n \"era\": \"纪元\",\n \"hour\": \"小时\",\n \"minute\": \"分钟\",\n \"month\": \"月\",\n \"second\": \"秒\",\n \"startDate\": \"开始日期\",\n \"year\": \"年\",\n \"weekday\": \"工作日\",\n \"timeZoneName\": \"时区\"\n}\n","{\n \"calendar\": \"日曆\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long}至 {end, date, long}\",\n \"date\": \"日期\",\n \"dateRange\": \"日期範圍\",\n \"day\": \"日\",\n \"dayPeriod\": \"上午/下午\",\n \"endDate\": \"結束日期\",\n \"era\": \"纪元\",\n \"hour\": \"小时\",\n \"minute\": \"分钟\",\n \"month\": \"月\",\n \"second\": \"秒\",\n \"startDate\": \"開始日期\",\n \"year\": \"年\",\n \"weekday\": \"工作日\",\n \"timeZoneName\": \"时区\"\n}\n","import {DatePickerFieldState, DatePickerState, DateRangePickerState} from '@react-stately/datepicker';\nimport {getFocusableTreeWalker} from '@react-aria/focus';\nimport {KeyboardEvent} from '@react-types/shared';\nimport {mergeProps} from '@react-aria/utils';\nimport {RefObject} from 'react';\nimport {usePress} from '@react-aria/interactions';\n\nexport function useDatePickerGroup(state: DatePickerState | DateRangePickerState | DatePickerFieldState, ref: RefObject<HTMLElement>) {\n // Open the popover on alt + arrow down\n let onKeyDown = (e: KeyboardEvent) => {\n if (e.altKey && e.key === 'ArrowDown' && 'setOpen' in state) {\n e.preventDefault();\n e.stopPropagation();\n state.setOpen(true);\n }\n };\n\n // Focus the first placeholder segment from the end on mouse down/touch up in the field.\n let focusLast = () => {\n // Try to find the segment prior to the element that was clicked on.\n let target = window.event?.target as HTMLElement;\n let walker = getFocusableTreeWalker(ref.current, {tabbable: true});\n if (target) {\n walker.currentNode = target;\n target = walker.previousNode() as HTMLElement;\n }\n\n // If no target found, find the last element from the end.\n if (!target) {\n let last: HTMLElement;\n do {\n last = walker.lastChild() as HTMLElement;\n if (last) {\n target = last;\n }\n } while (last);\n }\n\n // Now go backwards until we find an element that is not a placeholder.\n while (target?.getAttribute('aria-placeholder')) {\n let prev = walker.previousNode() as HTMLElement;\n if (prev && prev.getAttribute('aria-placeholder')) {\n target = prev;\n } else {\n break;\n }\n }\n\n if (target) {\n target.focus();\n }\n };\n\n let {pressProps} = usePress({\n onPressStart(e) {\n if (e.pointerType === 'mouse') {\n focusLast();\n }\n },\n onPress(e) {\n if (e.pointerType !== 'mouse') {\n focusLast();\n }\n }\n });\n\n return mergeProps(pressProps, {onKeyDown});\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {DatePickerFieldState, DateSegment} from '@react-stately/datepicker';\nimport {getScrollParent, isIOS, isMac, mergeProps, scrollIntoView, useEvent, useId} from '@react-aria/utils';\nimport {hookData} from './useDateField';\nimport {NumberParser} from '@internationalized/number';\nimport React, {HTMLAttributes, RefObject, useMemo, useRef} from 'react';\nimport {useDateFormatter, useFilter, useLocale} from '@react-aria/i18n';\nimport {useDisplayNames} from './useDisplayNames';\nimport {usePress} from '@react-aria/interactions';\nimport {useSpinButton} from '@react-aria/spinbutton';\n\ninterface DateSegmentAria {\n /** Props for the segment element. */\n segmentProps: HTMLAttributes<HTMLDivElement>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a segment in a date field.\n * A date segment displays an individual unit of a date and time, and allows users to edit\n * the value by typing or using the arrow keys to increment and decrement.\n */\nexport function useDateSegment(segment: DateSegment, state: DatePickerFieldState, ref: RefObject<HTMLElement>): DateSegmentAria {\n let enteredKeys = useRef('');\n let {locale, direction} = useLocale();\n let displayNames = useDisplayNames();\n let {ariaLabelledBy, ariaDescribedBy, focusManager} = hookData.get(state);\n\n let textValue = segment.text;\n let options = useMemo(() => state.dateFormatter.resolvedOptions(), [state.dateFormatter]);\n let monthDateFormatter = useDateFormatter({month: 'long', timeZone: options.timeZone});\n let hourDateFormatter = useDateFormatter({\n hour: 'numeric',\n hour12: options.hour12,\n timeZone: options.timeZone\n });\n\n if (segment.type === 'month') {\n let monthTextValue = monthDateFormatter.format(state.dateValue);\n textValue = monthTextValue !== textValue ? `${textValue} – ${monthTextValue}` : monthTextValue;\n } else if (segment.type === 'hour' || segment.type === 'dayPeriod') {\n textValue = hourDateFormatter.format(state.dateValue);\n }\n\n let {spinButtonProps} = useSpinButton({\n value: segment.value,\n textValue,\n minValue: segment.minValue,\n maxValue: segment.maxValue,\n isDisabled: state.isDisabled,\n isReadOnly: state.isReadOnly || !segment.isEditable,\n isRequired: state.isRequired,\n onIncrement: () => {\n enteredKeys.current = '';\n state.increment(segment.type);\n },\n onDecrement: () => {\n enteredKeys.current = '';\n state.decrement(segment.type);\n },\n onIncrementPage: () => {\n enteredKeys.current = '';\n state.incrementPage(segment.type);\n },\n onDecrementPage: () => {\n enteredKeys.current = '';\n state.decrementPage(segment.type);\n },\n onIncrementToMax: () => {\n enteredKeys.current = '';\n state.setSegment(segment.type, segment.maxValue);\n },\n onDecrementToMin: () => {\n enteredKeys.current = '';\n state.setSegment(segment.type, segment.minValue);\n }\n });\n\n let parser = useMemo(() => new NumberParser(locale, {maximumFractionDigits: 0}), [locale]);\n\n let backspace = () => {\n if (parser.isValidPartialNumber(segment.text) && !state.isReadOnly && !segment.isPlaceholder) {\n let newValue = segment.text.slice(0, -1);\n let parsed = parser.parse(newValue);\n if (newValue.length === 0 || parsed === 0) {\n state.clearSegment(segment.type);\n } else {\n state.setSegment(segment.type, parsed);\n }\n enteredKeys.current = newValue;\n } else if (segment.type === 'dayPeriod') {\n state.clearSegment(segment.type);\n }\n };\n\n let onKeyDown = (e) => {\n // Firefox does not fire selectstart for Ctrl/Cmd + A\n // https://bugzilla.mozilla.org/show_bug.cgi?id=1742153\n if (e.key === 'a' && (isMac() ? e.metaKey : e.ctrlKey)) {\n e.preventDefault();\n }\n\n if (e.ctrlKey || e.metaKey || e.shiftKey || e.altKey) {\n return;\n }\n\n switch (e.key) {\n case 'ArrowLeft':\n e.preventDefault();\n e.stopPropagation();\n if (direction === 'rtl') {\n focusManager.focusNext({tabbable: true});\n } else {\n focusManager.focusPrevious({tabbable: true});\n }\n break;\n case 'ArrowRight':\n e.preventDefault();\n e.stopPropagation();\n if (direction === 'rtl') {\n focusManager.focusPrevious({tabbable: true});\n } else {\n focusManager.focusNext({tabbable: true});\n }\n break;\n case 'Enter':\n e.preventDefault();\n e.stopPropagation();\n if (segment.isPlaceholder && !state.isReadOnly) {\n state.confirmPlaceholder(segment.type);\n }\n focusManager.focusNext({tabbable: true});\n break;\n case 'Tab':\n break;\n case 'Backspace':\n case 'Delete': {\n // Safari on iOS does not fire beforeinput for the backspace key because the cursor is at the start.\n e.preventDefault();\n e.stopPropagation();\n backspace();\n break;\n }\n }\n };\n\n // Safari dayPeriod option doesn't work...\n let {startsWith} = useFilter({sensitivity: 'base'});\n let amPmFormatter = useDateFormatter({hour: 'numeric', hour12: true});\n let am = useMemo(() => {\n let date = new Date();\n date.setHours(0);\n return amPmFormatter.formatToParts(date).find(part => part.type === 'dayPeriod').value;\n }, [amPmFormatter]);\n\n let pm = useMemo(() => {\n let date = new Date();\n date.setHours(12);\n return amPmFormatter.formatToParts(date).find(part => part.type === 'dayPeriod').value;\n }, [amPmFormatter]);\n\n let onInput = (key: string) => {\n if (state.isDisabled || state.isReadOnly) {\n return;\n }\n\n let newValue = enteredKeys.current + key;\n\n switch (segment.type) {\n case 'dayPeriod':\n if (startsWith(am, key)) {\n state.setSegment('dayPeriod', 0);\n } else if (startsWith(pm, key)) {\n state.setSegment('dayPeriod', 12);\n } else {\n break;\n }\n focusManager.focusNext({tabbable: true});\n break;\n case 'day':\n case 'hour':\n case 'minute':\n case 'second':\n case 'month':\n case 'year': {\n if (!parser.isValidPartialNumber(newValue)) {\n return;\n }\n\n let numberValue = parser.parse(newValue);\n let segmentValue = numberValue;\n let allowsZero = segment.minValue === 0;\n if (segment.type === 'hour' && state.dateFormatter.resolvedOptions().hour12) {\n switch (state.dateFormatter.resolvedOptions().hourCycle) {\n case 'h11':\n if (numberValue > 11) {\n segmentValue = parser.parse(key);\n }\n break;\n case 'h12':\n allowsZero = false;\n if (numberValue > 12) {\n segmentValue = parser.parse(key);\n }\n break;\n }\n\n if (segment.value >= 12 && numberValue > 1) {\n numberValue += 12;\n }\n } else if (numberValue > segment.maxValue) {\n segmentValue = parser.parse(key);\n }\n\n if (isNaN(numberValue)) {\n return;\n }\n\n let shouldSetValue = segmentValue !== 0 || allowsZero;\n if (shouldSetValue) {\n state.setSegment(segment.type, segmentValue);\n }\n\n if (Number(numberValue + '0') > segment.maxValue || newValue.length >= String(segment.maxValue).length) {\n enteredKeys.current = '';\n if (shouldSetValue) {\n focusManager.focusNext({tabbable: true});\n }\n } else {\n enteredKeys.current = newValue;\n }\n break;\n }\n }\n };\n\n let onFocus = () => {\n enteredKeys.current = '';\n scrollIntoView(getScrollParent(ref.current) as HTMLElement, ref.current);\n\n // Safari requires that a selection is set or it won't fire input events.\n // Since usePress disables text selection, this won't happen by default.\n ref.current.style.webkitUserSelect = 'text';\n let selection = window.getSelection();\n selection.collapse(ref.current);\n ref.current.style.webkitUserSelect = '';\n };\n\n let compositionRef = useRef('');\n // @ts-ignore - TODO: possibly old TS version? doesn't fail in my editor...\n useEvent(ref, 'beforeinput', e => {\n e.preventDefault();\n\n switch (e.inputType) {\n case 'deleteContentBackward':\n case 'deleteContentForward':\n if (parser.isValidPartialNumber(segment.text) && !state.isReadOnly) {\n backspace();\n }\n break;\n case 'insertCompositionText':\n // insertCompositionText cannot be canceled.\n // Record the current state of the element so we can restore it in the `input` event below.\n compositionRef.current = ref.current.textContent;\n\n // Safari gets stuck in a composition state unless we also assign to the value here.\n // eslint-disable-next-line no-self-assign\n ref.current.textContent = ref.current.textContent;\n break;\n default:\n if (e.data != null) {\n onInput(e.data);\n }\n break;\n }\n });\n\n useEvent(ref, 'input', (e: InputEvent) => {\n let {inputType, data} = e;\n switch (inputType) {\n case 'insertCompositionText':\n // Reset the DOM to how it was in the beforeinput event.\n ref.current.textContent = compositionRef.current;\n\n // Android sometimes fires key presses of letters as composition events. Need to handle am/pm keys here too.\n // Can also happen e.g. with Pinyin keyboard on iOS.\n if (startsWith(am, data) || startsWith(pm, data)) {\n onInput(data);\n }\n break;\n }\n });\n\n // Focus on mouse down/touch up to match native textfield behavior.\n // usePress handles canceling text selection.\n let {pressProps} = usePress({\n preventFocusOnPress: true,\n onPressStart: (e) => {\n if (e.pointerType === 'mouse') {\n e.target.focus();\n }\n },\n onPress(e) {\n if (e.pointerType !== 'mouse') {\n e.target.focus();\n }\n }\n });\n\n // For Android: prevent selection on long press.\n useEvent(ref, 'selectstart', e => {\n e.preventDefault();\n });\n\n // spinbuttons cannot be focused with VoiceOver on iOS.\n let touchPropOverrides = isIOS() || segment.type === 'timeZoneName' ? {\n role: 'textbox',\n 'aria-valuemax': null,\n 'aria-valuemin': null,\n 'aria-valuetext': null,\n 'aria-valuenow': null\n } : {};\n\n // Only apply aria-describedby to the first segment, unless the field is invalid. This avoids it being\n // read every time the user navigates to a new segment.\n let firstSegment = useMemo(() => state.segments.find(s => s.isEditable), [state.segments]);\n if (segment !== firstSegment && state.validationState !== 'invalid') {\n ariaDescribedBy = undefined;\n }\n\n let id = useId();\n let isEditable = !state.isDisabled && !state.isReadOnly && segment.isEditable;\n\n // Literal segments should not be visible to screen readers. We don't really need any of the above,\n // but the rules of hooks mean hooks cannot be conditional so we have to put this condition here.\n if (segment.type === 'literal') {\n return {\n segmentProps: {\n 'aria-hidden': true\n }\n };\n }\n\n return {\n segmentProps: mergeProps(spinButtonProps, pressProps, {\n id,\n ...touchPropOverrides,\n 'aria-invalid': state.validationState === 'invalid' ? 'true' : undefined,\n 'aria-label': displayNames.of(segment.type),\n 'aria-labelledby': `${ariaLabelledBy} ${id}`,\n 'aria-describedby': ariaDescribedBy,\n 'aria-placeholder': segment.isPlaceholder ? segment.text : undefined,\n 'aria-readonly': state.isReadOnly || !segment.isEditable ? 'true' : undefined,\n contentEditable: isEditable,\n suppressContentEditableWarning: isEditable,\n spellCheck: isEditable ? 'false' : undefined,\n autoCapitalize: isEditable ? 'off' : undefined,\n autoCorrect: isEditable ? 'off' : undefined,\n // Capitalization was changed in React 17...\n [parseInt(React.version, 10) >= 17 ? 'enterKeyHint' : 'enterkeyhint']: isEditable ? 'next' : undefined,\n inputMode: state.isDisabled || segment.type === 'dayPeriod' || !isEditable ? undefined : 'numeric',\n tabIndex: state.isDisabled ? undefined : 0,\n onKeyDown,\n onFocus,\n style: {\n caretColor: 'transparent'\n }\n })\n };\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaDatePickerProps, AriaTimeFieldProps, DateValue, TimeValue} from '@react-types/datepicker';\nimport {createFocusManager, FocusManager} from '@react-aria/focus';\nimport {DatePickerFieldState} from '@react-stately/datepicker';\nimport {focusManagerSymbol} from './useDateRangePicker';\nimport {HTMLAttributes, RefObject, useEffect, useMemo, useRef} from 'react';\nimport {mergeProps, useDescription} from '@react-aria/utils';\nimport {useDateFormatter} from '@react-aria/i18n';\nimport {useDatePickerGroup} from './useDatePickerGroup';\nimport {useField} from '@react-aria/label';\nimport {useFocusWithin} from '@react-aria/interactions';\n\n// Allows this hook to also be used with TimeField\ninterface DateFieldProps<T extends DateValue> extends Omit<AriaDatePickerProps<T>, 'value' | 'defaultValue' | 'onChange' | 'minValue' | 'maxValue' | 'placeholderValue'> {}\n\ninterface DateFieldAria {\n /** Props for the field's visible label element, if any. */\n labelProps: HTMLAttributes<HTMLElement>,\n /** Props for the field grouping element. */\n fieldProps: HTMLAttributes<HTMLElement>,\n /** Props for the description element, if any. */\n descriptionProps: HTMLAttributes<HTMLElement>,\n /** Props for the error message element, if any. */\n errorMessageProps: HTMLAttributes<HTMLElement>\n}\n\n// Data that is passed between useDateField and useDateSegment.\ninterface HookData {\n ariaLabelledBy: string,\n ariaDescribedBy: string,\n focusManager: FocusManager\n}\n\nexport const hookData = new WeakMap<DatePickerFieldState, HookData>();\n\n/**\n * Provides the behavior and accessibility implementation for a date field component.\n * A date field allows users to enter and edit date and time values using a keyboard.\n * Each part of a date value is displayed in an individually editable segment.\n */\nexport function useDateField<T extends DateValue>(props: DateFieldProps<T>, state: DatePickerFieldState, ref: RefObject<HTMLElement>): DateFieldAria {\n let {labelProps, fieldProps, descriptionProps, errorMessageProps} = useField({\n ...props,\n labelElementType: 'span'\n });\n\n let groupProps = useDatePickerGroup(state, ref);\n\n let {focusWithinProps} = useFocusWithin({\n onBlurWithin() {\n state.confirmPlaceholder();\n }\n });\n\n let formatter = useDateFormatter(state.getFormatOptions({month: 'long'}));\n let descProps = useDescription(state.value ? formatter.format(state.dateValue) : null);\n\n let segmentLabelledBy = fieldProps['aria-labelledby'] || fieldProps.id;\n let describedBy = [descProps['aria-describedby'], fieldProps['aria-describedby']].filter(Boolean).join(' ') || undefined;\n let propsFocusManager = props[focusManagerSymbol];\n let focusManager = useMemo(() => propsFocusManager || createFocusManager(ref), [propsFocusManager, ref]);\n\n hookData.set(state, {\n ariaLabelledBy: segmentLabelledBy,\n ariaDescribedBy: describedBy,\n focusManager\n });\n\n let autoFocusRef = useRef(props.autoFocus);\n\n useEffect(() => {\n if (autoFocusRef.current) {\n focusManager.focusFirst();\n }\n autoFocusRef.current = false;\n }, [focusManager]);\n\n return {\n labelProps: {\n ...labelProps,\n onClick: () => {\n focusManager.focusFirst();\n }\n },\n fieldProps: mergeProps(fieldProps, descProps, groupProps, focusWithinProps, {\n role: 'group',\n 'aria-disabled': props.isDisabled || undefined,\n 'aria-describedby': describedBy\n }),\n descriptionProps,\n errorMessageProps\n };\n}\n\n/**\n * Provides the behavior and accessibility implementation for a time field component.\n * A time field allows users to enter and edit time values using a keyboard.\n * Each part of a time value is displayed in an individually editable segment.\n */\nexport function useTimeField<T extends TimeValue>(props: AriaTimeFieldProps<T>, state: DatePickerFieldState, ref: RefObject<HTMLElement>): DateFieldAria {\n return useDateField(props, state, ref);\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaButtonProps} from '@react-types/button';\nimport {AriaDatePickerProps, AriaDateRangePickerProps, DateValue} from '@react-types/datepicker';\nimport {AriaDialogProps} from '@react-types/dialog';\nimport {createFocusManager} from '@react-aria/focus';\nimport {DateRangePickerState} from '@react-stately/datepicker';\nimport {HTMLAttributes, RefObject, useMemo} from 'react';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {mergeProps, useDescription, useId, useLabels} from '@react-aria/utils';\nimport {RangeCalendarProps} from '@react-types/calendar';\nimport {useDatePickerGroup} from './useDatePickerGroup';\nimport {useField} from '@react-aria/label';\nimport {useFocusWithin} from '@react-aria/interactions';\nimport {useLocale, useMessageFormatter} from '@react-aria/i18n';\n\ninterface DateRangePickerAria {\n /** Props for the date range picker's visible label element, if any. */\n labelProps: HTMLAttributes<HTMLElement>,\n /** Props for the grouping element containing the date fields and button. */\n groupProps: HTMLAttributes<HTMLElement>,\n /** Props for the start date field. */\n startFieldProps: AriaDatePickerProps<DateValue>,\n /** Props for the end date field. */\n endFieldProps: AriaDatePickerProps<DateValue>,\n /** Props for the popover trigger button. */\n buttonProps: AriaButtonProps,\n /** Props for the description element, if any. */\n descriptionProps: HTMLAttributes<HTMLElement>,\n /** Props for the error message element, if any. */\n errorMessageProps: HTMLAttributes<HTMLElement>,\n /** Props for the popover dialog. */\n dialogProps: AriaDialogProps,\n /** Props for the range calendar within the popover dialog. */\n calendarProps: RangeCalendarProps<DateValue>\n}\n\n// Used to pass the focus manager to the date fields.\n// Ideally we'd use a Symbol for this, but React doesn't support them: https://github.com/facebook/react/issues/7552\nexport const focusManagerSymbol = '__focusManager_' + Date.now();\n\n/**\n * Provides the behavior and accessibility implementation for a date picker component.\n * A date range picker combines two DateFields and a RangeCalendar popover to allow\n * users to enter or select a date and time range.\n */\nexport function useDateRangePicker<T extends DateValue>(props: AriaDateRangePickerProps<T>, state: DateRangePickerState, ref: RefObject<HTMLElement>): DateRangePickerAria {\n let formatMessage = useMessageFormatter(intlMessages);\n let {labelProps, fieldProps, descriptionProps, errorMessageProps} = useField({\n ...props,\n labelElementType: 'span'\n });\n\n let labelledBy = fieldProps['aria-labelledby'] || fieldProps.id;\n\n let {locale} = useLocale();\n let description = state.formatValue(locale, {month: 'long'});\n let descProps = useDescription(description);\n\n let startFieldProps = useLabels({\n 'aria-label': formatMessage('startDate'),\n 'aria-labelledby': labelledBy\n });\n\n let endFieldProps = useLabels({\n 'aria-label': formatMessage('endDate'),\n 'aria-labelledby': labelledBy\n });\n\n let buttonId = useId();\n let dialogId = useId();\n\n let groupProps = useDatePickerGroup(state, ref);\n let {focusWithinProps} = useFocusWithin({\n onBlurWithin() {\n state.confirmPlaceholder();\n }\n });\n\n let ariaDescribedBy = [descProps['aria-describedby'], fieldProps['aria-describedby']].filter(Boolean).join(' ') || undefined;\n let focusManager = useMemo(() => createFocusManager(ref), [ref]);\n let commonFieldProps = {\n [focusManagerSymbol]: focusManager,\n minValue: props.minValue,\n maxValue: props.maxValue,\n placeholderValue: props.placeholderValue,\n hideTimeZone: props.hideTimeZone,\n hourCycle: props.hourCycle,\n granularity: props.granularity,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isRequired: props.isRequired,\n validationState: state.validationState\n };\n\n return {\n groupProps: mergeProps(groupProps, fieldProps, descProps, focusWithinProps, {\n role: 'group',\n 'aria-disabled': props.isDisabled || null,\n 'aria-describedby': ariaDescribedBy\n }),\n labelProps: {\n ...labelProps,\n onClick: () => {\n focusManager.focusFirst();\n }\n },\n buttonProps: {\n ...descProps,\n id: buttonId,\n excludeFromTabOrder: true,\n 'aria-haspopup': 'dialog',\n 'aria-label': formatMessage('calendar'),\n 'aria-labelledby': `${labelledBy} ${buttonId}`,\n 'aria-describedby': ariaDescribedBy,\n onPress: () => state.setOpen(true)\n },\n dialogProps: {\n id: dialogId,\n 'aria-labelledby': `${labelledBy} ${buttonId}`\n },\n startFieldProps: {\n ...startFieldProps,\n ...commonFieldProps,\n 'aria-describedby': fieldProps['aria-describedby'],\n value: state.value?.start,\n onChange: start => state.setDateTime('start', start),\n autoFocus: props.autoFocus\n },\n endFieldProps: {\n ...endFieldProps,\n ...commonFieldProps,\n 'aria-describedby': fieldProps['aria-describedby'],\n value: state.value?.end,\n onChange: end => state.setDateTime('end', end)\n },\n descriptionProps,\n errorMessageProps,\n calendarProps: {\n autoFocus: true,\n value: state.dateRange,\n onChange: state.setDateRange,\n minValue: props.minValue,\n maxValue: props.maxValue,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isDateDisabled: props.isDateDisabled\n }\n };\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {MessageDictionary} from '@internationalized/message';\nimport {useLocale} from '@react-aria/i18n';\nimport {useMemo} from 'react';\n\ntype Field = 'era' | 'year' | 'month' | 'day' | 'hour' | 'minute' | 'second' | 'dayPeriod' | 'timeZoneName' | 'weekday';\ninterface DisplayNames {\n of(field: Field): string\n}\n\nexport function useDisplayNames(): DisplayNames {\n let {locale} = useLocale();\n return useMemo(() => {\n // Try to use Intl.DisplayNames if possible. It may be supported in browsers, but not support the dateTimeField\n // type as that was only added in v2. https://github.com/tc39/intl-displaynames-v2\n try {\n // @ts-ignore\n return new Intl.DisplayNames(locale, {type: 'dateTimeField'});\n } catch (err) {\n return new DisplayNamesPolyfill(locale);\n }\n }, [locale]);\n}\n\nclass DisplayNamesPolyfill implements DisplayNames {\n private locale: string;\n private dictionary: MessageDictionary;\n\n constructor(locale: string) {\n this.locale = locale;\n this.dictionary = new MessageDictionary(intlMessages);\n }\n\n of(field: Field): string {\n return this.dictionary.getStringForLocale(field, this.locale);\n }\n}\n"],"names":[],"version":3,"file":"main.js.map"}
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AGAA,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA4c;;;;ACAxe,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA8d;;;;ACA1f,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA2d;;;;ACAvf,yBAAc,GAAG,IAAI,CAAC,K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,CAAC,OAAO,CAAC,IAAI;YAC1C,CAAiB,qBAAK,cAAc,CAAC,CAAC,EAAE,EAAE;YAC1C,CAAkB,mBAAE,eAAe;YACnC,CAAkB,mBAAE,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,IAAI,GAAG,SAAS;YACpE,CAAe,gBAAE,KAAK,CAAC,UAAU,KAAK,OAAO,CAAC,UAAU,GAAG,CAAM,QAAG,SAAS;YAC7E,eAAe,EAAE,UAAU;YAC3B,8BAA8B,EAAE,UAAU;YAC1C,UAAU,EAAE,UAAU,GAAG,CAAO,SAAG,SAAS;YAC5C,cAAc,EAAE,UAAU,GAAG,CAAK,OAAG,SAAS;YAC9C,WAAW,EAAE,UAAU,GAAG,CAAK,OAAG,SAAS;YAC3C,EAA4C,AAA5C,0CAA4C;aAC3C,QAAQ,CAAC,sCAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,CAAc,gBAAG,CAAc,gBAAG,UAAU,GAAG,CAAM,QAAG,SAAS;YACtG,SAAS,EAAE,KAAK,CAAC,UAAU,IAAI,OAAO,CAAC,IAAI,KAAK,CAAW,eAAK,UAAU,GAAG,SAAS,GAAG,CAAS;YAClG,QAAQ,EAAE,KAAK,CAAC,UAAU,GAAG,SAAS,GAAG,CAAC;uBAC1C,SAAS;qBACT,OAAO;YACP,KAAK,EAAE,CAAC;gBACN,UAAU,EAAE,CAAa;YAC3B,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC;;","sources":["packages/@react-aria/datepicker/src/index.ts","packages/@react-aria/datepicker/src/useDatePicker.ts","packages/@react-aria/datepicker/intl/*.js","packages/@react-aria/datepicker/intl/ar-AE.json","packages/@react-aria/datepicker/intl/bg-BG.json","packages/@react-aria/datepicker/intl/cs-CZ.json","packages/@react-aria/datepicker/intl/da-DK.json","packages/@react-aria/datepicker/intl/de-DE.json","packages/@react-aria/datepicker/intl/el-GR.json","packages/@react-aria/datepicker/intl/en-US.json","packages/@react-aria/datepicker/intl/es-ES.json","packages/@react-aria/datepicker/intl/et-EE.json","packages/@react-aria/datepicker/intl/fi-FI.json","packages/@react-aria/datepicker/intl/fr-FR.json","packages/@react-aria/datepicker/intl/he-IL.json","packages/@react-aria/datepicker/intl/hr-HR.json","packages/@react-aria/datepicker/intl/hu-HU.json","packages/@react-aria/datepicker/intl/it-IT.json","packages/@react-aria/datepicker/intl/ja-JP.json","packages/@react-aria/datepicker/intl/ko-KR.json","packages/@react-aria/datepicker/intl/lt-LT.json","packages/@react-aria/datepicker/intl/lv-LV.json","packages/@react-aria/datepicker/intl/nb-NO.json","packages/@react-aria/datepicker/intl/nl-NL.json","packages/@react-aria/datepicker/intl/pl-PL.json","packages/@react-aria/datepicker/intl/pt-BR.json","packages/@react-aria/datepicker/intl/pt-PT.json","packages/@react-aria/datepicker/intl/ro-RO.json","packages/@react-aria/datepicker/intl/ru-RU.json","packages/@react-aria/datepicker/intl/sk-SK.json","packages/@react-aria/datepicker/intl/sl-SI.json","packages/@react-aria/datepicker/intl/sr-SP.json","packages/@react-aria/datepicker/intl/sv-SE.json","packages/@react-aria/datepicker/intl/tr-TR.json","packages/@react-aria/datepicker/intl/uk-UA.json","packages/@react-aria/datepicker/intl/zh-CN.json","packages/@react-aria/datepicker/intl/zh-TW.json","packages/@react-aria/datepicker/src/useDatePickerGroup.ts","packages/@react-aria/datepicker/src/useDateSegment.ts","packages/@react-aria/datepicker/src/useDateField.ts","packages/@react-aria/datepicker/src/useDateRangePicker.ts","packages/@react-aria/datepicker/src/useDisplayNames.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport {useDatePicker} from './useDatePicker';\nexport {useDateSegment} from './useDateSegment';\nexport {useDateField, useTimeField} from './useDateField';\nexport {useDateRangePicker} from './useDateRangePicker';\nexport * from './useDisplayNames';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaButtonProps} from '@react-types/button';\nimport {AriaDatePickerProps, DateValue} from '@react-types/datepicker';\nimport {AriaDialogProps} from '@react-types/dialog';\nimport {CalendarProps} from '@react-types/calendar';\nimport {createFocusManager} from '@react-aria/focus';\nimport {DatePickerState} from '@react-stately/datepicker';\nimport {HTMLAttributes, RefObject} from 'react';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {mergeProps, useDescription, useId} from '@react-aria/utils';\nimport {useDatePickerGroup} from './useDatePickerGroup';\nimport {useField} from '@react-aria/label';\nimport {useLocale, useMessageFormatter} from '@react-aria/i18n';\n\ninterface DatePickerAria {\n /** Props for the date picker's visible label element, if any. */\n labelProps: HTMLAttributes<HTMLElement>,\n /** Props for the grouping element containing the date field and button. */\n groupProps: HTMLAttributes<HTMLElement>,\n /** Props for the date field. */\n fieldProps: AriaDatePickerProps<DateValue>,\n /** Props for the popover trigger button. */\n buttonProps: AriaButtonProps,\n /** Props for the description element, if any. */\n descriptionProps: HTMLAttributes<HTMLElement>,\n /** Props for the error message element, if any. */\n errorMessageProps: HTMLAttributes<HTMLElement>,\n /** Props for the popover dialog. */\n dialogProps: AriaDialogProps,\n /** Props for the calendar within the popover dialog. */\n calendarProps: CalendarProps<DateValue>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a date picker component.\n * A date picker combines a DateField and a Calendar popover to allow users to enter or select a date and time value.\n */\nexport function useDatePicker<T extends DateValue>(props: AriaDatePickerProps<T>, state: DatePickerState, ref: RefObject<HTMLElement>): DatePickerAria {\n let buttonId = useId();\n let dialogId = useId();\n let formatMessage = useMessageFormatter(intlMessages);\n\n let {labelProps, fieldProps, descriptionProps, errorMessageProps} = useField({\n ...props,\n labelElementType: 'span'\n });\n\n let groupProps = useDatePickerGroup(state, ref);\n\n let labelledBy = fieldProps['aria-labelledby'] || fieldProps.id;\n\n let {locale} = useLocale();\n let descProps = useDescription(state.formatValue(locale, {month: 'long'}));\n let ariaDescribedBy = [descProps['aria-describedby'], fieldProps['aria-describedby']].filter(Boolean).join(' ') || undefined;\n\n return {\n groupProps: mergeProps(groupProps, descProps, {\n role: 'group',\n 'aria-disabled': props.isDisabled || null,\n 'aria-labelledby': labelledBy,\n 'aria-describedby': ariaDescribedBy\n }),\n labelProps: {\n ...labelProps,\n onClick: () => {\n let focusManager = createFocusManager(ref);\n focusManager.focusFirst();\n }\n },\n fieldProps: {\n ...fieldProps,\n value: state.value,\n onChange: state.setValue,\n minValue: props.minValue,\n maxValue: props.maxValue,\n placeholderValue: props.placeholderValue,\n hideTimeZone: props.hideTimeZone,\n hourCycle: props.hourCycle,\n granularity: props.granularity,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isRequired: props.isRequired,\n validationState: state.validationState,\n autoFocus: props.autoFocus\n },\n descriptionProps,\n errorMessageProps,\n buttonProps: {\n ...descProps,\n id: buttonId,\n excludeFromTabOrder: true,\n 'aria-haspopup': 'dialog',\n 'aria-label': formatMessage('calendar'),\n 'aria-labelledby': `${labelledBy} ${buttonId}`,\n 'aria-describedby': ariaDescribedBy,\n onPress: () => state.setOpen(true)\n },\n dialogProps: {\n id: dialogId,\n 'aria-labelledby': `${labelledBy} ${buttonId}`\n },\n calendarProps: {\n autoFocus: true,\n value: state.dateValue,\n onChange: state.setDateValue,\n minValue: props.minValue,\n maxValue: props.maxValue,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isDateDisabled: props.isDateDisabled,\n defaultFocusedValue: state.dateValue ? undefined : props.placeholderValue\n }\n };\n}\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"calendar\": \"التقويم\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} إلى {end, date, long}\",\n \"date\": \"التاريخ\",\n \"dateRange\": \"نطاق التاريخ\",\n \"day\": \"يوم\",\n \"dayPeriod\": \"ص/م\",\n \"endDate\": \"تاريخ الانتهاء\",\n \"era\": \"العصر\",\n \"hour\": \"الساعات\",\n \"minute\": \"الدقائق\",\n \"month\": \"الشهر\",\n \"second\": \"الثواني\",\n \"startDate\": \"تاريخ البدء\",\n \"year\": \"السنة\",\n \"weekday\": \"اليوم\",\n \"timeZoneName\": \"التوقيت\"\n}\n","{\n \"calendar\": \"Календар\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} до {end, date, long}\",\n \"date\": \"Дата\",\n \"dateRange\": \"Времеви интервал\",\n \"day\": \"ден\",\n \"dayPeriod\": \"пр.об./сл.об.\",\n \"endDate\": \"Крайна дата\",\n \"era\": \"ера\",\n \"hour\": \"час\",\n \"minute\": \"минута\",\n \"month\": \"месец\",\n \"second\": \"секунда\",\n \"startDate\": \"Начална дата\",\n \"year\": \"година\",\n \"weekday\": \"ден от седмицата\",\n \"timeZoneName\": \"часова зона\"\n}\n","{\n \"calendar\": \"Kalendář\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} až {end, date, long}\",\n \"date\": \"Datum\",\n \"dateRange\": \"Rozsah dat\",\n \"day\": \"den\",\n \"dayPeriod\": \"část dne\",\n \"endDate\": \"Konečné datum\",\n \"era\": \"letopočet\",\n \"hour\": \"hodina\",\n \"minute\": \"minuta\",\n \"month\": \"měsíc\",\n \"second\": \"sekunda\",\n \"startDate\": \"Počáteční datum\",\n \"year\": \"rok\",\n \"weekday\": \"den v týdnu\",\n \"timeZoneName\": \"časové pásmo\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} til {end, date, long}\",\n \"date\": \"Dato\",\n \"dateRange\": \"Datointerval\",\n \"day\": \"dag\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Slutdato\",\n \"era\": \"æra\",\n \"hour\": \"time\",\n \"minute\": \"minut\",\n \"month\": \"måned\",\n \"second\": \"sekund\",\n \"startDate\": \"Startdato\",\n \"year\": \"år\",\n \"weekday\": \"ugedag\",\n \"timeZoneName\": \"tidszone\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} bis {end, date, long}\",\n \"date\": \"Datum\",\n \"dateRange\": \"Datumsbereich\",\n \"day\": \"Tag\",\n \"dayPeriod\": \"Tageshälfte\",\n \"endDate\": \"Enddatum\",\n \"era\": \"Epoche\",\n \"hour\": \"Stunde\",\n \"minute\": \"Minute\",\n \"month\": \"Monat\",\n \"second\": \"Sekunde\",\n \"startDate\": \"Anfangsdatum\",\n \"year\": \"Jahr\",\n \"weekday\": \"Wochentag\",\n \"timeZoneName\": \"Zeitzone\"\n}\n","{\n \"calendar\": \"Ημερολόγιο\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} ως {end, date, long}\",\n \"date\": \"Ημερομηνία\",\n \"dateRange\": \"Εύρος ημερομηνιών\",\n \"day\": \"ημέρα\",\n \"dayPeriod\": \"π.μ./μ.μ.\",\n \"endDate\": \"Ημερομηνία λήξης\",\n \"era\": \"περίοδος\",\n \"hour\": \"ώρα\",\n \"minute\": \"λεπτό\",\n \"month\": \"μήνας\",\n \"second\": \"δευτερόλεπτο\",\n \"startDate\": \"Ημερομηνία έναρξης\",\n \"year\": \"έτος\",\n \"weekday\": \"καθημερινή\",\n \"timeZoneName\": \"ζώνη ώρας\"\n}\n","{\n \"era\": \"era\",\n \"year\": \"year\",\n \"month\": \"month\",\n \"day\": \"day\",\n \"hour\": \"hour\",\n \"minute\": \"minute\",\n \"second\": \"second\",\n \"dayPeriod\": \"AM/PM\",\n \"calendar\": \"Calendar\",\n \"date\": \"Date\",\n \"dateRange\": \"Date Range\",\n \"startDate\": \"Start Date\",\n \"endDate\": \"End Date\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} to {end, date, long}\",\n \"weekday\": \"day of the week\",\n \"timeZoneName\": \"time zone\"\n}\n","{\n \"calendar\": \"Calendario\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} a {end, date, long}\",\n \"date\": \"Fecha\",\n \"dateRange\": \"Intervalo de fecha\",\n \"day\": \"día\",\n \"dayPeriod\": \"a. m./p. m.\",\n \"endDate\": \"Fecha final\",\n \"era\": \"era\",\n \"hour\": \"hora\",\n \"minute\": \"minuto\",\n \"month\": \"mes\",\n \"second\": \"segundo\",\n \"startDate\": \"Fecha de inicio\",\n \"year\": \"año\",\n \"weekday\": \"día de la semana\",\n \"timeZoneName\": \"zona horaria\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} kuni {end, date, long}\",\n \"date\": \"Kuupäev\",\n \"dateRange\": \"Kuupäevavahemik\",\n \"day\": \"päev\",\n \"dayPeriod\": \"enne/pärast lõunat\",\n \"endDate\": \"Lõppkuupäev\",\n \"era\": \"ajastu\",\n \"hour\": \"tund\",\n \"minute\": \"minut\",\n \"month\": \"kuu\",\n \"second\": \"sekund\",\n \"startDate\": \"Alguskuupäev\",\n \"year\": \"aasta\",\n \"weekday\": \"nädalapäev\",\n \"timeZoneName\": \"ajavöönd\"\n}\n","{\n \"calendar\": \"Kalenteri\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long}–{end, date, long}\",\n \"date\": \"Päivämäärä\",\n \"dateRange\": \"Päivämääräalue\",\n \"day\": \"päivä\",\n \"dayPeriod\": \"vuorokaudenaika\",\n \"endDate\": \"Päättymispäivä\",\n \"era\": \"aikakausi\",\n \"hour\": \"tunti\",\n \"minute\": \"minuutti\",\n \"month\": \"kuukausi\",\n \"second\": \"sekunti\",\n \"startDate\": \"Alkamispäivä\",\n \"year\": \"vuosi\",\n \"weekday\": \"viikonpäivä\",\n \"timeZoneName\": \"aikavyöhyke\"\n}\n","{\n \"calendar\": \"Calendrier\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} au {end, date, long}\",\n \"date\": \"Date\",\n \"dateRange\": \"Plage de dates\",\n \"day\": \"jour\",\n \"dayPeriod\": \"cadran\",\n \"endDate\": \"Date de fin\",\n \"era\": \"ère\",\n \"hour\": \"heure\",\n \"minute\": \"minute\",\n \"month\": \"mois\",\n \"second\": \"seconde\",\n \"startDate\": \"Date de début\",\n \"year\": \"année\",\n \"weekday\": \"jour de la semaine\",\n \"timeZoneName\": \"fuseau horaire\"\n}\n","{\n \"calendar\": \"לוח שנה\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"מ-{start, date, long} ועד {end, date, long}\",\n \"date\": \"תאריך\",\n \"dateRange\": \"טווח תאריכים\",\n \"day\": \"יום\",\n \"dayPeriod\": \"לפנה״צ/אחה״צ\",\n \"endDate\": \"תאריך סיום\",\n \"era\": \"תקופה\",\n \"hour\": \"שעה\",\n \"minute\": \"דקה\",\n \"month\": \"חודש\",\n \"second\": \"שנייה\",\n \"startDate\": \"תאריך התחלה\",\n \"year\": \"שנה\",\n \"weekday\": \"יום בשבוע\",\n \"timeZoneName\": \"אזור זמן\"\n}\n","{\n \"calendar\": \"Kalendar\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} do {end, date, long}\",\n \"date\": \"Datum\",\n \"dateRange\": \"Raspon datuma\",\n \"day\": \"dan\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Datum završetka\",\n \"era\": \"era\",\n \"hour\": \"sat\",\n \"minute\": \"minuta\",\n \"month\": \"mjesec\",\n \"second\": \"sekunda\",\n \"startDate\": \"Datum početka\",\n \"year\": \"godina\",\n \"weekday\": \"dan u tjednu\",\n \"timeZoneName\": \"vremenska zona\"\n}\n","{\n \"calendar\": \"Naptár\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} – {end, date, long}\",\n \"date\": \"Dátum\",\n \"dateRange\": \"Dátumtartomány\",\n \"day\": \"nap\",\n \"dayPeriod\": \"napszak\",\n \"endDate\": \"Befejező dátum\",\n \"era\": \"éra\",\n \"hour\": \"óra\",\n \"minute\": \"perc\",\n \"month\": \"hónap\",\n \"second\": \"másodperc\",\n \"startDate\": \"Kezdő dátum\",\n \"year\": \"év\",\n \"weekday\": \"hét napja\",\n \"timeZoneName\": \"időzóna\"\n}\n","{\n \"calendar\": \"Calendario\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"Da {start, date, long} a {end, date, long}\",\n \"date\": \"Data\",\n \"dateRange\": \"Intervallo date\",\n \"day\": \"giorno\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Data finale\",\n \"era\": \"era\",\n \"hour\": \"ora\",\n \"minute\": \"minuto\",\n \"month\": \"mese\",\n \"second\": \"secondo\",\n \"startDate\": \"Data iniziale\",\n \"year\": \"anno\",\n \"weekday\": \"giorno della settimana\",\n \"timeZoneName\": \"fuso orario\"\n}\n","{\n \"calendar\": \"カレンダー\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} ~ {end, date, long}\",\n \"date\": \"日付\",\n \"dateRange\": \"日付範囲\",\n \"day\": \"日\",\n \"dayPeriod\": \"午前/午後\",\n \"endDate\": \"終了日\",\n \"era\": \"時代\",\n \"hour\": \"時\",\n \"minute\": \"分\",\n \"month\": \"月\",\n \"second\": \"秒\",\n \"startDate\": \"開始日\",\n \"year\": \"年\",\n \"weekday\": \"曜日\",\n \"timeZoneName\": \"タイムゾーン\"\n}\n","{\n \"calendar\": \"달력\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} ~ {end, date, long}\",\n \"date\": \"날짜\",\n \"dateRange\": \"날짜 범위\",\n \"day\": \"일\",\n \"dayPeriod\": \"오전/오후\",\n \"endDate\": \"종료 날짜\",\n \"era\": \"연호\",\n \"hour\": \"시\",\n \"minute\": \"분\",\n \"month\": \"월\",\n \"second\": \"초\",\n \"startDate\": \"시작 날짜\",\n \"year\": \"년\",\n \"weekday\": \"요일\",\n \"timeZoneName\": \"시간대\"\n}\n","{\n \"calendar\": \"Kalendorius\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"Nuo {start, date, long} iki {end, date, long}\",\n \"date\": \"Data\",\n \"dateRange\": \"Datų intervalas\",\n \"day\": \"diena\",\n \"dayPeriod\": \"iki pietų / po pietų\",\n \"endDate\": \"Pabaigos data\",\n \"era\": \"era\",\n \"hour\": \"valanda\",\n \"minute\": \"minutė\",\n \"month\": \"mėnuo\",\n \"second\": \"sekundė\",\n \"startDate\": \"Pradžios data\",\n \"year\": \"metai\",\n \"weekday\": \"savaitės diena\",\n \"timeZoneName\": \"laiko juosta\"\n}\n","{\n \"calendar\": \"Kalendārs\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} līdz {end, date, long}\",\n \"date\": \"Datums\",\n \"dateRange\": \"Datumu diapazons\",\n \"day\": \"diena\",\n \"dayPeriod\": \"priekšpusdienā/pēcpusdienā\",\n \"endDate\": \"Beigu datums\",\n \"era\": \"ēra\",\n \"hour\": \"stundas\",\n \"minute\": \"minūtes\",\n \"month\": \"mēnesis\",\n \"second\": \"sekundes\",\n \"startDate\": \"Sākuma datums\",\n \"year\": \"gads\",\n \"weekday\": \"nedēļas diena\",\n \"timeZoneName\": \"laika josla\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} til {end, date, long}\",\n \"date\": \"Dato\",\n \"dateRange\": \"Datoområde\",\n \"day\": \"dag\",\n \"dayPeriod\": \"a.m./p.m.\",\n \"endDate\": \"Sluttdato\",\n \"era\": \"tidsalder\",\n \"hour\": \"time\",\n \"minute\": \"minutt\",\n \"month\": \"måned\",\n \"second\": \"sekund\",\n \"startDate\": \"Startdato\",\n \"year\": \"år\",\n \"weekday\": \"ukedag\",\n \"timeZoneName\": \"tidssone\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} t/m {end, date, long}\",\n \"date\": \"Datum\",\n \"dateRange\": \"Datumbereik\",\n \"day\": \"dag\",\n \"dayPeriod\": \"a.m./p.m.\",\n \"endDate\": \"Einddatum\",\n \"era\": \"tijdperk\",\n \"hour\": \"uur\",\n \"minute\": \"minuut\",\n \"month\": \"maand\",\n \"second\": \"seconde\",\n \"startDate\": \"Startdatum\",\n \"year\": \"jaar\",\n \"weekday\": \"dag van de week\",\n \"timeZoneName\": \"tijdzone\"\n}\n","{\n \"calendar\": \"Kalendarz\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} do {end, date, long}\",\n \"date\": \"Data\",\n \"dateRange\": \"Zakres dat\",\n \"day\": \"dzień\",\n \"dayPeriod\": \"rano / po południu / wieczorem\",\n \"endDate\": \"Data końcowa\",\n \"era\": \"era\",\n \"hour\": \"godzina\",\n \"minute\": \"minuta\",\n \"month\": \"miesiąc\",\n \"second\": \"sekunda\",\n \"startDate\": \"Data początkowa\",\n \"year\": \"rok\",\n \"weekday\": \"dzień tygodnia\",\n \"timeZoneName\": \"strefa czasowa\"\n}\n","{\n \"calendar\": \"Calendário\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} a {end, date, long}\",\n \"date\": \"Data\",\n \"dateRange\": \"Intervalo de datas\",\n \"day\": \"dia\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Data final\",\n \"era\": \"era\",\n \"hour\": \"hora\",\n \"minute\": \"minuto\",\n \"month\": \"mês\",\n \"second\": \"segundo\",\n \"startDate\": \"Data inicial\",\n \"year\": \"ano\",\n \"weekday\": \"dia da semana\",\n \"timeZoneName\": \"fuso horário\"\n}\n","{\n \"calendar\": \"Calendário\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} a {end, date, long}\",\n \"date\": \"Data\",\n \"dateRange\": \"Intervalo de datas\",\n \"day\": \"dia\",\n \"dayPeriod\": \"am/pm\",\n \"endDate\": \"Data de Término\",\n \"era\": \"era\",\n \"hour\": \"hora\",\n \"minute\": \"minuto\",\n \"month\": \"mês\",\n \"second\": \"segundo\",\n \"startDate\": \"Data de Início\",\n \"year\": \"ano\",\n \"weekday\": \"dia da semana\",\n \"timeZoneName\": \"fuso horário\"\n}\n","{\n \"calendar\": \"Calendar\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} - {end, date, long}\",\n \"date\": \"Dată\",\n \"dateRange\": \"Raza datei\",\n \"day\": \"zi\",\n \"dayPeriod\": \"a.m/p.m.\",\n \"endDate\": \"Dată final\",\n \"era\": \"eră\",\n \"hour\": \"oră\",\n \"minute\": \"minut\",\n \"month\": \"lună\",\n \"second\": \"secundă\",\n \"startDate\": \"Dată început\",\n \"year\": \"an\",\n \"weekday\": \"ziua din săptămână\",\n \"timeZoneName\": \"fus orar\"\n}\n","{\n \"calendar\": \"Календарь\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} – {end, date, long}\",\n \"date\": \"Дата\",\n \"dateRange\": \"Диапазон дат\",\n \"day\": \"день\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Дата окончания\",\n \"era\": \"эра\",\n \"hour\": \"час\",\n \"minute\": \"минута\",\n \"month\": \"месяц\",\n \"second\": \"секунда\",\n \"startDate\": \"Дата начала\",\n \"year\": \"год\",\n \"weekday\": \"день недели\",\n \"timeZoneName\": \"часовой пояс\"\n}\n","{\n \"calendar\": \"Kalendár\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} do {end, date, long}\",\n \"date\": \"Dátum\",\n \"dateRange\": \"Rozsah dátumov\",\n \"day\": \"deň\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Dátum ukončenia\",\n \"era\": \"letopočet\",\n \"hour\": \"hodina\",\n \"minute\": \"minúta\",\n \"month\": \"mesiac\",\n \"second\": \"sekunda\",\n \"startDate\": \"Dátum začatia\",\n \"year\": \"rok\",\n \"weekday\": \"deň týždňa\",\n \"timeZoneName\": \"časové pásmo\"\n}\n","{\n \"calendar\": \"Koledar\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} do {end, date, long}\",\n \"date\": \"Datum\",\n \"dateRange\": \"Datumski obseg\",\n \"day\": \"dan\",\n \"dayPeriod\": \"dop/pop\",\n \"endDate\": \"Datum konca\",\n \"era\": \"doba\",\n \"hour\": \"ura\",\n \"minute\": \"minuta\",\n \"month\": \"mesec\",\n \"second\": \"sekunda\",\n \"startDate\": \"Datum začetka\",\n \"year\": \"leto\",\n \"weekday\": \"dan v tednu\",\n \"timeZoneName\": \"časovni pas\"\n}\n","{\n \"calendar\": \"Kalendar\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} do {end, date, long}\",\n \"date\": \"Datum\",\n \"dateRange\": \"Opseg datuma\",\n \"day\": \"дан\",\n \"dayPeriod\": \"пре подне/по подне\",\n \"endDate\": \"Datum završetka\",\n \"era\": \"ера\",\n \"hour\": \"сат\",\n \"minute\": \"минут\",\n \"month\": \"месец\",\n \"second\": \"секунд\",\n \"startDate\": \"Datum početka\",\n \"year\": \"година\",\n \"weekday\": \"дан у недељи\",\n \"timeZoneName\": \"временска зона\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} till {end, date, long}\",\n \"date\": \"Datum\",\n \"dateRange\": \"Datumintervall\",\n \"day\": \"dag\",\n \"dayPeriod\": \"fm/em\",\n \"endDate\": \"Slutdatum\",\n \"era\": \"era\",\n \"hour\": \"timme\",\n \"minute\": \"minut\",\n \"month\": \"månad\",\n \"second\": \"sekund\",\n \"startDate\": \"Startdatum\",\n \"year\": \"år\",\n \"weekday\": \"veckodag\",\n \"timeZoneName\": \"tidszon\"\n}\n","{\n \"calendar\": \"Takvim\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} - {end, date, long}\",\n \"date\": \"Tarih\",\n \"dateRange\": \"Tarih Aralığı\",\n \"day\": \"gün\",\n \"dayPeriod\": \"ÖÖ/ÖS\",\n \"endDate\": \"Bitiş Tarihi\",\n \"era\": \"çağ\",\n \"hour\": \"saat\",\n \"minute\": \"dakika\",\n \"month\": \"ay\",\n \"second\": \"saniye\",\n \"startDate\": \"Başlangıç Tarihi\",\n \"year\": \"yıl\",\n \"weekday\": \"haftanın günü\",\n \"timeZoneName\": \"saat dilimi\"\n}\n","{\n \"calendar\": \"Календар\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"Від {start, date, long} до {end, date, long}\",\n \"date\": \"Дата\",\n \"dateRange\": \"Діапазон дат\",\n \"day\": \"день\",\n \"dayPeriod\": \"дп/пп\",\n \"endDate\": \"Дата завершення\",\n \"era\": \"ера\",\n \"hour\": \"година\",\n \"minute\": \"хвилина\",\n \"month\": \"місяць\",\n \"second\": \"секунда\",\n \"startDate\": \"Дата початку\",\n \"year\": \"рік\",\n \"weekday\": \"день тижня\",\n \"timeZoneName\": \"часовий пояс\"\n}\n","{\n \"calendar\": \"日历\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} 至 {end, date, long}\",\n \"date\": \"日期\",\n \"dateRange\": \"日期范围\",\n \"day\": \"日\",\n \"dayPeriod\": \"上午/下午\",\n \"endDate\": \"结束日期\",\n \"era\": \"纪元\",\n \"hour\": \"小时\",\n \"minute\": \"分钟\",\n \"month\": \"月\",\n \"second\": \"秒\",\n \"startDate\": \"开始日期\",\n \"year\": \"年\",\n \"weekday\": \"工作日\",\n \"timeZoneName\": \"时区\"\n}\n","{\n \"calendar\": \"日曆\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long}至 {end, date, long}\",\n \"date\": \"日期\",\n \"dateRange\": \"日期範圍\",\n \"day\": \"日\",\n \"dayPeriod\": \"上午/下午\",\n \"endDate\": \"結束日期\",\n \"era\": \"纪元\",\n \"hour\": \"小时\",\n \"minute\": \"分钟\",\n \"month\": \"月\",\n \"second\": \"秒\",\n \"startDate\": \"開始日期\",\n \"year\": \"年\",\n \"weekday\": \"工作日\",\n \"timeZoneName\": \"时区\"\n}\n","import {DatePickerFieldState, DatePickerState, DateRangePickerState} from '@react-stately/datepicker';\nimport {getFocusableTreeWalker} from '@react-aria/focus';\nimport {KeyboardEvent} from '@react-types/shared';\nimport {mergeProps} from '@react-aria/utils';\nimport {RefObject} from 'react';\nimport {usePress} from '@react-aria/interactions';\n\nexport function useDatePickerGroup(state: DatePickerState | DateRangePickerState | DatePickerFieldState, ref: RefObject<HTMLElement>) {\n // Open the popover on alt + arrow down\n let onKeyDown = (e: KeyboardEvent) => {\n if (e.altKey && e.key === 'ArrowDown' && 'setOpen' in state) {\n e.preventDefault();\n e.stopPropagation();\n state.setOpen(true);\n }\n };\n\n // Focus the first placeholder segment from the end on mouse down/touch up in the field.\n let focusLast = () => {\n // Try to find the segment prior to the element that was clicked on.\n let target = window.event?.target as HTMLElement;\n let walker = getFocusableTreeWalker(ref.current, {tabbable: true});\n if (target) {\n walker.currentNode = target;\n target = walker.previousNode() as HTMLElement;\n }\n\n // If no target found, find the last element from the end.\n if (!target) {\n let last: HTMLElement;\n do {\n last = walker.lastChild() as HTMLElement;\n if (last) {\n target = last;\n }\n } while (last);\n }\n\n // Now go backwards until we find an element that is not a placeholder.\n while (target?.getAttribute('aria-placeholder')) {\n let prev = walker.previousNode() as HTMLElement;\n if (prev && prev.getAttribute('aria-placeholder')) {\n target = prev;\n } else {\n break;\n }\n }\n\n if (target) {\n target.focus();\n }\n };\n\n let {pressProps} = usePress({\n onPressStart(e) {\n if (e.pointerType === 'mouse') {\n focusLast();\n }\n },\n onPress(e) {\n if (e.pointerType !== 'mouse') {\n focusLast();\n }\n }\n });\n\n return mergeProps(pressProps, {onKeyDown});\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {DatePickerFieldState, DateSegment} from '@react-stately/datepicker';\nimport {getScrollParent, isIOS, isMac, mergeProps, scrollIntoView, useEvent, useId} from '@react-aria/utils';\nimport {hookData} from './useDateField';\nimport {NumberParser} from '@internationalized/number';\nimport React, {HTMLAttributes, RefObject, useMemo, useRef} from 'react';\nimport {useDateFormatter, useFilter, useLocale} from '@react-aria/i18n';\nimport {useDisplayNames} from './useDisplayNames';\nimport {usePress} from '@react-aria/interactions';\nimport {useSpinButton} from '@react-aria/spinbutton';\n\ninterface DateSegmentAria {\n /** Props for the segment element. */\n segmentProps: HTMLAttributes<HTMLDivElement>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a segment in a date field.\n * A date segment displays an individual unit of a date and time, and allows users to edit\n * the value by typing or using the arrow keys to increment and decrement.\n */\nexport function useDateSegment(segment: DateSegment, state: DatePickerFieldState, ref: RefObject<HTMLElement>): DateSegmentAria {\n let enteredKeys = useRef('');\n let {locale, direction} = useLocale();\n let displayNames = useDisplayNames();\n let {ariaLabelledBy, ariaDescribedBy, focusManager} = hookData.get(state);\n\n let textValue = segment.text;\n let options = useMemo(() => state.dateFormatter.resolvedOptions(), [state.dateFormatter]);\n let monthDateFormatter = useDateFormatter({month: 'long', timeZone: options.timeZone});\n let hourDateFormatter = useDateFormatter({\n hour: 'numeric',\n hour12: options.hour12,\n timeZone: options.timeZone\n });\n\n if (segment.type === 'month') {\n let monthTextValue = monthDateFormatter.format(state.dateValue);\n textValue = monthTextValue !== textValue ? `${textValue} – ${monthTextValue}` : monthTextValue;\n } else if (segment.type === 'hour' || segment.type === 'dayPeriod') {\n textValue = hourDateFormatter.format(state.dateValue);\n }\n\n let {spinButtonProps} = useSpinButton({\n value: segment.value,\n textValue,\n minValue: segment.minValue,\n maxValue: segment.maxValue,\n isDisabled: state.isDisabled,\n isReadOnly: state.isReadOnly || !segment.isEditable,\n isRequired: state.isRequired,\n onIncrement: () => {\n enteredKeys.current = '';\n state.increment(segment.type);\n },\n onDecrement: () => {\n enteredKeys.current = '';\n state.decrement(segment.type);\n },\n onIncrementPage: () => {\n enteredKeys.current = '';\n state.incrementPage(segment.type);\n },\n onDecrementPage: () => {\n enteredKeys.current = '';\n state.decrementPage(segment.type);\n },\n onIncrementToMax: () => {\n enteredKeys.current = '';\n state.setSegment(segment.type, segment.maxValue);\n },\n onDecrementToMin: () => {\n enteredKeys.current = '';\n state.setSegment(segment.type, segment.minValue);\n }\n });\n\n let parser = useMemo(() => new NumberParser(locale, {maximumFractionDigits: 0}), [locale]);\n\n let backspace = () => {\n if (parser.isValidPartialNumber(segment.text) && !state.isReadOnly && !segment.isPlaceholder) {\n let newValue = segment.text.slice(0, -1);\n let parsed = parser.parse(newValue);\n if (newValue.length === 0 || parsed === 0) {\n state.clearSegment(segment.type);\n } else {\n state.setSegment(segment.type, parsed);\n }\n enteredKeys.current = newValue;\n } else if (segment.type === 'dayPeriod') {\n state.clearSegment(segment.type);\n }\n };\n\n let onKeyDown = (e) => {\n // Firefox does not fire selectstart for Ctrl/Cmd + A\n // https://bugzilla.mozilla.org/show_bug.cgi?id=1742153\n if (e.key === 'a' && (isMac() ? e.metaKey : e.ctrlKey)) {\n e.preventDefault();\n }\n\n if (e.ctrlKey || e.metaKey || e.shiftKey || e.altKey) {\n return;\n }\n\n switch (e.key) {\n case 'ArrowLeft':\n e.preventDefault();\n e.stopPropagation();\n if (direction === 'rtl') {\n focusManager.focusNext({tabbable: true});\n } else {\n focusManager.focusPrevious({tabbable: true});\n }\n break;\n case 'ArrowRight':\n e.preventDefault();\n e.stopPropagation();\n if (direction === 'rtl') {\n focusManager.focusPrevious({tabbable: true});\n } else {\n focusManager.focusNext({tabbable: true});\n }\n break;\n case 'Enter':\n e.preventDefault();\n e.stopPropagation();\n if (segment.isPlaceholder && !state.isReadOnly) {\n state.confirmPlaceholder(segment.type);\n }\n focusManager.focusNext({tabbable: true});\n break;\n case 'Tab':\n break;\n case 'Backspace':\n case 'Delete': {\n // Safari on iOS does not fire beforeinput for the backspace key because the cursor is at the start.\n e.preventDefault();\n e.stopPropagation();\n backspace();\n break;\n }\n }\n };\n\n // Safari dayPeriod option doesn't work...\n let {startsWith} = useFilter({sensitivity: 'base'});\n let amPmFormatter = useDateFormatter({hour: 'numeric', hour12: true});\n let am = useMemo(() => {\n let date = new Date();\n date.setHours(0);\n return amPmFormatter.formatToParts(date).find(part => part.type === 'dayPeriod').value;\n }, [amPmFormatter]);\n\n let pm = useMemo(() => {\n let date = new Date();\n date.setHours(12);\n return amPmFormatter.formatToParts(date).find(part => part.type === 'dayPeriod').value;\n }, [amPmFormatter]);\n\n let onInput = (key: string) => {\n if (state.isDisabled || state.isReadOnly) {\n return;\n }\n\n let newValue = enteredKeys.current + key;\n\n switch (segment.type) {\n case 'dayPeriod':\n if (startsWith(am, key)) {\n state.setSegment('dayPeriod', 0);\n } else if (startsWith(pm, key)) {\n state.setSegment('dayPeriod', 12);\n } else {\n break;\n }\n focusManager.focusNext({tabbable: true});\n break;\n case 'day':\n case 'hour':\n case 'minute':\n case 'second':\n case 'month':\n case 'year': {\n if (!parser.isValidPartialNumber(newValue)) {\n return;\n }\n\n let numberValue = parser.parse(newValue);\n let segmentValue = numberValue;\n let allowsZero = segment.minValue === 0;\n if (segment.type === 'hour' && state.dateFormatter.resolvedOptions().hour12) {\n switch (state.dateFormatter.resolvedOptions().hourCycle) {\n case 'h11':\n if (numberValue > 11) {\n segmentValue = parser.parse(key);\n }\n break;\n case 'h12':\n allowsZero = false;\n if (numberValue > 12) {\n segmentValue = parser.parse(key);\n }\n break;\n }\n\n if (segment.value >= 12 && numberValue > 1) {\n numberValue += 12;\n }\n } else if (numberValue > segment.maxValue) {\n segmentValue = parser.parse(key);\n }\n\n if (isNaN(numberValue)) {\n return;\n }\n\n let shouldSetValue = segmentValue !== 0 || allowsZero;\n if (shouldSetValue) {\n state.setSegment(segment.type, segmentValue);\n }\n\n if (Number(numberValue + '0') > segment.maxValue || newValue.length >= String(segment.maxValue).length) {\n enteredKeys.current = '';\n if (shouldSetValue) {\n focusManager.focusNext({tabbable: true});\n }\n } else {\n enteredKeys.current = newValue;\n }\n break;\n }\n }\n };\n\n let onFocus = () => {\n enteredKeys.current = '';\n scrollIntoView(getScrollParent(ref.current) as HTMLElement, ref.current);\n\n // Safari requires that a selection is set or it won't fire input events.\n // Since usePress disables text selection, this won't happen by default.\n ref.current.style.webkitUserSelect = 'text';\n let selection = window.getSelection();\n selection.collapse(ref.current);\n ref.current.style.webkitUserSelect = '';\n };\n\n let compositionRef = useRef('');\n // @ts-ignore - TODO: possibly old TS version? doesn't fail in my editor...\n useEvent(ref, 'beforeinput', e => {\n e.preventDefault();\n\n switch (e.inputType) {\n case 'deleteContentBackward':\n case 'deleteContentForward':\n if (parser.isValidPartialNumber(segment.text) && !state.isReadOnly) {\n backspace();\n }\n break;\n case 'insertCompositionText':\n // insertCompositionText cannot be canceled.\n // Record the current state of the element so we can restore it in the `input` event below.\n compositionRef.current = ref.current.textContent;\n\n // Safari gets stuck in a composition state unless we also assign to the value here.\n // eslint-disable-next-line no-self-assign\n ref.current.textContent = ref.current.textContent;\n break;\n default:\n if (e.data != null) {\n onInput(e.data);\n }\n break;\n }\n });\n\n useEvent(ref, 'input', (e: InputEvent) => {\n let {inputType, data} = e;\n switch (inputType) {\n case 'insertCompositionText':\n // Reset the DOM to how it was in the beforeinput event.\n ref.current.textContent = compositionRef.current;\n\n // Android sometimes fires key presses of letters as composition events. Need to handle am/pm keys here too.\n // Can also happen e.g. with Pinyin keyboard on iOS.\n if (startsWith(am, data) || startsWith(pm, data)) {\n onInput(data);\n }\n break;\n }\n });\n\n // Focus on mouse down/touch up to match native textfield behavior.\n // usePress handles canceling text selection.\n let {pressProps} = usePress({\n preventFocusOnPress: true,\n onPressStart: (e) => {\n if (e.pointerType === 'mouse') {\n e.target.focus();\n }\n },\n onPress(e) {\n if (e.pointerType !== 'mouse') {\n e.target.focus();\n }\n }\n });\n\n // For Android: prevent selection on long press.\n useEvent(ref, 'selectstart', e => {\n e.preventDefault();\n });\n\n // spinbuttons cannot be focused with VoiceOver on iOS.\n let touchPropOverrides = isIOS() || segment.type === 'timeZoneName' ? {\n role: 'textbox',\n 'aria-valuemax': null,\n 'aria-valuemin': null,\n 'aria-valuetext': null,\n 'aria-valuenow': null\n } : {};\n\n // Only apply aria-describedby to the first segment, unless the field is invalid. This avoids it being\n // read every time the user navigates to a new segment.\n let firstSegment = useMemo(() => state.segments.find(s => s.isEditable), [state.segments]);\n if (segment !== firstSegment && state.validationState !== 'invalid') {\n ariaDescribedBy = undefined;\n }\n\n let id = useId();\n let isEditable = !state.isDisabled && !state.isReadOnly && segment.isEditable;\n\n // Literal segments should not be visible to screen readers. We don't really need any of the above,\n // but the rules of hooks mean hooks cannot be conditional so we have to put this condition here.\n if (segment.type === 'literal') {\n return {\n segmentProps: {\n 'aria-hidden': true\n }\n };\n }\n\n return {\n segmentProps: mergeProps(spinButtonProps, pressProps, {\n id,\n ...touchPropOverrides,\n 'aria-invalid': state.validationState === 'invalid' ? 'true' : undefined,\n 'aria-label': displayNames.of(segment.type),\n 'aria-labelledby': `${ariaLabelledBy} ${id}`,\n 'aria-describedby': ariaDescribedBy,\n 'aria-placeholder': segment.isPlaceholder ? segment.text : undefined,\n 'aria-readonly': state.isReadOnly || !segment.isEditable ? 'true' : undefined,\n contentEditable: isEditable,\n suppressContentEditableWarning: isEditable,\n spellCheck: isEditable ? 'false' : undefined,\n autoCapitalize: isEditable ? 'off' : undefined,\n autoCorrect: isEditable ? 'off' : undefined,\n // Capitalization was changed in React 17...\n [parseInt(React.version, 10) >= 17 ? 'enterKeyHint' : 'enterkeyhint']: isEditable ? 'next' : undefined,\n inputMode: state.isDisabled || segment.type === 'dayPeriod' || !isEditable ? undefined : 'numeric',\n tabIndex: state.isDisabled ? undefined : 0,\n onKeyDown,\n onFocus,\n style: {\n caretColor: 'transparent'\n }\n })\n };\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaDatePickerProps, AriaTimeFieldProps, DateValue, TimeValue} from '@react-types/datepicker';\nimport {createFocusManager, FocusManager} from '@react-aria/focus';\nimport {DatePickerFieldState} from '@react-stately/datepicker';\nimport {focusManagerSymbol} from './useDateRangePicker';\nimport {HTMLAttributes, RefObject, useEffect, useMemo, useRef} from 'react';\nimport {mergeProps, useDescription} from '@react-aria/utils';\nimport {useDateFormatter} from '@react-aria/i18n';\nimport {useDatePickerGroup} from './useDatePickerGroup';\nimport {useField} from '@react-aria/label';\nimport {useFocusWithin} from '@react-aria/interactions';\n\n// Allows this hook to also be used with TimeField\ninterface DateFieldProps<T extends DateValue> extends Omit<AriaDatePickerProps<T>, 'value' | 'defaultValue' | 'onChange' | 'minValue' | 'maxValue' | 'placeholderValue'> {}\n\ninterface DateFieldAria {\n /** Props for the field's visible label element, if any. */\n labelProps: HTMLAttributes<HTMLElement>,\n /** Props for the field grouping element. */\n fieldProps: HTMLAttributes<HTMLElement>,\n /** Props for the description element, if any. */\n descriptionProps: HTMLAttributes<HTMLElement>,\n /** Props for the error message element, if any. */\n errorMessageProps: HTMLAttributes<HTMLElement>\n}\n\n// Data that is passed between useDateField and useDateSegment.\ninterface HookData {\n ariaLabelledBy: string,\n ariaDescribedBy: string,\n focusManager: FocusManager\n}\n\nexport const hookData = new WeakMap<DatePickerFieldState, HookData>();\n\n/**\n * Provides the behavior and accessibility implementation for a date field component.\n * A date field allows users to enter and edit date and time values using a keyboard.\n * Each part of a date value is displayed in an individually editable segment.\n */\nexport function useDateField<T extends DateValue>(props: DateFieldProps<T>, state: DatePickerFieldState, ref: RefObject<HTMLElement>): DateFieldAria {\n let {labelProps, fieldProps, descriptionProps, errorMessageProps} = useField({\n ...props,\n labelElementType: 'span'\n });\n\n let groupProps = useDatePickerGroup(state, ref);\n\n let {focusWithinProps} = useFocusWithin({\n onBlurWithin() {\n state.confirmPlaceholder();\n }\n });\n\n let formatter = useDateFormatter(state.getFormatOptions({month: 'long'}));\n let descProps = useDescription(state.value ? formatter.format(state.dateValue) : null);\n\n let segmentLabelledBy = fieldProps['aria-labelledby'] || fieldProps.id;\n let describedBy = [descProps['aria-describedby'], fieldProps['aria-describedby']].filter(Boolean).join(' ') || undefined;\n let propsFocusManager = props[focusManagerSymbol];\n let focusManager = useMemo(() => propsFocusManager || createFocusManager(ref), [propsFocusManager, ref]);\n\n hookData.set(state, {\n ariaLabelledBy: segmentLabelledBy,\n ariaDescribedBy: describedBy,\n focusManager\n });\n\n let autoFocusRef = useRef(props.autoFocus);\n\n useEffect(() => {\n if (autoFocusRef.current) {\n focusManager.focusFirst();\n }\n autoFocusRef.current = false;\n }, [focusManager]);\n\n return {\n labelProps: {\n ...labelProps,\n onClick: () => {\n focusManager.focusFirst();\n }\n },\n fieldProps: mergeProps(fieldProps, descProps, groupProps, focusWithinProps, {\n role: 'group',\n 'aria-disabled': props.isDisabled || undefined,\n 'aria-describedby': describedBy\n }),\n descriptionProps,\n errorMessageProps\n };\n}\n\n/**\n * Provides the behavior and accessibility implementation for a time field component.\n * A time field allows users to enter and edit time values using a keyboard.\n * Each part of a time value is displayed in an individually editable segment.\n */\nexport function useTimeField<T extends TimeValue>(props: AriaTimeFieldProps<T>, state: DatePickerFieldState, ref: RefObject<HTMLElement>): DateFieldAria {\n return useDateField(props, state, ref);\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaButtonProps} from '@react-types/button';\nimport {AriaDatePickerProps, AriaDateRangePickerProps, DateValue} from '@react-types/datepicker';\nimport {AriaDialogProps} from '@react-types/dialog';\nimport {createFocusManager} from '@react-aria/focus';\nimport {DateRangePickerState} from '@react-stately/datepicker';\nimport {HTMLAttributes, RefObject, useMemo} from 'react';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {mergeProps, useDescription, useId, useLabels} from '@react-aria/utils';\nimport {RangeCalendarProps} from '@react-types/calendar';\nimport {useDatePickerGroup} from './useDatePickerGroup';\nimport {useField} from '@react-aria/label';\nimport {useFocusWithin} from '@react-aria/interactions';\nimport {useLocale, useMessageFormatter} from '@react-aria/i18n';\n\ninterface DateRangePickerAria {\n /** Props for the date range picker's visible label element, if any. */\n labelProps: HTMLAttributes<HTMLElement>,\n /** Props for the grouping element containing the date fields and button. */\n groupProps: HTMLAttributes<HTMLElement>,\n /** Props for the start date field. */\n startFieldProps: AriaDatePickerProps<DateValue>,\n /** Props for the end date field. */\n endFieldProps: AriaDatePickerProps<DateValue>,\n /** Props for the popover trigger button. */\n buttonProps: AriaButtonProps,\n /** Props for the description element, if any. */\n descriptionProps: HTMLAttributes<HTMLElement>,\n /** Props for the error message element, if any. */\n errorMessageProps: HTMLAttributes<HTMLElement>,\n /** Props for the popover dialog. */\n dialogProps: AriaDialogProps,\n /** Props for the range calendar within the popover dialog. */\n calendarProps: RangeCalendarProps<DateValue>\n}\n\n// Used to pass the focus manager to the date fields.\n// Ideally we'd use a Symbol for this, but React doesn't support them: https://github.com/facebook/react/issues/7552\nexport const focusManagerSymbol = '__focusManager_' + Date.now();\n\n/**\n * Provides the behavior and accessibility implementation for a date picker component.\n * A date range picker combines two DateFields and a RangeCalendar popover to allow\n * users to enter or select a date and time range.\n */\nexport function useDateRangePicker<T extends DateValue>(props: AriaDateRangePickerProps<T>, state: DateRangePickerState, ref: RefObject<HTMLElement>): DateRangePickerAria {\n let formatMessage = useMessageFormatter(intlMessages);\n let {labelProps, fieldProps, descriptionProps, errorMessageProps} = useField({\n ...props,\n labelElementType: 'span'\n });\n\n let labelledBy = fieldProps['aria-labelledby'] || fieldProps.id;\n\n let {locale} = useLocale();\n let description = state.formatValue(locale, {month: 'long'});\n let descProps = useDescription(description);\n\n let startFieldProps = useLabels({\n 'aria-label': formatMessage('startDate'),\n 'aria-labelledby': labelledBy\n });\n\n let endFieldProps = useLabels({\n 'aria-label': formatMessage('endDate'),\n 'aria-labelledby': labelledBy\n });\n\n let buttonId = useId();\n let dialogId = useId();\n\n let groupProps = useDatePickerGroup(state, ref);\n let {focusWithinProps} = useFocusWithin({\n onBlurWithin() {\n state.confirmPlaceholder();\n }\n });\n\n let ariaDescribedBy = [descProps['aria-describedby'], fieldProps['aria-describedby']].filter(Boolean).join(' ') || undefined;\n let focusManager = useMemo(() => createFocusManager(ref), [ref]);\n let commonFieldProps = {\n [focusManagerSymbol]: focusManager,\n minValue: props.minValue,\n maxValue: props.maxValue,\n placeholderValue: props.placeholderValue,\n hideTimeZone: props.hideTimeZone,\n hourCycle: props.hourCycle,\n granularity: props.granularity,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isRequired: props.isRequired,\n validationState: state.validationState\n };\n\n return {\n groupProps: mergeProps(groupProps, fieldProps, descProps, focusWithinProps, {\n role: 'group',\n 'aria-disabled': props.isDisabled || null,\n 'aria-describedby': ariaDescribedBy\n }),\n labelProps: {\n ...labelProps,\n onClick: () => {\n focusManager.focusFirst();\n }\n },\n buttonProps: {\n ...descProps,\n id: buttonId,\n excludeFromTabOrder: true,\n 'aria-haspopup': 'dialog',\n 'aria-label': formatMessage('calendar'),\n 'aria-labelledby': `${labelledBy} ${buttonId}`,\n 'aria-describedby': ariaDescribedBy,\n onPress: () => state.setOpen(true)\n },\n dialogProps: {\n id: dialogId,\n 'aria-labelledby': `${labelledBy} ${buttonId}`\n },\n startFieldProps: {\n ...startFieldProps,\n ...commonFieldProps,\n 'aria-describedby': fieldProps['aria-describedby'],\n value: state.value?.start,\n onChange: start => state.setDateTime('start', start),\n autoFocus: props.autoFocus\n },\n endFieldProps: {\n ...endFieldProps,\n ...commonFieldProps,\n 'aria-describedby': fieldProps['aria-describedby'],\n value: state.value?.end,\n onChange: end => state.setDateTime('end', end)\n },\n descriptionProps,\n errorMessageProps,\n calendarProps: {\n autoFocus: true,\n value: state.dateRange,\n onChange: state.setDateRange,\n minValue: props.minValue,\n maxValue: props.maxValue,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isDateDisabled: props.isDateDisabled,\n defaultFocusedValue: state.dateRange ? undefined : props.placeholderValue\n }\n };\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {MessageDictionary} from '@internationalized/message';\nimport {useLocale} from '@react-aria/i18n';\nimport {useMemo} from 'react';\n\ntype Field = 'era' | 'year' | 'month' | 'day' | 'hour' | 'minute' | 'second' | 'dayPeriod' | 'timeZoneName' | 'weekday';\ninterface DisplayNames {\n of(field: Field): string\n}\n\nexport function useDisplayNames(): DisplayNames {\n let {locale} = useLocale();\n return useMemo(() => {\n // Try to use Intl.DisplayNames if possible. It may be supported in browsers, but not support the dateTimeField\n // type as that was only added in v2. https://github.com/tc39/intl-displaynames-v2\n try {\n // @ts-ignore\n return new Intl.DisplayNames(locale, {type: 'dateTimeField'});\n } catch (err) {\n return new DisplayNamesPolyfill(locale);\n }\n }, [locale]);\n}\n\nclass DisplayNamesPolyfill implements DisplayNames {\n private locale: string;\n private dictionary: MessageDictionary;\n\n constructor(locale: string) {\n this.locale = locale;\n this.dictionary = new MessageDictionary(intlMessages);\n }\n\n of(field: Field): string {\n return this.dictionary.getStringForLocale(field, this.locale);\n }\n}\n"],"names":[],"version":3,"file":"main.js.map"}
|
package/dist/module.js
CHANGED
|
@@ -319,7 +319,8 @@ function $6057a3d2a53a12fd$export$42df105a73306d51(props, state, ref) {
|
|
|
319
319
|
maxValue: props.maxValue,
|
|
320
320
|
isDisabled: props.isDisabled,
|
|
321
321
|
isReadOnly: props.isReadOnly,
|
|
322
|
-
isDateDisabled: props.isDateDisabled
|
|
322
|
+
isDateDisabled: props.isDateDisabled,
|
|
323
|
+
defaultFocusedValue: state.dateValue ? undefined : props.placeholderValue
|
|
323
324
|
}
|
|
324
325
|
};
|
|
325
326
|
}
|
|
@@ -438,7 +439,8 @@ function $887cac91b7cc8801$export$12fd5f0e9f4bb192(props, state, ref) {
|
|
|
438
439
|
maxValue: props.maxValue,
|
|
439
440
|
isDisabled: props.isDisabled,
|
|
440
441
|
isReadOnly: props.isReadOnly,
|
|
441
|
-
isDateDisabled: props.isDateDisabled
|
|
442
|
+
isDateDisabled: props.isDateDisabled,
|
|
443
|
+
defaultFocusedValue: state.dateRange ? undefined : props.placeholderValue
|
|
442
444
|
}
|
|
443
445
|
};
|
|
444
446
|
}
|
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;AGAA,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA4c;;;;ACAxe,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA8d;;;;ACA1f,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA2d;;;;ACAvf,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA2b;;;;ACAvd,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAkd;;;;ACA9e,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA+e;;;;ACA3gB,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAsc;;;;ACAle,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAge;;;;ACA5f,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA8d;;;;ACA1f,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA8e;;;;AC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AE,KAAK,EAAE,GAAG,CAAc,gBAAG,CAAc,gBAAG,UAAU,GAAG,CAAM,QAAG,SAAS;YACtG,SAAS,EAAE,KAAK,CAAC,UAAU,IAAI,OAAO,CAAC,IAAI,KAAK,CAAW,eAAK,UAAU,GAAG,SAAS,GAAG,CAAS;YAClG,QAAQ,EAAE,KAAK,CAAC,UAAU,GAAG,SAAS,GAAG,CAAC;uBAC1C,SAAS;qBACT,OAAO;YACP,KAAK,EAAE,CAAC;gBACN,UAAU,EAAE,CAAa;YAC3B,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC;;","sources":["packages/@react-aria/datepicker/src/index.ts","packages/@react-aria/datepicker/src/useDatePicker.ts","packages/@react-aria/datepicker/intl/*.js","packages/@react-aria/datepicker/intl/ar-AE.json","packages/@react-aria/datepicker/intl/bg-BG.json","packages/@react-aria/datepicker/intl/cs-CZ.json","packages/@react-aria/datepicker/intl/da-DK.json","packages/@react-aria/datepicker/intl/de-DE.json","packages/@react-aria/datepicker/intl/el-GR.json","packages/@react-aria/datepicker/intl/en-US.json","packages/@react-aria/datepicker/intl/es-ES.json","packages/@react-aria/datepicker/intl/et-EE.json","packages/@react-aria/datepicker/intl/fi-FI.json","packages/@react-aria/datepicker/intl/fr-FR.json","packages/@react-aria/datepicker/intl/he-IL.json","packages/@react-aria/datepicker/intl/hr-HR.json","packages/@react-aria/datepicker/intl/hu-HU.json","packages/@react-aria/datepicker/intl/it-IT.json","packages/@react-aria/datepicker/intl/ja-JP.json","packages/@react-aria/datepicker/intl/ko-KR.json","packages/@react-aria/datepicker/intl/lt-LT.json","packages/@react-aria/datepicker/intl/lv-LV.json","packages/@react-aria/datepicker/intl/nb-NO.json","packages/@react-aria/datepicker/intl/nl-NL.json","packages/@react-aria/datepicker/intl/pl-PL.json","packages/@react-aria/datepicker/intl/pt-BR.json","packages/@react-aria/datepicker/intl/pt-PT.json","packages/@react-aria/datepicker/intl/ro-RO.json","packages/@react-aria/datepicker/intl/ru-RU.json","packages/@react-aria/datepicker/intl/sk-SK.json","packages/@react-aria/datepicker/intl/sl-SI.json","packages/@react-aria/datepicker/intl/sr-SP.json","packages/@react-aria/datepicker/intl/sv-SE.json","packages/@react-aria/datepicker/intl/tr-TR.json","packages/@react-aria/datepicker/intl/uk-UA.json","packages/@react-aria/datepicker/intl/zh-CN.json","packages/@react-aria/datepicker/intl/zh-TW.json","packages/@react-aria/datepicker/src/useDatePickerGroup.ts","packages/@react-aria/datepicker/src/useDateSegment.ts","packages/@react-aria/datepicker/src/useDateField.ts","packages/@react-aria/datepicker/src/useDateRangePicker.ts","packages/@react-aria/datepicker/src/useDisplayNames.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport {useDatePicker} from './useDatePicker';\nexport {useDateSegment} from './useDateSegment';\nexport {useDateField, useTimeField} from './useDateField';\nexport {useDateRangePicker} from './useDateRangePicker';\nexport * from './useDisplayNames';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaButtonProps} from '@react-types/button';\nimport {AriaDatePickerProps, DateValue} from '@react-types/datepicker';\nimport {AriaDialogProps} from '@react-types/dialog';\nimport {CalendarProps} from '@react-types/calendar';\nimport {createFocusManager} from '@react-aria/focus';\nimport {DatePickerState} from '@react-stately/datepicker';\nimport {HTMLAttributes, RefObject} from 'react';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {mergeProps, useDescription, useId} from '@react-aria/utils';\nimport {useDatePickerGroup} from './useDatePickerGroup';\nimport {useField} from '@react-aria/label';\nimport {useLocale, useMessageFormatter} from '@react-aria/i18n';\n\ninterface DatePickerAria {\n /** Props for the date picker's visible label element, if any. */\n labelProps: HTMLAttributes<HTMLElement>,\n /** Props for the grouping element containing the date field and button. */\n groupProps: HTMLAttributes<HTMLElement>,\n /** Props for the date field. */\n fieldProps: AriaDatePickerProps<DateValue>,\n /** Props for the popover trigger button. */\n buttonProps: AriaButtonProps,\n /** Props for the description element, if any. */\n descriptionProps: HTMLAttributes<HTMLElement>,\n /** Props for the error message element, if any. */\n errorMessageProps: HTMLAttributes<HTMLElement>,\n /** Props for the popover dialog. */\n dialogProps: AriaDialogProps,\n /** Props for the calendar within the popover dialog. */\n calendarProps: CalendarProps<DateValue>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a date picker component.\n * A date picker combines a DateField and a Calendar popover to allow users to enter or select a date and time value.\n */\nexport function useDatePicker<T extends DateValue>(props: AriaDatePickerProps<T>, state: DatePickerState, ref: RefObject<HTMLElement>): DatePickerAria {\n let buttonId = useId();\n let dialogId = useId();\n let formatMessage = useMessageFormatter(intlMessages);\n\n let {labelProps, fieldProps, descriptionProps, errorMessageProps} = useField({\n ...props,\n labelElementType: 'span'\n });\n\n let groupProps = useDatePickerGroup(state, ref);\n\n let labelledBy = fieldProps['aria-labelledby'] || fieldProps.id;\n\n let {locale} = useLocale();\n let descProps = useDescription(state.formatValue(locale, {month: 'long'}));\n let ariaDescribedBy = [descProps['aria-describedby'], fieldProps['aria-describedby']].filter(Boolean).join(' ') || undefined;\n\n return {\n groupProps: mergeProps(groupProps, descProps, {\n role: 'group',\n 'aria-disabled': props.isDisabled || null,\n 'aria-labelledby': labelledBy,\n 'aria-describedby': ariaDescribedBy\n }),\n labelProps: {\n ...labelProps,\n onClick: () => {\n let focusManager = createFocusManager(ref);\n focusManager.focusFirst();\n }\n },\n fieldProps: {\n ...fieldProps,\n value: state.value,\n onChange: state.setValue,\n minValue: props.minValue,\n maxValue: props.maxValue,\n placeholderValue: props.placeholderValue,\n hideTimeZone: props.hideTimeZone,\n hourCycle: props.hourCycle,\n granularity: props.granularity,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isRequired: props.isRequired,\n validationState: state.validationState,\n autoFocus: props.autoFocus\n },\n descriptionProps,\n errorMessageProps,\n buttonProps: {\n ...descProps,\n id: buttonId,\n excludeFromTabOrder: true,\n 'aria-haspopup': 'dialog',\n 'aria-label': formatMessage('calendar'),\n 'aria-labelledby': `${labelledBy} ${buttonId}`,\n 'aria-describedby': ariaDescribedBy,\n onPress: () => state.setOpen(true)\n },\n dialogProps: {\n id: dialogId,\n 'aria-labelledby': `${labelledBy} ${buttonId}`\n },\n calendarProps: {\n autoFocus: true,\n value: state.dateValue,\n onChange: state.setDateValue,\n minValue: props.minValue,\n maxValue: props.maxValue,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isDateDisabled: props.isDateDisabled\n }\n };\n}\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"calendar\": \"التقويم\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} إلى {end, date, long}\",\n \"date\": \"التاريخ\",\n \"dateRange\": \"نطاق التاريخ\",\n \"day\": \"يوم\",\n \"dayPeriod\": \"ص/م\",\n \"endDate\": \"تاريخ الانتهاء\",\n \"era\": \"العصر\",\n \"hour\": \"الساعات\",\n \"minute\": \"الدقائق\",\n \"month\": \"الشهر\",\n \"second\": \"الثواني\",\n \"startDate\": \"تاريخ البدء\",\n \"year\": \"السنة\",\n \"weekday\": \"اليوم\",\n \"timeZoneName\": \"التوقيت\"\n}\n","{\n \"calendar\": \"Календар\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} до {end, date, long}\",\n \"date\": \"Дата\",\n \"dateRange\": \"Времеви интервал\",\n \"day\": \"ден\",\n \"dayPeriod\": \"пр.об./сл.об.\",\n \"endDate\": \"Крайна дата\",\n \"era\": \"ера\",\n \"hour\": \"час\",\n \"minute\": \"минута\",\n \"month\": \"месец\",\n \"second\": \"секунда\",\n \"startDate\": \"Начална дата\",\n \"year\": \"година\",\n \"weekday\": \"ден от седмицата\",\n \"timeZoneName\": \"часова зона\"\n}\n","{\n \"calendar\": \"Kalendář\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} až {end, date, long}\",\n \"date\": \"Datum\",\n \"dateRange\": \"Rozsah dat\",\n \"day\": \"den\",\n \"dayPeriod\": \"část dne\",\n \"endDate\": \"Konečné datum\",\n \"era\": \"letopočet\",\n \"hour\": \"hodina\",\n \"minute\": \"minuta\",\n \"month\": \"měsíc\",\n \"second\": \"sekunda\",\n \"startDate\": \"Počáteční datum\",\n \"year\": \"rok\",\n \"weekday\": \"den v týdnu\",\n \"timeZoneName\": \"časové pásmo\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} til {end, date, long}\",\n \"date\": \"Dato\",\n \"dateRange\": \"Datointerval\",\n \"day\": \"dag\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Slutdato\",\n \"era\": \"æra\",\n \"hour\": \"time\",\n \"minute\": \"minut\",\n \"month\": \"måned\",\n \"second\": \"sekund\",\n \"startDate\": \"Startdato\",\n \"year\": \"år\",\n \"weekday\": \"ugedag\",\n \"timeZoneName\": \"tidszone\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} bis {end, date, long}\",\n \"date\": \"Datum\",\n \"dateRange\": \"Datumsbereich\",\n \"day\": \"Tag\",\n \"dayPeriod\": \"Tageshälfte\",\n \"endDate\": \"Enddatum\",\n \"era\": \"Epoche\",\n \"hour\": \"Stunde\",\n \"minute\": \"Minute\",\n \"month\": \"Monat\",\n \"second\": \"Sekunde\",\n \"startDate\": \"Anfangsdatum\",\n \"year\": \"Jahr\",\n \"weekday\": \"Wochentag\",\n \"timeZoneName\": \"Zeitzone\"\n}\n","{\n \"calendar\": \"Ημερολόγιο\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} ως {end, date, long}\",\n \"date\": \"Ημερομηνία\",\n \"dateRange\": \"Εύρος ημερομηνιών\",\n \"day\": \"ημέρα\",\n \"dayPeriod\": \"π.μ./μ.μ.\",\n \"endDate\": \"Ημερομηνία λήξης\",\n \"era\": \"περίοδος\",\n \"hour\": \"ώρα\",\n \"minute\": \"λεπτό\",\n \"month\": \"μήνας\",\n \"second\": \"δευτερόλεπτο\",\n \"startDate\": \"Ημερομηνία έναρξης\",\n \"year\": \"έτος\",\n \"weekday\": \"καθημερινή\",\n \"timeZoneName\": \"ζώνη ώρας\"\n}\n","{\n \"era\": \"era\",\n \"year\": \"year\",\n \"month\": \"month\",\n \"day\": \"day\",\n \"hour\": \"hour\",\n \"minute\": \"minute\",\n \"second\": \"second\",\n \"dayPeriod\": \"AM/PM\",\n \"calendar\": \"Calendar\",\n \"date\": \"Date\",\n \"dateRange\": \"Date Range\",\n \"startDate\": \"Start Date\",\n \"endDate\": \"End Date\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} to {end, date, long}\",\n \"weekday\": \"day of the week\",\n \"timeZoneName\": \"time zone\"\n}\n","{\n \"calendar\": \"Calendario\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} a {end, date, long}\",\n \"date\": \"Fecha\",\n \"dateRange\": \"Intervalo de fecha\",\n \"day\": \"día\",\n \"dayPeriod\": \"a. m./p. m.\",\n \"endDate\": \"Fecha final\",\n \"era\": \"era\",\n \"hour\": \"hora\",\n \"minute\": \"minuto\",\n \"month\": \"mes\",\n \"second\": \"segundo\",\n \"startDate\": \"Fecha de inicio\",\n \"year\": \"año\",\n \"weekday\": \"día de la semana\",\n \"timeZoneName\": \"zona horaria\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} kuni {end, date, long}\",\n \"date\": \"Kuupäev\",\n \"dateRange\": \"Kuupäevavahemik\",\n \"day\": \"päev\",\n \"dayPeriod\": \"enne/pärast lõunat\",\n \"endDate\": \"Lõppkuupäev\",\n \"era\": \"ajastu\",\n \"hour\": \"tund\",\n \"minute\": \"minut\",\n \"month\": \"kuu\",\n \"second\": \"sekund\",\n \"startDate\": \"Alguskuupäev\",\n \"year\": \"aasta\",\n \"weekday\": \"nädalapäev\",\n \"timeZoneName\": \"ajavöönd\"\n}\n","{\n \"calendar\": \"Kalenteri\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long}–{end, date, long}\",\n \"date\": \"Päivämäärä\",\n \"dateRange\": \"Päivämääräalue\",\n \"day\": \"päivä\",\n \"dayPeriod\": \"vuorokaudenaika\",\n \"endDate\": \"Päättymispäivä\",\n \"era\": \"aikakausi\",\n \"hour\": \"tunti\",\n \"minute\": \"minuutti\",\n \"month\": \"kuukausi\",\n \"second\": \"sekunti\",\n \"startDate\": \"Alkamispäivä\",\n \"year\": \"vuosi\",\n \"weekday\": \"viikonpäivä\",\n \"timeZoneName\": \"aikavyöhyke\"\n}\n","{\n \"calendar\": \"Calendrier\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} au {end, date, long}\",\n \"date\": \"Date\",\n \"dateRange\": \"Plage de dates\",\n \"day\": \"jour\",\n \"dayPeriod\": \"cadran\",\n \"endDate\": \"Date de fin\",\n \"era\": \"ère\",\n \"hour\": \"heure\",\n \"minute\": \"minute\",\n \"month\": \"mois\",\n \"second\": \"seconde\",\n \"startDate\": \"Date de début\",\n \"year\": \"année\",\n \"weekday\": \"jour de la semaine\",\n \"timeZoneName\": \"fuseau horaire\"\n}\n","{\n \"calendar\": \"לוח שנה\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"מ-{start, date, long} ועד {end, date, long}\",\n \"date\": \"תאריך\",\n \"dateRange\": \"טווח תאריכים\",\n \"day\": \"יום\",\n \"dayPeriod\": \"לפנה״צ/אחה״צ\",\n \"endDate\": \"תאריך סיום\",\n \"era\": \"תקופה\",\n \"hour\": \"שעה\",\n \"minute\": \"דקה\",\n \"month\": \"חודש\",\n \"second\": \"שנייה\",\n \"startDate\": \"תאריך התחלה\",\n \"year\": \"שנה\",\n \"weekday\": \"יום בשבוע\",\n \"timeZoneName\": \"אזור זמן\"\n}\n","{\n \"calendar\": \"Kalendar\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} do {end, date, long}\",\n \"date\": \"Datum\",\n \"dateRange\": \"Raspon datuma\",\n \"day\": \"dan\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Datum završetka\",\n \"era\": \"era\",\n \"hour\": \"sat\",\n \"minute\": \"minuta\",\n \"month\": \"mjesec\",\n \"second\": \"sekunda\",\n \"startDate\": \"Datum početka\",\n \"year\": \"godina\",\n \"weekday\": \"dan u tjednu\",\n \"timeZoneName\": \"vremenska zona\"\n}\n","{\n \"calendar\": \"Naptár\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} – {end, date, long}\",\n \"date\": \"Dátum\",\n \"dateRange\": \"Dátumtartomány\",\n \"day\": \"nap\",\n \"dayPeriod\": \"napszak\",\n \"endDate\": \"Befejező dátum\",\n \"era\": \"éra\",\n \"hour\": \"óra\",\n \"minute\": \"perc\",\n \"month\": \"hónap\",\n \"second\": \"másodperc\",\n \"startDate\": \"Kezdő dátum\",\n \"year\": \"év\",\n \"weekday\": \"hét napja\",\n \"timeZoneName\": \"időzóna\"\n}\n","{\n \"calendar\": \"Calendario\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"Da {start, date, long} a {end, date, long}\",\n \"date\": \"Data\",\n \"dateRange\": \"Intervallo date\",\n \"day\": \"giorno\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Data finale\",\n \"era\": \"era\",\n \"hour\": \"ora\",\n \"minute\": \"minuto\",\n \"month\": \"mese\",\n \"second\": \"secondo\",\n \"startDate\": \"Data iniziale\",\n \"year\": \"anno\",\n \"weekday\": \"giorno della settimana\",\n \"timeZoneName\": \"fuso orario\"\n}\n","{\n \"calendar\": \"カレンダー\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} ~ {end, date, long}\",\n \"date\": \"日付\",\n \"dateRange\": \"日付範囲\",\n \"day\": \"日\",\n \"dayPeriod\": \"午前/午後\",\n \"endDate\": \"終了日\",\n \"era\": \"時代\",\n \"hour\": \"時\",\n \"minute\": \"分\",\n \"month\": \"月\",\n \"second\": \"秒\",\n \"startDate\": \"開始日\",\n \"year\": \"年\",\n \"weekday\": \"曜日\",\n \"timeZoneName\": \"タイムゾーン\"\n}\n","{\n \"calendar\": \"달력\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} ~ {end, date, long}\",\n \"date\": \"날짜\",\n \"dateRange\": \"날짜 범위\",\n \"day\": \"일\",\n \"dayPeriod\": \"오전/오후\",\n \"endDate\": \"종료 날짜\",\n \"era\": \"연호\",\n \"hour\": \"시\",\n \"minute\": \"분\",\n \"month\": \"월\",\n \"second\": \"초\",\n \"startDate\": \"시작 날짜\",\n \"year\": \"년\",\n \"weekday\": \"요일\",\n \"timeZoneName\": \"시간대\"\n}\n","{\n \"calendar\": \"Kalendorius\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"Nuo {start, date, long} iki {end, date, long}\",\n \"date\": \"Data\",\n \"dateRange\": \"Datų intervalas\",\n \"day\": \"diena\",\n \"dayPeriod\": \"iki pietų / po pietų\",\n \"endDate\": \"Pabaigos data\",\n \"era\": \"era\",\n \"hour\": \"valanda\",\n \"minute\": \"minutė\",\n \"month\": \"mėnuo\",\n \"second\": \"sekundė\",\n \"startDate\": \"Pradžios data\",\n \"year\": \"metai\",\n \"weekday\": \"savaitės diena\",\n \"timeZoneName\": \"laiko juosta\"\n}\n","{\n \"calendar\": \"Kalendārs\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} līdz {end, date, long}\",\n \"date\": \"Datums\",\n \"dateRange\": \"Datumu diapazons\",\n \"day\": \"diena\",\n \"dayPeriod\": \"priekšpusdienā/pēcpusdienā\",\n \"endDate\": \"Beigu datums\",\n \"era\": \"ēra\",\n \"hour\": \"stundas\",\n \"minute\": \"minūtes\",\n \"month\": \"mēnesis\",\n \"second\": \"sekundes\",\n \"startDate\": \"Sākuma datums\",\n \"year\": \"gads\",\n \"weekday\": \"nedēļas diena\",\n \"timeZoneName\": \"laika josla\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} til {end, date, long}\",\n \"date\": \"Dato\",\n \"dateRange\": \"Datoområde\",\n \"day\": \"dag\",\n \"dayPeriod\": \"a.m./p.m.\",\n \"endDate\": \"Sluttdato\",\n \"era\": \"tidsalder\",\n \"hour\": \"time\",\n \"minute\": \"minutt\",\n \"month\": \"måned\",\n \"second\": \"sekund\",\n \"startDate\": \"Startdato\",\n \"year\": \"år\",\n \"weekday\": \"ukedag\",\n \"timeZoneName\": \"tidssone\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} t/m {end, date, long}\",\n \"date\": \"Datum\",\n \"dateRange\": \"Datumbereik\",\n \"day\": \"dag\",\n \"dayPeriod\": \"a.m./p.m.\",\n \"endDate\": \"Einddatum\",\n \"era\": \"tijdperk\",\n \"hour\": \"uur\",\n \"minute\": \"minuut\",\n \"month\": \"maand\",\n \"second\": \"seconde\",\n \"startDate\": \"Startdatum\",\n \"year\": \"jaar\",\n \"weekday\": \"dag van de week\",\n \"timeZoneName\": \"tijdzone\"\n}\n","{\n \"calendar\": \"Kalendarz\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} do {end, date, long}\",\n \"date\": \"Data\",\n \"dateRange\": \"Zakres dat\",\n \"day\": \"dzień\",\n \"dayPeriod\": \"rano / po południu / wieczorem\",\n \"endDate\": \"Data końcowa\",\n \"era\": \"era\",\n \"hour\": \"godzina\",\n \"minute\": \"minuta\",\n \"month\": \"miesiąc\",\n \"second\": \"sekunda\",\n \"startDate\": \"Data początkowa\",\n \"year\": \"rok\",\n \"weekday\": \"dzień tygodnia\",\n \"timeZoneName\": \"strefa czasowa\"\n}\n","{\n \"calendar\": \"Calendário\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} a {end, date, long}\",\n \"date\": \"Data\",\n \"dateRange\": \"Intervalo de datas\",\n \"day\": \"dia\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Data final\",\n \"era\": \"era\",\n \"hour\": \"hora\",\n \"minute\": \"minuto\",\n \"month\": \"mês\",\n \"second\": \"segundo\",\n \"startDate\": \"Data inicial\",\n \"year\": \"ano\",\n \"weekday\": \"dia da semana\",\n \"timeZoneName\": \"fuso horário\"\n}\n","{\n \"calendar\": \"Calendário\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} a {end, date, long}\",\n \"date\": \"Data\",\n \"dateRange\": \"Intervalo de datas\",\n \"day\": \"dia\",\n \"dayPeriod\": \"am/pm\",\n \"endDate\": \"Data de Término\",\n \"era\": \"era\",\n \"hour\": \"hora\",\n \"minute\": \"minuto\",\n \"month\": \"mês\",\n \"second\": \"segundo\",\n \"startDate\": \"Data de Início\",\n \"year\": \"ano\",\n \"weekday\": \"dia da semana\",\n \"timeZoneName\": \"fuso horário\"\n}\n","{\n \"calendar\": \"Calendar\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} - {end, date, long}\",\n \"date\": \"Dată\",\n \"dateRange\": \"Raza datei\",\n \"day\": \"zi\",\n \"dayPeriod\": \"a.m/p.m.\",\n \"endDate\": \"Dată final\",\n \"era\": \"eră\",\n \"hour\": \"oră\",\n \"minute\": \"minut\",\n \"month\": \"lună\",\n \"second\": \"secundă\",\n \"startDate\": \"Dată început\",\n \"year\": \"an\",\n \"weekday\": \"ziua din săptămână\",\n \"timeZoneName\": \"fus orar\"\n}\n","{\n \"calendar\": \"Календарь\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} – {end, date, long}\",\n \"date\": \"Дата\",\n \"dateRange\": \"Диапазон дат\",\n \"day\": \"день\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Дата окончания\",\n \"era\": \"эра\",\n \"hour\": \"час\",\n \"minute\": \"минута\",\n \"month\": \"месяц\",\n \"second\": \"секунда\",\n \"startDate\": \"Дата начала\",\n \"year\": \"год\",\n \"weekday\": \"день недели\",\n \"timeZoneName\": \"часовой пояс\"\n}\n","{\n \"calendar\": \"Kalendár\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} do {end, date, long}\",\n \"date\": \"Dátum\",\n \"dateRange\": \"Rozsah dátumov\",\n \"day\": \"deň\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Dátum ukončenia\",\n \"era\": \"letopočet\",\n \"hour\": \"hodina\",\n \"minute\": \"minúta\",\n \"month\": \"mesiac\",\n \"second\": \"sekunda\",\n \"startDate\": \"Dátum začatia\",\n \"year\": \"rok\",\n \"weekday\": \"deň týždňa\",\n \"timeZoneName\": \"časové pásmo\"\n}\n","{\n \"calendar\": \"Koledar\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} do {end, date, long}\",\n \"date\": \"Datum\",\n \"dateRange\": \"Datumski obseg\",\n \"day\": \"dan\",\n \"dayPeriod\": \"dop/pop\",\n \"endDate\": \"Datum konca\",\n \"era\": \"doba\",\n \"hour\": \"ura\",\n \"minute\": \"minuta\",\n \"month\": \"mesec\",\n \"second\": \"sekunda\",\n \"startDate\": \"Datum začetka\",\n \"year\": \"leto\",\n \"weekday\": \"dan v tednu\",\n \"timeZoneName\": \"časovni pas\"\n}\n","{\n \"calendar\": \"Kalendar\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} do {end, date, long}\",\n \"date\": \"Datum\",\n \"dateRange\": \"Opseg datuma\",\n \"day\": \"дан\",\n \"dayPeriod\": \"пре подне/по подне\",\n \"endDate\": \"Datum završetka\",\n \"era\": \"ера\",\n \"hour\": \"сат\",\n \"minute\": \"минут\",\n \"month\": \"месец\",\n \"second\": \"секунд\",\n \"startDate\": \"Datum početka\",\n \"year\": \"година\",\n \"weekday\": \"дан у недељи\",\n \"timeZoneName\": \"временска зона\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} till {end, date, long}\",\n \"date\": \"Datum\",\n \"dateRange\": \"Datumintervall\",\n \"day\": \"dag\",\n \"dayPeriod\": \"fm/em\",\n \"endDate\": \"Slutdatum\",\n \"era\": \"era\",\n \"hour\": \"timme\",\n \"minute\": \"minut\",\n \"month\": \"månad\",\n \"second\": \"sekund\",\n \"startDate\": \"Startdatum\",\n \"year\": \"år\",\n \"weekday\": \"veckodag\",\n \"timeZoneName\": \"tidszon\"\n}\n","{\n \"calendar\": \"Takvim\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} - {end, date, long}\",\n \"date\": \"Tarih\",\n \"dateRange\": \"Tarih Aralığı\",\n \"day\": \"gün\",\n \"dayPeriod\": \"ÖÖ/ÖS\",\n \"endDate\": \"Bitiş Tarihi\",\n \"era\": \"çağ\",\n \"hour\": \"saat\",\n \"minute\": \"dakika\",\n \"month\": \"ay\",\n \"second\": \"saniye\",\n \"startDate\": \"Başlangıç Tarihi\",\n \"year\": \"yıl\",\n \"weekday\": \"haftanın günü\",\n \"timeZoneName\": \"saat dilimi\"\n}\n","{\n \"calendar\": \"Календар\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"Від {start, date, long} до {end, date, long}\",\n \"date\": \"Дата\",\n \"dateRange\": \"Діапазон дат\",\n \"day\": \"день\",\n \"dayPeriod\": \"дп/пп\",\n \"endDate\": \"Дата завершення\",\n \"era\": \"ера\",\n \"hour\": \"година\",\n \"minute\": \"хвилина\",\n \"month\": \"місяць\",\n \"second\": \"секунда\",\n \"startDate\": \"Дата початку\",\n \"year\": \"рік\",\n \"weekday\": \"день тижня\",\n \"timeZoneName\": \"часовий пояс\"\n}\n","{\n \"calendar\": \"日历\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} 至 {end, date, long}\",\n \"date\": \"日期\",\n \"dateRange\": \"日期范围\",\n \"day\": \"日\",\n \"dayPeriod\": \"上午/下午\",\n \"endDate\": \"结束日期\",\n \"era\": \"纪元\",\n \"hour\": \"小时\",\n \"minute\": \"分钟\",\n \"month\": \"月\",\n \"second\": \"秒\",\n \"startDate\": \"开始日期\",\n \"year\": \"年\",\n \"weekday\": \"工作日\",\n \"timeZoneName\": \"时区\"\n}\n","{\n \"calendar\": \"日曆\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long}至 {end, date, long}\",\n \"date\": \"日期\",\n \"dateRange\": \"日期範圍\",\n \"day\": \"日\",\n \"dayPeriod\": \"上午/下午\",\n \"endDate\": \"結束日期\",\n \"era\": \"纪元\",\n \"hour\": \"小时\",\n \"minute\": \"分钟\",\n \"month\": \"月\",\n \"second\": \"秒\",\n \"startDate\": \"開始日期\",\n \"year\": \"年\",\n \"weekday\": \"工作日\",\n \"timeZoneName\": \"时区\"\n}\n","import {DatePickerFieldState, DatePickerState, DateRangePickerState} from '@react-stately/datepicker';\nimport {getFocusableTreeWalker} from '@react-aria/focus';\nimport {KeyboardEvent} from '@react-types/shared';\nimport {mergeProps} from '@react-aria/utils';\nimport {RefObject} from 'react';\nimport {usePress} from '@react-aria/interactions';\n\nexport function useDatePickerGroup(state: DatePickerState | DateRangePickerState | DatePickerFieldState, ref: RefObject<HTMLElement>) {\n // Open the popover on alt + arrow down\n let onKeyDown = (e: KeyboardEvent) => {\n if (e.altKey && e.key === 'ArrowDown' && 'setOpen' in state) {\n e.preventDefault();\n e.stopPropagation();\n state.setOpen(true);\n }\n };\n\n // Focus the first placeholder segment from the end on mouse down/touch up in the field.\n let focusLast = () => {\n // Try to find the segment prior to the element that was clicked on.\n let target = window.event?.target as HTMLElement;\n let walker = getFocusableTreeWalker(ref.current, {tabbable: true});\n if (target) {\n walker.currentNode = target;\n target = walker.previousNode() as HTMLElement;\n }\n\n // If no target found, find the last element from the end.\n if (!target) {\n let last: HTMLElement;\n do {\n last = walker.lastChild() as HTMLElement;\n if (last) {\n target = last;\n }\n } while (last);\n }\n\n // Now go backwards until we find an element that is not a placeholder.\n while (target?.getAttribute('aria-placeholder')) {\n let prev = walker.previousNode() as HTMLElement;\n if (prev && prev.getAttribute('aria-placeholder')) {\n target = prev;\n } else {\n break;\n }\n }\n\n if (target) {\n target.focus();\n }\n };\n\n let {pressProps} = usePress({\n onPressStart(e) {\n if (e.pointerType === 'mouse') {\n focusLast();\n }\n },\n onPress(e) {\n if (e.pointerType !== 'mouse') {\n focusLast();\n }\n }\n });\n\n return mergeProps(pressProps, {onKeyDown});\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {DatePickerFieldState, DateSegment} from '@react-stately/datepicker';\nimport {getScrollParent, isIOS, isMac, mergeProps, scrollIntoView, useEvent, useId} from '@react-aria/utils';\nimport {hookData} from './useDateField';\nimport {NumberParser} from '@internationalized/number';\nimport React, {HTMLAttributes, RefObject, useMemo, useRef} from 'react';\nimport {useDateFormatter, useFilter, useLocale} from '@react-aria/i18n';\nimport {useDisplayNames} from './useDisplayNames';\nimport {usePress} from '@react-aria/interactions';\nimport {useSpinButton} from '@react-aria/spinbutton';\n\ninterface DateSegmentAria {\n /** Props for the segment element. */\n segmentProps: HTMLAttributes<HTMLDivElement>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a segment in a date field.\n * A date segment displays an individual unit of a date and time, and allows users to edit\n * the value by typing or using the arrow keys to increment and decrement.\n */\nexport function useDateSegment(segment: DateSegment, state: DatePickerFieldState, ref: RefObject<HTMLElement>): DateSegmentAria {\n let enteredKeys = useRef('');\n let {locale, direction} = useLocale();\n let displayNames = useDisplayNames();\n let {ariaLabelledBy, ariaDescribedBy, focusManager} = hookData.get(state);\n\n let textValue = segment.text;\n let options = useMemo(() => state.dateFormatter.resolvedOptions(), [state.dateFormatter]);\n let monthDateFormatter = useDateFormatter({month: 'long', timeZone: options.timeZone});\n let hourDateFormatter = useDateFormatter({\n hour: 'numeric',\n hour12: options.hour12,\n timeZone: options.timeZone\n });\n\n if (segment.type === 'month') {\n let monthTextValue = monthDateFormatter.format(state.dateValue);\n textValue = monthTextValue !== textValue ? `${textValue} – ${monthTextValue}` : monthTextValue;\n } else if (segment.type === 'hour' || segment.type === 'dayPeriod') {\n textValue = hourDateFormatter.format(state.dateValue);\n }\n\n let {spinButtonProps} = useSpinButton({\n value: segment.value,\n textValue,\n minValue: segment.minValue,\n maxValue: segment.maxValue,\n isDisabled: state.isDisabled,\n isReadOnly: state.isReadOnly || !segment.isEditable,\n isRequired: state.isRequired,\n onIncrement: () => {\n enteredKeys.current = '';\n state.increment(segment.type);\n },\n onDecrement: () => {\n enteredKeys.current = '';\n state.decrement(segment.type);\n },\n onIncrementPage: () => {\n enteredKeys.current = '';\n state.incrementPage(segment.type);\n },\n onDecrementPage: () => {\n enteredKeys.current = '';\n state.decrementPage(segment.type);\n },\n onIncrementToMax: () => {\n enteredKeys.current = '';\n state.setSegment(segment.type, segment.maxValue);\n },\n onDecrementToMin: () => {\n enteredKeys.current = '';\n state.setSegment(segment.type, segment.minValue);\n }\n });\n\n let parser = useMemo(() => new NumberParser(locale, {maximumFractionDigits: 0}), [locale]);\n\n let backspace = () => {\n if (parser.isValidPartialNumber(segment.text) && !state.isReadOnly && !segment.isPlaceholder) {\n let newValue = segment.text.slice(0, -1);\n let parsed = parser.parse(newValue);\n if (newValue.length === 0 || parsed === 0) {\n state.clearSegment(segment.type);\n } else {\n state.setSegment(segment.type, parsed);\n }\n enteredKeys.current = newValue;\n } else if (segment.type === 'dayPeriod') {\n state.clearSegment(segment.type);\n }\n };\n\n let onKeyDown = (e) => {\n // Firefox does not fire selectstart for Ctrl/Cmd + A\n // https://bugzilla.mozilla.org/show_bug.cgi?id=1742153\n if (e.key === 'a' && (isMac() ? e.metaKey : e.ctrlKey)) {\n e.preventDefault();\n }\n\n if (e.ctrlKey || e.metaKey || e.shiftKey || e.altKey) {\n return;\n }\n\n switch (e.key) {\n case 'ArrowLeft':\n e.preventDefault();\n e.stopPropagation();\n if (direction === 'rtl') {\n focusManager.focusNext({tabbable: true});\n } else {\n focusManager.focusPrevious({tabbable: true});\n }\n break;\n case 'ArrowRight':\n e.preventDefault();\n e.stopPropagation();\n if (direction === 'rtl') {\n focusManager.focusPrevious({tabbable: true});\n } else {\n focusManager.focusNext({tabbable: true});\n }\n break;\n case 'Enter':\n e.preventDefault();\n e.stopPropagation();\n if (segment.isPlaceholder && !state.isReadOnly) {\n state.confirmPlaceholder(segment.type);\n }\n focusManager.focusNext({tabbable: true});\n break;\n case 'Tab':\n break;\n case 'Backspace':\n case 'Delete': {\n // Safari on iOS does not fire beforeinput for the backspace key because the cursor is at the start.\n e.preventDefault();\n e.stopPropagation();\n backspace();\n break;\n }\n }\n };\n\n // Safari dayPeriod option doesn't work...\n let {startsWith} = useFilter({sensitivity: 'base'});\n let amPmFormatter = useDateFormatter({hour: 'numeric', hour12: true});\n let am = useMemo(() => {\n let date = new Date();\n date.setHours(0);\n return amPmFormatter.formatToParts(date).find(part => part.type === 'dayPeriod').value;\n }, [amPmFormatter]);\n\n let pm = useMemo(() => {\n let date = new Date();\n date.setHours(12);\n return amPmFormatter.formatToParts(date).find(part => part.type === 'dayPeriod').value;\n }, [amPmFormatter]);\n\n let onInput = (key: string) => {\n if (state.isDisabled || state.isReadOnly) {\n return;\n }\n\n let newValue = enteredKeys.current + key;\n\n switch (segment.type) {\n case 'dayPeriod':\n if (startsWith(am, key)) {\n state.setSegment('dayPeriod', 0);\n } else if (startsWith(pm, key)) {\n state.setSegment('dayPeriod', 12);\n } else {\n break;\n }\n focusManager.focusNext({tabbable: true});\n break;\n case 'day':\n case 'hour':\n case 'minute':\n case 'second':\n case 'month':\n case 'year': {\n if (!parser.isValidPartialNumber(newValue)) {\n return;\n }\n\n let numberValue = parser.parse(newValue);\n let segmentValue = numberValue;\n let allowsZero = segment.minValue === 0;\n if (segment.type === 'hour' && state.dateFormatter.resolvedOptions().hour12) {\n switch (state.dateFormatter.resolvedOptions().hourCycle) {\n case 'h11':\n if (numberValue > 11) {\n segmentValue = parser.parse(key);\n }\n break;\n case 'h12':\n allowsZero = false;\n if (numberValue > 12) {\n segmentValue = parser.parse(key);\n }\n break;\n }\n\n if (segment.value >= 12 && numberValue > 1) {\n numberValue += 12;\n }\n } else if (numberValue > segment.maxValue) {\n segmentValue = parser.parse(key);\n }\n\n if (isNaN(numberValue)) {\n return;\n }\n\n let shouldSetValue = segmentValue !== 0 || allowsZero;\n if (shouldSetValue) {\n state.setSegment(segment.type, segmentValue);\n }\n\n if (Number(numberValue + '0') > segment.maxValue || newValue.length >= String(segment.maxValue).length) {\n enteredKeys.current = '';\n if (shouldSetValue) {\n focusManager.focusNext({tabbable: true});\n }\n } else {\n enteredKeys.current = newValue;\n }\n break;\n }\n }\n };\n\n let onFocus = () => {\n enteredKeys.current = '';\n scrollIntoView(getScrollParent(ref.current) as HTMLElement, ref.current);\n\n // Safari requires that a selection is set or it won't fire input events.\n // Since usePress disables text selection, this won't happen by default.\n ref.current.style.webkitUserSelect = 'text';\n let selection = window.getSelection();\n selection.collapse(ref.current);\n ref.current.style.webkitUserSelect = '';\n };\n\n let compositionRef = useRef('');\n // @ts-ignore - TODO: possibly old TS version? doesn't fail in my editor...\n useEvent(ref, 'beforeinput', e => {\n e.preventDefault();\n\n switch (e.inputType) {\n case 'deleteContentBackward':\n case 'deleteContentForward':\n if (parser.isValidPartialNumber(segment.text) && !state.isReadOnly) {\n backspace();\n }\n break;\n case 'insertCompositionText':\n // insertCompositionText cannot be canceled.\n // Record the current state of the element so we can restore it in the `input` event below.\n compositionRef.current = ref.current.textContent;\n\n // Safari gets stuck in a composition state unless we also assign to the value here.\n // eslint-disable-next-line no-self-assign\n ref.current.textContent = ref.current.textContent;\n break;\n default:\n if (e.data != null) {\n onInput(e.data);\n }\n break;\n }\n });\n\n useEvent(ref, 'input', (e: InputEvent) => {\n let {inputType, data} = e;\n switch (inputType) {\n case 'insertCompositionText':\n // Reset the DOM to how it was in the beforeinput event.\n ref.current.textContent = compositionRef.current;\n\n // Android sometimes fires key presses of letters as composition events. Need to handle am/pm keys here too.\n // Can also happen e.g. with Pinyin keyboard on iOS.\n if (startsWith(am, data) || startsWith(pm, data)) {\n onInput(data);\n }\n break;\n }\n });\n\n // Focus on mouse down/touch up to match native textfield behavior.\n // usePress handles canceling text selection.\n let {pressProps} = usePress({\n preventFocusOnPress: true,\n onPressStart: (e) => {\n if (e.pointerType === 'mouse') {\n e.target.focus();\n }\n },\n onPress(e) {\n if (e.pointerType !== 'mouse') {\n e.target.focus();\n }\n }\n });\n\n // For Android: prevent selection on long press.\n useEvent(ref, 'selectstart', e => {\n e.preventDefault();\n });\n\n // spinbuttons cannot be focused with VoiceOver on iOS.\n let touchPropOverrides = isIOS() || segment.type === 'timeZoneName' ? {\n role: 'textbox',\n 'aria-valuemax': null,\n 'aria-valuemin': null,\n 'aria-valuetext': null,\n 'aria-valuenow': null\n } : {};\n\n // Only apply aria-describedby to the first segment, unless the field is invalid. This avoids it being\n // read every time the user navigates to a new segment.\n let firstSegment = useMemo(() => state.segments.find(s => s.isEditable), [state.segments]);\n if (segment !== firstSegment && state.validationState !== 'invalid') {\n ariaDescribedBy = undefined;\n }\n\n let id = useId();\n let isEditable = !state.isDisabled && !state.isReadOnly && segment.isEditable;\n\n // Literal segments should not be visible to screen readers. We don't really need any of the above,\n // but the rules of hooks mean hooks cannot be conditional so we have to put this condition here.\n if (segment.type === 'literal') {\n return {\n segmentProps: {\n 'aria-hidden': true\n }\n };\n }\n\n return {\n segmentProps: mergeProps(spinButtonProps, pressProps, {\n id,\n ...touchPropOverrides,\n 'aria-invalid': state.validationState === 'invalid' ? 'true' : undefined,\n 'aria-label': displayNames.of(segment.type),\n 'aria-labelledby': `${ariaLabelledBy} ${id}`,\n 'aria-describedby': ariaDescribedBy,\n 'aria-placeholder': segment.isPlaceholder ? segment.text : undefined,\n 'aria-readonly': state.isReadOnly || !segment.isEditable ? 'true' : undefined,\n contentEditable: isEditable,\n suppressContentEditableWarning: isEditable,\n spellCheck: isEditable ? 'false' : undefined,\n autoCapitalize: isEditable ? 'off' : undefined,\n autoCorrect: isEditable ? 'off' : undefined,\n // Capitalization was changed in React 17...\n [parseInt(React.version, 10) >= 17 ? 'enterKeyHint' : 'enterkeyhint']: isEditable ? 'next' : undefined,\n inputMode: state.isDisabled || segment.type === 'dayPeriod' || !isEditable ? undefined : 'numeric',\n tabIndex: state.isDisabled ? undefined : 0,\n onKeyDown,\n onFocus,\n style: {\n caretColor: 'transparent'\n }\n })\n };\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaDatePickerProps, AriaTimeFieldProps, DateValue, TimeValue} from '@react-types/datepicker';\nimport {createFocusManager, FocusManager} from '@react-aria/focus';\nimport {DatePickerFieldState} from '@react-stately/datepicker';\nimport {focusManagerSymbol} from './useDateRangePicker';\nimport {HTMLAttributes, RefObject, useEffect, useMemo, useRef} from 'react';\nimport {mergeProps, useDescription} from '@react-aria/utils';\nimport {useDateFormatter} from '@react-aria/i18n';\nimport {useDatePickerGroup} from './useDatePickerGroup';\nimport {useField} from '@react-aria/label';\nimport {useFocusWithin} from '@react-aria/interactions';\n\n// Allows this hook to also be used with TimeField\ninterface DateFieldProps<T extends DateValue> extends Omit<AriaDatePickerProps<T>, 'value' | 'defaultValue' | 'onChange' | 'minValue' | 'maxValue' | 'placeholderValue'> {}\n\ninterface DateFieldAria {\n /** Props for the field's visible label element, if any. */\n labelProps: HTMLAttributes<HTMLElement>,\n /** Props for the field grouping element. */\n fieldProps: HTMLAttributes<HTMLElement>,\n /** Props for the description element, if any. */\n descriptionProps: HTMLAttributes<HTMLElement>,\n /** Props for the error message element, if any. */\n errorMessageProps: HTMLAttributes<HTMLElement>\n}\n\n// Data that is passed between useDateField and useDateSegment.\ninterface HookData {\n ariaLabelledBy: string,\n ariaDescribedBy: string,\n focusManager: FocusManager\n}\n\nexport const hookData = new WeakMap<DatePickerFieldState, HookData>();\n\n/**\n * Provides the behavior and accessibility implementation for a date field component.\n * A date field allows users to enter and edit date and time values using a keyboard.\n * Each part of a date value is displayed in an individually editable segment.\n */\nexport function useDateField<T extends DateValue>(props: DateFieldProps<T>, state: DatePickerFieldState, ref: RefObject<HTMLElement>): DateFieldAria {\n let {labelProps, fieldProps, descriptionProps, errorMessageProps} = useField({\n ...props,\n labelElementType: 'span'\n });\n\n let groupProps = useDatePickerGroup(state, ref);\n\n let {focusWithinProps} = useFocusWithin({\n onBlurWithin() {\n state.confirmPlaceholder();\n }\n });\n\n let formatter = useDateFormatter(state.getFormatOptions({month: 'long'}));\n let descProps = useDescription(state.value ? formatter.format(state.dateValue) : null);\n\n let segmentLabelledBy = fieldProps['aria-labelledby'] || fieldProps.id;\n let describedBy = [descProps['aria-describedby'], fieldProps['aria-describedby']].filter(Boolean).join(' ') || undefined;\n let propsFocusManager = props[focusManagerSymbol];\n let focusManager = useMemo(() => propsFocusManager || createFocusManager(ref), [propsFocusManager, ref]);\n\n hookData.set(state, {\n ariaLabelledBy: segmentLabelledBy,\n ariaDescribedBy: describedBy,\n focusManager\n });\n\n let autoFocusRef = useRef(props.autoFocus);\n\n useEffect(() => {\n if (autoFocusRef.current) {\n focusManager.focusFirst();\n }\n autoFocusRef.current = false;\n }, [focusManager]);\n\n return {\n labelProps: {\n ...labelProps,\n onClick: () => {\n focusManager.focusFirst();\n }\n },\n fieldProps: mergeProps(fieldProps, descProps, groupProps, focusWithinProps, {\n role: 'group',\n 'aria-disabled': props.isDisabled || undefined,\n 'aria-describedby': describedBy\n }),\n descriptionProps,\n errorMessageProps\n };\n}\n\n/**\n * Provides the behavior and accessibility implementation for a time field component.\n * A time field allows users to enter and edit time values using a keyboard.\n * Each part of a time value is displayed in an individually editable segment.\n */\nexport function useTimeField<T extends TimeValue>(props: AriaTimeFieldProps<T>, state: DatePickerFieldState, ref: RefObject<HTMLElement>): DateFieldAria {\n return useDateField(props, state, ref);\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaButtonProps} from '@react-types/button';\nimport {AriaDatePickerProps, AriaDateRangePickerProps, DateValue} from '@react-types/datepicker';\nimport {AriaDialogProps} from '@react-types/dialog';\nimport {createFocusManager} from '@react-aria/focus';\nimport {DateRangePickerState} from '@react-stately/datepicker';\nimport {HTMLAttributes, RefObject, useMemo} from 'react';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {mergeProps, useDescription, useId, useLabels} from '@react-aria/utils';\nimport {RangeCalendarProps} from '@react-types/calendar';\nimport {useDatePickerGroup} from './useDatePickerGroup';\nimport {useField} from '@react-aria/label';\nimport {useFocusWithin} from '@react-aria/interactions';\nimport {useLocale, useMessageFormatter} from '@react-aria/i18n';\n\ninterface DateRangePickerAria {\n /** Props for the date range picker's visible label element, if any. */\n labelProps: HTMLAttributes<HTMLElement>,\n /** Props for the grouping element containing the date fields and button. */\n groupProps: HTMLAttributes<HTMLElement>,\n /** Props for the start date field. */\n startFieldProps: AriaDatePickerProps<DateValue>,\n /** Props for the end date field. */\n endFieldProps: AriaDatePickerProps<DateValue>,\n /** Props for the popover trigger button. */\n buttonProps: AriaButtonProps,\n /** Props for the description element, if any. */\n descriptionProps: HTMLAttributes<HTMLElement>,\n /** Props for the error message element, if any. */\n errorMessageProps: HTMLAttributes<HTMLElement>,\n /** Props for the popover dialog. */\n dialogProps: AriaDialogProps,\n /** Props for the range calendar within the popover dialog. */\n calendarProps: RangeCalendarProps<DateValue>\n}\n\n// Used to pass the focus manager to the date fields.\n// Ideally we'd use a Symbol for this, but React doesn't support them: https://github.com/facebook/react/issues/7552\nexport const focusManagerSymbol = '__focusManager_' + Date.now();\n\n/**\n * Provides the behavior and accessibility implementation for a date picker component.\n * A date range picker combines two DateFields and a RangeCalendar popover to allow\n * users to enter or select a date and time range.\n */\nexport function useDateRangePicker<T extends DateValue>(props: AriaDateRangePickerProps<T>, state: DateRangePickerState, ref: RefObject<HTMLElement>): DateRangePickerAria {\n let formatMessage = useMessageFormatter(intlMessages);\n let {labelProps, fieldProps, descriptionProps, errorMessageProps} = useField({\n ...props,\n labelElementType: 'span'\n });\n\n let labelledBy = fieldProps['aria-labelledby'] || fieldProps.id;\n\n let {locale} = useLocale();\n let description = state.formatValue(locale, {month: 'long'});\n let descProps = useDescription(description);\n\n let startFieldProps = useLabels({\n 'aria-label': formatMessage('startDate'),\n 'aria-labelledby': labelledBy\n });\n\n let endFieldProps = useLabels({\n 'aria-label': formatMessage('endDate'),\n 'aria-labelledby': labelledBy\n });\n\n let buttonId = useId();\n let dialogId = useId();\n\n let groupProps = useDatePickerGroup(state, ref);\n let {focusWithinProps} = useFocusWithin({\n onBlurWithin() {\n state.confirmPlaceholder();\n }\n });\n\n let ariaDescribedBy = [descProps['aria-describedby'], fieldProps['aria-describedby']].filter(Boolean).join(' ') || undefined;\n let focusManager = useMemo(() => createFocusManager(ref), [ref]);\n let commonFieldProps = {\n [focusManagerSymbol]: focusManager,\n minValue: props.minValue,\n maxValue: props.maxValue,\n placeholderValue: props.placeholderValue,\n hideTimeZone: props.hideTimeZone,\n hourCycle: props.hourCycle,\n granularity: props.granularity,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isRequired: props.isRequired,\n validationState: state.validationState\n };\n\n return {\n groupProps: mergeProps(groupProps, fieldProps, descProps, focusWithinProps, {\n role: 'group',\n 'aria-disabled': props.isDisabled || null,\n 'aria-describedby': ariaDescribedBy\n }),\n labelProps: {\n ...labelProps,\n onClick: () => {\n focusManager.focusFirst();\n }\n },\n buttonProps: {\n ...descProps,\n id: buttonId,\n excludeFromTabOrder: true,\n 'aria-haspopup': 'dialog',\n 'aria-label': formatMessage('calendar'),\n 'aria-labelledby': `${labelledBy} ${buttonId}`,\n 'aria-describedby': ariaDescribedBy,\n onPress: () => state.setOpen(true)\n },\n dialogProps: {\n id: dialogId,\n 'aria-labelledby': `${labelledBy} ${buttonId}`\n },\n startFieldProps: {\n ...startFieldProps,\n ...commonFieldProps,\n 'aria-describedby': fieldProps['aria-describedby'],\n value: state.value?.start,\n onChange: start => state.setDateTime('start', start),\n autoFocus: props.autoFocus\n },\n endFieldProps: {\n ...endFieldProps,\n ...commonFieldProps,\n 'aria-describedby': fieldProps['aria-describedby'],\n value: state.value?.end,\n onChange: end => state.setDateTime('end', end)\n },\n descriptionProps,\n errorMessageProps,\n calendarProps: {\n autoFocus: true,\n value: state.dateRange,\n onChange: state.setDateRange,\n minValue: props.minValue,\n maxValue: props.maxValue,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isDateDisabled: props.isDateDisabled\n }\n };\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {MessageDictionary} from '@internationalized/message';\nimport {useLocale} from '@react-aria/i18n';\nimport {useMemo} from 'react';\n\ntype Field = 'era' | 'year' | 'month' | 'day' | 'hour' | 'minute' | 'second' | 'dayPeriod' | 'timeZoneName' | 'weekday';\ninterface DisplayNames {\n of(field: Field): string\n}\n\nexport function useDisplayNames(): DisplayNames {\n let {locale} = useLocale();\n return useMemo(() => {\n // Try to use Intl.DisplayNames if possible. It may be supported in browsers, but not support the dateTimeField\n // type as that was only added in v2. https://github.com/tc39/intl-displaynames-v2\n try {\n // @ts-ignore\n return new Intl.DisplayNames(locale, {type: 'dateTimeField'});\n } catch (err) {\n return new DisplayNamesPolyfill(locale);\n }\n }, [locale]);\n}\n\nclass DisplayNamesPolyfill implements DisplayNames {\n private locale: string;\n private dictionary: MessageDictionary;\n\n constructor(locale: string) {\n this.locale = locale;\n this.dictionary = new MessageDictionary(intlMessages);\n }\n\n of(field: Field): string {\n return this.dictionary.getStringForLocale(field, this.locale);\n }\n}\n"],"names":[],"version":3,"file":"module.js.map"}
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;AGAA,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA4c;;;;ACAxe,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA8d;;;;ACA1f,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA2d;;;;ACAvf,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA2b;;;;ACAvd,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAkd;;;;ACA9e,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA+e;;;;ACA3gB,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAsc;;;;ACAle,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAge;;;;ACA5f,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA8d;;;;ACA1f,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA8e;;;;ACA1gB,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA8d;;;;ACA1f,yBAAc,GAAG,IAAI,CAAC,KAAK,CA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AA5C,0CAA4C;aAC3C,QAAQ,CAAC,YAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,CAAc,gBAAG,CAAc,gBAAG,UAAU,GAAG,CAAM,QAAG,SAAS;YACtG,SAAS,EAAE,KAAK,CAAC,UAAU,IAAI,OAAO,CAAC,IAAI,KAAK,CAAW,eAAK,UAAU,GAAG,SAAS,GAAG,CAAS;YAClG,QAAQ,EAAE,KAAK,CAAC,UAAU,GAAG,SAAS,GAAG,CAAC;uBAC1C,SAAS;qBACT,OAAO;YACP,KAAK,EAAE,CAAC;gBACN,UAAU,EAAE,CAAa;YAC3B,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC;;","sources":["packages/@react-aria/datepicker/src/index.ts","packages/@react-aria/datepicker/src/useDatePicker.ts","packages/@react-aria/datepicker/intl/*.js","packages/@react-aria/datepicker/intl/ar-AE.json","packages/@react-aria/datepicker/intl/bg-BG.json","packages/@react-aria/datepicker/intl/cs-CZ.json","packages/@react-aria/datepicker/intl/da-DK.json","packages/@react-aria/datepicker/intl/de-DE.json","packages/@react-aria/datepicker/intl/el-GR.json","packages/@react-aria/datepicker/intl/en-US.json","packages/@react-aria/datepicker/intl/es-ES.json","packages/@react-aria/datepicker/intl/et-EE.json","packages/@react-aria/datepicker/intl/fi-FI.json","packages/@react-aria/datepicker/intl/fr-FR.json","packages/@react-aria/datepicker/intl/he-IL.json","packages/@react-aria/datepicker/intl/hr-HR.json","packages/@react-aria/datepicker/intl/hu-HU.json","packages/@react-aria/datepicker/intl/it-IT.json","packages/@react-aria/datepicker/intl/ja-JP.json","packages/@react-aria/datepicker/intl/ko-KR.json","packages/@react-aria/datepicker/intl/lt-LT.json","packages/@react-aria/datepicker/intl/lv-LV.json","packages/@react-aria/datepicker/intl/nb-NO.json","packages/@react-aria/datepicker/intl/nl-NL.json","packages/@react-aria/datepicker/intl/pl-PL.json","packages/@react-aria/datepicker/intl/pt-BR.json","packages/@react-aria/datepicker/intl/pt-PT.json","packages/@react-aria/datepicker/intl/ro-RO.json","packages/@react-aria/datepicker/intl/ru-RU.json","packages/@react-aria/datepicker/intl/sk-SK.json","packages/@react-aria/datepicker/intl/sl-SI.json","packages/@react-aria/datepicker/intl/sr-SP.json","packages/@react-aria/datepicker/intl/sv-SE.json","packages/@react-aria/datepicker/intl/tr-TR.json","packages/@react-aria/datepicker/intl/uk-UA.json","packages/@react-aria/datepicker/intl/zh-CN.json","packages/@react-aria/datepicker/intl/zh-TW.json","packages/@react-aria/datepicker/src/useDatePickerGroup.ts","packages/@react-aria/datepicker/src/useDateSegment.ts","packages/@react-aria/datepicker/src/useDateField.ts","packages/@react-aria/datepicker/src/useDateRangePicker.ts","packages/@react-aria/datepicker/src/useDisplayNames.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport {useDatePicker} from './useDatePicker';\nexport {useDateSegment} from './useDateSegment';\nexport {useDateField, useTimeField} from './useDateField';\nexport {useDateRangePicker} from './useDateRangePicker';\nexport * from './useDisplayNames';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaButtonProps} from '@react-types/button';\nimport {AriaDatePickerProps, DateValue} from '@react-types/datepicker';\nimport {AriaDialogProps} from '@react-types/dialog';\nimport {CalendarProps} from '@react-types/calendar';\nimport {createFocusManager} from '@react-aria/focus';\nimport {DatePickerState} from '@react-stately/datepicker';\nimport {HTMLAttributes, RefObject} from 'react';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {mergeProps, useDescription, useId} from '@react-aria/utils';\nimport {useDatePickerGroup} from './useDatePickerGroup';\nimport {useField} from '@react-aria/label';\nimport {useLocale, useMessageFormatter} from '@react-aria/i18n';\n\ninterface DatePickerAria {\n /** Props for the date picker's visible label element, if any. */\n labelProps: HTMLAttributes<HTMLElement>,\n /** Props for the grouping element containing the date field and button. */\n groupProps: HTMLAttributes<HTMLElement>,\n /** Props for the date field. */\n fieldProps: AriaDatePickerProps<DateValue>,\n /** Props for the popover trigger button. */\n buttonProps: AriaButtonProps,\n /** Props for the description element, if any. */\n descriptionProps: HTMLAttributes<HTMLElement>,\n /** Props for the error message element, if any. */\n errorMessageProps: HTMLAttributes<HTMLElement>,\n /** Props for the popover dialog. */\n dialogProps: AriaDialogProps,\n /** Props for the calendar within the popover dialog. */\n calendarProps: CalendarProps<DateValue>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a date picker component.\n * A date picker combines a DateField and a Calendar popover to allow users to enter or select a date and time value.\n */\nexport function useDatePicker<T extends DateValue>(props: AriaDatePickerProps<T>, state: DatePickerState, ref: RefObject<HTMLElement>): DatePickerAria {\n let buttonId = useId();\n let dialogId = useId();\n let formatMessage = useMessageFormatter(intlMessages);\n\n let {labelProps, fieldProps, descriptionProps, errorMessageProps} = useField({\n ...props,\n labelElementType: 'span'\n });\n\n let groupProps = useDatePickerGroup(state, ref);\n\n let labelledBy = fieldProps['aria-labelledby'] || fieldProps.id;\n\n let {locale} = useLocale();\n let descProps = useDescription(state.formatValue(locale, {month: 'long'}));\n let ariaDescribedBy = [descProps['aria-describedby'], fieldProps['aria-describedby']].filter(Boolean).join(' ') || undefined;\n\n return {\n groupProps: mergeProps(groupProps, descProps, {\n role: 'group',\n 'aria-disabled': props.isDisabled || null,\n 'aria-labelledby': labelledBy,\n 'aria-describedby': ariaDescribedBy\n }),\n labelProps: {\n ...labelProps,\n onClick: () => {\n let focusManager = createFocusManager(ref);\n focusManager.focusFirst();\n }\n },\n fieldProps: {\n ...fieldProps,\n value: state.value,\n onChange: state.setValue,\n minValue: props.minValue,\n maxValue: props.maxValue,\n placeholderValue: props.placeholderValue,\n hideTimeZone: props.hideTimeZone,\n hourCycle: props.hourCycle,\n granularity: props.granularity,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isRequired: props.isRequired,\n validationState: state.validationState,\n autoFocus: props.autoFocus\n },\n descriptionProps,\n errorMessageProps,\n buttonProps: {\n ...descProps,\n id: buttonId,\n excludeFromTabOrder: true,\n 'aria-haspopup': 'dialog',\n 'aria-label': formatMessage('calendar'),\n 'aria-labelledby': `${labelledBy} ${buttonId}`,\n 'aria-describedby': ariaDescribedBy,\n onPress: () => state.setOpen(true)\n },\n dialogProps: {\n id: dialogId,\n 'aria-labelledby': `${labelledBy} ${buttonId}`\n },\n calendarProps: {\n autoFocus: true,\n value: state.dateValue,\n onChange: state.setDateValue,\n minValue: props.minValue,\n maxValue: props.maxValue,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isDateDisabled: props.isDateDisabled,\n defaultFocusedValue: state.dateValue ? undefined : props.placeholderValue\n }\n };\n}\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"calendar\": \"التقويم\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} إلى {end, date, long}\",\n \"date\": \"التاريخ\",\n \"dateRange\": \"نطاق التاريخ\",\n \"day\": \"يوم\",\n \"dayPeriod\": \"ص/م\",\n \"endDate\": \"تاريخ الانتهاء\",\n \"era\": \"العصر\",\n \"hour\": \"الساعات\",\n \"minute\": \"الدقائق\",\n \"month\": \"الشهر\",\n \"second\": \"الثواني\",\n \"startDate\": \"تاريخ البدء\",\n \"year\": \"السنة\",\n \"weekday\": \"اليوم\",\n \"timeZoneName\": \"التوقيت\"\n}\n","{\n \"calendar\": \"Календар\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} до {end, date, long}\",\n \"date\": \"Дата\",\n \"dateRange\": \"Времеви интервал\",\n \"day\": \"ден\",\n \"dayPeriod\": \"пр.об./сл.об.\",\n \"endDate\": \"Крайна дата\",\n \"era\": \"ера\",\n \"hour\": \"час\",\n \"minute\": \"минута\",\n \"month\": \"месец\",\n \"second\": \"секунда\",\n \"startDate\": \"Начална дата\",\n \"year\": \"година\",\n \"weekday\": \"ден от седмицата\",\n \"timeZoneName\": \"часова зона\"\n}\n","{\n \"calendar\": \"Kalendář\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} až {end, date, long}\",\n \"date\": \"Datum\",\n \"dateRange\": \"Rozsah dat\",\n \"day\": \"den\",\n \"dayPeriod\": \"část dne\",\n \"endDate\": \"Konečné datum\",\n \"era\": \"letopočet\",\n \"hour\": \"hodina\",\n \"minute\": \"minuta\",\n \"month\": \"měsíc\",\n \"second\": \"sekunda\",\n \"startDate\": \"Počáteční datum\",\n \"year\": \"rok\",\n \"weekday\": \"den v týdnu\",\n \"timeZoneName\": \"časové pásmo\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} til {end, date, long}\",\n \"date\": \"Dato\",\n \"dateRange\": \"Datointerval\",\n \"day\": \"dag\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Slutdato\",\n \"era\": \"æra\",\n \"hour\": \"time\",\n \"minute\": \"minut\",\n \"month\": \"måned\",\n \"second\": \"sekund\",\n \"startDate\": \"Startdato\",\n \"year\": \"år\",\n \"weekday\": \"ugedag\",\n \"timeZoneName\": \"tidszone\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} bis {end, date, long}\",\n \"date\": \"Datum\",\n \"dateRange\": \"Datumsbereich\",\n \"day\": \"Tag\",\n \"dayPeriod\": \"Tageshälfte\",\n \"endDate\": \"Enddatum\",\n \"era\": \"Epoche\",\n \"hour\": \"Stunde\",\n \"minute\": \"Minute\",\n \"month\": \"Monat\",\n \"second\": \"Sekunde\",\n \"startDate\": \"Anfangsdatum\",\n \"year\": \"Jahr\",\n \"weekday\": \"Wochentag\",\n \"timeZoneName\": \"Zeitzone\"\n}\n","{\n \"calendar\": \"Ημερολόγιο\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} ως {end, date, long}\",\n \"date\": \"Ημερομηνία\",\n \"dateRange\": \"Εύρος ημερομηνιών\",\n \"day\": \"ημέρα\",\n \"dayPeriod\": \"π.μ./μ.μ.\",\n \"endDate\": \"Ημερομηνία λήξης\",\n \"era\": \"περίοδος\",\n \"hour\": \"ώρα\",\n \"minute\": \"λεπτό\",\n \"month\": \"μήνας\",\n \"second\": \"δευτερόλεπτο\",\n \"startDate\": \"Ημερομηνία έναρξης\",\n \"year\": \"έτος\",\n \"weekday\": \"καθημερινή\",\n \"timeZoneName\": \"ζώνη ώρας\"\n}\n","{\n \"era\": \"era\",\n \"year\": \"year\",\n \"month\": \"month\",\n \"day\": \"day\",\n \"hour\": \"hour\",\n \"minute\": \"minute\",\n \"second\": \"second\",\n \"dayPeriod\": \"AM/PM\",\n \"calendar\": \"Calendar\",\n \"date\": \"Date\",\n \"dateRange\": \"Date Range\",\n \"startDate\": \"Start Date\",\n \"endDate\": \"End Date\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} to {end, date, long}\",\n \"weekday\": \"day of the week\",\n \"timeZoneName\": \"time zone\"\n}\n","{\n \"calendar\": \"Calendario\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} a {end, date, long}\",\n \"date\": \"Fecha\",\n \"dateRange\": \"Intervalo de fecha\",\n \"day\": \"día\",\n \"dayPeriod\": \"a. m./p. m.\",\n \"endDate\": \"Fecha final\",\n \"era\": \"era\",\n \"hour\": \"hora\",\n \"minute\": \"minuto\",\n \"month\": \"mes\",\n \"second\": \"segundo\",\n \"startDate\": \"Fecha de inicio\",\n \"year\": \"año\",\n \"weekday\": \"día de la semana\",\n \"timeZoneName\": \"zona horaria\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} kuni {end, date, long}\",\n \"date\": \"Kuupäev\",\n \"dateRange\": \"Kuupäevavahemik\",\n \"day\": \"päev\",\n \"dayPeriod\": \"enne/pärast lõunat\",\n \"endDate\": \"Lõppkuupäev\",\n \"era\": \"ajastu\",\n \"hour\": \"tund\",\n \"minute\": \"minut\",\n \"month\": \"kuu\",\n \"second\": \"sekund\",\n \"startDate\": \"Alguskuupäev\",\n \"year\": \"aasta\",\n \"weekday\": \"nädalapäev\",\n \"timeZoneName\": \"ajavöönd\"\n}\n","{\n \"calendar\": \"Kalenteri\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long}–{end, date, long}\",\n \"date\": \"Päivämäärä\",\n \"dateRange\": \"Päivämääräalue\",\n \"day\": \"päivä\",\n \"dayPeriod\": \"vuorokaudenaika\",\n \"endDate\": \"Päättymispäivä\",\n \"era\": \"aikakausi\",\n \"hour\": \"tunti\",\n \"minute\": \"minuutti\",\n \"month\": \"kuukausi\",\n \"second\": \"sekunti\",\n \"startDate\": \"Alkamispäivä\",\n \"year\": \"vuosi\",\n \"weekday\": \"viikonpäivä\",\n \"timeZoneName\": \"aikavyöhyke\"\n}\n","{\n \"calendar\": \"Calendrier\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} au {end, date, long}\",\n \"date\": \"Date\",\n \"dateRange\": \"Plage de dates\",\n \"day\": \"jour\",\n \"dayPeriod\": \"cadran\",\n \"endDate\": \"Date de fin\",\n \"era\": \"ère\",\n \"hour\": \"heure\",\n \"minute\": \"minute\",\n \"month\": \"mois\",\n \"second\": \"seconde\",\n \"startDate\": \"Date de début\",\n \"year\": \"année\",\n \"weekday\": \"jour de la semaine\",\n \"timeZoneName\": \"fuseau horaire\"\n}\n","{\n \"calendar\": \"לוח שנה\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"מ-{start, date, long} ועד {end, date, long}\",\n \"date\": \"תאריך\",\n \"dateRange\": \"טווח תאריכים\",\n \"day\": \"יום\",\n \"dayPeriod\": \"לפנה״צ/אחה״צ\",\n \"endDate\": \"תאריך סיום\",\n \"era\": \"תקופה\",\n \"hour\": \"שעה\",\n \"minute\": \"דקה\",\n \"month\": \"חודש\",\n \"second\": \"שנייה\",\n \"startDate\": \"תאריך התחלה\",\n \"year\": \"שנה\",\n \"weekday\": \"יום בשבוע\",\n \"timeZoneName\": \"אזור זמן\"\n}\n","{\n \"calendar\": \"Kalendar\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} do {end, date, long}\",\n \"date\": \"Datum\",\n \"dateRange\": \"Raspon datuma\",\n \"day\": \"dan\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Datum završetka\",\n \"era\": \"era\",\n \"hour\": \"sat\",\n \"minute\": \"minuta\",\n \"month\": \"mjesec\",\n \"second\": \"sekunda\",\n \"startDate\": \"Datum početka\",\n \"year\": \"godina\",\n \"weekday\": \"dan u tjednu\",\n \"timeZoneName\": \"vremenska zona\"\n}\n","{\n \"calendar\": \"Naptár\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} – {end, date, long}\",\n \"date\": \"Dátum\",\n \"dateRange\": \"Dátumtartomány\",\n \"day\": \"nap\",\n \"dayPeriod\": \"napszak\",\n \"endDate\": \"Befejező dátum\",\n \"era\": \"éra\",\n \"hour\": \"óra\",\n \"minute\": \"perc\",\n \"month\": \"hónap\",\n \"second\": \"másodperc\",\n \"startDate\": \"Kezdő dátum\",\n \"year\": \"év\",\n \"weekday\": \"hét napja\",\n \"timeZoneName\": \"időzóna\"\n}\n","{\n \"calendar\": \"Calendario\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"Da {start, date, long} a {end, date, long}\",\n \"date\": \"Data\",\n \"dateRange\": \"Intervallo date\",\n \"day\": \"giorno\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Data finale\",\n \"era\": \"era\",\n \"hour\": \"ora\",\n \"minute\": \"minuto\",\n \"month\": \"mese\",\n \"second\": \"secondo\",\n \"startDate\": \"Data iniziale\",\n \"year\": \"anno\",\n \"weekday\": \"giorno della settimana\",\n \"timeZoneName\": \"fuso orario\"\n}\n","{\n \"calendar\": \"カレンダー\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} ~ {end, date, long}\",\n \"date\": \"日付\",\n \"dateRange\": \"日付範囲\",\n \"day\": \"日\",\n \"dayPeriod\": \"午前/午後\",\n \"endDate\": \"終了日\",\n \"era\": \"時代\",\n \"hour\": \"時\",\n \"minute\": \"分\",\n \"month\": \"月\",\n \"second\": \"秒\",\n \"startDate\": \"開始日\",\n \"year\": \"年\",\n \"weekday\": \"曜日\",\n \"timeZoneName\": \"タイムゾーン\"\n}\n","{\n \"calendar\": \"달력\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} ~ {end, date, long}\",\n \"date\": \"날짜\",\n \"dateRange\": \"날짜 범위\",\n \"day\": \"일\",\n \"dayPeriod\": \"오전/오후\",\n \"endDate\": \"종료 날짜\",\n \"era\": \"연호\",\n \"hour\": \"시\",\n \"minute\": \"분\",\n \"month\": \"월\",\n \"second\": \"초\",\n \"startDate\": \"시작 날짜\",\n \"year\": \"년\",\n \"weekday\": \"요일\",\n \"timeZoneName\": \"시간대\"\n}\n","{\n \"calendar\": \"Kalendorius\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"Nuo {start, date, long} iki {end, date, long}\",\n \"date\": \"Data\",\n \"dateRange\": \"Datų intervalas\",\n \"day\": \"diena\",\n \"dayPeriod\": \"iki pietų / po pietų\",\n \"endDate\": \"Pabaigos data\",\n \"era\": \"era\",\n \"hour\": \"valanda\",\n \"minute\": \"minutė\",\n \"month\": \"mėnuo\",\n \"second\": \"sekundė\",\n \"startDate\": \"Pradžios data\",\n \"year\": \"metai\",\n \"weekday\": \"savaitės diena\",\n \"timeZoneName\": \"laiko juosta\"\n}\n","{\n \"calendar\": \"Kalendārs\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} līdz {end, date, long}\",\n \"date\": \"Datums\",\n \"dateRange\": \"Datumu diapazons\",\n \"day\": \"diena\",\n \"dayPeriod\": \"priekšpusdienā/pēcpusdienā\",\n \"endDate\": \"Beigu datums\",\n \"era\": \"ēra\",\n \"hour\": \"stundas\",\n \"minute\": \"minūtes\",\n \"month\": \"mēnesis\",\n \"second\": \"sekundes\",\n \"startDate\": \"Sākuma datums\",\n \"year\": \"gads\",\n \"weekday\": \"nedēļas diena\",\n \"timeZoneName\": \"laika josla\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} til {end, date, long}\",\n \"date\": \"Dato\",\n \"dateRange\": \"Datoområde\",\n \"day\": \"dag\",\n \"dayPeriod\": \"a.m./p.m.\",\n \"endDate\": \"Sluttdato\",\n \"era\": \"tidsalder\",\n \"hour\": \"time\",\n \"minute\": \"minutt\",\n \"month\": \"måned\",\n \"second\": \"sekund\",\n \"startDate\": \"Startdato\",\n \"year\": \"år\",\n \"weekday\": \"ukedag\",\n \"timeZoneName\": \"tidssone\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} t/m {end, date, long}\",\n \"date\": \"Datum\",\n \"dateRange\": \"Datumbereik\",\n \"day\": \"dag\",\n \"dayPeriod\": \"a.m./p.m.\",\n \"endDate\": \"Einddatum\",\n \"era\": \"tijdperk\",\n \"hour\": \"uur\",\n \"minute\": \"minuut\",\n \"month\": \"maand\",\n \"second\": \"seconde\",\n \"startDate\": \"Startdatum\",\n \"year\": \"jaar\",\n \"weekday\": \"dag van de week\",\n \"timeZoneName\": \"tijdzone\"\n}\n","{\n \"calendar\": \"Kalendarz\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} do {end, date, long}\",\n \"date\": \"Data\",\n \"dateRange\": \"Zakres dat\",\n \"day\": \"dzień\",\n \"dayPeriod\": \"rano / po południu / wieczorem\",\n \"endDate\": \"Data końcowa\",\n \"era\": \"era\",\n \"hour\": \"godzina\",\n \"minute\": \"minuta\",\n \"month\": \"miesiąc\",\n \"second\": \"sekunda\",\n \"startDate\": \"Data początkowa\",\n \"year\": \"rok\",\n \"weekday\": \"dzień tygodnia\",\n \"timeZoneName\": \"strefa czasowa\"\n}\n","{\n \"calendar\": \"Calendário\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} a {end, date, long}\",\n \"date\": \"Data\",\n \"dateRange\": \"Intervalo de datas\",\n \"day\": \"dia\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Data final\",\n \"era\": \"era\",\n \"hour\": \"hora\",\n \"minute\": \"minuto\",\n \"month\": \"mês\",\n \"second\": \"segundo\",\n \"startDate\": \"Data inicial\",\n \"year\": \"ano\",\n \"weekday\": \"dia da semana\",\n \"timeZoneName\": \"fuso horário\"\n}\n","{\n \"calendar\": \"Calendário\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} a {end, date, long}\",\n \"date\": \"Data\",\n \"dateRange\": \"Intervalo de datas\",\n \"day\": \"dia\",\n \"dayPeriod\": \"am/pm\",\n \"endDate\": \"Data de Término\",\n \"era\": \"era\",\n \"hour\": \"hora\",\n \"minute\": \"minuto\",\n \"month\": \"mês\",\n \"second\": \"segundo\",\n \"startDate\": \"Data de Início\",\n \"year\": \"ano\",\n \"weekday\": \"dia da semana\",\n \"timeZoneName\": \"fuso horário\"\n}\n","{\n \"calendar\": \"Calendar\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} - {end, date, long}\",\n \"date\": \"Dată\",\n \"dateRange\": \"Raza datei\",\n \"day\": \"zi\",\n \"dayPeriod\": \"a.m/p.m.\",\n \"endDate\": \"Dată final\",\n \"era\": \"eră\",\n \"hour\": \"oră\",\n \"minute\": \"minut\",\n \"month\": \"lună\",\n \"second\": \"secundă\",\n \"startDate\": \"Dată început\",\n \"year\": \"an\",\n \"weekday\": \"ziua din săptămână\",\n \"timeZoneName\": \"fus orar\"\n}\n","{\n \"calendar\": \"Календарь\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} – {end, date, long}\",\n \"date\": \"Дата\",\n \"dateRange\": \"Диапазон дат\",\n \"day\": \"день\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Дата окончания\",\n \"era\": \"эра\",\n \"hour\": \"час\",\n \"minute\": \"минута\",\n \"month\": \"месяц\",\n \"second\": \"секунда\",\n \"startDate\": \"Дата начала\",\n \"year\": \"год\",\n \"weekday\": \"день недели\",\n \"timeZoneName\": \"часовой пояс\"\n}\n","{\n \"calendar\": \"Kalendár\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} do {end, date, long}\",\n \"date\": \"Dátum\",\n \"dateRange\": \"Rozsah dátumov\",\n \"day\": \"deň\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Dátum ukončenia\",\n \"era\": \"letopočet\",\n \"hour\": \"hodina\",\n \"minute\": \"minúta\",\n \"month\": \"mesiac\",\n \"second\": \"sekunda\",\n \"startDate\": \"Dátum začatia\",\n \"year\": \"rok\",\n \"weekday\": \"deň týždňa\",\n \"timeZoneName\": \"časové pásmo\"\n}\n","{\n \"calendar\": \"Koledar\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} do {end, date, long}\",\n \"date\": \"Datum\",\n \"dateRange\": \"Datumski obseg\",\n \"day\": \"dan\",\n \"dayPeriod\": \"dop/pop\",\n \"endDate\": \"Datum konca\",\n \"era\": \"doba\",\n \"hour\": \"ura\",\n \"minute\": \"minuta\",\n \"month\": \"mesec\",\n \"second\": \"sekunda\",\n \"startDate\": \"Datum začetka\",\n \"year\": \"leto\",\n \"weekday\": \"dan v tednu\",\n \"timeZoneName\": \"časovni pas\"\n}\n","{\n \"calendar\": \"Kalendar\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} do {end, date, long}\",\n \"date\": \"Datum\",\n \"dateRange\": \"Opseg datuma\",\n \"day\": \"дан\",\n \"dayPeriod\": \"пре подне/по подне\",\n \"endDate\": \"Datum završetka\",\n \"era\": \"ера\",\n \"hour\": \"сат\",\n \"minute\": \"минут\",\n \"month\": \"месец\",\n \"second\": \"секунд\",\n \"startDate\": \"Datum početka\",\n \"year\": \"година\",\n \"weekday\": \"дан у недељи\",\n \"timeZoneName\": \"временска зона\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} till {end, date, long}\",\n \"date\": \"Datum\",\n \"dateRange\": \"Datumintervall\",\n \"day\": \"dag\",\n \"dayPeriod\": \"fm/em\",\n \"endDate\": \"Slutdatum\",\n \"era\": \"era\",\n \"hour\": \"timme\",\n \"minute\": \"minut\",\n \"month\": \"månad\",\n \"second\": \"sekund\",\n \"startDate\": \"Startdatum\",\n \"year\": \"år\",\n \"weekday\": \"veckodag\",\n \"timeZoneName\": \"tidszon\"\n}\n","{\n \"calendar\": \"Takvim\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} - {end, date, long}\",\n \"date\": \"Tarih\",\n \"dateRange\": \"Tarih Aralığı\",\n \"day\": \"gün\",\n \"dayPeriod\": \"ÖÖ/ÖS\",\n \"endDate\": \"Bitiş Tarihi\",\n \"era\": \"çağ\",\n \"hour\": \"saat\",\n \"minute\": \"dakika\",\n \"month\": \"ay\",\n \"second\": \"saniye\",\n \"startDate\": \"Başlangıç Tarihi\",\n \"year\": \"yıl\",\n \"weekday\": \"haftanın günü\",\n \"timeZoneName\": \"saat dilimi\"\n}\n","{\n \"calendar\": \"Календар\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"Від {start, date, long} до {end, date, long}\",\n \"date\": \"Дата\",\n \"dateRange\": \"Діапазон дат\",\n \"day\": \"день\",\n \"dayPeriod\": \"дп/пп\",\n \"endDate\": \"Дата завершення\",\n \"era\": \"ера\",\n \"hour\": \"година\",\n \"minute\": \"хвилина\",\n \"month\": \"місяць\",\n \"second\": \"секунда\",\n \"startDate\": \"Дата початку\",\n \"year\": \"рік\",\n \"weekday\": \"день тижня\",\n \"timeZoneName\": \"часовий пояс\"\n}\n","{\n \"calendar\": \"日历\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long} 至 {end, date, long}\",\n \"date\": \"日期\",\n \"dateRange\": \"日期范围\",\n \"day\": \"日\",\n \"dayPeriod\": \"上午/下午\",\n \"endDate\": \"结束日期\",\n \"era\": \"纪元\",\n \"hour\": \"小时\",\n \"minute\": \"分钟\",\n \"month\": \"月\",\n \"second\": \"秒\",\n \"startDate\": \"开始日期\",\n \"year\": \"年\",\n \"weekday\": \"工作日\",\n \"timeZoneName\": \"时区\"\n}\n","{\n \"calendar\": \"日曆\",\n \"currentDate\": \"{date, date, full}\",\n \"currentDateRange\": \"{start, date, long}至 {end, date, long}\",\n \"date\": \"日期\",\n \"dateRange\": \"日期範圍\",\n \"day\": \"日\",\n \"dayPeriod\": \"上午/下午\",\n \"endDate\": \"結束日期\",\n \"era\": \"纪元\",\n \"hour\": \"小时\",\n \"minute\": \"分钟\",\n \"month\": \"月\",\n \"second\": \"秒\",\n \"startDate\": \"開始日期\",\n \"year\": \"年\",\n \"weekday\": \"工作日\",\n \"timeZoneName\": \"时区\"\n}\n","import {DatePickerFieldState, DatePickerState, DateRangePickerState} from '@react-stately/datepicker';\nimport {getFocusableTreeWalker} from '@react-aria/focus';\nimport {KeyboardEvent} from '@react-types/shared';\nimport {mergeProps} from '@react-aria/utils';\nimport {RefObject} from 'react';\nimport {usePress} from '@react-aria/interactions';\n\nexport function useDatePickerGroup(state: DatePickerState | DateRangePickerState | DatePickerFieldState, ref: RefObject<HTMLElement>) {\n // Open the popover on alt + arrow down\n let onKeyDown = (e: KeyboardEvent) => {\n if (e.altKey && e.key === 'ArrowDown' && 'setOpen' in state) {\n e.preventDefault();\n e.stopPropagation();\n state.setOpen(true);\n }\n };\n\n // Focus the first placeholder segment from the end on mouse down/touch up in the field.\n let focusLast = () => {\n // Try to find the segment prior to the element that was clicked on.\n let target = window.event?.target as HTMLElement;\n let walker = getFocusableTreeWalker(ref.current, {tabbable: true});\n if (target) {\n walker.currentNode = target;\n target = walker.previousNode() as HTMLElement;\n }\n\n // If no target found, find the last element from the end.\n if (!target) {\n let last: HTMLElement;\n do {\n last = walker.lastChild() as HTMLElement;\n if (last) {\n target = last;\n }\n } while (last);\n }\n\n // Now go backwards until we find an element that is not a placeholder.\n while (target?.getAttribute('aria-placeholder')) {\n let prev = walker.previousNode() as HTMLElement;\n if (prev && prev.getAttribute('aria-placeholder')) {\n target = prev;\n } else {\n break;\n }\n }\n\n if (target) {\n target.focus();\n }\n };\n\n let {pressProps} = usePress({\n onPressStart(e) {\n if (e.pointerType === 'mouse') {\n focusLast();\n }\n },\n onPress(e) {\n if (e.pointerType !== 'mouse') {\n focusLast();\n }\n }\n });\n\n return mergeProps(pressProps, {onKeyDown});\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {DatePickerFieldState, DateSegment} from '@react-stately/datepicker';\nimport {getScrollParent, isIOS, isMac, mergeProps, scrollIntoView, useEvent, useId} from '@react-aria/utils';\nimport {hookData} from './useDateField';\nimport {NumberParser} from '@internationalized/number';\nimport React, {HTMLAttributes, RefObject, useMemo, useRef} from 'react';\nimport {useDateFormatter, useFilter, useLocale} from '@react-aria/i18n';\nimport {useDisplayNames} from './useDisplayNames';\nimport {usePress} from '@react-aria/interactions';\nimport {useSpinButton} from '@react-aria/spinbutton';\n\ninterface DateSegmentAria {\n /** Props for the segment element. */\n segmentProps: HTMLAttributes<HTMLDivElement>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a segment in a date field.\n * A date segment displays an individual unit of a date and time, and allows users to edit\n * the value by typing or using the arrow keys to increment and decrement.\n */\nexport function useDateSegment(segment: DateSegment, state: DatePickerFieldState, ref: RefObject<HTMLElement>): DateSegmentAria {\n let enteredKeys = useRef('');\n let {locale, direction} = useLocale();\n let displayNames = useDisplayNames();\n let {ariaLabelledBy, ariaDescribedBy, focusManager} = hookData.get(state);\n\n let textValue = segment.text;\n let options = useMemo(() => state.dateFormatter.resolvedOptions(), [state.dateFormatter]);\n let monthDateFormatter = useDateFormatter({month: 'long', timeZone: options.timeZone});\n let hourDateFormatter = useDateFormatter({\n hour: 'numeric',\n hour12: options.hour12,\n timeZone: options.timeZone\n });\n\n if (segment.type === 'month') {\n let monthTextValue = monthDateFormatter.format(state.dateValue);\n textValue = monthTextValue !== textValue ? `${textValue} – ${monthTextValue}` : monthTextValue;\n } else if (segment.type === 'hour' || segment.type === 'dayPeriod') {\n textValue = hourDateFormatter.format(state.dateValue);\n }\n\n let {spinButtonProps} = useSpinButton({\n value: segment.value,\n textValue,\n minValue: segment.minValue,\n maxValue: segment.maxValue,\n isDisabled: state.isDisabled,\n isReadOnly: state.isReadOnly || !segment.isEditable,\n isRequired: state.isRequired,\n onIncrement: () => {\n enteredKeys.current = '';\n state.increment(segment.type);\n },\n onDecrement: () => {\n enteredKeys.current = '';\n state.decrement(segment.type);\n },\n onIncrementPage: () => {\n enteredKeys.current = '';\n state.incrementPage(segment.type);\n },\n onDecrementPage: () => {\n enteredKeys.current = '';\n state.decrementPage(segment.type);\n },\n onIncrementToMax: () => {\n enteredKeys.current = '';\n state.setSegment(segment.type, segment.maxValue);\n },\n onDecrementToMin: () => {\n enteredKeys.current = '';\n state.setSegment(segment.type, segment.minValue);\n }\n });\n\n let parser = useMemo(() => new NumberParser(locale, {maximumFractionDigits: 0}), [locale]);\n\n let backspace = () => {\n if (parser.isValidPartialNumber(segment.text) && !state.isReadOnly && !segment.isPlaceholder) {\n let newValue = segment.text.slice(0, -1);\n let parsed = parser.parse(newValue);\n if (newValue.length === 0 || parsed === 0) {\n state.clearSegment(segment.type);\n } else {\n state.setSegment(segment.type, parsed);\n }\n enteredKeys.current = newValue;\n } else if (segment.type === 'dayPeriod') {\n state.clearSegment(segment.type);\n }\n };\n\n let onKeyDown = (e) => {\n // Firefox does not fire selectstart for Ctrl/Cmd + A\n // https://bugzilla.mozilla.org/show_bug.cgi?id=1742153\n if (e.key === 'a' && (isMac() ? e.metaKey : e.ctrlKey)) {\n e.preventDefault();\n }\n\n if (e.ctrlKey || e.metaKey || e.shiftKey || e.altKey) {\n return;\n }\n\n switch (e.key) {\n case 'ArrowLeft':\n e.preventDefault();\n e.stopPropagation();\n if (direction === 'rtl') {\n focusManager.focusNext({tabbable: true});\n } else {\n focusManager.focusPrevious({tabbable: true});\n }\n break;\n case 'ArrowRight':\n e.preventDefault();\n e.stopPropagation();\n if (direction === 'rtl') {\n focusManager.focusPrevious({tabbable: true});\n } else {\n focusManager.focusNext({tabbable: true});\n }\n break;\n case 'Enter':\n e.preventDefault();\n e.stopPropagation();\n if (segment.isPlaceholder && !state.isReadOnly) {\n state.confirmPlaceholder(segment.type);\n }\n focusManager.focusNext({tabbable: true});\n break;\n case 'Tab':\n break;\n case 'Backspace':\n case 'Delete': {\n // Safari on iOS does not fire beforeinput for the backspace key because the cursor is at the start.\n e.preventDefault();\n e.stopPropagation();\n backspace();\n break;\n }\n }\n };\n\n // Safari dayPeriod option doesn't work...\n let {startsWith} = useFilter({sensitivity: 'base'});\n let amPmFormatter = useDateFormatter({hour: 'numeric', hour12: true});\n let am = useMemo(() => {\n let date = new Date();\n date.setHours(0);\n return amPmFormatter.formatToParts(date).find(part => part.type === 'dayPeriod').value;\n }, [amPmFormatter]);\n\n let pm = useMemo(() => {\n let date = new Date();\n date.setHours(12);\n return amPmFormatter.formatToParts(date).find(part => part.type === 'dayPeriod').value;\n }, [amPmFormatter]);\n\n let onInput = (key: string) => {\n if (state.isDisabled || state.isReadOnly) {\n return;\n }\n\n let newValue = enteredKeys.current + key;\n\n switch (segment.type) {\n case 'dayPeriod':\n if (startsWith(am, key)) {\n state.setSegment('dayPeriod', 0);\n } else if (startsWith(pm, key)) {\n state.setSegment('dayPeriod', 12);\n } else {\n break;\n }\n focusManager.focusNext({tabbable: true});\n break;\n case 'day':\n case 'hour':\n case 'minute':\n case 'second':\n case 'month':\n case 'year': {\n if (!parser.isValidPartialNumber(newValue)) {\n return;\n }\n\n let numberValue = parser.parse(newValue);\n let segmentValue = numberValue;\n let allowsZero = segment.minValue === 0;\n if (segment.type === 'hour' && state.dateFormatter.resolvedOptions().hour12) {\n switch (state.dateFormatter.resolvedOptions().hourCycle) {\n case 'h11':\n if (numberValue > 11) {\n segmentValue = parser.parse(key);\n }\n break;\n case 'h12':\n allowsZero = false;\n if (numberValue > 12) {\n segmentValue = parser.parse(key);\n }\n break;\n }\n\n if (segment.value >= 12 && numberValue > 1) {\n numberValue += 12;\n }\n } else if (numberValue > segment.maxValue) {\n segmentValue = parser.parse(key);\n }\n\n if (isNaN(numberValue)) {\n return;\n }\n\n let shouldSetValue = segmentValue !== 0 || allowsZero;\n if (shouldSetValue) {\n state.setSegment(segment.type, segmentValue);\n }\n\n if (Number(numberValue + '0') > segment.maxValue || newValue.length >= String(segment.maxValue).length) {\n enteredKeys.current = '';\n if (shouldSetValue) {\n focusManager.focusNext({tabbable: true});\n }\n } else {\n enteredKeys.current = newValue;\n }\n break;\n }\n }\n };\n\n let onFocus = () => {\n enteredKeys.current = '';\n scrollIntoView(getScrollParent(ref.current) as HTMLElement, ref.current);\n\n // Safari requires that a selection is set or it won't fire input events.\n // Since usePress disables text selection, this won't happen by default.\n ref.current.style.webkitUserSelect = 'text';\n let selection = window.getSelection();\n selection.collapse(ref.current);\n ref.current.style.webkitUserSelect = '';\n };\n\n let compositionRef = useRef('');\n // @ts-ignore - TODO: possibly old TS version? doesn't fail in my editor...\n useEvent(ref, 'beforeinput', e => {\n e.preventDefault();\n\n switch (e.inputType) {\n case 'deleteContentBackward':\n case 'deleteContentForward':\n if (parser.isValidPartialNumber(segment.text) && !state.isReadOnly) {\n backspace();\n }\n break;\n case 'insertCompositionText':\n // insertCompositionText cannot be canceled.\n // Record the current state of the element so we can restore it in the `input` event below.\n compositionRef.current = ref.current.textContent;\n\n // Safari gets stuck in a composition state unless we also assign to the value here.\n // eslint-disable-next-line no-self-assign\n ref.current.textContent = ref.current.textContent;\n break;\n default:\n if (e.data != null) {\n onInput(e.data);\n }\n break;\n }\n });\n\n useEvent(ref, 'input', (e: InputEvent) => {\n let {inputType, data} = e;\n switch (inputType) {\n case 'insertCompositionText':\n // Reset the DOM to how it was in the beforeinput event.\n ref.current.textContent = compositionRef.current;\n\n // Android sometimes fires key presses of letters as composition events. Need to handle am/pm keys here too.\n // Can also happen e.g. with Pinyin keyboard on iOS.\n if (startsWith(am, data) || startsWith(pm, data)) {\n onInput(data);\n }\n break;\n }\n });\n\n // Focus on mouse down/touch up to match native textfield behavior.\n // usePress handles canceling text selection.\n let {pressProps} = usePress({\n preventFocusOnPress: true,\n onPressStart: (e) => {\n if (e.pointerType === 'mouse') {\n e.target.focus();\n }\n },\n onPress(e) {\n if (e.pointerType !== 'mouse') {\n e.target.focus();\n }\n }\n });\n\n // For Android: prevent selection on long press.\n useEvent(ref, 'selectstart', e => {\n e.preventDefault();\n });\n\n // spinbuttons cannot be focused with VoiceOver on iOS.\n let touchPropOverrides = isIOS() || segment.type === 'timeZoneName' ? {\n role: 'textbox',\n 'aria-valuemax': null,\n 'aria-valuemin': null,\n 'aria-valuetext': null,\n 'aria-valuenow': null\n } : {};\n\n // Only apply aria-describedby to the first segment, unless the field is invalid. This avoids it being\n // read every time the user navigates to a new segment.\n let firstSegment = useMemo(() => state.segments.find(s => s.isEditable), [state.segments]);\n if (segment !== firstSegment && state.validationState !== 'invalid') {\n ariaDescribedBy = undefined;\n }\n\n let id = useId();\n let isEditable = !state.isDisabled && !state.isReadOnly && segment.isEditable;\n\n // Literal segments should not be visible to screen readers. We don't really need any of the above,\n // but the rules of hooks mean hooks cannot be conditional so we have to put this condition here.\n if (segment.type === 'literal') {\n return {\n segmentProps: {\n 'aria-hidden': true\n }\n };\n }\n\n return {\n segmentProps: mergeProps(spinButtonProps, pressProps, {\n id,\n ...touchPropOverrides,\n 'aria-invalid': state.validationState === 'invalid' ? 'true' : undefined,\n 'aria-label': displayNames.of(segment.type),\n 'aria-labelledby': `${ariaLabelledBy} ${id}`,\n 'aria-describedby': ariaDescribedBy,\n 'aria-placeholder': segment.isPlaceholder ? segment.text : undefined,\n 'aria-readonly': state.isReadOnly || !segment.isEditable ? 'true' : undefined,\n contentEditable: isEditable,\n suppressContentEditableWarning: isEditable,\n spellCheck: isEditable ? 'false' : undefined,\n autoCapitalize: isEditable ? 'off' : undefined,\n autoCorrect: isEditable ? 'off' : undefined,\n // Capitalization was changed in React 17...\n [parseInt(React.version, 10) >= 17 ? 'enterKeyHint' : 'enterkeyhint']: isEditable ? 'next' : undefined,\n inputMode: state.isDisabled || segment.type === 'dayPeriod' || !isEditable ? undefined : 'numeric',\n tabIndex: state.isDisabled ? undefined : 0,\n onKeyDown,\n onFocus,\n style: {\n caretColor: 'transparent'\n }\n })\n };\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaDatePickerProps, AriaTimeFieldProps, DateValue, TimeValue} from '@react-types/datepicker';\nimport {createFocusManager, FocusManager} from '@react-aria/focus';\nimport {DatePickerFieldState} from '@react-stately/datepicker';\nimport {focusManagerSymbol} from './useDateRangePicker';\nimport {HTMLAttributes, RefObject, useEffect, useMemo, useRef} from 'react';\nimport {mergeProps, useDescription} from '@react-aria/utils';\nimport {useDateFormatter} from '@react-aria/i18n';\nimport {useDatePickerGroup} from './useDatePickerGroup';\nimport {useField} from '@react-aria/label';\nimport {useFocusWithin} from '@react-aria/interactions';\n\n// Allows this hook to also be used with TimeField\ninterface DateFieldProps<T extends DateValue> extends Omit<AriaDatePickerProps<T>, 'value' | 'defaultValue' | 'onChange' | 'minValue' | 'maxValue' | 'placeholderValue'> {}\n\ninterface DateFieldAria {\n /** Props for the field's visible label element, if any. */\n labelProps: HTMLAttributes<HTMLElement>,\n /** Props for the field grouping element. */\n fieldProps: HTMLAttributes<HTMLElement>,\n /** Props for the description element, if any. */\n descriptionProps: HTMLAttributes<HTMLElement>,\n /** Props for the error message element, if any. */\n errorMessageProps: HTMLAttributes<HTMLElement>\n}\n\n// Data that is passed between useDateField and useDateSegment.\ninterface HookData {\n ariaLabelledBy: string,\n ariaDescribedBy: string,\n focusManager: FocusManager\n}\n\nexport const hookData = new WeakMap<DatePickerFieldState, HookData>();\n\n/**\n * Provides the behavior and accessibility implementation for a date field component.\n * A date field allows users to enter and edit date and time values using a keyboard.\n * Each part of a date value is displayed in an individually editable segment.\n */\nexport function useDateField<T extends DateValue>(props: DateFieldProps<T>, state: DatePickerFieldState, ref: RefObject<HTMLElement>): DateFieldAria {\n let {labelProps, fieldProps, descriptionProps, errorMessageProps} = useField({\n ...props,\n labelElementType: 'span'\n });\n\n let groupProps = useDatePickerGroup(state, ref);\n\n let {focusWithinProps} = useFocusWithin({\n onBlurWithin() {\n state.confirmPlaceholder();\n }\n });\n\n let formatter = useDateFormatter(state.getFormatOptions({month: 'long'}));\n let descProps = useDescription(state.value ? formatter.format(state.dateValue) : null);\n\n let segmentLabelledBy = fieldProps['aria-labelledby'] || fieldProps.id;\n let describedBy = [descProps['aria-describedby'], fieldProps['aria-describedby']].filter(Boolean).join(' ') || undefined;\n let propsFocusManager = props[focusManagerSymbol];\n let focusManager = useMemo(() => propsFocusManager || createFocusManager(ref), [propsFocusManager, ref]);\n\n hookData.set(state, {\n ariaLabelledBy: segmentLabelledBy,\n ariaDescribedBy: describedBy,\n focusManager\n });\n\n let autoFocusRef = useRef(props.autoFocus);\n\n useEffect(() => {\n if (autoFocusRef.current) {\n focusManager.focusFirst();\n }\n autoFocusRef.current = false;\n }, [focusManager]);\n\n return {\n labelProps: {\n ...labelProps,\n onClick: () => {\n focusManager.focusFirst();\n }\n },\n fieldProps: mergeProps(fieldProps, descProps, groupProps, focusWithinProps, {\n role: 'group',\n 'aria-disabled': props.isDisabled || undefined,\n 'aria-describedby': describedBy\n }),\n descriptionProps,\n errorMessageProps\n };\n}\n\n/**\n * Provides the behavior and accessibility implementation for a time field component.\n * A time field allows users to enter and edit time values using a keyboard.\n * Each part of a time value is displayed in an individually editable segment.\n */\nexport function useTimeField<T extends TimeValue>(props: AriaTimeFieldProps<T>, state: DatePickerFieldState, ref: RefObject<HTMLElement>): DateFieldAria {\n return useDateField(props, state, ref);\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaButtonProps} from '@react-types/button';\nimport {AriaDatePickerProps, AriaDateRangePickerProps, DateValue} from '@react-types/datepicker';\nimport {AriaDialogProps} from '@react-types/dialog';\nimport {createFocusManager} from '@react-aria/focus';\nimport {DateRangePickerState} from '@react-stately/datepicker';\nimport {HTMLAttributes, RefObject, useMemo} from 'react';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {mergeProps, useDescription, useId, useLabels} from '@react-aria/utils';\nimport {RangeCalendarProps} from '@react-types/calendar';\nimport {useDatePickerGroup} from './useDatePickerGroup';\nimport {useField} from '@react-aria/label';\nimport {useFocusWithin} from '@react-aria/interactions';\nimport {useLocale, useMessageFormatter} from '@react-aria/i18n';\n\ninterface DateRangePickerAria {\n /** Props for the date range picker's visible label element, if any. */\n labelProps: HTMLAttributes<HTMLElement>,\n /** Props for the grouping element containing the date fields and button. */\n groupProps: HTMLAttributes<HTMLElement>,\n /** Props for the start date field. */\n startFieldProps: AriaDatePickerProps<DateValue>,\n /** Props for the end date field. */\n endFieldProps: AriaDatePickerProps<DateValue>,\n /** Props for the popover trigger button. */\n buttonProps: AriaButtonProps,\n /** Props for the description element, if any. */\n descriptionProps: HTMLAttributes<HTMLElement>,\n /** Props for the error message element, if any. */\n errorMessageProps: HTMLAttributes<HTMLElement>,\n /** Props for the popover dialog. */\n dialogProps: AriaDialogProps,\n /** Props for the range calendar within the popover dialog. */\n calendarProps: RangeCalendarProps<DateValue>\n}\n\n// Used to pass the focus manager to the date fields.\n// Ideally we'd use a Symbol for this, but React doesn't support them: https://github.com/facebook/react/issues/7552\nexport const focusManagerSymbol = '__focusManager_' + Date.now();\n\n/**\n * Provides the behavior and accessibility implementation for a date picker component.\n * A date range picker combines two DateFields and a RangeCalendar popover to allow\n * users to enter or select a date and time range.\n */\nexport function useDateRangePicker<T extends DateValue>(props: AriaDateRangePickerProps<T>, state: DateRangePickerState, ref: RefObject<HTMLElement>): DateRangePickerAria {\n let formatMessage = useMessageFormatter(intlMessages);\n let {labelProps, fieldProps, descriptionProps, errorMessageProps} = useField({\n ...props,\n labelElementType: 'span'\n });\n\n let labelledBy = fieldProps['aria-labelledby'] || fieldProps.id;\n\n let {locale} = useLocale();\n let description = state.formatValue(locale, {month: 'long'});\n let descProps = useDescription(description);\n\n let startFieldProps = useLabels({\n 'aria-label': formatMessage('startDate'),\n 'aria-labelledby': labelledBy\n });\n\n let endFieldProps = useLabels({\n 'aria-label': formatMessage('endDate'),\n 'aria-labelledby': labelledBy\n });\n\n let buttonId = useId();\n let dialogId = useId();\n\n let groupProps = useDatePickerGroup(state, ref);\n let {focusWithinProps} = useFocusWithin({\n onBlurWithin() {\n state.confirmPlaceholder();\n }\n });\n\n let ariaDescribedBy = [descProps['aria-describedby'], fieldProps['aria-describedby']].filter(Boolean).join(' ') || undefined;\n let focusManager = useMemo(() => createFocusManager(ref), [ref]);\n let commonFieldProps = {\n [focusManagerSymbol]: focusManager,\n minValue: props.minValue,\n maxValue: props.maxValue,\n placeholderValue: props.placeholderValue,\n hideTimeZone: props.hideTimeZone,\n hourCycle: props.hourCycle,\n granularity: props.granularity,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isRequired: props.isRequired,\n validationState: state.validationState\n };\n\n return {\n groupProps: mergeProps(groupProps, fieldProps, descProps, focusWithinProps, {\n role: 'group',\n 'aria-disabled': props.isDisabled || null,\n 'aria-describedby': ariaDescribedBy\n }),\n labelProps: {\n ...labelProps,\n onClick: () => {\n focusManager.focusFirst();\n }\n },\n buttonProps: {\n ...descProps,\n id: buttonId,\n excludeFromTabOrder: true,\n 'aria-haspopup': 'dialog',\n 'aria-label': formatMessage('calendar'),\n 'aria-labelledby': `${labelledBy} ${buttonId}`,\n 'aria-describedby': ariaDescribedBy,\n onPress: () => state.setOpen(true)\n },\n dialogProps: {\n id: dialogId,\n 'aria-labelledby': `${labelledBy} ${buttonId}`\n },\n startFieldProps: {\n ...startFieldProps,\n ...commonFieldProps,\n 'aria-describedby': fieldProps['aria-describedby'],\n value: state.value?.start,\n onChange: start => state.setDateTime('start', start),\n autoFocus: props.autoFocus\n },\n endFieldProps: {\n ...endFieldProps,\n ...commonFieldProps,\n 'aria-describedby': fieldProps['aria-describedby'],\n value: state.value?.end,\n onChange: end => state.setDateTime('end', end)\n },\n descriptionProps,\n errorMessageProps,\n calendarProps: {\n autoFocus: true,\n value: state.dateRange,\n onChange: state.setDateRange,\n minValue: props.minValue,\n maxValue: props.maxValue,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isDateDisabled: props.isDateDisabled,\n defaultFocusedValue: state.dateRange ? undefined : props.placeholderValue\n }\n };\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {MessageDictionary} from '@internationalized/message';\nimport {useLocale} from '@react-aria/i18n';\nimport {useMemo} from 'react';\n\ntype Field = 'era' | 'year' | 'month' | 'day' | 'hour' | 'minute' | 'second' | 'dayPeriod' | 'timeZoneName' | 'weekday';\ninterface DisplayNames {\n of(field: Field): string\n}\n\nexport function useDisplayNames(): DisplayNames {\n let {locale} = useLocale();\n return useMemo(() => {\n // Try to use Intl.DisplayNames if possible. It may be supported in browsers, but not support the dateTimeField\n // type as that was only added in v2. https://github.com/tc39/intl-displaynames-v2\n try {\n // @ts-ignore\n return new Intl.DisplayNames(locale, {type: 'dateTimeField'});\n } catch (err) {\n return new DisplayNamesPolyfill(locale);\n }\n }, [locale]);\n}\n\nclass DisplayNamesPolyfill implements DisplayNames {\n private locale: string;\n private dictionary: MessageDictionary;\n\n constructor(locale: string) {\n this.locale = locale;\n this.dictionary = new MessageDictionary(intlMessages);\n }\n\n of(field: Field): string {\n return this.dictionary.getStringForLocale(field, this.locale);\n }\n}\n"],"names":[],"version":3,"file":"module.js.map"}
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;AC0BA;IACE,iEAAiE;IACjE,UAAU,EAAE,eAAe,WAAW,CAAC,CAAC;IACxC,2EAA2E;IAC3E,UAAU,EAAE,eAAe,WAAW,CAAC,CAAC;IACxC,gCAAgC;IAChC,UAAU,EAAE,oBAAoB,SAAS,CAAC,CAAC;IAC3C,4CAA4C;IAC5C,WAAW,EAAE,eAAe,CAAC;IAC7B,iDAAiD;IACjD,gBAAgB,EAAE,eAAe,WAAW,CAAC,CAAC;IAC9C,mDAAmD;IACnD,iBAAiB,EAAE,eAAe,WAAW,CAAC,CAAC;IAC/C,oCAAoC;IACpC,WAAW,EAAE,eAAe,CAAC;IAC7B,wDAAwD;IACxD,aAAa,EAAE,cAAc,SAAS,CAAC,CAAA;CACxC;AAED;;;GAGG;AACH,8BA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;IACrC,YAAY,EAAE,eAAe,cAAc,CAAC,CAAA;CAC7C;AAED;;;;GAIG;AACH,+BAA+B,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,oBAAoB,EAAE,GAAG,EAAE,UAAU,WAAW,CAAC,GAAG,eAAe,CA2V9H","sources":["packages/@react-aria/datepicker/src/packages/@react-aria/datepicker/src/useDatePickerGroup.ts","packages/@react-aria/datepicker/src/packages/@react-aria/datepicker/src/useDatePicker.ts","packages/@react-aria/datepicker/src/packages/@react-aria/datepicker/src/useDateRangePicker.ts","packages/@react-aria/datepicker/src/packages/@react-aria/datepicker/src/useDateField.ts","packages/@react-aria/datepicker/src/packages/@react-aria/datepicker/src/useDisplayNames.ts","packages/@react-aria/datepicker/src/packages/@react-aria/datepicker/src/useDateSegment.ts","packages/@react-aria/datepicker/src/packages/@react-aria/datepicker/src/index.ts","packages/@react-aria/datepicker/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,"/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport {useDatePicker} from './useDatePicker';\nexport {useDateSegment} from './useDateSegment';\nexport {useDateField, useTimeField} from './useDateField';\nexport {useDateRangePicker} from './useDateRangePicker';\nexport * from './useDisplayNames';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-aria/datepicker",
|
|
3
|
-
"version": "3.0.0-nightly.
|
|
3
|
+
"version": "3.0.0-nightly.3168+2fabc1ac0",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -18,20 +18,20 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@babel/runtime": "^7.6.2",
|
|
21
|
-
"@internationalized/message": "3.0.6-nightly.
|
|
22
|
-
"@internationalized/number": "3.0.6-nightly.
|
|
23
|
-
"@react-aria/focus": "3.0.0-nightly.
|
|
24
|
-
"@react-aria/i18n": "3.0.0-nightly.
|
|
25
|
-
"@react-aria/interactions": "3.0.0-nightly.
|
|
26
|
-
"@react-aria/label": "3.0.0-nightly.
|
|
27
|
-
"@react-aria/spinbutton": "3.0.0-nightly.
|
|
28
|
-
"@react-aria/utils": "3.0.0-nightly.
|
|
29
|
-
"@react-stately/datepicker": "3.0.0-nightly.
|
|
30
|
-
"@react-types/button": "3.4.
|
|
31
|
-
"@react-types/calendar": "3.0.0-nightly.
|
|
32
|
-
"@react-types/datepicker": "3.0.0-nightly.
|
|
33
|
-
"@react-types/dialog": "3.3.
|
|
34
|
-
"@react-types/shared": "3.0.0-nightly.
|
|
21
|
+
"@internationalized/message": "3.0.6-nightly.3168+2fabc1ac0",
|
|
22
|
+
"@internationalized/number": "3.0.6-nightly.3168+2fabc1ac0",
|
|
23
|
+
"@react-aria/focus": "3.0.0-nightly.1469+2fabc1ac0",
|
|
24
|
+
"@react-aria/i18n": "3.0.0-nightly.1469+2fabc1ac0",
|
|
25
|
+
"@react-aria/interactions": "3.0.0-nightly.1469+2fabc1ac0",
|
|
26
|
+
"@react-aria/label": "3.0.0-nightly.1469+2fabc1ac0",
|
|
27
|
+
"@react-aria/spinbutton": "3.0.0-nightly.1469+2fabc1ac0",
|
|
28
|
+
"@react-aria/utils": "3.0.0-nightly.1469+2fabc1ac0",
|
|
29
|
+
"@react-stately/datepicker": "3.0.0-nightly.3168+2fabc1ac0",
|
|
30
|
+
"@react-types/button": "3.4.5-nightly.3168+2fabc1ac0",
|
|
31
|
+
"@react-types/calendar": "3.0.0-nightly.3168+2fabc1ac0",
|
|
32
|
+
"@react-types/datepicker": "3.0.0-nightly.3168+2fabc1ac0",
|
|
33
|
+
"@react-types/dialog": "3.3.5-nightly.3168+2fabc1ac0",
|
|
34
|
+
"@react-types/shared": "3.0.0-nightly.1469+2fabc1ac0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"react": "^16.8.0 || ^17.0.0-rc.1",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "2fabc1ac07aa6fd75e7111e571e27787d8a44314"
|
|
44
44
|
}
|
package/src/useDatePicker.ts
CHANGED
|
@@ -119,7 +119,8 @@ export function useDatePicker<T extends DateValue>(props: AriaDatePickerProps<T>
|
|
|
119
119
|
maxValue: props.maxValue,
|
|
120
120
|
isDisabled: props.isDisabled,
|
|
121
121
|
isReadOnly: props.isReadOnly,
|
|
122
|
-
isDateDisabled: props.isDateDisabled
|
|
122
|
+
isDateDisabled: props.isDateDisabled,
|
|
123
|
+
defaultFocusedValue: state.dateValue ? undefined : props.placeholderValue
|
|
123
124
|
}
|
|
124
125
|
};
|
|
125
126
|
}
|
|
@@ -155,7 +155,8 @@ export function useDateRangePicker<T extends DateValue>(props: AriaDateRangePick
|
|
|
155
155
|
maxValue: props.maxValue,
|
|
156
156
|
isDisabled: props.isDisabled,
|
|
157
157
|
isReadOnly: props.isReadOnly,
|
|
158
|
-
isDateDisabled: props.isDateDisabled
|
|
158
|
+
isDateDisabled: props.isDateDisabled,
|
|
159
|
+
defaultFocusedValue: state.dateRange ? undefined : props.placeholderValue
|
|
159
160
|
}
|
|
160
161
|
};
|
|
161
162
|
}
|