@react-stately/datepicker 3.8.0 → 3.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/import.mjs CHANGED
@@ -1,9 +1,14 @@
1
1
  import {toCalendarDate as $7UzoM$toCalendarDate, toCalendarDateTime as $7UzoM$toCalendarDateTime, DateFormatter as $7UzoM$DateFormatter, Time as $7UzoM$Time, toCalendar as $7UzoM$toCalendar, now as $7UzoM$now, GregorianCalendar as $7UzoM$GregorianCalendar, getMinimumMonthInYear as $7UzoM$getMinimumMonthInYear, getMinimumDayInMonth as $7UzoM$getMinimumDayInMonth, toZoned as $7UzoM$toZoned, toTime as $7UzoM$toTime, today as $7UzoM$today, getLocalTimeZone as $7UzoM$getLocalTimeZone} from "@internationalized/date";
2
+ import {useFormValidationState as $7UzoM$useFormValidationState, mergeValidation as $7UzoM$mergeValidation, VALID_VALIDITY_STATE as $7UzoM$VALID_VALIDITY_STATE} from "@react-stately/form";
2
3
  import {useOverlayTriggerState as $7UzoM$useOverlayTriggerState} from "@react-stately/overlays";
3
4
  import {useControlledState as $7UzoM$useControlledState} from "@react-stately/utils";
4
- import {useState as $7UzoM$useState, useMemo as $7UzoM$useMemo, useRef as $7UzoM$useRef, useEffect as $7UzoM$useEffect} from "react";
5
- import {LocalizedStringDictionary as $7UzoM$LocalizedStringDictionary} from "@internationalized/string";
5
+ import {useState as $7UzoM$useState, useMemo as $7UzoM$useMemo, useRef as $7UzoM$useRef, useEffect as $7UzoM$useEffect, useCallback as $7UzoM$useCallback} from "react";
6
+ import {LocalizedStringDictionary as $7UzoM$LocalizedStringDictionary, LocalizedStringFormatter as $7UzoM$LocalizedStringFormatter} from "@internationalized/string";
6
7
 
8
+
9
+ function $parcel$interopDefault(a) {
10
+ return a && a.__esModule ? a.default : a;
11
+ }
7
12
  /*
8
13
  * Copyright 2020 Adobe. All rights reserved.
9
14
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -36,9 +41,415 @@ import {LocalizedStringDictionary as $7UzoM$LocalizedStringDictionary} from "@in
36
41
  * OF ANY KIND, either express or implied. See the License for the specific language
37
42
  * governing permissions and limitations under the License.
38
43
  */
