@react-aria/datepicker 3.9.2 → 3.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. package/dist/ar-AE.main.js +21 -0
  2. package/dist/ar-AE.main.js.map +1 -0
  3. package/dist/ar-AE.mjs +23 -0
  4. package/dist/ar-AE.module.js +23 -0
  5. package/dist/ar-AE.module.js.map +1 -0
  6. package/dist/bg-BG.main.js +21 -0
  7. package/dist/bg-BG.main.js.map +1 -0
  8. package/dist/bg-BG.mjs +23 -0
  9. package/dist/bg-BG.module.js +23 -0
  10. package/dist/bg-BG.module.js.map +1 -0
  11. package/dist/cs-CZ.main.js +21 -0
  12. package/dist/cs-CZ.main.js.map +1 -0
  13. package/dist/cs-CZ.mjs +23 -0
  14. package/dist/cs-CZ.module.js +23 -0
  15. package/dist/cs-CZ.module.js.map +1 -0
  16. package/dist/da-DK.main.js +21 -0
  17. package/dist/da-DK.main.js.map +1 -0
  18. package/dist/da-DK.mjs +23 -0
  19. package/dist/da-DK.module.js +23 -0
  20. package/dist/da-DK.module.js.map +1 -0
  21. package/dist/de-DE.main.js +21 -0
  22. package/dist/de-DE.main.js.map +1 -0
  23. package/dist/de-DE.mjs +23 -0
  24. package/dist/de-DE.module.js +23 -0
  25. package/dist/de-DE.module.js.map +1 -0
  26. package/dist/el-GR.main.js +21 -0
  27. package/dist/el-GR.main.js.map +1 -0
  28. package/dist/el-GR.mjs +23 -0
  29. package/dist/el-GR.module.js +23 -0
  30. package/dist/el-GR.module.js.map +1 -0
  31. package/dist/en-US.main.js +21 -0
  32. package/dist/en-US.main.js.map +1 -0
  33. package/dist/en-US.mjs +23 -0
  34. package/dist/en-US.module.js +23 -0
  35. package/dist/en-US.module.js.map +1 -0
  36. package/dist/es-ES.main.js +21 -0
  37. package/dist/es-ES.main.js.map +1 -0
  38. package/dist/es-ES.mjs +23 -0
  39. package/dist/es-ES.module.js +23 -0
  40. package/dist/es-ES.module.js.map +1 -0
  41. package/dist/et-EE.main.js +21 -0
  42. package/dist/et-EE.main.js.map +1 -0
  43. package/dist/et-EE.mjs +23 -0
  44. package/dist/et-EE.module.js +23 -0
  45. package/dist/et-EE.module.js.map +1 -0
  46. package/dist/fi-FI.main.js +21 -0
  47. package/dist/fi-FI.main.js.map +1 -0
  48. package/dist/fi-FI.mjs +23 -0
  49. package/dist/fi-FI.module.js +23 -0
  50. package/dist/fi-FI.module.js.map +1 -0
  51. package/dist/fr-FR.main.js +21 -0
  52. package/dist/fr-FR.main.js.map +1 -0
  53. package/dist/fr-FR.mjs +23 -0
  54. package/dist/fr-FR.module.js +23 -0
  55. package/dist/fr-FR.module.js.map +1 -0
  56. package/dist/he-IL.main.js +21 -0
  57. package/dist/he-IL.main.js.map +1 -0
  58. package/dist/he-IL.mjs +23 -0
  59. package/dist/he-IL.module.js +23 -0
  60. package/dist/he-IL.module.js.map +1 -0
  61. package/dist/hr-HR.main.js +21 -0
  62. package/dist/hr-HR.main.js.map +1 -0
  63. package/dist/hr-HR.mjs +23 -0
  64. package/dist/hr-HR.module.js +23 -0
  65. package/dist/hr-HR.module.js.map +1 -0
  66. package/dist/hu-HU.main.js +21 -0
  67. package/dist/hu-HU.main.js.map +1 -0
  68. package/dist/hu-HU.mjs +23 -0
  69. package/dist/hu-HU.module.js +23 -0
  70. package/dist/hu-HU.module.js.map +1 -0
  71. package/dist/import.mjs +5 -1693
  72. package/dist/intlStrings.main.js +108 -0
  73. package/dist/intlStrings.main.js.map +1 -0
  74. package/dist/intlStrings.mjs +110 -0
  75. package/dist/intlStrings.module.js +110 -0
  76. package/dist/intlStrings.module.js.map +1 -0
  77. package/dist/it-IT.main.js +21 -0
  78. package/dist/it-IT.main.js.map +1 -0
  79. package/dist/it-IT.mjs +23 -0
  80. package/dist/it-IT.module.js +23 -0
  81. package/dist/it-IT.module.js.map +1 -0
  82. package/dist/ja-JP.main.js +21 -0
  83. package/dist/ja-JP.main.js.map +1 -0
  84. package/dist/ja-JP.mjs +23 -0
  85. package/dist/ja-JP.module.js +23 -0
  86. package/dist/ja-JP.module.js.map +1 -0
  87. package/dist/ko-KR.main.js +21 -0
  88. package/dist/ko-KR.main.js.map +1 -0
  89. package/dist/ko-KR.mjs +23 -0
  90. package/dist/ko-KR.module.js +23 -0
  91. package/dist/ko-KR.module.js.map +1 -0
  92. package/dist/lt-LT.main.js +21 -0
  93. package/dist/lt-LT.main.js.map +1 -0
  94. package/dist/lt-LT.mjs +23 -0
  95. package/dist/lt-LT.module.js +23 -0
  96. package/dist/lt-LT.module.js.map +1 -0
  97. package/dist/lv-LV.main.js +21 -0
  98. package/dist/lv-LV.main.js.map +1 -0
  99. package/dist/lv-LV.mjs +23 -0
  100. package/dist/lv-LV.module.js +23 -0
  101. package/dist/lv-LV.module.js.map +1 -0
  102. package/dist/main.js +11 -1699
  103. package/dist/main.js.map +1 -1
  104. package/dist/module.js +5 -1693
  105. package/dist/module.js.map +1 -1
  106. package/dist/nb-NO.main.js +21 -0
  107. package/dist/nb-NO.main.js.map +1 -0
  108. package/dist/nb-NO.mjs +23 -0
  109. package/dist/nb-NO.module.js +23 -0
  110. package/dist/nb-NO.module.js.map +1 -0
  111. package/dist/nl-NL.main.js +21 -0
  112. package/dist/nl-NL.main.js.map +1 -0
  113. package/dist/nl-NL.mjs +23 -0
  114. package/dist/nl-NL.module.js +23 -0
  115. package/dist/nl-NL.module.js.map +1 -0
  116. package/dist/pl-PL.main.js +21 -0
  117. package/dist/pl-PL.main.js.map +1 -0
  118. package/dist/pl-PL.mjs +23 -0
  119. package/dist/pl-PL.module.js +23 -0
  120. package/dist/pl-PL.module.js.map +1 -0
  121. package/dist/pt-BR.main.js +21 -0
  122. package/dist/pt-BR.main.js.map +1 -0
  123. package/dist/pt-BR.mjs +23 -0
  124. package/dist/pt-BR.module.js +23 -0
  125. package/dist/pt-BR.module.js.map +1 -0
  126. package/dist/pt-PT.main.js +21 -0
  127. package/dist/pt-PT.main.js.map +1 -0
  128. package/dist/pt-PT.mjs +23 -0
  129. package/dist/pt-PT.module.js +23 -0
  130. package/dist/pt-PT.module.js.map +1 -0
  131. package/dist/ro-RO.main.js +21 -0
  132. package/dist/ro-RO.main.js.map +1 -0
  133. package/dist/ro-RO.mjs +23 -0
  134. package/dist/ro-RO.module.js +23 -0
  135. package/dist/ro-RO.module.js.map +1 -0
  136. package/dist/ru-RU.main.js +21 -0
  137. package/dist/ru-RU.main.js.map +1 -0
  138. package/dist/ru-RU.mjs +23 -0
  139. package/dist/ru-RU.module.js +23 -0
  140. package/dist/ru-RU.module.js.map +1 -0
  141. package/dist/sk-SK.main.js +21 -0
  142. package/dist/sk-SK.main.js.map +1 -0
  143. package/dist/sk-SK.mjs +23 -0
  144. package/dist/sk-SK.module.js +23 -0
  145. package/dist/sk-SK.module.js.map +1 -0
  146. package/dist/sl-SI.main.js +21 -0
  147. package/dist/sl-SI.main.js.map +1 -0
  148. package/dist/sl-SI.mjs +23 -0
  149. package/dist/sl-SI.module.js +23 -0
  150. package/dist/sl-SI.module.js.map +1 -0
  151. package/dist/sr-SP.main.js +21 -0
  152. package/dist/sr-SP.main.js.map +1 -0
  153. package/dist/sr-SP.mjs +23 -0
  154. package/dist/sr-SP.module.js +23 -0
  155. package/dist/sr-SP.module.js.map +1 -0
  156. package/dist/sv-SE.main.js +21 -0
  157. package/dist/sv-SE.main.js.map +1 -0
  158. package/dist/sv-SE.mjs +23 -0
  159. package/dist/sv-SE.module.js +23 -0
  160. package/dist/sv-SE.module.js.map +1 -0
  161. package/dist/tr-TR.main.js +21 -0
  162. package/dist/tr-TR.main.js.map +1 -0
  163. package/dist/tr-TR.mjs +23 -0
  164. package/dist/tr-TR.module.js +23 -0
  165. package/dist/tr-TR.module.js.map +1 -0
  166. package/dist/types.d.ts.map +1 -1
  167. package/dist/uk-UA.main.js +21 -0
  168. package/dist/uk-UA.main.js.map +1 -0
  169. package/dist/uk-UA.mjs +23 -0
  170. package/dist/uk-UA.module.js +23 -0
  171. package/dist/uk-UA.module.js.map +1 -0
  172. package/dist/useDateField.main.js +176 -0
  173. package/dist/useDateField.main.js.map +1 -0
  174. package/dist/useDateField.mjs +167 -0
  175. package/dist/useDateField.module.js +167 -0
  176. package/dist/useDateField.module.js.map +1 -0
  177. package/dist/useDatePicker.main.js +158 -0
  178. package/dist/useDatePicker.main.js.map +1 -0
  179. package/dist/useDatePicker.mjs +153 -0
  180. package/dist/useDatePicker.module.js +153 -0
  181. package/dist/useDatePicker.module.js.map +1 -0
  182. package/dist/useDatePickerGroup.main.js +91 -0
  183. package/dist/useDatePickerGroup.main.js.map +1 -0
  184. package/dist/useDatePickerGroup.mjs +86 -0
  185. package/dist/useDatePickerGroup.module.js +86 -0
  186. package/dist/useDatePickerGroup.module.js.map +1 -0
  187. package/dist/useDateRangePicker.main.js +201 -0
  188. package/dist/useDateRangePicker.main.js.map +1 -0
  189. package/dist/useDateRangePicker.mjs +196 -0
  190. package/dist/useDateRangePicker.module.js +196 -0
  191. package/dist/useDateRangePicker.module.js.map +1 -0
  192. package/dist/useDateSegment.main.js +366 -0
  193. package/dist/useDateSegment.main.js.map +1 -0
  194. package/dist/useDateSegment.mjs +357 -0
  195. package/dist/useDateSegment.module.js +357 -0
  196. package/dist/useDateSegment.module.js.map +1 -0
  197. package/dist/useDisplayNames.main.js +59 -0
  198. package/dist/useDisplayNames.main.js.map +1 -0
  199. package/dist/useDisplayNames.mjs +54 -0
  200. package/dist/useDisplayNames.module.js +54 -0
  201. package/dist/useDisplayNames.module.js.map +1 -0
  202. package/dist/zh-CN.main.js +21 -0
  203. package/dist/zh-CN.main.js.map +1 -0
  204. package/dist/zh-CN.mjs +23 -0
  205. package/dist/zh-CN.module.js +23 -0
  206. package/dist/zh-CN.module.js.map +1 -0
  207. package/dist/zh-TW.main.js +21 -0
  208. package/dist/zh-TW.main.js.map +1 -0
  209. package/dist/zh-TW.mjs +23 -0
  210. package/dist/zh-TW.module.js +23 -0
  211. package/dist/zh-TW.module.js.map +1 -0
  212. package/package.json +19 -19
  213. package/src/useDateSegment.ts +4 -0