44
+ var $452ac34de8c2444e$exports = {};
45
+ var $b3427c06585c22a0$exports = {};
46
+ $b3427c06585c22a0$exports = {
47
+ "rangeOverflow": (args)=>`\u{64A}\u{62C}\u{628} \u{623}\u{646} \u{62A}\u{643}\u{648}\u{646} \u{627}\u{644}\u{642}\u{64A}\u{645}\u{629} ${args.maxValue} \u{623}\u{648} \u{642}\u{628}\u{644} \u{630}\u{644}\u{643}.`,
48
+ "rangeReversed": `\u{62A}\u{627}\u{631}\u{64A}\u{62E} \u{627}\u{644}\u{628}\u{62F}\u{621} \u{64A}\u{62C}\u{628} \u{623}\u{646} \u{64A}\u{643}\u{648}\u{646} \u{642}\u{628}\u{644} \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}.`,
49
+ "rangeUnderflow": (args)=>`\u{64A}\u{62C}\u{628} \u{623}\u{646} \u{62A}\u{643}\u{648}\u{646} \u{627}\u{644}\u{642}\u{64A}\u{645}\u{629} ${args.minValue} \u{623}\u{648} \u{628}\u{639}\u{62F} \u{630}\u{644}\u{643}.`,
50
+ "unavailableDate": `\u{627}\u{644}\u{628}\u{64A}\u{627}\u{646}\u{627}\u{62A} \u{627}\u{644}\u{645}\u{62D}\u{62F}\u{62F}\u{629} \u{63A}\u{64A}\u{631} \u{645}\u{62A}\u{627}\u{62D}\u{629}.`
51
+ };
52
+
53
+
54
+ var $d282528f459122b9$exports = {};
55
+ $d282528f459122b9$exports = {
56
+ "rangeOverflow": (args)=>`\u{421}\u{442}\u{43E}\u{439}\u{43D}\u{43E}\u{441}\u{442}\u{442}\u{430} \u{442}\u{440}\u{44F}\u{431}\u{432}\u{430} \u{434}\u{430} \u{435} ${args.maxValue} \u{438}\u{43B}\u{438} \u{43F}\u{43E}-\u{440}\u{430}\u{43D}\u{43D}\u{430}.`,
57
+ "rangeReversed": `\u{41D}\u{430}\u{447}\u{430}\u{43B}\u{43D}\u{430}\u{442}\u{430} \u{434}\u{430}\u{442}\u{430} \u{442}\u{440}\u{44F}\u{431}\u{432}\u{430} \u{434}\u{430} \u{435} \u{43F}\u{440}\u{435}\u{434}\u{438} \u{43A}\u{440}\u{430}\u{439}\u{43D}\u{430}\u{442}\u{430}.`,
58
+ "rangeUnderflow": (args)=>`\u{421}\u{442}\u{43E}\u{439}\u{43D}\u{43E}\u{441}\u{442}\u{442}\u{430} \u{442}\u{440}\u{44F}\u{431}\u{432}\u{430} \u{434}\u{430} \u{435} ${args.minValue} \u{438}\u{43B}\u{438} \u{43F}\u{43E}-\u{43A}\u{44A}\u{441}\u{43D}\u{43E}.`,
59
+ "unavailableDate": `\u{418}\u{437}\u{431}\u{440}\u{430}\u{43D}\u{430}\u{442}\u{430} \u{434}\u{430}\u{442}\u{430} \u{43D}\u{435} \u{435} \u{43D}\u{430}\u{43B}\u{438}\u{447}\u{43D}\u{430}.`
60
+ };
61
+
62
+
63
+ var $2d5eecd634a9ca45$exports = {};
64
+ $2d5eecd634a9ca45$exports = {
65
+ "rangeOverflow": (args)=>`Hodnota mus\xed b\xfdt ${args.maxValue} nebo d\u{159}\xedv\u{11B}j\u{161}\xed.`,
66
+ "rangeReversed": `Datum zah\xe1jen\xed mus\xed p\u{159}edch\xe1zet datu ukon\u{10D}en\xed.`,
67
+ "rangeUnderflow": (args)=>`Hodnota mus\xed b\xfdt ${args.minValue} nebo pozd\u{11B}j\u{161}\xed.`,
68
+ "unavailableDate": `Vybran\xe9 datum nen\xed k dispozici.`
69
+ };
70
+
71
+
72
+ var $c8e2288226c24a67$exports = {};
73
+ $c8e2288226c24a67$exports = {
74
+ "rangeOverflow": (args)=>`V\xe6rdien skal v\xe6re ${args.maxValue} eller tidligere.`,
75
+ "rangeReversed": `Startdatoen skal v\xe6re f\xf8r slutdatoen.`,
76
+ "rangeUnderflow": (args)=>`V\xe6rdien skal v\xe6re ${args.minValue} eller nyere.`,
77
+ "unavailableDate": `Den valgte dato er ikke tilg\xe6ngelig.`
78
+ };
79
+
80
+
81
+ var $6f5745e389c346d7$exports = {};
82
+ $6f5745e389c346d7$exports = {
83
+ "rangeOverflow": (args)=>`Der Wert muss ${args.maxValue} oder fr\xfcher sein.`,
84
+ "rangeReversed": `Das Anfangsdatum muss vor dem Enddatum liegen.`,
85
+ "rangeUnderflow": (args)=>`Der Wert muss ${args.minValue} oder sp\xe4ter sein.`,
86
+ "unavailableDate": `Das ausgew\xe4hlte Datum ist nicht verf\xfcgbar.`
87
+ };
88
+
89
+
90
+ var $8c882ccf4300d1da$exports = {};
91
+ $8c882ccf4300d1da$exports = {
92
+ "rangeOverflow": (args)=>`\u{397} \u{3C4}\u{3B9}\u{3BC}\u{3AE} \u{3C0}\u{3C1}\u{3AD}\u{3C0}\u{3B5}\u{3B9} \u{3BD}\u{3B1} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} ${args.maxValue} \u{3AE} \u{3C0}\u{3B1}\u{3BB}\u{3B1}\u{3B9}\u{3CC}\u{3C4}\u{3B5}\u{3C1}\u{3B7}.`,
93
+ "rangeReversed": `\u{397} \u{3B7}\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} \u{3C0}\u{3C1}\u{3AD}\u{3C0}\u{3B5}\u{3B9} \u{3BD}\u{3B1} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} \u{3C0}\u{3C1}\u{3B9}\u{3BD} \u{3B1}\u{3C0}\u{3CC} \u{3C4}\u{3B7}\u{3BD} \u{3B7}\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}.`,
94
+ "rangeUnderflow": (args)=>`\u{397} \u{3C4}\u{3B9}\u{3BC}\u{3AE} \u{3C0}\u{3C1}\u{3AD}\u{3C0}\u{3B5}\u{3B9} \u{3BD}\u{3B1} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} ${args.minValue} \u{3AE} \u{3BC}\u{3B5}\u{3C4}\u{3B1}\u{3B3}\u{3B5}\u{3BD}\u{3AD}\u{3C3}\u{3C4}\u{3B5}\u{3C1}\u{3B7}.`,
95
+ "unavailableDate": `\u{397} \u{3B5}\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} \u{3B4}\u{3B5}\u{3BD} \u{3B5}\u{3AF}\u{3BD}\u{3B1}\u{3B9} \u{3B4}\u{3B9}\u{3B1}\u{3B8}\u{3AD}\u{3C3}\u{3B9}\u{3BC}\u{3B7}.`
96
+ };
97
+
98
+
99
+ var $22195056771860be$exports = {};
100
+ $22195056771860be$exports = {
101
+ "rangeUnderflow": (args)=>`Value must be ${args.minValue} or later.`,
102
+ "rangeOverflow": (args)=>`Value must be ${args.maxValue} or earlier.`,
103
+ "rangeReversed": `Start date must be before end date.`,
104
+ "unavailableDate": `Selected date unavailable.`
105
+ };
106
+
107
+
108
+ var $cedfa43b4e2a5906$exports = {};
109
+ $cedfa43b4e2a5906$exports = {
110
+ "rangeOverflow": (args)=>`El valor debe ser ${args.maxValue} o anterior.`,
111
+ "rangeReversed": `La fecha de inicio debe ser anterior a la fecha de finalizaci\xf3n.`,
112
+ "rangeUnderflow": (args)=>`El valor debe ser ${args.minValue} o posterior.`,
113
+ "unavailableDate": `Fecha seleccionada no disponible.`
114
+ };
115
+
116
+
117
+ var $eeeaa8daee3601c7$exports = {};
118
+ $eeeaa8daee3601c7$exports = {
119
+ "rangeOverflow": (args)=>`V\xe4\xe4rtus peab olema ${args.maxValue} v\xf5i varasem.`,
120
+ "rangeReversed": `Alguskuup\xe4ev peab olema enne l\xf5ppkuup\xe4eva.`,
121
+ "rangeUnderflow": (args)=>`V\xe4\xe4rtus peab olema ${args.minValue} v\xf5i hilisem.`,
122
+ "unavailableDate": `Valitud kuup\xe4ev pole saadaval.`
123
+ };
124
+
125
+
126
+ var $35e0614a49b3bb40$exports = {};
127
+ $35e0614a49b3bb40$exports = {
128
+ "rangeOverflow": (args)=>`Arvon on oltava ${args.maxValue} tai sit\xe4 aikaisempi.`,
129
+ "rangeReversed": `Aloitusp\xe4iv\xe4n on oltava ennen lopetusp\xe4iv\xe4\xe4.`,
130
+ "rangeUnderflow": (args)=>`Arvon on oltava ${args.minValue} tai sit\xe4 my\xf6h\xe4isempi.`,
131
+ "unavailableDate": `Valittu p\xe4iv\xe4m\xe4\xe4r\xe4 ei ole k\xe4ytett\xe4viss\xe4.`
132
+ };
133
+
134
+
135
+ var $929bc63f7705a78f$exports = {};
136
+ $929bc63f7705a78f$exports = {
137
+ "rangeOverflow": (args)=>`La valeur doit \xeatre ${args.maxValue} ou ant\xe9rieure.`,
138
+ "rangeReversed": `La date de d\xe9but doit \xeatre ant\xe9rieure \xe0 la date de fin.`,
139
+ "rangeUnderflow": (args)=>`La valeur doit \xeatre ${args.minValue} ou ult\xe9rieure.`,
140
+ "unavailableDate": `La date s\xe9lectionn\xe9e n\u{2019}est pas disponible.`
141
+ };
142
+
143
+
144
+ var $9a28d073b034d183$exports = {};
145
+ $9a28d073b034d183$exports = {
146
+ "rangeOverflow": (args)=>`\u{5D4}\u{5E2}\u{5E8}\u{5DA} \u{5D7}\u{5D9}\u{5D9}\u{5D1} \u{5DC}\u{5D4}\u{5D9}\u{5D5}\u{5EA} ${args.maxValue} \u{5D0}\u{5D5} \u{5DE}\u{5D5}\u{5E7}\u{5D3}\u{5DD} \u{5D9}\u{5D5}\u{5EA}\u{5E8}.`,
147
+ "rangeReversed": `\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5D4}\u{5D4}\u{5EA}\u{5D7}\u{5DC}\u{5D4} \u{5D7}\u{5D9}\u{5D9}\u{5D1} \u{5DC}\u{5D4}\u{5D9}\u{5D5}\u{5EA} \u{5DC}\u{5E4}\u{5E0}\u{5D9} \u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5D4}\u{5E1}\u{5D9}\u{5D5}\u{5DD}.`,
148
+ "rangeUnderflow": (args)=>`\u{5D4}\u{5E2}\u{5E8}\u{5DA} \u{5D7}\u{5D9}\u{5D9}\u{5D1} \u{5DC}\u{5D4}\u{5D9}\u{5D5}\u{5EA} ${args.minValue} \u{5D0}\u{5D5} \u{5DE}\u{5D0}\u{5D5}\u{5D7}\u{5E8} \u{5D9}\u{5D5}\u{5EA}\u{5E8}.`,
149
+ "unavailableDate": `\u{5D4}\u{5EA}\u{5D0}\u{5E8}\u{5D9}\u{5DA} \u{5D4}\u{5E0}\u{5D1}\u{5D7}\u{5E8} \u{5D0}\u{5D9}\u{5E0}\u{5D5} \u{5D6}\u{5DE}\u{5D9}\u{5DF}.`
150
+ };
151
+
152
+
153
+ var $7743e79780ebcca3$exports = {};
154
+ $7743e79780ebcca3$exports = {
155
+ "rangeOverflow": (args)=>`Vrijednost mora biti ${args.maxValue} ili ranije.`,
156
+ "rangeReversed": `Datum po\u{10D}etka mora biti prije datuma zavr\u{161}etka.`,
157
+ "rangeUnderflow": (args)=>`Vrijednost mora biti ${args.minValue} ili kasnije.`,
158
+ "unavailableDate": `Odabrani datum nije dostupan.`
159
+ };
160
+
161
+
162
+ var $3351817a04898858$exports = {};
163
+ $3351817a04898858$exports = {
164
+ "rangeOverflow": (args)=>`Az \xe9rt\xe9knek ${args.maxValue} vagy kor\xe1bbinak kell lennie.`,
165
+ "rangeReversed": `A kezd\u{151} d\xe1tumnak a befejez\u{151} d\xe1tumn\xe1l kor\xe1bbinak kell lennie.`,
166
+ "rangeUnderflow": (args)=>`Az \xe9rt\xe9knek ${args.minValue} vagy k\xe9s\u{151}bbinek kell lennie.`,
167
+ "unavailableDate": `A kiv\xe1lasztott d\xe1tum nem \xe9rhet\u{151} el.`
168
+ };
169
+
170
+
171
+ var $4120bdb1d03484db$exports = {};
172
+ $4120bdb1d03484db$exports = {
173
+ "rangeOverflow": (args)=>`Il valore deve essere ${args.maxValue} o precedente.`,
174
+ "rangeReversed": `La data di inizio deve essere antecedente alla data di fine.`,
175
+ "rangeUnderflow": (args)=>`Il valore deve essere ${args.minValue} o successivo.`,
176
+ "unavailableDate": `Data selezionata non disponibile.`
177
+ };
178
+
179
+
180
+ var $65e5e1569f34ea4f$exports = {};
181
+ $65e5e1569f34ea4f$exports = {
182
+ "rangeOverflow": (args)=>`\u{5024}\u{306F} ${args.maxValue} \u{4EE5}\u{4E0B}\u{306B}\u{3059}\u{308B}\u{5FC5}\u{8981}\u{304C}\u{3042}\u{308A}\u{307E}\u{3059}\u{3002}`,
183
+ "rangeReversed": `\u{958B}\u{59CB}\u{65E5}\u{306F}\u{7D42}\u{4E86}\u{65E5}\u{3088}\u{308A}\u{524D}\u{306B}\u{3059}\u{308B}\u{5FC5}\u{8981}\u{304C}\u{3042}\u{308A}\u{307E}\u{3059}\u{3002}`,
184
+ "rangeUnderflow": (args)=>`\u{5024}\u{306F} ${args.minValue} \u{4EE5}\u{4E0A}\u{306B}\u{3059}\u{308B}\u{5FC5}\u{8981}\u{304C}\u{3042}\u{308A}\u{307E}\u{3059}\u{3002}`,
185
+ "unavailableDate": `\u{9078}\u{629E}\u{3057}\u{305F}\u{65E5}\u{4ED8}\u{306F}\u{4F7F}\u{7528}\u{3067}\u{304D}\u{307E}\u{305B}\u{3093}\u{3002}`
186
+ };
187
+
188
+
189
+ var $d34552a7550967e7$exports = {};
190
+ $d34552a7550967e7$exports = {
191
+ "rangeOverflow": (args)=>`\u{AC12}\u{C740} ${args.maxValue} \u{C774}\u{C804}\u{C774}\u{C5B4}\u{C57C} \u{D569}\u{B2C8}\u{B2E4}.`,
192
+ "rangeReversed": `\u{C2DC}\u{C791}\u{C77C}\u{C740} \u{C885}\u{B8CC}\u{C77C} \u{C774}\u{C804}\u{C774}\u{C5B4}\u{C57C} \u{D569}\u{B2C8}\u{B2E4}.`,
193
+ "rangeUnderflow": (args)=>`\u{AC12}\u{C740} ${args.minValue} \u{C774}\u{C0C1}\u{C774}\u{C5B4}\u{C57C} \u{D569}\u{B2C8}\u{B2E4}.`,
194
+ "unavailableDate": `\u{C120}\u{D0DD}\u{D55C} \u{B0A0}\u{C9DC}\u{B97C} \u{C0AC}\u{C6A9}\u{D560} \u{C218} \u{C5C6}\u{C2B5}\u{B2C8}\u{B2E4}.`
195
+ };
196
+
197
+
198
+ var $8f855bffe63f6eca$exports = {};
199
+ $8f855bffe63f6eca$exports = {
200
+ "rangeOverflow": (args)=>`Reik\u{161}m\u{117} turi b\u{16B}ti ${args.maxValue} arba ankstesn\u{117}.`,
201
+ "rangeReversed": `Prad\u{17E}ios data turi b\u{16B}ti ankstesn\u{117} nei pabaigos data.`,
202
+ "rangeUnderflow": (args)=>`Reik\u{161}m\u{117} turi b\u{16B}ti ${args.minValue} arba naujesn\u{117}.`,
203
+ "unavailableDate": `Pasirinkta data nepasiekiama.`
204
+ };
205
+
206
+
207
+ var $ce40f46d09034645$exports = {};
208
+ $ce40f46d09034645$exports = {
209
+ "rangeOverflow": (args)=>`V\u{113}rt\u{12B}bai ir j\u{101}b\u{16B}t ${args.maxValue} vai agr\u{101}kai.`,
210
+ "rangeReversed": `S\u{101}kuma datumam ir j\u{101}b\u{16B}t pirms beigu datuma.`,
211
+ "rangeUnderflow": (args)=>`V\u{113}rt\u{12B}bai ir j\u{101}b\u{16B}t ${args.minValue} vai v\u{113}l\u{101}kai.`,
212
+ "unavailableDate": `Atlas\u{12B}tais datums nav pieejams.`
213
+ };
214
+
215
+
216
+ var $dd1a9a73340c793e$exports = {};
217
+ $dd1a9a73340c793e$exports = {
218
+ "rangeOverflow": (args)=>`Verdien m\xe5 v\xe6re ${args.maxValue} eller tidligere.`,
219
+ "rangeReversed": `Startdatoen m\xe5 v\xe6re f\xf8r sluttdatoen.`,
220
+ "rangeUnderflow": (args)=>`Verdien m\xe5 v\xe6re ${args.minValue} eller senere.`,
221
+ "unavailableDate": `Valgt dato utilgjengelig.`
222
+ };
223
+
224
+
225
+ var $4ee1fb3f0cbe6f59$exports = {};
226
+ $4ee1fb3f0cbe6f59$exports = {
227
+ "rangeOverflow": (args)=>`Waarde moet ${args.maxValue} of eerder zijn.`,
228
+ "rangeReversed": `De startdatum moet voor de einddatum liggen.`,
229
+ "rangeUnderflow": (args)=>`Waarde moet ${args.minValue} of later zijn.`,
230
+ "unavailableDate": `Geselecteerde datum niet beschikbaar.`
231
+ };
232
+
233
+
234
+ var $c85829aebb0bc94b$exports = {};
235
+ $c85829aebb0bc94b$exports = {
236
+ "rangeOverflow": (args)=>`Warto\u{15B}\u{107} musi mie\u{107} warto\u{15B}\u{107} ${args.maxValue} lub wcze\u{15B}niejsz\u{105}.`,
237
+ "rangeReversed": `Data rozpocz\u{119}cia musi by\u{107} wcze\u{15B}niejsza ni\u{17C} data zako\u{144}czenia.`,
238
+ "rangeUnderflow": (args)=>`Warto\u{15B}\u{107} musi mie\u{107} warto\u{15B}\u{107} ${args.minValue} lub p\xf3\u{17A}niejsz\u{105}.`,
239
+ "unavailableDate": `Wybrana data jest niedost\u{119}pna.`
240
+ };
241
+
242
+
243
+ var $27f5cd2291ca8a02$exports = {};
244
+ $27f5cd2291ca8a02$exports = {
245
+ "rangeOverflow": (args)=>`O valor deve ser ${args.maxValue} ou anterior.`,
246
+ "rangeReversed": `A data inicial deve ser anterior \xe0 data final.`,
247
+ "rangeUnderflow": (args)=>`O valor deve ser ${args.minValue} ou posterior.`,
248
+ "unavailableDate": `Data selecionada indispon\xedvel.`
249
+ };
250
+
251
+
252
+ var $e046fdccd69bea8e$exports = {};
253
+ $e046fdccd69bea8e$exports = {
254
+ "rangeOverflow": (args)=>`O valor tem de ser ${args.maxValue} ou anterior.`,
255
+ "rangeReversed": `A data de in\xedcio deve ser anterior \xe0 data de fim.`,
256
+ "rangeUnderflow": (args)=>`O valor tem de ser ${args.minValue} ou posterior.`,
257
+ "unavailableDate": `Data selecionada indispon\xedvel.`
258
+ };
259
+
260
+
261
+ var $fa5f88e804986547$exports = {};
262
+ $fa5f88e804986547$exports = {
263
+ "rangeOverflow": (args)=>`Valoarea trebuie s\u{103} fie ${args.maxValue} sau anterioar\u{103}.`,
264
+ "rangeReversed": `Data de \xeenceput trebuie s\u{103} fie anterioar\u{103} datei de sf\xe2r\u{219}it.`,
265
+ "rangeUnderflow": (args)=>`Valoarea trebuie s\u{103} fie ${args.minValue} sau ulterioar\u{103}.`,
266
+ "unavailableDate": `Data selectat\u{103} nu este disponibil\u{103}.`
267
+ };
268
+
269
+
270
+ var $28e4714602d1b568$exports = {};
271
+ $28e4714602d1b568$exports = {
272
+ "rangeOverflow": (args)=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{438}\u{435} \u{434}\u{43E}\u{43B}\u{436}\u{43D}\u{43E} \u{431}\u{44B}\u{442}\u{44C} \u{43D}\u{435} \u{43F}\u{43E}\u{437}\u{436}\u{435} ${args.maxValue}.`,
273
+ "rangeReversed": `\u{414}\u{430}\u{442}\u{430} \u{43D}\u{430}\u{447}\u{430}\u{43B}\u{430} \u{434}\u{43E}\u{43B}\u{436}\u{43D}\u{430} \u{43F}\u{440}\u{435}\u{434}\u{448}\u{435}\u{441}\u{442}\u{432}\u{43E}\u{432}\u{430}\u{442}\u{44C} \u{434}\u{430}\u{442}\u{435} \u{43E}\u{43A}\u{43E}\u{43D}\u{447}\u{430}\u{43D}\u{438}\u{44F}.`,
274
+ "rangeUnderflow": (args)=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{438}\u{435} \u{434}\u{43E}\u{43B}\u{436}\u{43D}\u{43E} \u{431}\u{44B}\u{442}\u{44C} \u{43D}\u{435} \u{440}\u{430}\u{43D}\u{44C}\u{448}\u{435} ${args.minValue}.`,
275
+ "unavailableDate": `\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} \u{43D}\u{435}\u{434}\u{43E}\u{441}\u{442}\u{443}\u{43F}\u{43D}\u{430}.`
276
+ };
277
+
278
+
279
+ var $4e3bc8cf783ad569$exports = {};
280
+ $4e3bc8cf783ad569$exports = {
281
+ "rangeOverflow": (args)=>`Hodnota mus\xed by\u{165} ${args.maxValue} alebo skor\u{161}ia.`,
282
+ "rangeReversed": `D\xe1tum za\u{10D}iatku mus\xed by\u{165} skor\u{161}\xed ako d\xe1tum konca.`,
283
+ "rangeUnderflow": (args)=>`Hodnota mus\xed by\u{165} ${args.minValue} alebo neskor\u{161}ia.`,
284
+ "unavailableDate": `Vybrat\xfd d\xe1tum je nedostupn\xfd.`
285
+ };
286
+
287
+
288
+ var $bee07513333bdc15$exports = {};
289
+ $bee07513333bdc15$exports = {
290
+ "rangeOverflow": (args)=>`Vrednost mora biti ${args.maxValue} ali starej\u{161}a.`,
291
+ "rangeReversed": `Za\u{10D}etni datum mora biti pred kon\u{10D}nim datumom.`,
292
+ "rangeUnderflow": (args)=>`Vrednost mora biti ${args.minValue} ali novej\u{161}a.`,
293
+ "unavailableDate": `Izbrani datum ni na voljo.`
294
+ };
295
+
296
+
297
+ var $7ed9c6fad16a15ec$exports = {};
298
+ $7ed9c6fad16a15ec$exports = {
299
+ "rangeOverflow": (args)=>`Vrednost mora da bude ${args.maxValue} ili starija.`,
300
+ "rangeReversed": `Datum po\u{10D}etka mora biti pre datuma zavr\u{161}etka.`,
301
+ "rangeUnderflow": (args)=>`Vrednost mora da bude ${args.minValue} ili novija.`,
302
+ "unavailableDate": `Izabrani datum nije dostupan.`
303
+ };
304
+
305
+
306
+ var $8bef6d5a236de86c$exports = {};
307
+ $8bef6d5a236de86c$exports = {
308
+ "rangeOverflow": (args)=>`V\xe4rdet m\xe5ste vara ${args.maxValue} eller tidigare.`,
309
+ "rangeReversed": `Startdatumet m\xe5ste vara f\xf6re slutdatumet.`,
310
+ "rangeUnderflow": (args)=>`V\xe4rdet m\xe5ste vara ${args.minValue} eller senare.`,
311
+ "unavailableDate": `Det valda datumet \xe4r inte tillg\xe4ngligt.`
312
+ };
39
313
 
40
- function $35a22f14a1f04b11$export$eac50920cf2fd59a(value, minValue, maxValue) {
41
- return value != null && (minValue != null && value.compare(minValue) < 0 || maxValue != null && value.compare(maxValue) > 0);
314
+
315
+ var $098b9a2d2340cfc5$exports = {};
316
+ $098b9a2d2340cfc5$exports = {
317
+ "rangeOverflow": (args)=>`De\u{11F}er, ${args.maxValue} veya \xf6ncesi olmal\u{131}d\u{131}r.`,
318
+ "rangeReversed": `Ba\u{15F}lang\u{131}\xe7 tarihi biti\u{15F} tarihinden \xf6nce olmal\u{131}d\u{131}r.`,
319
+ "rangeUnderflow": (args)=>`De\u{11F}er, ${args.minValue} veya sonras\u{131} olmal\u{131}d\u{131}r.`,
320
+ "unavailableDate": `Se\xe7ilen tarih kullan\u{131}lam\u{131}yor.`
321
+ };
322
+
323
+
324
+ var $54a862ea7fad7419$exports = {};
325
+ $54a862ea7fad7419$exports = {
326
+ "rangeOverflow": (args)=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{43D}\u{44F} \u{43C}\u{430}\u{454} \u{431}\u{443}\u{442}\u{438} \u{43D}\u{435} \u{43F}\u{456}\u{437}\u{43D}\u{456}\u{448}\u{435} ${args.maxValue}.`,
327
+ "rangeReversed": `\u{414}\u{430}\u{442}\u{430} \u{43F}\u{43E}\u{447}\u{430}\u{442}\u{43A}\u{443} \u{43C}\u{430}\u{454} \u{43F}\u{435}\u{440}\u{435}\u{434}\u{443}\u{432}\u{430}\u{442}\u{438} \u{434}\u{430}\u{442}\u{456} \u{437}\u{430}\u{432}\u{435}\u{440}\u{448}\u{435}\u{43D}\u{43D}\u{44F}.`,
328
+ "rangeUnderflow": (args)=>`\u{417}\u{43D}\u{430}\u{447}\u{435}\u{43D}\u{43D}\u{44F} \u{43C}\u{430}\u{454} \u{431}\u{443}\u{442}\u{438} \u{43D}\u{435} \u{440}\u{430}\u{43D}\u{456}\u{448}\u{435} ${args.minValue}.`,
329
+ "unavailableDate": `\u{412}\u{438}\u{431}\u{440}\u{430}\u{43D}\u{430} \u{434}\u{430}\u{442}\u{430} \u{43D}\u{435}\u{434}\u{43E}\u{441}\u{442}\u{443}\u{43F}\u{43D}\u{430}.`
330
+ };
331
+
332
+
333
+ var $e6cc491d590dfda5$exports = {};
334
+ $e6cc491d590dfda5$exports = {
335
+ "rangeOverflow": (args)=>`\u{503C}\u{5FC5}\u{987B}\u{662F} ${args.maxValue} \u{6216}\u{66F4}\u{65E9}\u{65E5}\u{671F}\u{3002}`,
336
+ "rangeReversed": `\u{5F00}\u{59CB}\u{65E5}\u{671F}\u{5FC5}\u{987B}\u{65E9}\u{4E8E}\u{7ED3}\u{675F}\u{65E5}\u{671F}\u{3002}`,
337
+ "rangeUnderflow": (args)=>`\u{503C}\u{5FC5}\u{987B}\u{662F} ${args.minValue} \u{6216}\u{66F4}\u{665A}\u{65E5}\u{671F}\u{3002}`,
338
+ "unavailableDate": `\u{6240}\u{9009}\u{65E5}\u{671F}\u{4E0D}\u{53EF}\u{7528}\u{3002}`
339
+ };
340
+
341
+
342
+ var $9aebf53181a474bd$exports = {};
343
+ $9aebf53181a474bd$exports = {
344
+ "rangeOverflow": (args)=>`\u{503C}\u{5FC5}\u{9808}\u{662F} ${args.maxValue} \u{6216}\u{66F4}\u{65E9}\u{3002}`,
345
+ "rangeReversed": `\u{958B}\u{59CB}\u{65E5}\u{671F}\u{5FC5}\u{9808}\u{5728}\u{7D50}\u{675F}\u{65E5}\u{671F}\u{4E4B}\u{524D}\u{3002}`,
346
+ "rangeUnderflow": (args)=>`\u{503C}\u{5FC5}\u{9808}\u{662F} ${args.minValue} \u{6216}\u{66F4}\u{665A}\u{3002}`,
347
+ "unavailableDate": `\u{6240}\u{9078}\u{65E5}\u{671F}\u{7121}\u{6CD5}\u{4F7F}\u{7528}\u{3002}`
348
+ };
349
+
350
+
351
+ $452ac34de8c2444e$exports = {
352
+ "ar-AE": $b3427c06585c22a0$exports,
353
+ "bg-BG": $d282528f459122b9$exports,
354
+ "cs-CZ": $2d5eecd634a9ca45$exports,
355
+ "da-DK": $c8e2288226c24a67$exports,
356
+ "de-DE": $6f5745e389c346d7$exports,
357
+ "el-GR": $8c882ccf4300d1da$exports,
358
+ "en-US": $22195056771860be$exports,
359
+ "es-ES": $cedfa43b4e2a5906$exports,
360
+ "et-EE": $eeeaa8daee3601c7$exports,
361
+ "fi-FI": $35e0614a49b3bb40$exports,
362
+ "fr-FR": $929bc63f7705a78f$exports,
363
+ "he-IL": $9a28d073b034d183$exports,
364
+ "hr-HR": $7743e79780ebcca3$exports,
365
+ "hu-HU": $3351817a04898858$exports,
366
+ "it-IT": $4120bdb1d03484db$exports,
367
+ "ja-JP": $65e5e1569f34ea4f$exports,
368
+ "ko-KR": $d34552a7550967e7$exports,
369
+ "lt-LT": $8f855bffe63f6eca$exports,
370
+ "lv-LV": $ce40f46d09034645$exports,
371
+ "nb-NO": $dd1a9a73340c793e$exports,
372
+ "nl-NL": $4ee1fb3f0cbe6f59$exports,
373
+ "pl-PL": $c85829aebb0bc94b$exports,
374
+ "pt-BR": $27f5cd2291ca8a02$exports,
375
+ "pt-PT": $e046fdccd69bea8e$exports,
376
+ "ro-RO": $fa5f88e804986547$exports,
377
+ "ru-RU": $28e4714602d1b568$exports,
378
+ "sk-SK": $4e3bc8cf783ad569$exports,
379
+ "sl-SI": $bee07513333bdc15$exports,
380
+ "sr-SP": $7ed9c6fad16a15ec$exports,
381
+ "sv-SE": $8bef6d5a236de86c$exports,
382
+ "tr-TR": $098b9a2d2340cfc5$exports,
383
+ "uk-UA": $54a862ea7fad7419$exports,
384
+ "zh-CN": $e6cc491d590dfda5$exports,
385
+ "zh-TW": $9aebf53181a474bd$exports
386
+ };
387
+
388
+
389
+
390
+
391
+
392
+ const $35a22f14a1f04b11$var$dictionary = new (0, $7UzoM$LocalizedStringDictionary)((0, (/*@__PURE__*/$parcel$interopDefault($452ac34de8c2444e$exports))));
393
+ function $35a22f14a1f04b11$var$getLocale() {
394
+ // Match browser language setting here, NOT react-aria's I18nProvider, so that we match other browser-provided
395
+ // validation messages, which to not respect our provider's language.
396
+ // @ts-ignore
397
+ return typeof navigator !== "undefined" && (navigator.language || navigator.userLanguage) || "en-US";
398
+ }
399
+ function $35a22f14a1f04b11$export$f18627323ab57ac0(value, minValue, maxValue, isDateUnavailable, options) {
400
+ let rangeOverflow = value != null && maxValue != null && value.compare(maxValue) > 0;
401
+ let rangeUnderflow = value != null && minValue != null && value.compare(minValue) < 0;
402
+ let isUnavailable = value != null && (isDateUnavailable === null || isDateUnavailable === void 0 ? void 0 : isDateUnavailable(value)) || false;
403
+ let isInvalid = rangeOverflow || rangeUnderflow || isUnavailable;
404
+ let errors = [];
405
+ if (isInvalid) {
406
+ let locale = $35a22f14a1f04b11$var$getLocale();
407
+ let formatter = new (0, $7UzoM$LocalizedStringFormatter)(locale, $35a22f14a1f04b11$var$dictionary);
408
+ let dateFormatter = new (0, $7UzoM$DateFormatter)(locale, $35a22f14a1f04b11$export$7e319ea407e63bc0({}, options));
409
+ let timeZone = dateFormatter.resolvedOptions().timeZone;
410
+ if (rangeUnderflow) errors.push(formatter.format("rangeUnderflow", {
411
+ minValue: dateFormatter.format(minValue.toDate(timeZone))
412
+ }));
413
+ if (rangeOverflow) errors.push(formatter.format("rangeOverflow", {
414
+ maxValue: dateFormatter.format(maxValue.toDate(timeZone))
415
+ }));
416
+ if (isUnavailable) errors.push(formatter.format("unavailableDate"));
417
+ }
418
+ return {
419
+ isInvalid: isInvalid,
420
+ validationErrors: errors,
421
+ validationDetails: {
422
+ badInput: isUnavailable,
423
+ customError: false,
424
+ patternMismatch: false,
425
+ rangeOverflow: rangeOverflow,
426
+ rangeUnderflow: rangeUnderflow,
427
+ stepMismatch: false,
428
+ tooLong: false,
429
+ tooShort: false,
430
+ typeMismatch: false,
431
+ valueMissing: false,
432
+ valid: !isInvalid
433
+ }
434
+ };
435
+ }
436
+ function $35a22f14a1f04b11$export$80ff8fc0ae339c13(value, minValue, maxValue, isDateUnavailable, options) {
437
+ let startValidation = $35a22f14a1f04b11$export$f18627323ab57ac0(value === null || value === void 0 ? void 0 : value.start, minValue, maxValue, isDateUnavailable, options);
438
+ let endValidation = $35a22f14a1f04b11$export$f18627323ab57ac0(value === null || value === void 0 ? void 0 : value.end, minValue, maxValue, isDateUnavailable, options);
439
+ let result = (0, $7UzoM$mergeValidation)(startValidation, endValidation);
440
+ if (value.end != null && value.start != null && value.end.compare(value.start) < 0) result = (0, $7UzoM$mergeValidation)(result, {
441
+ isInvalid: true,
442
+ validationErrors: [
443
+ $35a22f14a1f04b11$var$dictionary.getStringForLocale("rangeReversed", $35a22f14a1f04b11$var$getLocale())
444
+ ],
445
+ validationDetails: {
446
+ ...(0, $7UzoM$VALID_VALIDITY_STATE),
447
+ rangeUnderflow: true,
448
+ rangeOverflow: true,
449
+ valid: false
450
+ }
451
+ });
452
+ return result;
42
453
  }
43
454
  const $35a22f14a1f04b11$var$DEFAULT_FIELD_OPTIONS = {
44
455
  year: "numeric",
@@ -129,8 +540,8 @@ function $35a22f14a1f04b11$export$2440da353cedad43(v, granularity) {
129
540
 
130
541
 
131
542
 
543
+
132
544
  function $ab5bf3f618090389$export$87194bb378cc3ac2(props) {
133
- var _props_isDateUnavailable;
134
545
  let overlayState = (0, $7UzoM$useOverlayTriggerState)(props);
135
546
  let [value, setValue] = (0, $7UzoM$useControlledState)(props.value, props.defaultValue || null, props.onChange);
136
547
  let v = value || props.placeholderValue;
@@ -147,10 +558,42 @@ function $ab5bf3f618090389$export$87194bb378cc3ac2(props) {
147
558
  }
148
559
  // props.granularity must actually exist in the value if one is provided.
149
560
  if (v && !(granularity in v)) throw new Error("Invalid granularity " + granularity + " for value " + v.toString());
561
+ let showEra = (value === null || value === void 0 ? void 0 : value.calendar.identifier) === "gregory" && value.era === "BC";
562
+ let formatOpts = (0, $7UzoM$useMemo)(()=>({
563
+ granularity: granularity,
564
+ timeZone: defaultTimeZone,
565
+ hideTimeZone: props.hideTimeZone,
566
+ hourCycle: props.hourCycle,
567
+ shouldForceLeadingZeros: props.shouldForceLeadingZeros,
568
+ showEra: showEra
569
+ }), [
570
+ granularity,
571
+ props.hourCycle,
572
+ props.shouldForceLeadingZeros,
573
+ defaultTimeZone,
574
+ props.hideTimeZone,
575
+ showEra
576
+ ]);
577
+ let { minValue: minValue, maxValue: maxValue, isDateUnavailable: isDateUnavailable } = props;
578
+ let builtinValidation = (0, $7UzoM$useMemo)(()=>(0, $35a22f14a1f04b11$export$f18627323ab57ac0)(value, minValue, maxValue, isDateUnavailable, formatOpts), [
579
+ value,
580
+ minValue,
581
+ maxValue,
582
+ isDateUnavailable,
583
+ formatOpts
584
+ ]);
585
+ let validation = (0, $7UzoM$useFormValidationState)({
586
+ ...props,
587
+ value: value,
588
+ builtinValidation: builtinValidation
589
+ });
590
+ let isValueInvalid = validation.displayValidation.isInvalid;
591
+ let validationState = props.validationState || (isValueInvalid ? "invalid" : null);
150
592
  let commitValue = (date, time)=>{
151
593
  setValue("timeZone" in time ? time.set((0, $7UzoM$toCalendarDate)(date)) : (0, $7UzoM$toCalendarDateTime)(date, time));
152
594
  setSelectedDate(null);
153
595
  setSelectedTime(null);
596
+ validation.commitValidation();
154
597
  };
155
598
  // Intercept setValue to make sure the Time section is not changed by date selection in Calendar
156
599
  let selectDate = (newValue)=>{
@@ -158,16 +601,18 @@ function $ab5bf3f618090389$export$87194bb378cc3ac2(props) {
158
601
  if (hasTime) {
159
602
  if (selectedTime || shouldClose) commitValue(newValue, selectedTime || (0, $35a22f14a1f04b11$export$c5221a78ef73c5e9)(props.placeholderValue));
160
603
  else setSelectedDate(newValue);
161
- } else setValue(newValue);
604
+ } else {
605
+ setValue(newValue);
606
+ validation.commitValidation();
607
+ }
162
608
  if (shouldClose) overlayState.setOpen(false);
163
609
  };
164
610
  let selectTime = (newValue)=>{
165
611
  if (selectedDate && newValue) commitValue(selectedDate, newValue);
166
612
  else setSelectedTime(newValue);
167
613
  };
168
- let isValueInvalid = props.isInvalid || props.validationState === "invalid" || (0, $35a22f14a1f04b11$export$eac50920cf2fd59a)(value, props.minValue, props.maxValue) || value && ((_props_isDateUnavailable = props.isDateUnavailable) === null || _props_isDateUnavailable === void 0 ? void 0 : _props_isDateUnavailable.call(props, value));
169
- let validationState = props.validationState || (isValueInvalid ? "invalid" : null);
170
614
  return {
615
+ ...validation,
171
616
  value: value,
172
617
  setValue: setValue,
173
618
  dateValue: selectedDate,
@@ -188,13 +633,7 @@ function $ab5bf3f618090389$export$87194bb378cc3ac2(props) {
188
633
  isInvalid: isValueInvalid,
189
634
  formatValue (locale, fieldOptions) {
190
635
  if (!dateValue) return "";
191
- let formatOptions = (0, $35a22f14a1f04b11$export$7e319ea407e63bc0)(fieldOptions, {
192
- granularity: granularity,
193
- timeZone: defaultTimeZone,
194
- hideTimeZone: props.hideTimeZone,
195
- hourCycle: props.hourCycle,
196
- showEra: value.calendar.identifier === "gregory" && value.era === "BC"
197
- });
636
+ let formatOptions = (0, $35a22f14a1f04b11$export$7e319ea407e63bc0)(fieldOptions, formatOpts);
198
637
  let formatter = new (0, $7UzoM$DateFormatter)(locale, formatOptions);
199
638
  return formatter.format(dateValue);
200
639
  }
@@ -214,6 +653,7 @@ function $ab5bf3f618090389$export$87194bb378cc3ac2(props) {
214
653
  * governing permissions and limitations under the License.
215
654
  */
216
655
 
656
+
217
657
  /*
218
658
  * Copyright 2020 Adobe. All rights reserved.
219
659
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -240,9 +680,9 @@ const $3e3ed55ab2966714$var$placeholders = new (0, $7UzoM$LocalizedStringDiction
240
680
  day: "dd"
241
681
  },
242
682
  am: {
243
- year: "ዓዓዓዓ",
244
- month: "ሚሜ",
245
- day: "ቀቀ"
683
+ year: "\u12D3\u12D3\u12D3\u12D3",
684
+ month: "\u121A\u121C",
685
+ day: "\u1240\u1240"
246
686
  },
247
687
  an: {
248
688
  year: "aaaa",
@@ -250,9 +690,9 @@ const $3e3ed55ab2966714$var$placeholders = new (0, $7UzoM$LocalizedStringDiction
250
690
  day: "dd"
251
691
  },
252
692
  ar: {
253
- year: "سنة",
254
- month: "شهر",
255
- day: "يوم"
693
+ year: "\u0633\u0646\u0629",
694
+ month: "\u0634\u0647\u0631",
695
+ day: "\u064A\u0648\u0645"
256
696
  },
257
697
  ast: {
258
698
  year: "aaaa",
@@ -265,18 +705,18 @@ const $3e3ed55ab2966714$var$placeholders = new (0, $7UzoM$LocalizedStringDiction
265
705
  day: "gg"
266
706
  },
267
707
  be: {
268
- year: "гггг",
269
- month: "мм",
270
- day: "дд"
708
+ year: "\u0433\u0433\u0433\u0433",
709
+ month: "\u043C\u043C",
710
+ day: "\u0434\u0434"
271
711
  },
272
712
  bg: {
273
- year: "гггг",
274
- month: "мм",
275
- day: "дд"
713
+ year: "\u0433\u0433\u0433\u0433",
714
+ month: "\u043C\u043C",
715
+ day: "\u0434\u0434"
276
716
  },
277
717
  bn: {
278
718
  year: "yyyy",
279
- month: "মিমি",
719
+ month: "\u09AE\u09BF\u09AE\u09BF",
280
720
  day: "dd"
281
721
  },
282
722
  br: {
@@ -300,9 +740,9 @@ const $3e3ed55ab2966714$var$placeholders = new (0, $7UzoM$LocalizedStringDiction
300
740
  day: "q'q'"
301
741
  },
302
742
  ckb: {
303
- year: "ساڵ",
304
- month: "مانگ",
305
- day: "ڕۆژ"
743
+ year: "\u0633\u0627\u06B5",
744
+ month: "\u0645\u0627\u0646\u06AF",
745
+ day: "\u0695\u06C6\u0698"
306
746
  },
307
747
  cs: {
308
748
  year: "rrrr",
@@ -327,12 +767,12 @@ const $3e3ed55ab2966714$var$placeholders = new (0, $7UzoM$LocalizedStringDiction
327
767
  dsb: {
328
768
  year: "llll",
329
769
  month: "mm",
330
- day: "źź"
770
+ day: "\u017A\u017A"
331
771
  },
332
772
  el: {
333
- year: "εεεε",
334
- month: "μμ",
335
- day: "ηη"
773
+ year: "\u03B5\u03B5\u03B5\u03B5",
774
+ month: "\u03BC\u03BC",
775
+ day: "\u03B7\u03B7"
336
776
  },
337
777
  en: {
338
778
  year: "yyyy",
@@ -360,9 +800,9 @@ const $3e3ed55ab2966714$var$placeholders = new (0, $7UzoM$LocalizedStringDiction
360
800
  day: "ee"
361
801
  },
362
802
  fa: {
363
- year: "سال",
364
- month: "ماه",
365
- day: "روز"
803
+ year: "\u0633\u0627\u0644",
804
+ month: "\u0645\u0627\u0647",
805
+ day: "\u0631\u0648\u0632"
366
806
  },
367
807
  ff: {
368
808
  year: "hhhh",
@@ -400,9 +840,9 @@ const $3e3ed55ab2966714$var$placeholders = new (0, $7UzoM$LocalizedStringDiction
400
840
  day: "dd"
401
841
  },
402
842
  he: {
403
- year: "שנה",
404
- month: "חודש",
405
- day: "יום"
843
+ year: "\u05E9\u05E0\u05D4",
844
+ month: "\u05D7\u05D5\u05D3\u05E9",
845
+ day: "\u05D9\u05D5\u05DD"
406
846
  },
407
847
  hr: {
408
848
  year: "gggg",
@@ -435,29 +875,29 @@ const $3e3ed55ab2966714$var$placeholders = new (0, $7UzoM$LocalizedStringDiction
435
875
  day: "gg"
436
876
  },
437
877
  ja: {
438
- year: " ",
439
- month: "",
440
- day: ""
878
+ year: " \u5E74 ",
879
+ month: "\u6708",
880
+ day: "\u65E5"
441
881
  },
442
882
  ka: {
443
- year: "წწწწ",
444
- month: "თთ",
445
- day: "რრ"
883
+ year: "\u10EC\u10EC\u10EC\u10EC",
884
+ month: "\u10D7\u10D7",
885
+ day: "\u10E0\u10E0"
446
886
  },
447
887
  kk: {
448
- year: "жжжж",
449
- month: "аа",
450
- day: "кк"
888
+ year: "\u0436\u0436\u0436\u0436",
889
+ month: "\u0430\u0430",
890
+ day: "\u043A\u043A"
451
891
  },
452
892
  kn: {
453
- year: "ವವವವ",
454
- month: "ಮಿಮೀ",
455
- day: "ದಿದಿ"
893
+ year: "\u0CB5\u0CB5\u0CB5\u0CB5",
894
+ month: "\u0CAE\u0CBF\u0CAE\u0CC0",
895
+ day: "\u0CA6\u0CBF\u0CA6\u0CBF"
456
896
  },
457
897
  ko: {
458
- year: "연도",
459
- month: "",
460
- day: ""
898
+ year: "\uC5F0\uB3C4",
899
+ month: "\uC6D4",
900
+ day: "\uC77C"
461
901
  },
462
902
  lb: {
463
903
  year: "jjjj",
@@ -465,9 +905,9 @@ const $3e3ed55ab2966714$var$placeholders = new (0, $7UzoM$LocalizedStringDiction
465
905
  day: "dd"
466
906
  },
467
907
  lo: {
468
- year: "ປປປປ",
469
- month: "ດດ",
470
- day: "ວວ"
908
+ year: "\u0E9B\u0E9B\u0E9B\u0E9B",
909
+ month: "\u0E94\u0E94",
910
+ day: "\u0EA7\u0EA7"
471
911
  },
472
912
  lt: {
473
913
  year: "mmmm",
@@ -485,9 +925,9 @@ const $3e3ed55ab2966714$var$placeholders = new (0, $7UzoM$LocalizedStringDiction
485
925
  day: "dd"
486
926
  },
487
927
  ml: {
488
- year: "വർഷം",
489
- month: "മാസം",
490
- day: "തീയതി"
928
+ year: "\u0D35\u0D7C\u0D37\u0D02",
929
+ month: "\u0D2E\u0D3E\u0D38\u0D02",
930
+ day: "\u0D24\u0D40\u0D2F\u0D24\u0D3F"
491
931
  },
492
932
  ms: {
493
933
  year: "tttt",
@@ -535,9 +975,9 @@ const $3e3ed55ab2966714$var$placeholders = new (0, $7UzoM$LocalizedStringDiction
535
975
  day: "zz"
536
976
  },
537
977
  ru: {
538
- year: "гггг",
539
- month: "мм",
540
- day: "дд"
978
+ year: "\u0433\u0433\u0433\u0433",
979
+ month: "\u043C\u043C",
980
+ day: "\u0434\u0434"
541
981
  },
542
982
  sc: {
543
983
  year: "aaaa",
@@ -560,9 +1000,9 @@ const $3e3ed55ab2966714$var$placeholders = new (0, $7UzoM$LocalizedStringDiction
560
1000
  day: "dd"
561
1001
  },
562
1002
  sr: {
563
- year: "гггг",
564
- month: "мм",
565
- day: "дд"
1003
+ year: "\u0433\u0433\u0433\u0433",
1004
+ month: "\u043C\u043C",
1005
+ day: "\u0434\u0434"
566
1006
  },
567
1007
  sv: {
568
1008
  year: "\xe5\xe5\xe5\xe5",
@@ -575,14 +1015,14 @@ const $3e3ed55ab2966714$var$placeholders = new (0, $7UzoM$LocalizedStringDiction
575
1015
  day: "dd"
576
1016
  },
577
1017
  tg: {
578
- year: "сссс",
579
- month: "мм",
580
- day: "рр"
1018
+ year: "\u0441\u0441\u0441\u0441",
1019
+ month: "\u043C\u043C",
1020
+ day: "\u0440\u0440"
581
1021
  },
582
1022
  th: {
583
- year: "ปปปป",
584
- month: "ดด",
585
- day: "วว"
1023
+ year: "\u0E1B\u0E1B\u0E1B\u0E1B",
1024
+ month: "\u0E14\u0E14",
1025
+ day: "\u0E27\u0E27"
586
1026
  },
587
1027
  tr: {
588
1028
  year: "yyyy",
@@ -590,19 +1030,19 @@ const $3e3ed55ab2966714$var$placeholders = new (0, $7UzoM$LocalizedStringDiction
590
1030
  day: "gg"
591
1031
  },
592
1032
  uk: {
593
- year: "рррр",
594
- month: "мм",
595
- day: "дд"
1033
+ year: "\u0440\u0440\u0440\u0440",
1034
+ month: "\u043C\u043C",
1035
+ day: "\u0434\u0434"
596
1036
  },
597
1037
  "zh-CN": {
598
- year: "",
599
- month: "",
600
- day: ""
1038
+ year: "\u5E74",
1039
+ month: "\u6708",
1040
+ day: "\u65E5"
601
1041
  },
602
1042
  "zh-TW": {
603
- year: "",
604
- month: "",
605
- day: ""
1043
+ year: "\u5E74",
1044
+ month: "\u6708",
1045
+ day: "\u65E5"
606
1046
  }
607
1047
  }, "en");
608
1048
  function $3e3ed55ab2966714$export$d3f5c5e0a5023fa0(field, value, locale) {
@@ -610,7 +1050,7 @@ function $3e3ed55ab2966714$export$d3f5c5e0a5023fa0(field, value, locale) {
610
1050
  if (field === "era" || field === "dayPeriod") return value;
611
1051
  if (field === "year" || field === "month" || field === "day") return $3e3ed55ab2966714$var$placeholders.getStringForLocale(field, locale);
612
1052
  // For time fields (e.g. hour, minute, etc.), use two dashes as the placeholder.
613
- return "––";
1053
+ return "\u2013\u2013";
614
1054
  }
615
1055
 
616
1056
 
@@ -639,7 +1079,7 @@ const $3c0fc76039f1c516$var$TYPE_MAPPING = {
639
1079
  dayperiod: "dayPeriod"
640
1080
  };
641
1081
  function $3c0fc76039f1c516$export$60e84778edff6d26(props) {
642
- let { locale: locale, createCalendar: createCalendar, hideTimeZone: hideTimeZone, isDisabled: isDisabled, isReadOnly: isReadOnly, isRequired: isRequired } = props;
1082
+ let { locale: locale, createCalendar: createCalendar, hideTimeZone: hideTimeZone, isDisabled: isDisabled, isReadOnly: isReadOnly, isRequired: isRequired, minValue: minValue, maxValue: maxValue, isDateUnavailable: isDateUnavailable } = props;
643
1083
  let v = props.value || props.defaultValue || props.placeholderValue;
644
1084
  let [granularity, defaultTimeZone] = (0, $35a22f14a1f04b11$export$2440da353cedad43)(v, props.granularity);
645
1085
  let timeZone = defaultTimeZone || "UTC";
@@ -664,8 +1104,9 @@ function $3c0fc76039f1c516$export$60e84778edff6d26(props) {
664
1104
  let [placeholderDate, setPlaceholderDate] = (0, $7UzoM$useState)(()=>(0, $35a22f14a1f04b11$export$66aa2b09de4b1ea5)(props.placeholderValue, granularity, calendar, defaultTimeZone));
665
1105
  let val = calendarValue || placeholderDate;
666
1106
  let showEra = calendar.identifier === "gregory" && val.era === "BC";
667
- var _props_maxGranularity;
668
- let formatOpts = (0, $7UzoM$useMemo)(()=>({
1107
+ let formatOpts = (0, $7UzoM$useMemo)(()=>{
1108
+ var _props_maxGranularity;
1109
+ return {
669
1110
  granularity: granularity,
670
1111
  maxGranularity: (_props_maxGranularity = props.maxGranularity) !== null && _props_maxGranularity !== void 0 ? _props_maxGranularity : "year",
671
1112
  timeZone: defaultTimeZone,
@@ -673,7 +1114,8 @@ function $3c0fc76039f1c516$export$60e84778edff6d26(props) {
673
1114
  hourCycle: props.hourCycle,
674
1115
  showEra: showEra,
675
1116
  shouldForceLeadingZeros: props.shouldForceLeadingZeros
676
- }), [
1117
+ };
1118
+ }, [
677
1119
  props.maxGranularity,
678
1120
  granularity,
679
1121
  props.hourCycle,
@@ -801,10 +1243,23 @@ function $3c0fc76039f1c516$export$60e84778edff6d26(props) {
801
1243
  if (validKeys.length >= allKeys.length || validKeys.length === allKeys.length - 1 && allSegments.dayPeriod && !validSegments.dayPeriod) setValue(displayValue);
802
1244
  } else setValue($3c0fc76039f1c516$var$addSegment(displayValue, type, amount, resolvedOptions));
803
1245
  };
804
- let isValueInvalid = props.isInvalid || props.validationState === "invalid" || (0, $35a22f14a1f04b11$export$eac50920cf2fd59a)(calendarValue, props.minValue, props.maxValue);
1246
+ let builtinValidation = (0, $7UzoM$useMemo)(()=>(0, $35a22f14a1f04b11$export$f18627323ab57ac0)(value, minValue, maxValue, isDateUnavailable, formatOpts), [
1247
+ value,
1248
+ minValue,
1249
+ maxValue,
1250
+ isDateUnavailable,
1251
+ formatOpts
1252
+ ]);
1253
+ let validation = (0, $7UzoM$useFormValidationState)({
1254
+ ...props,
1255
+ value: value,
1256
+ builtinValidation: builtinValidation
1257
+ });
1258
+ let isValueInvalid = validation.displayValidation.isInvalid;
805
1259
  let validationState = props.validationState || (isValueInvalid ? "invalid" : null);
806
- var _props_maxGranularity1;
1260
+ var _props_maxGranularity;
807
1261
  return {
1262
+ ...validation,
808
1263
  value: calendarValue,
809
1264
  dateValue: dateValue,
810
1265
  calendar: calendar,
@@ -814,7 +1269,7 @@ function $3c0fc76039f1c516$export$60e84778edff6d26(props) {
814
1269
  validationState: validationState,
815
1270
  isInvalid: isValueInvalid,
816
1271
  granularity: granularity,
817
- maxGranularity: (_props_maxGranularity1 = props.maxGranularity) !== null && _props_maxGranularity1 !== void 0 ? _props_maxGranularity1 : "year",
1272
+ maxGranularity: (_props_maxGranularity = props.maxGranularity) !== null && _props_maxGranularity !== void 0 ? _props_maxGranularity : "year",
818
1273
  isDisabled: isDisabled,
819
1274
  isReadOnly: isReadOnly,
820
1275
  isRequired: isRequired,
@@ -1027,8 +1482,9 @@ function $3c0fc76039f1c516$var$setSegment(value, part, segmentValue, options) {
1027
1482
 
1028
1483
 
1029
1484
 
1485
+
1030
1486
  function $93c38a5e28be6249$export$e50a61c1de9f574(props) {
1031
- var _props_isDateUnavailable, _props_isDateUnavailable1;
1487
+ var _value_start, _value_end;
1032
1488
  let overlayState = (0, $7UzoM$useOverlayTriggerState)(props);
1033
1489
  let [controlledValue, setControlledValue] = (0, $7UzoM$useControlledState)(props.value, props.defaultValue || null, props.onChange);
1034
1490
  let [placeholderValue, setPlaceholderValue] = (0, $7UzoM$useState)(()=>controlledValue || {
@@ -1053,7 +1509,7 @@ function $93c38a5e28be6249$export$e50a61c1de9f574(props) {
1053
1509
  else setControlledValue(null);
1054
1510
  };
1055
1511
  let v = (value === null || value === void 0 ? void 0 : value.start) || (value === null || value === void 0 ? void 0 : value.end) || props.placeholderValue;
1056
- let [granularity] = (0, $35a22f14a1f04b11$export$2440da353cedad43)(v, props.granularity);
1512
+ let [granularity, defaultTimeZone] = (0, $35a22f14a1f04b11$export$2440da353cedad43)(v, props.granularity);
1057
1513
  let hasTime = granularity === "hour" || granularity === "minute" || granularity === "second";
1058
1514
  var _props_shouldCloseOnSelect;
1059
1515
  let shouldCloseOnSelect = (_props_shouldCloseOnSelect = props.shouldCloseOnSelect) !== null && _props_shouldCloseOnSelect !== void 0 ? _props_shouldCloseOnSelect : true;
@@ -1070,6 +1526,7 @@ function $93c38a5e28be6249$export$e50a61c1de9f574(props) {
1070
1526
  });
1071
1527
  setSelectedDateRange(null);
1072
1528
  setSelectedTimeRange(null);
1529
+ validation.commitValidation();
1073
1530
  };
1074
1531
  // Intercept setValue to make sure the Time section is not changed by date selection in Calendar
1075
1532
  let setDateRange = (range)=>{
@@ -1080,17 +1537,56 @@ function $93c38a5e28be6249$export$e50a61c1de9f574(props) {
1080
1537
  end: (timeRange === null || timeRange === void 0 ? void 0 : timeRange.end) || (0, $35a22f14a1f04b11$export$c5221a78ef73c5e9)(props.placeholderValue)
1081
1538
  });
1082
1539
  else setSelectedDateRange(range);
1083
- } else if (range.start && range.end) setValue(range);
1084
- else setSelectedDateRange(range);
1540
+ } else if (range.start && range.end) {
1541
+ setValue(range);
1542
+ validation.commitValidation();
1543
+ } else setSelectedDateRange(range);
1085
1544
  if (shouldClose) overlayState.setOpen(false);
1086
1545
  };
1087
1546
  let setTimeRange = (range)=>{
1088
1547
  if ((dateRange === null || dateRange === void 0 ? void 0 : dateRange.start) && (dateRange === null || dateRange === void 0 ? void 0 : dateRange.end) && range.start && range.end) commitValue(dateRange, range);
1089
1548
  else setSelectedTimeRange(range);
1090
1549
  };
1091
- let isValueInvalid = props.isInvalid || props.validationState === "invalid" || value != null && ((0, $35a22f14a1f04b11$export$eac50920cf2fd59a)(value.start, props.minValue, props.maxValue) || (0, $35a22f14a1f04b11$export$eac50920cf2fd59a)(value.end, props.minValue, props.maxValue) || value.end != null && value.start != null && value.end.compare(value.start) < 0 || (value === null || value === void 0 ? void 0 : value.start) && ((_props_isDateUnavailable = props.isDateUnavailable) === null || _props_isDateUnavailable === void 0 ? void 0 : _props_isDateUnavailable.call(props, value.start)) || (value === null || value === void 0 ? void 0 : value.end) && ((_props_isDateUnavailable1 = props.isDateUnavailable) === null || _props_isDateUnavailable1 === void 0 ? void 0 : _props_isDateUnavailable1.call(props, value.end)));
1550
+ let showEra = (value === null || value === void 0 ? void 0 : (_value_start = value.start) === null || _value_start === void 0 ? void 0 : _value_start.calendar.identifier) === "gregory" && value.start.era === "BC" || (value === null || value === void 0 ? void 0 : (_value_end = value.end) === null || _value_end === void 0 ? void 0 : _value_end.calendar.identifier) === "gregory" && value.end.era === "BC";
1551
+ let formatOpts = (0, $7UzoM$useMemo)(()=>({
1552
+ granularity: granularity,
1553
+ timeZone: defaultTimeZone,
1554
+ hideTimeZone: props.hideTimeZone,
1555
+ hourCycle: props.hourCycle,
1556
+ shouldForceLeadingZeros: props.shouldForceLeadingZeros,
1557
+ showEra: showEra
1558
+ }), [
1559
+ granularity,
1560
+ props.hourCycle,
1561
+ props.shouldForceLeadingZeros,
1562
+ defaultTimeZone,
1563
+ props.hideTimeZone,
1564
+ showEra
1565
+ ]);
1566
+ let { minValue: minValue, maxValue: maxValue, isDateUnavailable: isDateUnavailable } = props;
1567
+ let builtinValidation = (0, $7UzoM$useMemo)(()=>(0, $35a22f14a1f04b11$export$80ff8fc0ae339c13)(value, minValue, maxValue, isDateUnavailable, formatOpts), [
1568
+ value,
1569
+ minValue,
1570
+ maxValue,
1571
+ isDateUnavailable,
1572
+ formatOpts
1573
+ ]);
1574
+ let validation = (0, $7UzoM$useFormValidationState)({
1575
+ ...props,
1576
+ value: controlledValue,
1577
+ name: (0, $7UzoM$useMemo)(()=>[
1578
+ props.startName,
1579
+ props.endName
1580
+ ], [
1581
+ props.startName,
1582
+ props.endName
1583
+ ]),
1584
+ builtinValidation: builtinValidation
1585
+ });
1586
+ let isValueInvalid = validation.displayValidation.isInvalid;
1092
1587
  let validationState = props.validationState || (isValueInvalid ? "invalid" : null);
1093
1588
  return {
1589
+ ...validation,
1094
1590
  value: value,
1095
1591
  setValue: setValue,
1096
1592
  dateRange: dateRange,
@@ -1209,7 +1705,7 @@ function $93c38a5e28be6249$export$e50a61c1de9f574(props) {
1209
1705
 
1210
1706
 
1211
1707
  function $eff5d8ee529ac4bb$export$fd53cef0cc796101(props) {
1212
- let { placeholderValue: placeholderValue = new (0, $7UzoM$Time)(), minValue: minValue, maxValue: maxValue, granularity: granularity } = props;
1708
+ let { placeholderValue: placeholderValue = new (0, $7UzoM$Time)(), minValue: minValue, maxValue: maxValue, granularity: granularity, validate: validate } = props;
1213
1709
  let [value, setValue] = (0, $7UzoM$useControlledState)(props.value, props.defaultValue, props.onChange);
1214
1710
  let v = value || placeholderValue;
1215
1711
  let day = v && "day" in v ? v : undefined;
@@ -1250,7 +1746,11 @@ function $eff5d8ee529ac4bb$export$fd53cef0cc796101(props) {
1250
1746
  maxGranularity: "hour",
1251
1747
  placeholderValue: placeholderDate,
1252
1748
  // Calendar should not matter for time fields.
1253
- createCalendar: ()=>new (0, $7UzoM$GregorianCalendar)()
1749
+ createCalendar: ()=>new (0, $7UzoM$GregorianCalendar)(),
1750
+ validate: (0, $7UzoM$useCallback)(()=>validate === null || validate === void 0 ? void 0 : validate(value), [
1751
+ validate,
1752
+ value
1753
+ ])
1254
1754
  });
1255
1755
  return {
1256
1756
  ...state,