package/dist/import.mjs CHANGED
@@ -1,795 +1,8 @@
1
- import {createFocusManager as $cIPI0$createFocusManager, getFocusableTreeWalker as $cIPI0$getFocusableTreeWalker} from "@react-aria/focus";
2
- import {useId as $cIPI0$useId, useDescription as $cIPI0$useDescription, filterDOMProps as $cIPI0$filterDOMProps, mergeProps as $cIPI0$mergeProps, useFormReset as $cIPI0$useFormReset, isMac as $cIPI0$isMac, scrollIntoViewport as $cIPI0$scrollIntoViewport, getScrollParent as $cIPI0$getScrollParent, useEvent as $cIPI0$useEvent, useLayoutEffect as $cIPI0$useLayoutEffect, isIOS as $cIPI0$isIOS, useLabels as $cIPI0$useLabels} from "@react-aria/utils";
3
- import {privateValidationStateProp as $cIPI0$privateValidationStateProp, DEFAULT_VALIDATION_RESULT as $cIPI0$DEFAULT_VALIDATION_RESULT, mergeValidation as $cIPI0$mergeValidation} from "@react-stately/form";
4
- import $cIPI0$react, {useMemo as $cIPI0$useMemo, useRef as $cIPI0$useRef, useEffect as $cIPI0$useEffect} from "react";
5
- import {useField as $cIPI0$useField} from "@react-aria/label";
6
- import {useFocusWithin as $cIPI0$useFocusWithin, usePress as $cIPI0$usePress} from "@react-aria/interactions";
7
- import {useLocalizedStringFormatter as $cIPI0$useLocalizedStringFormatter, useLocale as $cIPI0$useLocale, useDateFormatter as $cIPI0$useDateFormatter, useFilter as $cIPI0$useFilter, useLocalizedStringDictionary as $cIPI0$useLocalizedStringDictionary} from "@react-aria/i18n";
8
- import {useFormValidation as $cIPI0$useFormValidation} from "@react-aria/form";
9
- import {toCalendar as $cIPI0$toCalendar, CalendarDate as $cIPI0$CalendarDate} from "@internationalized/date";
10
- import {NumberParser as $cIPI0$NumberParser} from "@internationalized/number";
11
- import {useSpinButton as $cIPI0$useSpinButton} from "@react-aria/spinbutton";
12
-
13
-
14
- function $parcel$interopDefault(a) {
15
- return a && a.__esModule ? a.default : a;
16
- }
17
- /*
18
- * Copyright 2020 Adobe. All rights reserved.
19
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
20
- * you may not use this file except in compliance with the License. You may obtain a copy
21
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
22
- *
23
- * Unless required by applicable law or agreed to in writing, software distributed under
24
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
25
- * OF ANY KIND, either express or implied. See the License for the specific language
26
- * governing permissions and limitations under the License.
27
- */ /*
28
- * Copyright 2020 Adobe. All rights reserved.
29
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
30
- * you may not use this file except in compliance with the License. You may obtain a copy
31
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
32
- *
33
- * Unless required by applicable law or agreed to in writing, software distributed under
34
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
35
- * OF ANY KIND, either express or implied. See the License for the specific language
36
- * governing permissions and limitations under the License.
37
- */
38
-
39
- var $dfb4eba373ed9493$exports = {};
40
- var $f23889fffbde9058$exports = {};
41
- $f23889fffbde9058$exports = {
42
- "calendar": `\u{627}\u{644}\u{62A}\u{642}\u{648}\u{64A}\u{645}`,
43
- "day": `\u{64A}\u{648}\u{645}`,
44
- "dayPeriod": `\u{635}/\u{645}`,
45
- "endDate": `\u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{627}\u{644}\u{627}\u{646}\u{62A}\u{647}\u{627}\u{621}`,
46
- "era": `\u{627}\u{644}\u{639}\u{635}\u{631}`,
47
- "hour": `\u{627}\u{644}\u{633}\u{627}\u{639}\u{627}\u{62A}`,
48
- "minute": `\u{627}\u{644}\u{62F}\u{642}\u{627}\u{626}\u{642}`,
49
- "month": `\u{627}\u{644}\u{634}\u{647}\u{631}`,
50
- "second": `\u{627}\u{644}\u{62B}\u{648}\u{627}\u{646}\u{64A}`,
51
- "selectedDateDescription": (args)=>`\u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{645}\u{62D}\u{62F}\u{62F}: ${args.date}`,
52
- "selectedRangeDescription": (args)=>`\u{627}\u{644}\u{645}\u{62F}\u{649} \u{627}\u{644}\u{632}\u{645}\u{646}\u{64A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}: ${args.startDate} \u{625}\u{644}\u{649} ${args.endDate}`,
53
- "selectedTimeDescription": (args)=>`\u{627}\u{644}\u{648}\u{642}\u{62A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}: ${args.time}`,
54
- "startDate": `\u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{627}\u{644}\u{628}\u{62F}\u{621}`,
55
- "timeZoneName": `\u{627}\u{644}\u{62A}\u{648}\u{642}\u{64A}\u{62A}`,
56
- "weekday": `\u{627}\u{644}\u{64A}\u{648}\u{645}`,
57
- "year": `\u{627}\u{644}\u{633}\u{646}\u{629}`
58
- };
59
-
60
-
61
- var $09d9badaa8903929$exports = {};
62
- $09d9badaa8903929$exports = {
63
- "calendar": `\u{41A}\u{430}\u{43B}\u{435}\u{43D}\u{434}\u{430}\u{440}`,
64
- "day": `\u{434}\u{435}\u{43D}`,
65
- "dayPeriod": `\u{43F}\u{440}.\u{43E}\u{431}./\u{441}\u{43B}.\u{43E}\u{431}.`,
66
- "endDate": `\u{41A}\u{440}\u{430}\u{439}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}`,
67
- "era": `\u{435}\u{440}\u{430}`,
68
- "hour": `\u{447}\u{430}\u{441}`,
69
- "minute": `\u{43C}\u{438}\u{43D}\u{443}\u{442}\u{430}`,
70
- "month": `\u{43C}\u{435}\u{441}\u{435}\u{446}`,
71
- "second": `\u{441}\u{435}\u{43A}\u{443}\u{43D}\u{434}\u{430}`,
72
- "selectedDateDescription": (args)=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${args.date}`,
73
- "selectedRangeDescription": (args)=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${args.startDate} \u{434}\u{43E} ${args.endDate}`,
74
- "selectedTimeDescription": (args)=>`\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{43E} \u{432}\u{440}\u{435}\u{43C}\u{435}: ${args.time}`,
75
- "startDate": `\u{41D}\u{430}\u{447}\u{430}\u{43B}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}`,
76
- "timeZoneName": `\u{447}\u{430}\u{441}\u{43E}\u{432}\u{430} \u{437}\u{43E}\u{43D}\u{430}`,
77
- "weekday": `\u{434}\u{435}\u{43D} \u{43E}\u{442} \u{441}\u{435}\u{434}\u{43C}\u{438}\u{446}\u{430}\u{442}\u{430}`,
78
- "year": `\u{433}\u{43E}\u{434}\u{438}\u{43D}\u{430}`
79
- };
80
-
81
-
82
- var $151b77e0fd711730$exports = {};
83
- $151b77e0fd711730$exports = {
84
- "calendar": `Kalend\xe1\u{159}`,
85
- "day": `den`,
86
- "dayPeriod": `\u{10D}\xe1st dne`,
87
- "endDate": `Kone\u{10D}n\xe9 datum`,
88
- "era": `letopo\u{10D}et`,
89
- "hour": `hodina`,
90
- "minute": `minuta`,
91
- "month": `m\u{11B}s\xedc`,
92
- "second": `sekunda`,
93
- "selectedDateDescription": (args)=>`Vybran\xe9 datum: ${args.date}`,
94
- "selectedRangeDescription": (args)=>`Vybran\xe9 obdob\xed: ${args.startDate} a\u{17E} ${args.endDate}`,
95
- "selectedTimeDescription": (args)=>`Vybran\xfd \u{10D}as: ${args.time}`,
96
- "startDate": `Po\u{10D}\xe1te\u{10D}n\xed datum`,
97
- "timeZoneName": `\u{10D}asov\xe9 p\xe1smo`,
98
- "weekday": `den v t\xfddnu`,
99
- "year": `rok`
100
- };
101
-
102
-
103
- var $61915aa8630b90a2$exports = {};
104
- $61915aa8630b90a2$exports = {
105
- "calendar": `Kalender`,
106
- "day": `dag`,
107
- "dayPeriod": `AM/PM`,
108
- "endDate": `Slutdato`,
109
- "era": `\xe6ra`,
110
- "hour": `time`,
111
- "minute": `minut`,
112
- "month": `m\xe5ned`,
113
- "second": `sekund`,
114
- "selectedDateDescription": (args)=>`Valgt dato: ${args.date}`,
115
- "selectedRangeDescription": (args)=>`Valgt interval: ${args.startDate} til ${args.endDate}`,
116
- "selectedTimeDescription": (args)=>`Valgt tidspunkt: ${args.time}`,
117
- "startDate": `Startdato`,
118
- "timeZoneName": `tidszone`,
119
- "weekday": `ugedag`,
120
- "year": `\xe5r`
121
- };
122
-
123
-
124
- var $35cea00159787840$exports = {};
125
- $35cea00159787840$exports = {
126
- "calendar": `Kalender`,
127
- "day": `Tag`,
128
- "dayPeriod": `Tagesh\xe4lfte`,
129
- "endDate": `Enddatum`,
130
- "era": `Epoche`,
131
- "hour": `Stunde`,
132
- "minute": `Minute`,
133
- "month": `Monat`,
134
- "second": `Sekunde`,
135
- "selectedDateDescription": (args)=>`Ausgew\xe4hltes Datum: ${args.date}`,
136
- "selectedRangeDescription": (args)=>`Ausgew\xe4hlter Bereich: ${args.startDate} bis ${args.endDate}`,
137
- "selectedTimeDescription": (args)=>`Ausgew\xe4hlte Zeit: ${args.time}`,
138
- "startDate": `Anfangsdatum`,
139
- "timeZoneName": `Zeitzone`,
140
- "weekday": `Wochentag`,
141
- "year": `Jahr`
142
- };
143
-
144
-
145
- var $518b4e82b9eacafd$exports = {};
146
- $518b4e82b9eacafd$exports = {
147
- "calendar": `\u{397}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BB}\u{3CC}\u{3B3}\u{3B9}\u{3BF}`,
148
- "day": `\u{3B7}\u{3BC}\u{3AD}\u{3C1}\u{3B1}`,
149
- "dayPeriod": `\u{3C0}.\u{3BC}./\u{3BC}.\u{3BC}.`,
150
- "endDate": `\u{397}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1} \u{3BB}\u{3AE}\u{3BE}\u{3B7}\u{3C2}`,
151
- "era": `\u{3C0}\u{3B5}\u{3C1}\u{3AF}\u{3BF}\u{3B4}\u{3BF}\u{3C2}`,
152
- "hour": `\u{3CE}\u{3C1}\u{3B1}`,
153
- "minute": `\u{3BB}\u{3B5}\u{3C0}\u{3C4}\u{3CC}`,
154
- "month": `\u{3BC}\u{3AE}\u{3BD}\u{3B1}\u{3C2}`,
155
- "second": `\u{3B4}\u{3B5}\u{3C5}\u{3C4}\u{3B5}\u{3C1}\u{3CC}\u{3BB}\u{3B5}\u{3C0}\u{3C4}\u{3BF}`,
156
- "selectedDateDescription": (args)=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1}: ${args.date}`,
157
- "selectedRangeDescription": (args)=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3BF} \u{3B5}\u{3CD}\u{3C1}\u{3BF}\u{3C2}: ${args.startDate} \u{3AD}\u{3C9}\u{3C2} ${args.endDate}`,
158
- "selectedTimeDescription": (args)=>`\u{395}\u{3C0}\u{3B9}\u{3BB}\u{3B5}\u{3B3}\u{3BC}\u{3AD}\u{3BD}\u{3B7} \u{3CE}\u{3C1}\u{3B1}: ${args.time}`,
159
- "startDate": `\u{397}\u{3BC}\u{3B5}\u{3C1}\u{3BF}\u{3BC}\u{3B7}\u{3BD}\u{3AF}\u{3B1} \u{3AD}\u{3BD}\u{3B1}\u{3C1}\u{3BE}\u{3B7}\u{3C2}`,
160
- "timeZoneName": `\u{3B6}\u{3CE}\u{3BD}\u{3B7} \u{3CE}\u{3C1}\u{3B1}\u{3C2}`,
161
- "weekday": `\u{3BA}\u{3B1}\u{3B8}\u{3B7}\u{3BC}\u{3B5}\u{3C1}\u{3B9}\u{3BD}\u{3AE}`,
162
- "year": `\u{3AD}\u{3C4}\u{3BF}\u{3C2}`
163
- };
164
-
165
-
166
- var $1c2b297f7e2cf474$exports = {};
167
- $1c2b297f7e2cf474$exports = {
168
- "era": `era`,
169
- "year": `year`,
170
- "month": `month`,
171
- "day": `day`,
172
- "hour": `hour`,
173
- "minute": `minute`,
174
- "second": `second`,
175
- "dayPeriod": `AM/PM`,
176
- "calendar": `Calendar`,
177
- "startDate": `Start Date`,
178
- "endDate": `End Date`,
179
- "weekday": `day of the week`,
180
- "timeZoneName": `time zone`,
181
- "selectedDateDescription": (args)=>`Selected Date: ${args.date}`,
182
- "selectedRangeDescription": (args)=>`Selected Range: ${args.startDate} to ${args.endDate}`,
183
- "selectedTimeDescription": (args)=>`Selected Time: ${args.time}`
184
- };
185
-
186
-
187
- var $07f628a707cf9b18$exports = {};
188
- $07f628a707cf9b18$exports = {
189
- "calendar": `Calendario`,
190
- "day": `d\xeda`,
191
- "dayPeriod": `a.\xa0m./p.\xa0m.`,
192
- "endDate": `Fecha final`,
193
- "era": `era`,
194
- "hour": `hora`,
195
- "minute": `minuto`,
196
- "month": `mes`,
197
- "second": `segundo`,
198
- "selectedDateDescription": (args)=>`Fecha seleccionada: ${args.date}`,
199
- "selectedRangeDescription": (args)=>`Rango seleccionado: ${args.startDate} a ${args.endDate}`,
200
- "selectedTimeDescription": (args)=>`Hora seleccionada: ${args.time}`,
201
- "startDate": `Fecha de inicio`,
202
- "timeZoneName": `zona horaria`,
203
- "weekday": `d\xeda de la semana`,
204
- "year": `a\xf1o`
205
- };
206
-
207
-
208
- var $db553ffe17c7f4db$exports = {};
209
- $db553ffe17c7f4db$exports = {
210
- "calendar": `Kalender`,
211
- "day": `p\xe4ev`,
212
- "dayPeriod": `enne/p\xe4rast l\xf5unat`,
213
- "endDate": `L\xf5ppkuup\xe4ev`,
214
- "era": `ajastu`,
215
- "hour": `tund`,
216
- "minute": `minut`,
217
- "month": `kuu`,
218
- "second": `sekund`,
219
- "selectedDateDescription": (args)=>`Valitud kuup\xe4ev: ${args.date}`,
220
- "selectedRangeDescription": (args)=>`Valitud vahemik: ${args.startDate} kuni ${args.endDate}`,
221
- "selectedTimeDescription": (args)=>`Valitud aeg: ${args.time}`,
222
- "startDate": `Alguskuup\xe4ev`,
223
- "timeZoneName": `ajav\xf6\xf6nd`,
224
- "weekday": `n\xe4dalap\xe4ev`,
225
- "year": `aasta`
226
- };
227
-
228
-
229
- var $4afcfe00cd703f83$exports = {};
230
- $4afcfe00cd703f83$exports = {
231
- "calendar": `Kalenteri`,
232
- "day": `p\xe4iv\xe4`,
233
- "dayPeriod": `vuorokaudenaika`,
234
- "endDate": `P\xe4\xe4ttymisp\xe4iv\xe4`,
235
- "era": `aikakausi`,
236
- "hour": `tunti`,
237
- "minute": `minuutti`,
238
- "month": `kuukausi`,
239
- "second": `sekunti`,
240
- "selectedDateDescription": (args)=>`Valittu p\xe4iv\xe4m\xe4\xe4r\xe4: ${args.date}`,
241
- "selectedRangeDescription": (args)=>`Valittu aikav\xe4li: ${args.startDate} \u{2013} ${args.endDate}`,
242
- "selectedTimeDescription": (args)=>`Valittu aika: ${args.time}`,
243
- "startDate": `Alkamisp\xe4iv\xe4`,
244
- "timeZoneName": `aikavy\xf6hyke`,
245
- "weekday": `viikonp\xe4iv\xe4`,
246
- "year": `vuosi`
247
- };
248
-
249
-
250
- var $1d2645d18d4c5be0$exports = {};
251
- $1d2645d18d4c5be0$exports = {
252
- "calendar": `Calendrier`,
253
- "day": `jour`,
254
- "dayPeriod": `cadran`,
255
- "endDate": `Date de fin`,
256
- "era": `\xe8re`,
257
- "hour": `heure`,
258
- "minute": `minute`,
259
- "month": `mois`,
260
- "second": `seconde`,
261
- "selectedDateDescription": (args)=>`Date s\xe9lectionn\xe9e\xa0: ${args.date}`,
262
- "selectedRangeDescription": (args)=>`Plage s\xe9lectionn\xe9e\xa0: ${args.startDate} au ${args.endDate}`,
263
- "selectedTimeDescription": (args)=>`Heure choisie\xa0: ${args.time}`,
264
- "startDate": `Date de d\xe9but`,
265
- "timeZoneName": `fuseau horaire`,
266
- "weekday": `jour de la semaine`,
267
- "year": `ann\xe9e`
268
- };
269
-
270
-
271
- var $64cb6a9be1f6fa48$exports = {};
272
- $64cb6a9be1f6fa48$exports = {
273
- "calendar": `\u{5DC}\u{5D5}\u{5D7} \u{5E9}\u{5E0}\u{5D4}`,
274
- "day": `\u{5D9}\u{5D5}\u{5DD}`,
275
- "dayPeriod": `\u{5DC}\u{5E4}\u{5E0}\u{5D4}\u{5F4}\u{5E6}/\u{5D0}\u{5D7}\u{5D4}\u{5F4}\u{5E6}`,
276
- "endDate": `\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5E1}\u{5D9}\u{5D5}\u{5DD}`,
277
- "era": `\u{5EA}\u{5E7}\u{5D5}\u{5E4}\u{5D4}`,
278
- "hour": `\u{5E9}\u{5E2}\u{5D4}`,
279
- "minute": `\u{5D3}\u{5E7}\u{5D4}`,
280
- "month": `\u{5D7}\u{5D5}\u{5D3}\u{5E9}`,
281
- "second": `\u{5E9}\u{5E0}\u{5D9}\u{5D9}\u{5D4}`,
282
- "selectedDateDescription": (args)=>`\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${args.date}`,
283
- "selectedRangeDescription": (args)=>`\u{5D8}\u{5D5}\u{5D5}\u{5D7} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${args.startDate} \u{5E2}\u{5D3} ${args.endDate}`,
284
- "selectedTimeDescription": (args)=>`\u{5D6}\u{5DE}\u{5DF} \u{5E0}\u{5D1}\u{5D7}\u{5E8}: ${args.time}`,
285
- "startDate": `\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5D4}\u{5EA}\u{5D7}\u{5DC}\u{5D4}`,
286
- "timeZoneName": `\u{5D0}\u{5D6}\u{5D5}\u{5E8} \u{5D6}\u{5DE}\u{5DF}`,
287
- "weekday": `\u{5D9}\u{5D5}\u{5DD} \u{5D1}\u{5E9}\u{5D1}\u{5D5}\u{5E2}`,
288
- "year": `\u{5E9}\u{5E0}\u{5D4}`
289
- };
290
-
291
-
292
- var $2a1ef2e8050be27a$exports = {};
293
- $2a1ef2e8050be27a$exports = {
294
- "calendar": `Kalendar`,
295
- "day": `dan`,
296
- "dayPeriod": `AM/PM`,
297
- "endDate": `Datum zavr\u{161}etka`,
298
- "era": `era`,
299
- "hour": `sat`,
300
- "minute": `minuta`,
301
- "month": `mjesec`,
302
- "second": `sekunda`,
303
- "selectedDateDescription": (args)=>`Odabrani datum: ${args.date}`,
304
- "selectedRangeDescription": (args)=>`Odabrani raspon: ${args.startDate} do ${args.endDate}`,
305
- "selectedTimeDescription": (args)=>`Odabrano vrijeme: ${args.time}`,
306
- "startDate": `Datum po\u{10D}etka`,
307
- "timeZoneName": `vremenska zona`,
308
- "weekday": `dan u tjednu`,
309
- "year": `godina`
310
- };
311
-
312
-
313
- var $ad429dca102acd0e$exports = {};
314
- $ad429dca102acd0e$exports = {
315
- "calendar": `Napt\xe1r`,
316
- "day": `nap`,
317
- "dayPeriod": `napszak`,
318
- "endDate": `Befejez\u{151} d\xe1tum`,
319
- "era": `\xe9ra`,
320
- "hour": `\xf3ra`,
321
- "minute": `perc`,
322
- "month": `h\xf3nap`,
323
- "second": `m\xe1sodperc`,
324
- "selectedDateDescription": (args)=>`Kijel\xf6lt d\xe1tum: ${args.date}`,
325
- "selectedRangeDescription": (args)=>`Kijel\xf6lt tartom\xe1ny: ${args.startDate}\u{2013}${args.endDate}`,
326
- "selectedTimeDescription": (args)=>`Kijel\xf6lt id\u{151}: ${args.time}`,
327
- "startDate": `Kezd\u{151} d\xe1tum`,
328
- "timeZoneName": `id\u{151}z\xf3na`,
329
- "weekday": `h\xe9t napja`,
330
- "year": `\xe9v`
331
- };
332
-
333
-
334
- var $6e68cb5d1cb97bd2$exports = {};
335
- $6e68cb5d1cb97bd2$exports = {
336
- "calendar": `Calendario`,
337
- "day": `giorno`,
338
- "dayPeriod": `AM/PM`,
339
- "endDate": `Data finale`,
340
- "era": `era`,
341
- "hour": `ora`,
342
- "minute": `minuto`,
343
- "month": `mese`,
344
- "second": `secondo`,
345
- "selectedDateDescription": (args)=>`Data selezionata: ${args.date}`,
346
- "selectedRangeDescription": (args)=>`Intervallo selezionato: da ${args.startDate} a ${args.endDate}`,
347
- "selectedTimeDescription": (args)=>`Ora selezionata: ${args.time}`,
348
- "startDate": `Data iniziale`,
349
- "timeZoneName": `fuso orario`,
350
- "weekday": `giorno della settimana`,
351
- "year": `anno`
352
- };
353
-
354
-
355
- var $a82ee9af063ee069$exports = {};
356
- $a82ee9af063ee069$exports = {
357
- "calendar": `\u{30AB}\u{30EC}\u{30F3}\u{30C0}\u{30FC}`,
358
- "day": `\u{65E5}`,
359
- "dayPeriod": `\u{5348}\u{524D}/\u{5348}\u{5F8C}`,
360
- "endDate": `\u{7D42}\u{4E86}\u{65E5}`,
361
- "era": `\u{6642}\u{4EE3}`,
362
- "hour": `\u{6642}`,
363
- "minute": `\u{5206}`,
364
- "month": `\u{6708}`,
365
- "second": `\u{79D2}`,
366
- "selectedDateDescription": (args)=>`\u{9078}\u{629E}\u{3057}\u{305F}\u{65E5}\u{4ED8} : ${args.date}`,
367
- "selectedRangeDescription": (args)=>`\u{9078}\u{629E}\u{7BC4}\u{56F2} : ${args.startDate} \u{304B}\u{3089} ${args.endDate}`,
368
- "selectedTimeDescription": (args)=>`\u{9078}\u{629E}\u{3057}\u{305F}\u{6642}\u{9593} : ${args.time}`,
369
- "startDate": `\u{958B}\u{59CB}\u{65E5}`,
370
- "timeZoneName": `\u{30BF}\u{30A4}\u{30E0}\u{30BE}\u{30FC}\u{30F3}`,
371
- "weekday": `\u{66DC}\u{65E5}`,
372
- "year": `\u{5E74}`
373
- };
374
-
375
-
376
- var $67e9091dbf37d4eb$exports = {};
377
- $67e9091dbf37d4eb$exports = {
378
- "calendar": `\u{B2EC}\u{B825}`,
379
- "day": `\u{C77C}`,
380
- "dayPeriod": `\u{C624}\u{C804}/\u{C624}\u{D6C4}`,
381
- "endDate": `\u{C885}\u{B8CC}\u{C77C}`,
382
- "era": `\u{C5F0}\u{D638}`,
383
- "hour": `\u{C2DC}`,
384
- "minute": `\u{BD84}`,
385
- "month": `\u{C6D4}`,
386
- "second": `\u{CD08}`,
387
- "selectedDateDescription": (args)=>`\u{C120}\u{D0DD} \u{C77C}\u{C790}: ${args.date}`,
388
- "selectedRangeDescription": (args)=>`\u{C120}\u{D0DD} \u{BC94}\u{C704}: ${args.startDate} ~ ${args.endDate}`,
389
- "selectedTimeDescription": (args)=>`\u{C120}\u{D0DD} \u{C2DC}\u{AC04}: ${args.time}`,
390
- "startDate": `\u{C2DC}\u{C791}\u{C77C}`,
391
- "timeZoneName": `\u{C2DC}\u{AC04}\u{B300}`,
392
- "weekday": `\u{C694}\u{C77C}`,
393
- "year": `\u{B144}`
394
- };
395
-
396
-
397
- var $75834f9729f653d1$exports = {};
398
- $75834f9729f653d1$exports = {
399
- "calendar": `Kalendorius`,
400
- "day": `diena`,
401
- "dayPeriod": `iki piet\u{173} / po piet\u{173}`,
402
- "endDate": `Pabaigos data`,
403
- "era": `era`,
404
- "hour": `valanda`,
405
- "minute": `minut\u{117}`,
406
- "month": `m\u{117}nuo`,
407
- "second": `sekund\u{117}`,
408
- "selectedDateDescription": (args)=>`Pasirinkta data: ${args.date}`,
409
- "selectedRangeDescription": (args)=>`Pasirinktas intervalas: nuo ${args.startDate} iki ${args.endDate}`,
410
- "selectedTimeDescription": (args)=>`Pasirinktas laikas: ${args.time}`,
411
- "startDate": `Prad\u{17E}ios data`,
412
- "timeZoneName": `laiko juosta`,
413
- "weekday": `savait\u{117}s diena`,
414
- "year": `metai`
415
- };
416
-
417
-
418
- var $a2df2c2520b4a7f0$exports = {};
419
- $a2df2c2520b4a7f0$exports = {
420
- "calendar": `Kalend\u{101}rs`,
421
- "day": `diena`,
422
- "dayPeriod": `priek\u{161}pusdien\u{101}/p\u{113}cpusdien\u{101}`,
423
- "endDate": `Beigu datums`,
424
- "era": `\u{113}ra`,
425
- "hour": `stundas`,
426
- "minute": `min\u{16B}tes`,
427
- "month": `m\u{113}nesis`,
428
- "second": `sekundes`,
429
- "selectedDateDescription": (args)=>`Atlas\u{12B}tais datums: ${args.date}`,
430
- "selectedRangeDescription": (args)=>`Atlas\u{12B}tais diapazons: no ${args.startDate} l\u{12B}dz ${args.endDate}`,
431
- "selectedTimeDescription": (args)=>`Atlas\u{12B}tais laiks: ${args.time}`,
432
- "startDate": `S\u{101}kuma datums`,
433
- "timeZoneName": `laika josla`,
434
- "weekday": `ned\u{113}\u{13C}as diena`,
435
- "year": `gads`
436
- };
437
-
438
-
439
- var $aedcd71db4933ed5$exports = {};
440
- $aedcd71db4933ed5$exports = {
441
- "calendar": `Kalender`,
442
- "day": `dag`,
443
- "dayPeriod": `a.m./p.m.`,
444
- "endDate": `Sluttdato`,
445
- "era": `tidsalder`,
446
- "hour": `time`,
447
- "minute": `minutt`,
448
- "month": `m\xe5ned`,
449
- "second": `sekund`,
450
- "selectedDateDescription": (args)=>`Valgt dato: ${args.date}`,
451
- "selectedRangeDescription": (args)=>`Valgt omr\xe5de: ${args.startDate} til ${args.endDate}`,
452
- "selectedTimeDescription": (args)=>`Valgt tid: ${args.time}`,
453
- "startDate": `Startdato`,
454
- "timeZoneName": `tidssone`,
455
- "weekday": `ukedag`,
456
- "year": `\xe5r`
457
- };
458
-
459
-
460
- var $3b2df9e54353046c$exports = {};
461
- $3b2df9e54353046c$exports = {
462
- "calendar": `Kalender`,
463
- "day": `dag`,
464
- "dayPeriod": `a.m./p.m.`,
465
- "endDate": `Einddatum`,
466
- "era": `tijdperk`,
467
- "hour": `uur`,
468
- "minute": `minuut`,
469
- "month": `maand`,
470
- "second": `seconde`,
471
- "selectedDateDescription": (args)=>`Geselecteerde datum: ${args.date}`,
472
- "selectedRangeDescription": (args)=>`Geselecteerd bereik: ${args.startDate} tot ${args.endDate}`,
473
- "selectedTimeDescription": (args)=>`Geselecteerde tijd: ${args.time}`,
474
- "startDate": `Startdatum`,
475
- "timeZoneName": `tijdzone`,
476
- "weekday": `dag van de week`,
477
- "year": `jaar`
478
- };
479
-
480
-
481
- var $c03fe977fcfafe93$exports = {};
482
- $c03fe977fcfafe93$exports = {
483
- "calendar": `Kalendarz`,
484
- "day": `dzie\u{144}`,
485
- "dayPeriod": `rano / po po\u{142}udniu / wieczorem`,
486
- "endDate": `Data ko\u{144}cowa`,
487
- "era": `era`,
488
- "hour": `godzina`,
489
- "minute": `minuta`,
490
- "month": `miesi\u{105}c`,
491
- "second": `sekunda`,
492
- "selectedDateDescription": (args)=>`Wybrana data: ${args.date}`,
493
- "selectedRangeDescription": (args)=>`Wybrany zakres: ${args.startDate} do ${args.endDate}`,
494
- "selectedTimeDescription": (args)=>`Wybrany czas: ${args.time}`,
495
- "startDate": `Data pocz\u{105}tkowa`,
496
- "timeZoneName": `strefa czasowa`,
497
- "weekday": `dzie\u{144} tygodnia`,
498
- "year": `rok`
499
- };
500
-
501
-
502
- var $569f006fc292345f$exports = {};
503
- $569f006fc292345f$exports = {
504
- "calendar": `Calend\xe1rio`,
505
- "day": `dia`,
506
- "dayPeriod": `AM/PM`,
507
- "endDate": `Data final`,
508
- "era": `era`,
509
- "hour": `hora`,
510
- "minute": `minuto`,
511
- "month": `m\xeas`,
512
- "second": `segundo`,
513
- "selectedDateDescription": (args)=>`Data selecionada: ${args.date}`,
514
- "selectedRangeDescription": (args)=>`Intervalo selecionado: ${args.startDate} a ${args.endDate}`,
515
- "selectedTimeDescription": (args)=>`Hora selecionada: ${args.time}`,
516
- "startDate": `Data inicial`,
517
- "timeZoneName": `fuso hor\xe1rio`,
518
- "weekday": `dia da semana`,
519
- "year": `ano`
520
- };
521
-
522
-
523
- var $7c2494e14452f2dd$exports = {};
524
- $7c2494e14452f2dd$exports = {
525
- "calendar": `Calend\xe1rio`,
526
- "day": `dia`,
527
- "dayPeriod": `am/pm`,
528
- "endDate": `Data de T\xe9rmino`,
529
- "era": `era`,
530
- "hour": `hora`,
531
- "minute": `minuto`,
532
- "month": `m\xeas`,
533
- "second": `segundo`,
534
- "selectedDateDescription": (args)=>`Data selecionada: ${args.date}`,
535
- "selectedRangeDescription": (args)=>`Intervalo selecionado: ${args.startDate} a ${args.endDate}`,
536
- "selectedTimeDescription": (args)=>`Hora selecionada: ${args.time}`,
537
- "startDate": `Data de In\xedcio`,
538
- "timeZoneName": `fuso hor\xe1rio`,
539
- "weekday": `dia da semana`,
540
- "year": `ano`
541
- };
542
-
543
-
544
- var $eb82ef981b5592bf$exports = {};
545
- $eb82ef981b5592bf$exports = {
546
- "calendar": `Calendar`,
547
- "day": `zi`,
548
- "dayPeriod": `a.m/p.m.`,
549
- "endDate": `Dat\u{103} final`,
550
- "era": `er\u{103}`,
551
- "hour": `or\u{103}`,
552
- "minute": `minut`,
553
- "month": `lun\u{103}`,
554
- "second": `secund\u{103}`,
555
- "selectedDateDescription": (args)=>`Dat\u{103} selectat\u{103}: ${args.date}`,
556
- "selectedRangeDescription": (args)=>`Interval selectat: de la ${args.startDate} p\xe2n\u{103} la ${args.endDate}`,
557
- "selectedTimeDescription": (args)=>`Ora selectat\u{103}: ${args.time}`,
558
- "startDate": `Dat\u{103} \xeenceput`,
559
- "timeZoneName": `fus orar`,
560
- "weekday": `ziua din s\u{103}pt\u{103}m\xe2n\u{103}`,
561
- "year": `an`
562
- };
563
-
564
-
565
- var $6efa0e119f396950$exports = {};
566
- $6efa0e119f396950$exports = {
567
- "calendar": `\u{41A}\u{430}\u{43B}\u{435}\u{43D}\u{434}\u{430}\u{440}\u{44C}`,
568
- "day": `\u{434}\u{435}\u{43D}\u{44C}`,
569
- "dayPeriod": `AM/PM`,
570
- "endDate": `\u{414}\u{430}\u{442}\u{430} \u{43E}\u{43A}\u{43E}\u{43D}\u{447}\u{430}\u{43D}\u{438}\u{44F}`,
571
- "era": `\u{44D}\u{440}\u{430}`,
572
- "hour": `\u{447}\u{430}\u{441}`,
573
- "minute": `\u{43C}\u{438}\u{43D}\u{443}\u{442}\u{430}`,
574
- "month": `\u{43C}\u{435}\u{441}\u{44F}\u{446}`,
575
- "second": `\u{441}\u{435}\u{43A}\u{443}\u{43D}\u{434}\u{430}`,
576
- "selectedDateDescription": (args)=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{430}\u{44F} \u{434}\u{430}\u{442}\u{430}: ${args.date}`,
577
- "selectedRangeDescription": (args)=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{44B}\u{439} \u{434}\u{438}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: \u{441} ${args.startDate} \u{43F}\u{43E} ${args.endDate}`,
578
- "selectedTimeDescription": (args)=>`\u{412}\u{44B}\u{431}\u{440}\u{430}\u{43D}\u{43D}\u{43E}\u{435} \u{432}\u{440}\u{435}\u{43C}\u{44F}: ${args.time}`,
579
- "startDate": `\u{414}\u{430}\u{442}\u{430} \u{43D}\u{430}\u{447}\u{430}\u{43B}\u{430}`,
580
- "timeZoneName": `\u{447}\u{430}\u{441}\u{43E}\u{432}\u{43E}\u{439} \u{43F}\u{43E}\u{44F}\u{441}`,
581
- "weekday": `\u{434}\u{435}\u{43D}\u{44C} \u{43D}\u{435}\u{434}\u{435}\u{43B}\u{438}`,
582
- "year": `\u{433}\u{43E}\u{434}`
583
- };
584
-
585
-
586
- var $7f5e57085d7f5049$exports = {};
587
- $7f5e57085d7f5049$exports = {
588
- "calendar": `Kalend\xe1r`,
589
- "day": `de\u{148}`,
590
- "dayPeriod": `AM/PM`,
591
- "endDate": `D\xe1tum ukon\u{10D}enia`,
592
- "era": `letopo\u{10D}et`,
593
- "hour": `hodina`,
594
- "minute": `min\xfata`,
595
- "month": `mesiac`,
596
- "second": `sekunda`,
597
- "selectedDateDescription": (args)=>`Vybrat\xfd d\xe1tum: ${args.date}`,
598
- "selectedRangeDescription": (args)=>`Vybrat\xfd rozsah: od ${args.startDate} do ${args.endDate}`,
599
- "selectedTimeDescription": (args)=>`Vybrat\xfd \u{10D}as: ${args.time}`,
600
- "startDate": `D\xe1tum za\u{10D}atia`,
601
- "timeZoneName": `\u{10D}asov\xe9 p\xe1smo`,
602
- "weekday": `de\u{148} t\xfd\u{17E}d\u{148}a`,
603
- "year": `rok`
604
- };
605
-
606
-
607
- var $578ee7c11dcdde7a$exports = {};
608
- $578ee7c11dcdde7a$exports = {
609
- "calendar": `Koledar`,
610
- "day": `dan`,
611
- "dayPeriod": `dop/pop`,
612
- "endDate": `Datum konca`,
613
- "era": `doba`,
614
- "hour": `ura`,
615
- "minute": `minuta`,
616
- "month": `mesec`,
617
- "second": `sekunda`,
618
- "selectedDateDescription": (args)=>`Izbrani datum: ${args.date}`,
619
- "selectedRangeDescription": (args)=>`Izbrano obmo\u{10D}je: ${args.startDate} do ${args.endDate}`,
620
- "selectedTimeDescription": (args)=>`Izbrani \u{10D}as: ${args.time}`,
621
- "startDate": `Datum za\u{10D}etka`,
622
- "timeZoneName": `\u{10D}asovni pas`,
623
- "weekday": `dan v tednu`,
624
- "year": `leto`
625
- };
626
-
627
-
628
- var $bbc3fd6cd0bc9d50$exports = {};
629
- $bbc3fd6cd0bc9d50$exports = {
630
- "calendar": `Kalendar`,
631
- "day": `\u{434}\u{430}\u{43D}`,
632
- "dayPeriod": `\u{43F}\u{440}\u{435} \u{43F}\u{43E}\u{434}\u{43D}\u{435}/\u{43F}\u{43E} \u{43F}\u{43E}\u{434}\u{43D}\u{435}`,
633
- "endDate": `Datum zavr\u{161}etka`,
634
- "era": `\u{435}\u{440}\u{430}`,
635
- "hour": `\u{441}\u{430}\u{442}`,
636
- "minute": `\u{43C}\u{438}\u{43D}\u{443}\u{442}`,
637
- "month": `\u{43C}\u{435}\u{441}\u{435}\u{446}`,
638
- "second": `\u{441}\u{435}\u{43A}\u{443}\u{43D}\u{434}`,
639
- "selectedDateDescription": (args)=>`Izabrani datum: ${args.date}`,
640
- "selectedRangeDescription": (args)=>`Izabrani opseg: od ${args.startDate} do ${args.endDate}`,
641
- "selectedTimeDescription": (args)=>`Izabrano vreme: ${args.time}`,
642
- "startDate": `Datum po\u{10D}etka`,
643
- "timeZoneName": `\u{432}\u{440}\u{435}\u{43C}\u{435}\u{43D}\u{441}\u{43A}\u{430} \u{437}\u{43E}\u{43D}\u{430}`,
644
- "weekday": `\u{434}\u{430}\u{43D} \u{443} \u{43D}\u{435}\u{434}\u{435}\u{459}\u{438}`,
645
- "year": `\u{433}\u{43E}\u{434}\u{438}\u{43D}\u{430}`
646
- };
647
-
648
-
649
- var $0b04512118591d2a$exports = {};
650
- $0b04512118591d2a$exports = {
651
- "calendar": `Kalender`,
652
- "day": `dag`,
653
- "dayPeriod": `fm/em`,
654
- "endDate": `Slutdatum`,
655
- "era": `era`,
656
- "hour": `timme`,
657
- "minute": `minut`,
658
- "month": `m\xe5nad`,
659
- "second": `sekund`,
660
- "selectedDateDescription": (args)=>`Valt datum: ${args.date}`,
661
- "selectedRangeDescription": (args)=>`Valt intervall: ${args.startDate} till ${args.endDate}`,
662
- "selectedTimeDescription": (args)=>`Vald tid: ${args.time}`,
663
- "startDate": `Startdatum`,
664
- "timeZoneName": `tidszon`,
665
- "weekday": `veckodag`,
666
- "year": `\xe5r`
667
- };
668
-
669
-
670
- var $3a49d121fe4c9e1d$exports = {};
671
- $3a49d121fe4c9e1d$exports = {
672
- "calendar": `Takvim`,
673
- "day": `g\xfcn`,
674
- "dayPeriod": `\xd6\xd6/\xd6S`,
675
- "endDate": `Biti\u{15F} Tarihi`,
676
- "era": `\xe7a\u{11F}`,
677
- "hour": `saat`,
678
- "minute": `dakika`,
679
- "month": `ay`,
680
- "second": `saniye`,
681
- "selectedDateDescription": (args)=>`Se\xe7ilen Tarih: ${args.date}`,
682
- "selectedRangeDescription": (args)=>`Se\xe7ilen Aral\u{131}k: ${args.startDate} - ${args.endDate}`,
683
- "selectedTimeDescription": (args)=>`Se\xe7ilen Zaman: ${args.time}`,
684
- "startDate": `Ba\u{15F}lang\u{131}\xe7 Tarihi`,
685
- "timeZoneName": `saat dilimi`,
686
- "weekday": `haftan\u{131}n g\xfcn\xfc`,
687
- "year": `y\u{131}l`
688
- };
689
-
690
-
691
- var $5ba21dbb8914919d$exports = {};
692
- $5ba21dbb8914919d$exports = {
693
- "calendar": `\u{41A}\u{430}\u{43B}\u{435}\u{43D}\u{434}\u{430}\u{440}`,
694
- "day": `\u{434}\u{435}\u{43D}\u{44C}`,
695
- "dayPeriod": `\u{434}\u{43F}/\u{43F}\u{43F}`,
696
- "endDate": `\u{414}\u{430}\u{442}\u{430} \u{437}\u{430}\u{432}\u{435}\u{440}\u{448}\u{435}\u{43D}\u{43D}\u{44F}`,
697
- "era": `\u{435}\u{440}\u{430}`,
698
- "hour": `\u{433}\u{43E}\u{434}\u{438}\u{43D}\u{430}`,
699
- "minute": `\u{445}\u{432}\u{438}\u{43B}\u{438}\u{43D}\u{430}`,
700
- "month": `\u{43C}\u{456}\u{441}\u{44F}\u{446}\u{44C}`,
701
- "second": `\u{441}\u{435}\u{43A}\u{443}\u{43D}\u{434}\u{430}`,
702
- "selectedDateDescription": (args)=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430}: ${args.date}`,
703
- "selectedRangeDescription": (args)=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{434}\u{456}\u{430}\u{43F}\u{430}\u{437}\u{43E}\u{43D}: ${args.startDate} \u{2014} ${args.endDate}`,
704
- "selectedTimeDescription": (args)=>`\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{438}\u{439} \u{447}\u{430}\u{441}: ${args.time}`,
705
- "startDate": `\u{414}\u{430}\u{442}\u{430} \u{43F}\u{43E}\u{447}\u{430}\u{442}\u{43A}\u{443}`,
706
- "timeZoneName": `\u{447}\u{430}\u{441}\u{43E}\u{432}\u{438}\u{439} \u{43F}\u{43E}\u{44F}\u{441}`,
707
- "weekday": `\u{434}\u{435}\u{43D}\u{44C} \u{442}\u{438}\u{436}\u{43D}\u{44F}`,
708
- "year": `\u{440}\u{456}\u{43A}`
709
- };
710
-
711
-
712
- var $51078838e1b16cd7$exports = {};
713
- $51078838e1b16cd7$exports = {
714
- "calendar": `\u{65E5}\u{5386}`,
715
- "day": `\u{65E5}`,
716
- "dayPeriod": `\u{4E0A}\u{5348}/\u{4E0B}\u{5348}`,
717
- "endDate": `\u{7ED3}\u{675F}\u{65E5}\u{671F}`,
718
- "era": `\u{7EAA}\u{5143}`,
719
- "hour": `\u{5C0F}\u{65F6}`,
720
- "minute": `\u{5206}\u{949F}`,
721
- "month": `\u{6708}`,
722
- "second": `\u{79D2}`,
723
- "selectedDateDescription": (args)=>`\u{9009}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${args.date}`,
724
- "selectedRangeDescription": (args)=>`\u{9009}\u{5B9A}\u{7684}\u{8303}\u{56F4}\u{FF1A}${args.startDate} \u{81F3} ${args.endDate}`,
725
- "selectedTimeDescription": (args)=>`\u{9009}\u{5B9A}\u{7684}\u{65F6}\u{95F4}\u{FF1A}${args.time}`,
726
- "startDate": `\u{5F00}\u{59CB}\u{65E5}\u{671F}`,
727
- "timeZoneName": `\u{65F6}\u{533A}`,
728
- "weekday": `\u{5DE5}\u{4F5C}\u{65E5}`,
729
- "year": `\u{5E74}`
730
- };
731
-
732
-
733
- var $33fab8219207655a$exports = {};
734
- $33fab8219207655a$exports = {
735
- "calendar": `\u{65E5}\u{66C6}`,
736
- "day": `\u{65E5}`,
737
- "dayPeriod": `\u{4E0A}\u{5348}/\u{4E0B}\u{5348}`,
738
- "endDate": `\u{7D50}\u{675F}\u{65E5}\u{671F}`,
739
- "era": `\u{7EAA}\u{5143}`,
740
- "hour": `\u{5C0F}\u{65F6}`,
741
- "minute": `\u{5206}\u{949F}`,
742
- "month": `\u{6708}`,
743
- "second": `\u{79D2}`,
744
- "selectedDateDescription": (args)=>`\u{9078}\u{5B9A}\u{7684}\u{65E5}\u{671F}\u{FF1A}${args.date}`,
745
- "selectedRangeDescription": (args)=>`\u{9078}\u{5B9A}\u{7684}\u{7BC4}\u{570D}\u{FF1A}${args.startDate} \u{81F3} ${args.endDate}`,
746
- "selectedTimeDescription": (args)=>`\u{9078}\u{5B9A}\u{7684}\u{6642}\u{9593}\u{FF1A}${args.time}`,
747
- "startDate": `\u{958B}\u{59CB}\u{65E5}\u{671F}`,
748
- "timeZoneName": `\u{65F6}\u{533A}`,
749
- "weekday": `\u{5DE5}\u{4F5C}\u{65E5}`,
750
- "year": `\u{5E74}`
751
- };
752
-
753
-
754
- $dfb4eba373ed9493$exports = {
755
- "ar-AE": $f23889fffbde9058$exports,
756
- "bg-BG": $09d9badaa8903929$exports,
757
- "cs-CZ": $151b77e0fd711730$exports,
758
- "da-DK": $61915aa8630b90a2$exports,
759
- "de-DE": $35cea00159787840$exports,
760
- "el-GR": $518b4e82b9eacafd$exports,
761
- "en-US": $1c2b297f7e2cf474$exports,
762
- "es-ES": $07f628a707cf9b18$exports,
763
- "et-EE": $db553ffe17c7f4db$exports,
764
- "fi-FI": $4afcfe00cd703f83$exports,
765
- "fr-FR": $1d2645d18d4c5be0$exports,
766
- "he-IL": $64cb6a9be1f6fa48$exports,
767
- "hr-HR": $2a1ef2e8050be27a$exports,
768
- "hu-HU": $ad429dca102acd0e$exports,
769
- "it-IT": $6e68cb5d1cb97bd2$exports,
770
- "ja-JP": $a82ee9af063ee069$exports,
771
- "ko-KR": $67e9091dbf37d4eb$exports,
772
- "lt-LT": $75834f9729f653d1$exports,
773
- "lv-LV": $a2df2c2520b4a7f0$exports,
774
- "nb-NO": $aedcd71db4933ed5$exports,
775
- "nl-NL": $3b2df9e54353046c$exports,
776
- "pl-PL": $c03fe977fcfafe93$exports,
777
- "pt-BR": $569f006fc292345f$exports,
778
- "pt-PT": $7c2494e14452f2dd$exports,
779
- "ro-RO": $eb82ef981b5592bf$exports,
780
- "ru-RU": $6efa0e119f396950$exports,
781
- "sk-SK": $7f5e57085d7f5049$exports,
782
- "sl-SI": $578ee7c11dcdde7a$exports,
783
- "sr-SP": $bbc3fd6cd0bc9d50$exports,
784
- "sv-SE": $0b04512118591d2a$exports,
785
- "tr-TR": $3a49d121fe4c9e1d$exports,
786
- "uk-UA": $5ba21dbb8914919d$exports,
787
- "zh-CN": $51078838e1b16cd7$exports,
788
- "zh-TW": $33fab8219207655a$exports
789
- };
790
-
791
-
792
-
1
+ import {useDatePicker as $6057a3d2a53a12fd$export$42df105a73306d51} from "./useDatePicker.mjs";
2
+ import {useDateSegment as $32489daedd52963e$export$1315d136e6f7581} from "./useDateSegment.mjs";
3
+ import {useDateField as $16f0b7bb276bc17e$export$5591b0b878c1a989, useTimeField as $16f0b7bb276bc17e$export$4c842f6a241dc825} from "./useDateField.mjs";
4
+ import {useDateRangePicker as $887cac91b7cc8801$export$12fd5f0e9f4bb192} from "./useDateRangePicker.mjs";
5
+ import {useDisplayNames as $3aeceb3a64eb8358$export$d42c60378c8168f8} from "./useDisplayNames.mjs";
793
6
 
794
7
  /*
795
8
  * Copyright 2020 Adobe. All rights reserved.
@@ -808,906 +21,5 @@ $dfb4eba373ed9493$exports = {
808
21
 
809
22
 
810
23
 
811
-
812
-
813
- function $3dfb0f96be0d6a08$export$4a931266a3838b86(state, ref, disableArrowNavigation) {
814
- let { direction: direction } = (0, $cIPI0$useLocale)();
815
- let focusManager = (0, $cIPI0$useMemo)(()=>(0, $cIPI0$createFocusManager)(ref), [
816
- ref
817
- ]);
818
- // Open the popover on alt + arrow down
819
- let onKeyDown = (e)=>{
820
- if (!e.currentTarget.contains(e.target)) return;
821
- if (e.altKey && (e.key === "ArrowDown" || e.key === "ArrowUp") && "setOpen" in state) {
822
- e.preventDefault();
823
- e.stopPropagation();
824
- state.setOpen(true);
825
- }
826
- if (disableArrowNavigation) return;
827
- switch(e.key){
828
- case "ArrowLeft":
829
- e.preventDefault();
830
- e.stopPropagation();
831
- if (direction === "rtl") focusManager.focusNext();
832
- else focusManager.focusPrevious();
833
- break;
834
- case "ArrowRight":
835
- e.preventDefault();
836
- e.stopPropagation();
837
- if (direction === "rtl") focusManager.focusPrevious();
838
- else focusManager.focusNext();
839
- break;
840
- }
841
- };
842
- // Focus the first placeholder segment from the end on mouse down/touch up in the field.
843
- let focusLast = ()=>{
844
- var _window_event;
845
- // Try to find the segment prior to the element that was clicked on.
846
- let target = (_window_event = window.event) === null || _window_event === void 0 ? void 0 : _window_event.target;
847
- let walker = (0, $cIPI0$getFocusableTreeWalker)(ref.current, {
848
- tabbable: true
849
- });
850
- if (target) {
851
- walker.currentNode = target;
852
- target = walker.previousNode();
853
- }
854
- // If no target found, find the last element from the end.
855
- if (!target) {
856
- let last;
857
- do {
858
- last = walker.lastChild();
859
- if (last) target = last;
860
- }while (last);
861
- }
862
- // Now go backwards until we find an element that is not a placeholder.
863
- while(target === null || target === void 0 ? void 0 : target.hasAttribute("data-placeholder")){
864
- let prev = walker.previousNode();
865
- if (prev && prev.hasAttribute("data-placeholder")) target = prev;
866
- else break;
867
- }
868
- if (target) target.focus();
869
- };
870
- let { pressProps: pressProps } = (0, $cIPI0$usePress)({
871
- preventFocusOnPress: true,
872
- allowTextSelectionOnPress: true,
873
- onPressStart (e) {
874
- if (e.pointerType === "mouse") focusLast();
875
- },
876
- onPress (e) {
877
- if (e.pointerType !== "mouse") focusLast();
878
- }
879
- });
880
- return (0, $cIPI0$mergeProps)(pressProps, {
881
- onKeyDown: onKeyDown
882
- });
883
- }
884
-
885
-
886
-
887
-
888
-
889
-
890
- const $16f0b7bb276bc17e$export$653eddfc964b0f8a = new WeakMap();
891
- const $16f0b7bb276bc17e$export$300019f83c56d282 = "__role_" + Date.now();
892
- const $16f0b7bb276bc17e$export$7b3062cd49e80452 = "__focusManager_" + Date.now();
893
- function $16f0b7bb276bc17e$export$5591b0b878c1a989(props, state, ref) {
894
- var _state_value;
895
- let { isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = state.displayValidation;
896
- let { labelProps: labelProps, fieldProps: fieldProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps } = (0, $cIPI0$useField)({
897
- ...props,
898
- labelElementType: "span",
899
- isInvalid: isInvalid,
900
- errorMessage: props.errorMessage || validationErrors
901
- });
902
- let valueOnFocus = (0, $cIPI0$useRef)(null);
903
- let { focusWithinProps: focusWithinProps } = (0, $cIPI0$useFocusWithin)({
904
- ...props,
905
- onFocusWithin (e) {
906
- var _props_onFocus;
907
- valueOnFocus.current = state.value;
908
- (_props_onFocus = props.onFocus) === null || _props_onFocus === void 0 ? void 0 : _props_onFocus.call(props, e);
909
- },
910
- onBlurWithin: (e)=>{
911
- var _props_onBlur;
912
- state.confirmPlaceholder();
913
- if (state.value !== valueOnFocus.current) state.commitValidation();
914
- (_props_onBlur = props.onBlur) === null || _props_onBlur === void 0 ? void 0 : _props_onBlur.call(props, e);
915
- },
916
- onFocusWithinChange: props.onFocusChange
917
- });
918
- let stringFormatter = (0, $cIPI0$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($dfb4eba373ed9493$exports))), "@react-aria/datepicker");
919
- let message = state.maxGranularity === "hour" ? "selectedTimeDescription" : "selectedDateDescription";
920
- let field = state.maxGranularity === "hour" ? "time" : "date";
921
- let description = state.value ? stringFormatter.format(message, {
922
- [field]: state.formatValue({
923
- month: "long"
924
- })
925
- }) : "";
926
- let descProps = (0, $cIPI0$useDescription)(description);
927
- // If within a date picker or date range picker, the date field will have role="presentation" and an aria-describedby
928
- // will be passed in that references the value (e.g. entire range). Otherwise, add the field's value description.
929
- let describedBy = props[$16f0b7bb276bc17e$export$300019f83c56d282] === "presentation" ? fieldProps["aria-describedby"] : [
930
- descProps["aria-describedby"],
931
- fieldProps["aria-describedby"]
932
- ].filter(Boolean).join(" ") || undefined;
933
- let propsFocusManager = props[$16f0b7bb276bc17e$export$7b3062cd49e80452];
934
- let focusManager = (0, $cIPI0$useMemo)(()=>propsFocusManager || (0, $cIPI0$createFocusManager)(ref), [
935
- propsFocusManager,
936
- ref
937
- ]);
938
- let groupProps = (0, $3dfb0f96be0d6a08$export$4a931266a3838b86)(state, ref, props[$16f0b7bb276bc17e$export$300019f83c56d282] === "presentation");
939
- // Pass labels and other information to segments.
940
- $16f0b7bb276bc17e$export$653eddfc964b0f8a.set(state, {
941
- ariaLabel: props["aria-label"],
942
- ariaLabelledBy: [
943
- labelProps.id,
944
- props["aria-labelledby"]
945
- ].filter(Boolean).join(" ") || undefined,
946
- ariaDescribedBy: describedBy,
947
- focusManager: focusManager
948
- });
949
- let autoFocusRef = (0, $cIPI0$useRef)(props.autoFocus);
950
- // When used within a date picker or date range picker, the field gets role="presentation"
951
- // rather than role="group". Since the date picker/date range picker already has a role="group"
952
- // with a label and description, and the segments are already labeled by this as well, this
953
- // avoids very verbose duplicate announcements.
954
- let fieldDOMProps;
955
- if (props[$16f0b7bb276bc17e$export$300019f83c56d282] === "presentation") fieldDOMProps = {
956
- role: "presentation"
957
- };
958
- else fieldDOMProps = (0, $cIPI0$mergeProps)(fieldProps, {
959
- role: "group",
960
- "aria-disabled": props.isDisabled || undefined,
961
- "aria-describedby": describedBy
962
- });
963
- (0, $cIPI0$useEffect)(()=>{
964
- if (autoFocusRef.current) focusManager.focusFirst();
965
- autoFocusRef.current = false;
966
- }, [
967
- focusManager
968
- ]);
969
- (0, $cIPI0$useFormReset)(props.inputRef, state.value, state.setValue);
970
- (0, $cIPI0$useFormValidation)({
971
- ...props,
972
- focus () {
973
- focusManager.focusFirst();
974
- }
975
- }, state, props.inputRef);
976
- let inputProps = {
977
- type: "hidden",
978
- name: props.name,
979
- value: ((_state_value = state.value) === null || _state_value === void 0 ? void 0 : _state_value.toString()) || ""
980
- };
981
- if (props.validationBehavior === "native") {
982
- // Use a hidden <input type="text"> rather than <input type="hidden">
983
- // so that an empty value blocks HTML form submission when the field is required.
984
- inputProps.type = "text";
985
- inputProps.hidden = true;
986
- inputProps.required = props.isRequired;
987
- // Ignore react warning.
988
- inputProps.onChange = ()=>{};
989
- }
990
- let domProps = (0, $cIPI0$filterDOMProps)(props);
991
- return {
992
- labelProps: {
993
- ...labelProps,
994
- onClick: ()=>{
995
- focusManager.focusFirst();
996
- }
997
- },
998
- fieldProps: (0, $cIPI0$mergeProps)(domProps, fieldDOMProps, groupProps, focusWithinProps, {
999
- onKeyDown (e) {
1000
- if (props.onKeyDown) props.onKeyDown(e);
1001
- },
1002
- onKeyUp (e) {
1003
- if (props.onKeyUp) props.onKeyUp(e);
1004
- }
1005
- }),
1006
- inputProps: inputProps,
1007
- descriptionProps: descriptionProps,
1008
- errorMessageProps: errorMessageProps,
1009
- isInvalid: isInvalid,
1010
- validationErrors: validationErrors,
1011
- validationDetails: validationDetails
1012
- };
1013
- }
1014
- function $16f0b7bb276bc17e$export$4c842f6a241dc825(props, state, ref) {
1015
- var _state_timeValue;
1016
- let res = $16f0b7bb276bc17e$export$5591b0b878c1a989(props, state, ref);
1017
- res.inputProps.value = ((_state_timeValue = state.timeValue) === null || _state_timeValue === void 0 ? void 0 : _state_timeValue.toString()) || "";
1018
- return res;
1019
- }
1020
-
1021
-
1022
-
1023
-
1024
-
1025
-
1026
- function $6057a3d2a53a12fd$export$42df105a73306d51(props, state, ref) {
1027
- let buttonId = (0, $cIPI0$useId)();
1028
- let dialogId = (0, $cIPI0$useId)();
1029
- let fieldId = (0, $cIPI0$useId)();
1030
- let stringFormatter = (0, $cIPI0$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($dfb4eba373ed9493$exports))), "@react-aria/datepicker");
1031
- let { isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = state.displayValidation;
1032
- let { labelProps: labelProps, fieldProps: fieldProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps } = (0, $cIPI0$useField)({
1033
- ...props,
1034
- labelElementType: "span",
1035
- isInvalid: isInvalid,
1036
- errorMessage: props.errorMessage || validationErrors
1037
- });
1038
- let groupProps = (0, $3dfb0f96be0d6a08$export$4a931266a3838b86)(state, ref);
1039
- let labelledBy = fieldProps["aria-labelledby"] || fieldProps.id;
1040
- let { locale: locale } = (0, $cIPI0$useLocale)();
1041
- let date = state.formatValue(locale, {
1042
- month: "long"
1043
- });
1044
- let description = date ? stringFormatter.format("selectedDateDescription", {
1045
- date: date
1046
- }) : "";
1047
- let descProps = (0, $cIPI0$useDescription)(description);
1048
- let ariaDescribedBy = [
1049
- descProps["aria-describedby"],
1050
- fieldProps["aria-describedby"]
1051
- ].filter(Boolean).join(" ") || undefined;
1052
- let domProps = (0, $cIPI0$filterDOMProps)(props);
1053
- let focusManager = (0, $cIPI0$useMemo)(()=>(0, $cIPI0$createFocusManager)(ref), [
1054
- ref
1055
- ]);
1056
- let { focusWithinProps: focusWithinProps } = (0, $cIPI0$useFocusWithin)({
1057
- ...props,
1058
- isDisabled: state.isOpen,
1059
- onBlurWithin: props.onBlur,
1060
- onFocusWithin: props.onFocus,
1061
- onFocusWithinChange: props.onFocusChange
1062
- });
1063
- return {
1064
- groupProps: (0, $cIPI0$mergeProps)(domProps, groupProps, fieldProps, descProps, focusWithinProps, {
1065
- role: "group",
1066
- "aria-disabled": props.isDisabled || null,
1067
- "aria-labelledby": labelledBy,
1068
- "aria-describedby": ariaDescribedBy,
1069
- onKeyDown (e) {
1070
- if (state.isOpen) return;
1071
- if (props.onKeyDown) props.onKeyDown(e);
1072
- },
1073
- onKeyUp (e) {
1074
- if (state.isOpen) return;
1075
- if (props.onKeyUp) props.onKeyUp(e);
1076
- }
1077
- }),
1078
- labelProps: {
1079
- ...labelProps,
1080
- onClick: ()=>{
1081
- focusManager.focusFirst();
1082
- }
1083
- },
1084
- fieldProps: {
1085
- ...fieldProps,
1086
- id: fieldId,
1087
- [(0, $16f0b7bb276bc17e$export$300019f83c56d282)]: "presentation",
1088
- "aria-describedby": ariaDescribedBy,
1089
- value: state.value,
1090
- onChange: state.setValue,
1091
- placeholderValue: props.placeholderValue,
1092
- hideTimeZone: props.hideTimeZone,
1093
- hourCycle: props.hourCycle,
1094
- shouldForceLeadingZeros: props.shouldForceLeadingZeros,
1095
- granularity: props.granularity,
1096
- isDisabled: props.isDisabled,
1097
- isReadOnly: props.isReadOnly,
1098
- isRequired: props.isRequired,
1099
- validationBehavior: props.validationBehavior,
1100
- // DatePicker owns the validation state for the date field.
1101
- [(0, $cIPI0$privateValidationStateProp)]: state,
1102
- autoFocus: props.autoFocus,
1103
- name: props.name
1104
- },
1105
- descriptionProps: descriptionProps,
1106
- errorMessageProps: errorMessageProps,
1107
- buttonProps: {
1108
- ...descProps,
1109
- id: buttonId,
1110
- "aria-haspopup": "dialog",
1111
- "aria-label": stringFormatter.format("calendar"),
1112
- "aria-labelledby": `${buttonId} ${labelledBy}`,
1113
- "aria-describedby": ariaDescribedBy,
1114
- "aria-expanded": state.isOpen,
1115
- isDisabled: props.isDisabled || props.isReadOnly,
1116
- onPress: ()=>state.setOpen(true)
1117
- },
1118
- dialogProps: {
1119
- id: dialogId,
1120
- "aria-labelledby": `${buttonId} ${labelledBy}`
1121
- },
1122
- calendarProps: {
1123
- autoFocus: true,
1124
- value: state.dateValue,
1125
- onChange: state.setDateValue,
1126
- minValue: props.minValue,
1127
- maxValue: props.maxValue,
1128
- isDisabled: props.isDisabled,
1129
- isReadOnly: props.isReadOnly,
1130
- isDateUnavailable: props.isDateUnavailable,
1131
- defaultFocusedValue: state.dateValue ? undefined : props.placeholderValue,
1132
- isInvalid: state.isInvalid,
1133
- errorMessage: typeof props.errorMessage === "function" ? props.errorMessage(state.displayValidation) : props.errorMessage || state.displayValidation.validationErrors.join(" ")
1134
- },
1135
- isInvalid: isInvalid,
1136
- validationErrors: validationErrors,
1137
- validationDetails: validationDetails
1138
- };
1139
- }
1140
-
1141
-
1142
- /*
1143
- * Copyright 2020 Adobe. All rights reserved.
1144
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
1145
- * you may not use this file except in compliance with the License. You may obtain a copy
1146
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
1147
- *
1148
- * Unless required by applicable law or agreed to in writing, software distributed under
1149
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1150
- * OF ANY KIND, either express or implied. See the License for the specific language
1151
- * governing permissions and limitations under the License.
1152
- */
1153
-
1154
-
1155
-
1156
-
1157
-
1158
- /*
1159
- * Copyright 2020 Adobe. All rights reserved.
1160
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
1161
- * you may not use this file except in compliance with the License. You may obtain a copy
1162
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
1163
- *
1164
- * Unless required by applicable law or agreed to in writing, software distributed under
1165
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1166
- * OF ANY KIND, either express or implied. See the License for the specific language
1167
- * governing permissions and limitations under the License.
1168
- */ // @ts-ignore
1169
-
1170
-
1171
-
1172
- function $3aeceb3a64eb8358$export$d42c60378c8168f8() {
1173
- let { locale: locale } = (0, $cIPI0$useLocale)();
1174
- let dictionary = (0, $cIPI0$useLocalizedStringDictionary)((0, (/*@__PURE__*/$parcel$interopDefault($dfb4eba373ed9493$exports))), "@react-aria/datepicker");
1175
- return (0, $cIPI0$useMemo)(()=>{
1176
- // Try to use Intl.DisplayNames if possible. It may be supported in browsers, but not support the dateTimeField
1177
- // type as that was only added in v2. https://github.com/tc39/intl-displaynames-v2
1178
- try {
1179
- // @ts-ignore
1180
- return new Intl.DisplayNames(locale, {
1181
- type: "dateTimeField"
1182
- });
1183
- } catch (err) {
1184
- return new $3aeceb3a64eb8358$var$DisplayNamesPolyfill(locale, dictionary);
1185
- }
1186
- }, [
1187
- locale,
1188
- dictionary
1189
- ]);
1190
- }
1191
- class $3aeceb3a64eb8358$var$DisplayNamesPolyfill {
1192
- of(field) {
1193
- return this.dictionary.getStringForLocale(field, this.locale);
1194
- }
1195
- constructor(locale, dictionary){
1196
- this.locale = locale;
1197
- this.dictionary = dictionary;
1198
- }
1199
- }
1200
-
1201
-
1202
-
1203
- function $32489daedd52963e$export$1315d136e6f7581(segment, state, ref) {
1204
- let enteredKeys = (0, $cIPI0$useRef)("");
1205
- let { locale: locale } = (0, $cIPI0$useLocale)();
1206
- let displayNames = (0, $3aeceb3a64eb8358$export$d42c60378c8168f8)();
1207
- let { ariaLabel: ariaLabel, ariaLabelledBy: ariaLabelledBy, ariaDescribedBy: ariaDescribedBy, focusManager: focusManager } = (0, $16f0b7bb276bc17e$export$653eddfc964b0f8a).get(state);
1208
- let textValue = segment.isPlaceholder ? "" : segment.text;
1209
- let options = (0, $cIPI0$useMemo)(()=>state.dateFormatter.resolvedOptions(), [
1210
- state.dateFormatter
1211
- ]);
1212
- let monthDateFormatter = (0, $cIPI0$useDateFormatter)({
1213
- month: "long",
1214
- timeZone: options.timeZone
1215
- });
1216
- let hourDateFormatter = (0, $cIPI0$useDateFormatter)({
1217
- hour: "numeric",
1218
- hour12: options.hour12,
1219
- timeZone: options.timeZone
1220
- });
1221
- if (segment.type === "month" && !segment.isPlaceholder) {
1222
- let monthTextValue = monthDateFormatter.format(state.dateValue);
1223
- textValue = monthTextValue !== textValue ? `${textValue} \u{2013} ${monthTextValue}` : monthTextValue;
1224
- } else if (segment.type === "hour" && !segment.isPlaceholder) textValue = hourDateFormatter.format(state.dateValue);
1225
- let { spinButtonProps: spinButtonProps } = (0, $cIPI0$useSpinButton)({
1226
- // The ARIA spec says aria-valuenow is optional if there's no value, but aXe seems to require it.
1227
- // This doesn't seem to have any negative effects with real AT since we also use aria-valuetext.
1228
- // https://github.com/dequelabs/axe-core/issues/3505
1229
- value: segment.value,
1230
- textValue: textValue,
1231
- minValue: segment.minValue,
1232
- maxValue: segment.maxValue,
1233
- isDisabled: state.isDisabled,
1234
- isReadOnly: state.isReadOnly || !segment.isEditable,
1235
- isRequired: state.isRequired,
1236
- onIncrement: ()=>{
1237
- enteredKeys.current = "";
1238
- state.increment(segment.type);
1239
- },
1240
- onDecrement: ()=>{
1241
- enteredKeys.current = "";
1242
- state.decrement(segment.type);
1243
- },
1244
- onIncrementPage: ()=>{
1245
- enteredKeys.current = "";
1246
- state.incrementPage(segment.type);
1247
- },
1248
- onDecrementPage: ()=>{
1249
- enteredKeys.current = "";
1250
- state.decrementPage(segment.type);
1251
- },
1252
- onIncrementToMax: ()=>{
1253
- enteredKeys.current = "";
1254
- state.setSegment(segment.type, segment.maxValue);
1255
- },
1256
- onDecrementToMin: ()=>{
1257
- enteredKeys.current = "";
1258
- state.setSegment(segment.type, segment.minValue);
1259
- }
1260
- });
1261
- let parser = (0, $cIPI0$useMemo)(()=>new (0, $cIPI0$NumberParser)(locale, {
1262
- maximumFractionDigits: 0
1263
- }), [
1264
- locale
1265
- ]);
1266
- let backspace = ()=>{
1267
- if (parser.isValidPartialNumber(segment.text) && !state.isReadOnly && !segment.isPlaceholder) {
1268
- let newValue = segment.text.slice(0, -1);
1269
- let parsed = parser.parse(newValue);
1270
- if (newValue.length === 0 || parsed === 0) state.clearSegment(segment.type);
1271
- else state.setSegment(segment.type, parsed);
1272
- enteredKeys.current = newValue;
1273
- } else if (segment.type === "dayPeriod") state.clearSegment(segment.type);
1274
- };
1275
- let onKeyDown = (e)=>{
1276
- // Firefox does not fire selectstart for Ctrl/Cmd + A
1277
- // https://bugzilla.mozilla.org/show_bug.cgi?id=1742153
1278
- if (e.key === "a" && ((0, $cIPI0$isMac)() ? e.metaKey : e.ctrlKey)) e.preventDefault();
1279
- if (e.ctrlKey || e.metaKey || e.shiftKey || e.altKey) return;
1280
- switch(e.key){
1281
- case "Backspace":
1282
- case "Delete":
1283
- // Safari on iOS does not fire beforeinput for the backspace key because the cursor is at the start.
1284
- e.preventDefault();
1285
- e.stopPropagation();
1286
- backspace();
1287
- break;
1288
- }
1289
- };
1290
- // Safari dayPeriod option doesn't work...
1291
- let { startsWith: startsWith } = (0, $cIPI0$useFilter)({
1292
- sensitivity: "base"
1293
- });
1294
- let amPmFormatter = (0, $cIPI0$useDateFormatter)({
1295
- hour: "numeric",
1296
- hour12: true
1297
- });
1298
- let am = (0, $cIPI0$useMemo)(()=>{
1299
- let date = new Date();
1300
- date.setHours(0);
1301
- return amPmFormatter.formatToParts(date).find((part)=>part.type === "dayPeriod").value;
1302
- }, [
1303
- amPmFormatter
1304
- ]);
1305
- let pm = (0, $cIPI0$useMemo)(()=>{
1306
- let date = new Date();
1307
- date.setHours(12);
1308
- return amPmFormatter.formatToParts(date).find((part)=>part.type === "dayPeriod").value;
1309
- }, [
1310
- amPmFormatter
1311
- ]);
1312
- // Get a list of formatted era names so users can type the first character to choose one.
1313
- let eraFormatter = (0, $cIPI0$useDateFormatter)({
1314
- year: "numeric",
1315
- era: "narrow",
1316
- timeZone: "UTC"
1317
- });
1318
- let eras = (0, $cIPI0$useMemo)(()=>{
1319
- if (segment.type !== "era") return [];
1320
- let date = (0, $cIPI0$toCalendar)(new (0, $cIPI0$CalendarDate)(1, 1, 1), state.calendar);
1321
- let eras = state.calendar.getEras().map((era)=>{
1322
- let eraDate = date.set({
1323
- year: 1,
1324
- month: 1,
1325
- day: 1,
1326
- era: era
1327
- }).toDate("UTC");
1328
- let parts = eraFormatter.formatToParts(eraDate);
1329
- let formatted = parts.find((p)=>p.type === "era").value;
1330
- return {
1331
- era: era,
1332
- formatted: formatted
1333
- };
1334
- });
1335
- // Remove the common prefix from formatted values. This is so that in calendars with eras like
1336
- // ERA0 and ERA1 (e.g. Ethiopic), users can press "0" and "1" to select an era. In other cases,
1337
- // the first letter is used.
1338
- let prefixLength = $32489daedd52963e$var$commonPrefixLength(eras.map((era)=>era.formatted));
1339
- if (prefixLength) for (let era of eras)era.formatted = era.formatted.slice(prefixLength);
1340
- return eras;
1341
- }, [
1342
- eraFormatter,
1343
- state.calendar,
1344
- segment.type
1345
- ]);
1346
- let onInput = (key)=>{
1347
- if (state.isDisabled || state.isReadOnly) return;
1348
- let newValue = enteredKeys.current + key;
1349
- switch(segment.type){
1350
- case "dayPeriod":
1351
- if (startsWith(am, key)) state.setSegment("dayPeriod", 0);
1352
- else if (startsWith(pm, key)) state.setSegment("dayPeriod", 12);
1353
- else break;
1354
- focusManager.focusNext();
1355
- break;
1356
- case "era":
1357
- {
1358
- let matched = eras.find((e)=>startsWith(e.formatted, key));
1359
- if (matched) {
1360
- state.setSegment("era", matched.era);
1361
- focusManager.focusNext();
1362
- }
1363
- break;
1364
- }
1365
- case "day":
1366
- case "hour":
1367
- case "minute":
1368
- case "second":
1369
- case "month":
1370
- case "year":
1371
- {
1372
- if (!parser.isValidPartialNumber(newValue)) return;
1373
- let numberValue = parser.parse(newValue);
1374
- let segmentValue = numberValue;
1375
- let allowsZero = segment.minValue === 0;
1376
- if (segment.type === "hour" && state.dateFormatter.resolvedOptions().hour12) {
1377
- switch(state.dateFormatter.resolvedOptions().hourCycle){
1378
- case "h11":
1379
- if (numberValue > 11) segmentValue = parser.parse(key);
1380
- break;
1381
- case "h12":
1382
- allowsZero = false;
1383
- if (numberValue > 12) segmentValue = parser.parse(key);
1384
- break;
1385
- }
1386
- if (segment.value >= 12 && numberValue > 1) numberValue += 12;
1387
- } else if (numberValue > segment.maxValue) segmentValue = parser.parse(key);
1388
- if (isNaN(numberValue)) return;
1389
- let shouldSetValue = segmentValue !== 0 || allowsZero;
1390
- if (shouldSetValue) state.setSegment(segment.type, segmentValue);
1391
- if (Number(numberValue + "0") > segment.maxValue || newValue.length >= String(segment.maxValue).length) {
1392
- enteredKeys.current = "";
1393
- if (shouldSetValue) focusManager.focusNext();
1394
- } else enteredKeys.current = newValue;
1395
- break;
1396
- }
1397
- }
1398
- };
1399
- let onFocus = ()=>{
1400
- enteredKeys.current = "";
1401
- (0, $cIPI0$scrollIntoViewport)(ref.current, {
1402
- containingElement: (0, $cIPI0$getScrollParent)(ref.current)
1403
- });
1404
- // Collapse selection to start or Chrome won't fire input events.
1405
- let selection = window.getSelection();
1406
- selection.collapse(ref.current);
1407
- };
1408
- let compositionRef = (0, $cIPI0$useRef)("");
1409
- // @ts-ignore - TODO: possibly old TS version? doesn't fail in my editor...
1410
- (0, $cIPI0$useEvent)(ref, "beforeinput", (e)=>{
1411
- e.preventDefault();
1412
- switch(e.inputType){
1413
- case "deleteContentBackward":
1414
- case "deleteContentForward":
1415
- if (parser.isValidPartialNumber(segment.text) && !state.isReadOnly) backspace();
1416
- break;
1417
- case "insertCompositionText":
1418
- // insertCompositionText cannot be canceled.
1419
- // Record the current state of the element so we can restore it in the `input` event below.
1420
- compositionRef.current = ref.current.textContent;
1421
- // Safari gets stuck in a composition state unless we also assign to the value here.
1422
- // eslint-disable-next-line no-self-assign
1423
- ref.current.textContent = ref.current.textContent;
1424
- break;
1425
- default:
1426
- if (e.data != null) onInput(e.data);
1427
- break;
1428
- }
1429
- });
1430
- (0, $cIPI0$useEvent)(ref, "input", (e)=>{
1431
- let { inputType: inputType, data: data } = e;
1432
- switch(inputType){
1433
- case "insertCompositionText":
1434
- // Reset the DOM to how it was in the beforeinput event.
1435
- ref.current.textContent = compositionRef.current;
1436
- // Android sometimes fires key presses of letters as composition events. Need to handle am/pm keys here too.
1437
- // Can also happen e.g. with Pinyin keyboard on iOS.
1438
- if (startsWith(am, data) || startsWith(pm, data)) onInput(data);
1439
- break;
1440
- }
1441
- });
1442
- (0, $cIPI0$useLayoutEffect)(()=>{
1443
- let element = ref.current;
1444
- return ()=>{
1445
- // If the focused segment is removed, focus the previous one, or the next one if there was no previous one.
1446
- if (document.activeElement === element) {
1447
- let prev = focusManager.focusPrevious();
1448
- if (!prev) focusManager.focusNext();
1449
- }
1450
- };
1451
- }, [
1452
- ref,
1453
- focusManager
1454
- ]);
1455
- // spinbuttons cannot be focused with VoiceOver on iOS.
1456
- let touchPropOverrides = (0, $cIPI0$isIOS)() || segment.type === "timeZoneName" ? {
1457
- role: "textbox",
1458
- "aria-valuemax": null,
1459
- "aria-valuemin": null,
1460
- "aria-valuetext": null,
1461
- "aria-valuenow": null
1462
- } : {};
1463
- // Only apply aria-describedby to the first segment, unless the field is invalid. This avoids it being
1464
- // read every time the user navigates to a new segment.
1465
- let firstSegment = (0, $cIPI0$useMemo)(()=>state.segments.find((s)=>s.isEditable), [
1466
- state.segments
1467
- ]);
1468
- if (segment !== firstSegment && !state.isInvalid) ariaDescribedBy = undefined;
1469
- let id = (0, $cIPI0$useId)();
1470
- let isEditable = !state.isDisabled && !state.isReadOnly && segment.isEditable;
1471
- // Prepend the label passed from the field to each segment name.
1472
- // This is needed because VoiceOver on iOS does not announce groups.
1473
- let name = segment.type === "literal" ? "" : displayNames.of(segment.type);
1474
- let labelProps = (0, $cIPI0$useLabels)({
1475
- "aria-label": `${name}${ariaLabel ? `, ${ariaLabel}` : ""}${ariaLabelledBy ? ", " : ""}`,
1476
- "aria-labelledby": ariaLabelledBy
1477
- });
1478
- // Literal segments should not be visible to screen readers. We don't really need any of the above,
1479
- // but the rules of hooks mean hooks cannot be conditional so we have to put this condition here.
1480
- if (segment.type === "literal") return {
1481
- segmentProps: {
1482
- "aria-hidden": true
1483
- }
1484
- };
1485
- return {
1486
- segmentProps: (0, $cIPI0$mergeProps)(spinButtonProps, labelProps, {
1487
- id: id,
1488
- ...touchPropOverrides,
1489
- "aria-invalid": state.isInvalid ? "true" : undefined,
1490
- "aria-describedby": ariaDescribedBy,
1491
- "aria-readonly": state.isReadOnly || !segment.isEditable ? "true" : undefined,
1492
- "data-placeholder": segment.isPlaceholder || undefined,
1493
- contentEditable: isEditable,
1494
- suppressContentEditableWarning: isEditable,
1495
- spellCheck: isEditable ? "false" : undefined,
1496
- autoCapitalize: isEditable ? "off" : undefined,
1497
- autoCorrect: isEditable ? "off" : undefined,
1498
- // Capitalization was changed in React 17...
1499
- [parseInt((0, $cIPI0$react).version, 10) >= 17 ? "enterKeyHint" : "enterkeyhint"]: isEditable ? "next" : undefined,
1500
- inputMode: state.isDisabled || segment.type === "dayPeriod" || segment.type === "era" || !isEditable ? undefined : "numeric",
1501
- tabIndex: state.isDisabled ? undefined : 0,
1502
- onKeyDown: onKeyDown,
1503
- onFocus: onFocus,
1504
- style: {
1505
- caretColor: "transparent"
1506
- },
1507
- // Prevent pointer events from reaching useDatePickerGroup, and allow native browser behavior to focus the segment.
1508
- onPointerDown (e) {
1509
- e.stopPropagation();
1510
- },
1511
- onMouseDown (e) {
1512
- e.stopPropagation();
1513
- }
1514
- })
1515
- };
1516
- }
1517
- function $32489daedd52963e$var$commonPrefixLength(strings) {
1518
- // Sort the strings, and compare the characters in the first and last to find the common prefix.
1519
- strings.sort();
1520
- let first = strings[0];
1521
- let last = strings[strings.length - 1];
1522
- for(let i = 0; i < first.length; i++){
1523
- if (first[i] !== last[i]) return i;
1524
- }
1525
- return 0;
1526
- }
1527
-
1528
-
1529
-
1530
- /*
1531
- * Copyright 2020 Adobe. All rights reserved.
1532
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
1533
- * you may not use this file except in compliance with the License. You may obtain a copy
1534
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
1535
- *
1536
- * Unless required by applicable law or agreed to in writing, software distributed under
1537
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1538
- * OF ANY KIND, either express or implied. See the License for the specific language
1539
- * governing permissions and limitations under the License.
1540
- */
1541
-
1542
-
1543
-
1544
-
1545
-
1546
-
1547
-
1548
-
1549
-
1550
- function $887cac91b7cc8801$export$12fd5f0e9f4bb192(props, state, ref) {
1551
- var _state_value, _state_value1;
1552
- let stringFormatter = (0, $cIPI0$useLocalizedStringFormatter)((0, (/*@__PURE__*/$parcel$interopDefault($dfb4eba373ed9493$exports))), "@react-aria/datepicker");
1553
- let { isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = state.displayValidation;
1554
- let { labelProps: labelProps, fieldProps: fieldProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps } = (0, $cIPI0$useField)({
1555
- ...props,
1556
- labelElementType: "span",
1557
- isInvalid: isInvalid,
1558
- errorMessage: props.errorMessage || validationErrors
1559
- });
1560
- let labelledBy = fieldProps["aria-labelledby"] || fieldProps.id;
1561
- let { locale: locale } = (0, $cIPI0$useLocale)();
1562
- let range = state.formatValue(locale, {
1563
- month: "long"
1564
- });
1565
- let description = range ? stringFormatter.format("selectedRangeDescription", {
1566
- startDate: range.start,
1567
- endDate: range.end
1568
- }) : "";
1569
- let descProps = (0, $cIPI0$useDescription)(description);
1570
- let startFieldProps = {
1571
- "aria-label": stringFormatter.format("startDate"),
1572
- "aria-labelledby": labelledBy
1573
- };
1574
- let endFieldProps = {
1575
- "aria-label": stringFormatter.format("endDate"),
1576
- "aria-labelledby": labelledBy
1577
- };
1578
- let buttonId = (0, $cIPI0$useId)();
1579
- let dialogId = (0, $cIPI0$useId)();
1580
- let groupProps = (0, $3dfb0f96be0d6a08$export$4a931266a3838b86)(state, ref);
1581
- let ariaDescribedBy = [
1582
- descProps["aria-describedby"],
1583
- fieldProps["aria-describedby"]
1584
- ].filter(Boolean).join(" ") || undefined;
1585
- let focusManager = (0, $cIPI0$useMemo)(()=>(0, $cIPI0$createFocusManager)(ref, {
1586
- // Exclude the button from the focus manager.
1587
- accept: (element)=>element.id !== buttonId
1588
- }), [
1589
- ref,
1590
- buttonId
1591
- ]);
1592
- let commonFieldProps = {
1593
- [(0, $16f0b7bb276bc17e$export$7b3062cd49e80452)]: focusManager,
1594
- [(0, $16f0b7bb276bc17e$export$300019f83c56d282)]: "presentation",
1595
- "aria-describedby": ariaDescribedBy,
1596
- placeholderValue: props.placeholderValue,
1597
- hideTimeZone: props.hideTimeZone,
1598
- hourCycle: props.hourCycle,
1599
- granularity: props.granularity,
1600
- shouldForceLeadingZeros: props.shouldForceLeadingZeros,
1601
- isDisabled: props.isDisabled,
1602
- isReadOnly: props.isReadOnly,
1603
- isRequired: props.isRequired,
1604
- validationBehavior: props.validationBehavior
1605
- };
1606
- let domProps = (0, $cIPI0$filterDOMProps)(props);
1607
- let { focusWithinProps: focusWithinProps } = (0, $cIPI0$useFocusWithin)({
1608
- ...props,
1609
- isDisabled: state.isOpen,
1610
- onBlurWithin: props.onBlur,
1611
- onFocusWithin: props.onFocus,
1612
- onFocusWithinChange: props.onFocusChange
1613
- });
1614
- let startFieldValidation = (0, $cIPI0$useRef)((0, $cIPI0$DEFAULT_VALIDATION_RESULT));
1615
- let endFieldValidation = (0, $cIPI0$useRef)((0, $cIPI0$DEFAULT_VALIDATION_RESULT));
1616
- return {
1617
- groupProps: (0, $cIPI0$mergeProps)(domProps, groupProps, fieldProps, descProps, focusWithinProps, {
1618
- role: "group",
1619
- "aria-disabled": props.isDisabled || null,
1620
- "aria-describedby": ariaDescribedBy,
1621
- onKeyDown (e) {
1622
- if (state.isOpen) return;
1623
- if (props.onKeyDown) props.onKeyDown(e);
1624
- },
1625
- onKeyUp (e) {
1626
- if (state.isOpen) return;
1627
- if (props.onKeyUp) props.onKeyUp(e);
1628
- }
1629
- }),
1630
- labelProps: {
1631
- ...labelProps,
1632
- onClick: ()=>{
1633
- focusManager.focusFirst();
1634
- }
1635
- },
1636
- buttonProps: {
1637
- ...descProps,
1638
- id: buttonId,
1639
- "aria-haspopup": "dialog",
1640
- "aria-label": stringFormatter.format("calendar"),
1641
- "aria-labelledby": `${buttonId} ${labelledBy}`,
1642
- "aria-describedby": ariaDescribedBy,
1643
- "aria-expanded": state.isOpen,
1644
- isDisabled: props.isDisabled || props.isReadOnly,
1645
- onPress: ()=>state.setOpen(true)
1646
- },
1647
- dialogProps: {
1648
- id: dialogId,
1649
- "aria-labelledby": `${buttonId} ${labelledBy}`
1650
- },
1651
- startFieldProps: {
1652
- ...startFieldProps,
1653
- ...commonFieldProps,
1654
- value: (_state_value = state.value) === null || _state_value === void 0 ? void 0 : _state_value.start,
1655
- onChange: (start)=>state.setDateTime("start", start),
1656
- autoFocus: props.autoFocus,
1657
- name: props.startName,
1658
- [(0, $cIPI0$privateValidationStateProp)]: {
1659
- realtimeValidation: state.realtimeValidation,
1660
- displayValidation: state.displayValidation,
1661
- updateValidation (e) {
1662
- startFieldValidation.current = e;
1663
- state.updateValidation((0, $cIPI0$mergeValidation)(e, endFieldValidation.current));
1664
- },
1665
- resetValidation: state.resetValidation,
1666
- commitValidation: state.commitValidation
1667
- }
1668
- },
1669
- endFieldProps: {
1670
- ...endFieldProps,
1671
- ...commonFieldProps,
1672
- value: (_state_value1 = state.value) === null || _state_value1 === void 0 ? void 0 : _state_value1.end,
1673
- onChange: (end)=>state.setDateTime("end", end),
1674
- name: props.endName,
1675
- [(0, $cIPI0$privateValidationStateProp)]: {
1676
- realtimeValidation: state.realtimeValidation,
1677
- displayValidation: state.displayValidation,
1678
- updateValidation (e) {
1679
- endFieldValidation.current = e;
1680
- state.updateValidation((0, $cIPI0$mergeValidation)(startFieldValidation.current, e));
1681
- },
1682
- resetValidation: state.resetValidation,
1683
- commitValidation: state.commitValidation
1684
- }
1685
- },
1686
- descriptionProps: descriptionProps,
1687
- errorMessageProps: errorMessageProps,
1688
- calendarProps: {
1689
- autoFocus: true,
1690
- value: state.dateRange,
1691
- onChange: state.setDateRange,
1692
- minValue: props.minValue,
1693
- maxValue: props.maxValue,
1694
- isDisabled: props.isDisabled,
1695
- isReadOnly: props.isReadOnly,
1696
- isDateUnavailable: props.isDateUnavailable,
1697
- allowsNonContiguousRanges: props.allowsNonContiguousRanges,
1698
- defaultFocusedValue: state.dateRange ? undefined : props.placeholderValue,
1699
- isInvalid: state.isInvalid,
1700
- errorMessage: typeof props.errorMessage === "function" ? props.errorMessage(state.displayValidation) : props.errorMessage || state.displayValidation.validationErrors.join(" ")
1701
- },
1702
- isInvalid: isInvalid,
1703
- validationErrors: validationErrors,
1704
- validationDetails: validationDetails
1705
- };
1706
- }
1707
-
1708
-
1709
-
1710
-
1711
-
1712
24
  export {$6057a3d2a53a12fd$export$42df105a73306d51 as useDatePicker, $32489daedd52963e$export$1315d136e6f7581 as useDateSegment, $16f0b7bb276bc17e$export$5591b0b878c1a989 as useDateField, $16f0b7bb276bc17e$export$4c842f6a241dc825 as useTimeField, $887cac91b7cc8801$export$12fd5f0e9f4bb192 as useDateRangePicker, $3aeceb3a64eb8358$export$d42c60378c8168f8 as useDisplayNames};
1713
25
  //# sourceMappingURL=module.js.map