@react-aria/numberfield 3.2.0 → 3.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +248 -61
- package/dist/main.js.map +1 -1
- package/dist/module.js +246 -47
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +7 -5
- package/dist/types.d.ts.map +1 -1
- package/package.json +13 -13
- package/src/index.ts +3 -2
- package/src/useNumberField.ts +12 -13
package/dist/main.js
CHANGED
|
@@ -5,168 +5,355 @@ var $2wEZH$reactariatextfield = require("@react-aria/textfield");
|
|
|
5
5
|
var $2wEZH$reactariai18n = require("@react-aria/i18n");
|
|
6
6
|
var $2wEZH$reactariaspinbutton = require("@react-aria/spinbutton");
|
|
7
7
|
|
|
8
|
-
function $parcel$
|
|
9
|
-
Object.
|
|
10
|
-
if (key === 'default' || key === '__esModule' || dest.hasOwnProperty(key)) {
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
Object.defineProperty(dest, key, {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function get() {
|
|
17
|
-
return source[key];
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
return dest;
|
|
8
|
+
function $parcel$export(e, n, v, s) {
|
|
9
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
23
10
|
}
|
|
24
11
|
function $parcel$interopDefault(a) {
|
|
25
12
|
return a && a.__esModule ? a.default : a;
|
|
26
13
|
}
|
|
27
|
-
function $parcel$export(e, n, v, s) {
|
|
28
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
29
|
-
}
|
|
30
|
-
var $fa863e9b015ae839$exports = {};
|
|
31
14
|
|
|
32
|
-
$parcel$export(
|
|
15
|
+
$parcel$export(module.exports, "useNumberField", () => $fa863e9b015ae839$export$23f548e970bdf099);
|
|
33
16
|
|
|
34
17
|
|
|
35
18
|
var $1bcaad54abc442a2$exports = {};
|
|
36
19
|
var $15c26e9e75543508$exports = {};
|
|
37
|
-
$15c26e9e75543508$exports =
|
|
20
|
+
$15c26e9e75543508$exports = {
|
|
21
|
+
"decrease": (args)=>`خفض ${args.fieldLabel}`
|
|
22
|
+
,
|
|
23
|
+
"increase": (args)=>`زيادة ${args.fieldLabel}`
|
|
24
|
+
,
|
|
25
|
+
"numberField": `حقل رقمي`
|
|
26
|
+
};
|
|
38
27
|
|
|
39
28
|
|
|
40
29
|
var $2d346802965e5c25$exports = {};
|
|
41
|
-
$2d346802965e5c25$exports =
|
|
30
|
+
$2d346802965e5c25$exports = {
|
|
31
|
+
"decrease": (args)=>`Намаляване ${args.fieldLabel}`
|
|
32
|
+
,
|
|
33
|
+
"increase": (args)=>`Усилване ${args.fieldLabel}`
|
|
34
|
+
,
|
|
35
|
+
"numberField": `Номер на полето`
|
|
36
|
+
};
|
|
42
37
|
|
|
43
38
|
|
|
44
39
|
var $09893e85abdd2974$exports = {};
|
|
45
|
-
$09893e85abdd2974$exports =
|
|
40
|
+
$09893e85abdd2974$exports = {
|
|
41
|
+
"decrease": (args)=>`Snížit ${args.fieldLabel}`
|
|
42
|
+
,
|
|
43
|
+
"increase": (args)=>`Zvýšit ${args.fieldLabel}`
|
|
44
|
+
,
|
|
45
|
+
"numberField": `Číselné pole`
|
|
46
|
+
};
|
|
46
47
|
|
|
47
48
|
|
|
48
49
|
var $413bf45f477fb4e1$exports = {};
|
|
49
|
-
$413bf45f477fb4e1$exports =
|
|
50
|
+
$413bf45f477fb4e1$exports = {
|
|
51
|
+
"decrease": (args)=>`Reducer ${args.fieldLabel}`
|
|
52
|
+
,
|
|
53
|
+
"increase": (args)=>`Øg ${args.fieldLabel}`
|
|
54
|
+
,
|
|
55
|
+
"numberField": `Talfelt`
|
|
56
|
+
};
|
|
50
57
|
|
|
51
58
|
|
|
52
59
|
var $2727845e2efab680$exports = {};
|
|
53
|
-
$2727845e2efab680$exports =
|
|
60
|
+
$2727845e2efab680$exports = {
|
|
61
|
+
"decrease": (args)=>`${args.fieldLabel} verringern`
|
|
62
|
+
,
|
|
63
|
+
"increase": (args)=>`${args.fieldLabel} erhöhen`
|
|
64
|
+
,
|
|
65
|
+
"numberField": `Nummernfeld`
|
|
66
|
+
};
|
|
54
67
|
|
|
55
68
|
|
|
56
69
|
var $11030a3afacdbc2e$exports = {};
|
|
57
|
-
$11030a3afacdbc2e$exports =
|
|
70
|
+
$11030a3afacdbc2e$exports = {
|
|
71
|
+
"decrease": (args)=>`Μείωση ${args.fieldLabel}`
|
|
72
|
+
,
|
|
73
|
+
"increase": (args)=>`Αύξηση ${args.fieldLabel}`
|
|
74
|
+
,
|
|
75
|
+
"numberField": `Πεδίο αριθμού`
|
|
76
|
+
};
|
|
58
77
|
|
|
59
78
|
|
|
60
79
|
var $1e48617299cb10e8$exports = {};
|
|
61
|
-
$1e48617299cb10e8$exports =
|
|
80
|
+
$1e48617299cb10e8$exports = {
|
|
81
|
+
"decrease": (args)=>`Decrease ${args.fieldLabel}`
|
|
82
|
+
,
|
|
83
|
+
"increase": (args)=>`Increase ${args.fieldLabel}`
|
|
84
|
+
,
|
|
85
|
+
"numberField": `Number field`
|
|
86
|
+
};
|
|
62
87
|
|
|
63
88
|
|
|
64
89
|
var $335176f389a02847$exports = {};
|
|
65
|
-
$335176f389a02847$exports =
|
|
90
|
+
$335176f389a02847$exports = {
|
|
91
|
+
"decrease": (args)=>`Reducir ${args.fieldLabel}`
|
|
92
|
+
,
|
|
93
|
+
"increase": (args)=>`Aumentar ${args.fieldLabel}`
|
|
94
|
+
,
|
|
95
|
+
"numberField": `Campo de número`
|
|
96
|
+
};
|
|
66
97
|
|
|
67
98
|
|
|
68
99
|
var $b08e7fdc34a812f3$exports = {};
|
|
69
|
-
$b08e7fdc34a812f3$exports =
|
|
100
|
+
$b08e7fdc34a812f3$exports = {
|
|
101
|
+
"decrease": (args)=>`Vähenda ${args.fieldLabel}`
|
|
102
|
+
,
|
|
103
|
+
"increase": (args)=>`Suurenda ${args.fieldLabel}`
|
|
104
|
+
,
|
|
105
|
+
"numberField": `Numbri väli`
|
|
106
|
+
};
|
|
70
107
|
|
|
71
108
|
|
|
72
109
|
var $ce4c5a1eb7e6fc96$exports = {};
|
|
73
|
-
$ce4c5a1eb7e6fc96$exports =
|
|
110
|
+
$ce4c5a1eb7e6fc96$exports = {
|
|
111
|
+
"decrease": (args)=>`Vähennä ${args.fieldLabel}`
|
|
112
|
+
,
|
|
113
|
+
"increase": (args)=>`Lisää ${args.fieldLabel}`
|
|
114
|
+
,
|
|
115
|
+
"numberField": `Numerokenttä`
|
|
116
|
+
};
|
|
74
117
|
|
|
75
118
|
|
|
76
119
|
var $341f988ce23c559c$exports = {};
|
|
77
|
-
$341f988ce23c559c$exports =
|
|
120
|
+
$341f988ce23c559c$exports = {
|
|
121
|
+
"decrease": (args)=>`Diminuer ${args.fieldLabel}`
|
|
122
|
+
,
|
|
123
|
+
"increase": (args)=>`Augmenter ${args.fieldLabel}`
|
|
124
|
+
,
|
|
125
|
+
"numberField": `Champ de nombre`
|
|
126
|
+
};
|
|
78
127
|
|
|
79
128
|
|
|
80
129
|
var $950fd1a1d57d2f86$exports = {};
|
|
81
|
-
$950fd1a1d57d2f86$exports =
|
|
130
|
+
$950fd1a1d57d2f86$exports = {
|
|
131
|
+
"decrease": (args)=>`הקטן ${args.fieldLabel}`
|
|
132
|
+
,
|
|
133
|
+
"increase": (args)=>`הגדל ${args.fieldLabel}`
|
|
134
|
+
,
|
|
135
|
+
"numberField": `שדה מספר`
|
|
136
|
+
};
|
|
82
137
|
|
|
83
138
|
|
|
84
139
|
var $7b949fa64cf10a07$exports = {};
|
|
85
|
-
$7b949fa64cf10a07$exports =
|
|
140
|
+
$7b949fa64cf10a07$exports = {
|
|
141
|
+
"decrease": (args)=>`Smanji ${args.fieldLabel}`
|
|
142
|
+
,
|
|
143
|
+
"increase": (args)=>`Povećaj ${args.fieldLabel}`
|
|
144
|
+
,
|
|
145
|
+
"numberField": `Polje broja`
|
|
146
|
+
};
|
|
86
147
|
|
|
87
148
|
|
|
88
149
|
var $a945ff6d5cb9cf90$exports = {};
|
|
89
|
-
$a945ff6d5cb9cf90$exports =
|
|
150
|
+
$a945ff6d5cb9cf90$exports = {
|
|
151
|
+
"decrease": (args)=>`${args.fieldLabel} csökkentése`
|
|
152
|
+
,
|
|
153
|
+
"increase": (args)=>`${args.fieldLabel} növelése`
|
|
154
|
+
,
|
|
155
|
+
"numberField": `Számmező`
|
|
156
|
+
};
|
|
90
157
|
|
|
91
158
|
|
|
92
159
|
var $f3393075c1f078d7$exports = {};
|
|
93
|
-
$f3393075c1f078d7$exports =
|
|
160
|
+
$f3393075c1f078d7$exports = {
|
|
161
|
+
"decrease": (args)=>`Riduci ${args.fieldLabel}`
|
|
162
|
+
,
|
|
163
|
+
"increase": (args)=>`Aumenta ${args.fieldLabel}`
|
|
164
|
+
,
|
|
165
|
+
"numberField": `Campo numero`
|
|
166
|
+
};
|
|
94
167
|
|
|
95
168
|
|
|
96
169
|
var $a12655e072ef354d$exports = {};
|
|
97
|
-
$a12655e072ef354d$exports =
|
|
170
|
+
$a12655e072ef354d$exports = {
|
|
171
|
+
"decrease": (args)=>`${args.fieldLabel}を縮小`
|
|
172
|
+
,
|
|
173
|
+
"increase": (args)=>`${args.fieldLabel}を拡大`
|
|
174
|
+
,
|
|
175
|
+
"numberField": `数値フィールド`
|
|
176
|
+
};
|
|
98
177
|
|
|
99
178
|
|
|
100
179
|
var $880dbee0519c1bad$exports = {};
|
|
101
|
-
$880dbee0519c1bad$exports =
|
|
180
|
+
$880dbee0519c1bad$exports = {
|
|
181
|
+
"decrease": (args)=>`${args.fieldLabel} 감소`
|
|
182
|
+
,
|
|
183
|
+
"increase": (args)=>`${args.fieldLabel} 증가`
|
|
184
|
+
,
|
|
185
|
+
"numberField": `번호 필드`
|
|
186
|
+
};
|
|
102
187
|
|
|
103
188
|
|
|
104
189
|
var $d4a9630b079105aa$exports = {};
|
|
105
|
-
$d4a9630b079105aa$exports =
|
|
190
|
+
$d4a9630b079105aa$exports = {
|
|
191
|
+
"decrease": (args)=>`Sumažinti ${args.fieldLabel}`
|
|
192
|
+
,
|
|
193
|
+
"increase": (args)=>`Padidinti ${args.fieldLabel}`
|
|
194
|
+
,
|
|
195
|
+
"numberField": `Numerio laukas`
|
|
196
|
+
};
|
|
106
197
|
|
|
107
198
|
|
|
108
199
|
var $e358cd3315986eb7$exports = {};
|
|
109
|
-
$e358cd3315986eb7$exports =
|
|
200
|
+
$e358cd3315986eb7$exports = {
|
|
201
|
+
"decrease": (args)=>`Samazināšana ${args.fieldLabel}`
|
|
202
|
+
,
|
|
203
|
+
"increase": (args)=>`Palielināšana ${args.fieldLabel}`
|
|
204
|
+
,
|
|
205
|
+
"numberField": `Skaitļu lauks`
|
|
206
|
+
};
|
|
110
207
|
|
|
111
208
|
|
|
112
209
|
var $a8d0ee8ec28363c7$exports = {};
|
|
113
|
-
$a8d0ee8ec28363c7$exports =
|
|
210
|
+
$a8d0ee8ec28363c7$exports = {
|
|
211
|
+
"decrease": (args)=>`Reduser ${args.fieldLabel}`
|
|
212
|
+
,
|
|
213
|
+
"increase": (args)=>`Øk ${args.fieldLabel}`
|
|
214
|
+
,
|
|
215
|
+
"numberField": `Tallfelt`
|
|
216
|
+
};
|
|
114
217
|
|
|
115
218
|
|
|
116
219
|
var $0073957e0c754983$exports = {};
|
|
117
|
-
$0073957e0c754983$exports =
|
|
220
|
+
$0073957e0c754983$exports = {
|
|
221
|
+
"decrease": (args)=>`${args.fieldLabel} verlagen`
|
|
222
|
+
,
|
|
223
|
+
"increase": (args)=>`${args.fieldLabel} verhogen`
|
|
224
|
+
,
|
|
225
|
+
"numberField": `Getalveld`
|
|
226
|
+
};
|
|
118
227
|
|
|
119
228
|
|
|
120
229
|
var $51626cc4fccef54e$exports = {};
|
|
121
|
-
$51626cc4fccef54e$exports =
|
|
230
|
+
$51626cc4fccef54e$exports = {
|
|
231
|
+
"decrease": (args)=>`Zmniejsz ${args.fieldLabel}`
|
|
232
|
+
,
|
|
233
|
+
"increase": (args)=>`Zwiększ ${args.fieldLabel}`
|
|
234
|
+
,
|
|
235
|
+
"numberField": `Pole numeru`
|
|
236
|
+
};
|
|
122
237
|
|
|
123
238
|
|
|
124
239
|
var $60b1cee412b56d27$exports = {};
|
|
125
|
-
$60b1cee412b56d27$exports =
|
|
240
|
+
$60b1cee412b56d27$exports = {
|
|
241
|
+
"decrease": (args)=>`Diminuir ${args.fieldLabel}`
|
|
242
|
+
,
|
|
243
|
+
"increase": (args)=>`Aumentar ${args.fieldLabel}`
|
|
244
|
+
,
|
|
245
|
+
"numberField": `Campo de número`
|
|
246
|
+
};
|
|
126
247
|
|
|
127
248
|
|
|
128
249
|
var $df9c7cc4e8072a0f$exports = {};
|
|
129
|
-
$df9c7cc4e8072a0f$exports =
|
|
250
|
+
$df9c7cc4e8072a0f$exports = {
|
|
251
|
+
"decrease": (args)=>`Diminuir ${args.fieldLabel}`
|
|
252
|
+
,
|
|
253
|
+
"increase": (args)=>`Aumentar ${args.fieldLabel}`
|
|
254
|
+
,
|
|
255
|
+
"numberField": `Campo numérico`
|
|
256
|
+
};
|
|
130
257
|
|
|
131
258
|
|
|
132
259
|
var $aea54857f9df076d$exports = {};
|
|
133
|
-
$aea54857f9df076d$exports =
|
|
260
|
+
$aea54857f9df076d$exports = {
|
|
261
|
+
"decrease": (args)=>`Scădere ${args.fieldLabel}`
|
|
262
|
+
,
|
|
263
|
+
"increase": (args)=>`Creștere ${args.fieldLabel}`
|
|
264
|
+
,
|
|
265
|
+
"numberField": `Câmp numeric`
|
|
266
|
+
};
|
|
134
267
|
|
|
135
268
|
|
|
136
269
|
var $8337ebc47a7e61a3$exports = {};
|
|
137
|
-
$8337ebc47a7e61a3$exports =
|
|
270
|
+
$8337ebc47a7e61a3$exports = {
|
|
271
|
+
"decrease": (args)=>`Уменьшение ${args.fieldLabel}`
|
|
272
|
+
,
|
|
273
|
+
"increase": (args)=>`Увеличение ${args.fieldLabel}`
|
|
274
|
+
,
|
|
275
|
+
"numberField": `Числовое поле`
|
|
276
|
+
};
|
|
138
277
|
|
|
139
278
|
|
|
140
279
|
var $4703837f8f4224f8$exports = {};
|
|
141
|
-
$4703837f8f4224f8$exports =
|
|
280
|
+
$4703837f8f4224f8$exports = {
|
|
281
|
+
"decrease": (args)=>`Znížiť ${args.fieldLabel}`
|
|
282
|
+
,
|
|
283
|
+
"increase": (args)=>`Zvýšiť ${args.fieldLabel}`
|
|
284
|
+
,
|
|
285
|
+
"numberField": `Číselné pole`
|
|
286
|
+
};
|
|
142
287
|
|
|
143
288
|
|
|
144
289
|
var $2b9c8b37ab5bbcca$exports = {};
|
|
145
|
-
$2b9c8b37ab5bbcca$exports =
|
|
290
|
+
$2b9c8b37ab5bbcca$exports = {
|
|
291
|
+
"decrease": (args)=>`Upadati ${args.fieldLabel}`
|
|
292
|
+
,
|
|
293
|
+
"increase": (args)=>`Povečajte ${args.fieldLabel}`
|
|
294
|
+
,
|
|
295
|
+
"numberField": `Številčno polje`
|
|
296
|
+
};
|
|
146
297
|
|
|
147
298
|
|
|
148
299
|
var $2c78665a3b81ed56$exports = {};
|
|
149
|
-
$2c78665a3b81ed56$exports =
|
|
300
|
+
$2c78665a3b81ed56$exports = {
|
|
301
|
+
"decrease": (args)=>`Decrease ${args.fieldLabel}`
|
|
302
|
+
,
|
|
303
|
+
"increase": (args)=>`Increase ${args.fieldLabel}`
|
|
304
|
+
,
|
|
305
|
+
"numberField": `Number field`
|
|
306
|
+
};
|
|
150
307
|
|
|
151
308
|
|
|
152
309
|
var $8da5dab2105c0d01$exports = {};
|
|
153
|
-
$8da5dab2105c0d01$exports =
|
|
310
|
+
$8da5dab2105c0d01$exports = {
|
|
311
|
+
"decrease": (args)=>`Minska ${args.fieldLabel}`
|
|
312
|
+
,
|
|
313
|
+
"increase": (args)=>`Öka ${args.fieldLabel}`
|
|
314
|
+
,
|
|
315
|
+
"numberField": `Nummerfält`
|
|
316
|
+
};
|
|
154
317
|
|
|
155
318
|
|
|
156
319
|
var $73a2418cb50e8fda$exports = {};
|
|
157
|
-
$73a2418cb50e8fda$exports =
|
|
320
|
+
$73a2418cb50e8fda$exports = {
|
|
321
|
+
"decrease": (args)=>`${args.fieldLabel} azalt`
|
|
322
|
+
,
|
|
323
|
+
"increase": (args)=>`${args.fieldLabel} arttır`
|
|
324
|
+
,
|
|
325
|
+
"numberField": `Sayı alanı`
|
|
326
|
+
};
|
|
158
327
|
|
|
159
328
|
|
|
160
329
|
var $9c85d1989bb8c41d$exports = {};
|
|
161
|
-
$9c85d1989bb8c41d$exports =
|
|
330
|
+
$9c85d1989bb8c41d$exports = {
|
|
331
|
+
"decrease": (args)=>`Зменшити ${args.fieldLabel}`
|
|
332
|
+
,
|
|
333
|
+
"increase": (args)=>`Збільшити ${args.fieldLabel}`
|
|
334
|
+
,
|
|
335
|
+
"numberField": `Поле номера`
|
|
336
|
+
};
|
|
162
337
|
|
|
163
338
|
|
|
164
339
|
var $a7db09d81aa41beb$exports = {};
|
|
165
|
-
$a7db09d81aa41beb$exports =
|
|
340
|
+
$a7db09d81aa41beb$exports = {
|
|
341
|
+
"decrease": (args)=>`降低 ${args.fieldLabel}`
|
|
342
|
+
,
|
|
343
|
+
"increase": (args)=>`提高 ${args.fieldLabel}`
|
|
344
|
+
,
|
|
345
|
+
"numberField": `数字字段`
|
|
346
|
+
};
|
|
166
347
|
|
|
167
348
|
|
|
168
349
|
var $edd6ee4675b7a1cd$exports = {};
|
|
169
|
-
$edd6ee4675b7a1cd$exports =
|
|
350
|
+
$edd6ee4675b7a1cd$exports = {
|
|
351
|
+
"decrease": (args)=>`縮小 ${args.fieldLabel}`
|
|
352
|
+
,
|
|
353
|
+
"increase": (args)=>`放大 ${args.fieldLabel}`
|
|
354
|
+
,
|
|
355
|
+
"numberField": `數字欄位`
|
|
356
|
+
};
|
|
170
357
|
|
|
171
358
|
|
|
172
359
|
$1bcaad54abc442a2$exports = {
|
|
@@ -213,9 +400,10 @@ $1bcaad54abc442a2$exports = {
|
|
|
213
400
|
|
|
214
401
|
|
|
215
402
|
function $fa863e9b015ae839$export$23f548e970bdf099(props, state, inputRef) {
|
|
216
|
-
let { id: id , decrementAriaLabel: decrementAriaLabel , incrementAriaLabel: incrementAriaLabel , isDisabled: isDisabled , isReadOnly: isReadOnly , isRequired: isRequired , minValue: minValue , maxValue: maxValue , autoFocus: autoFocus , validationState: validationState , label: label , formatOptions: formatOptions , onBlur: onBlur
|
|
403
|
+
let { id: id , decrementAriaLabel: decrementAriaLabel , incrementAriaLabel: incrementAriaLabel , isDisabled: isDisabled , isReadOnly: isReadOnly , isRequired: isRequired , minValue: minValue , maxValue: maxValue , autoFocus: autoFocus , validationState: validationState , label: label , formatOptions: formatOptions , onBlur: onBlur = ()=>{
|
|
404
|
+
} , onFocus: onFocus , onFocusChange: onFocusChange , onKeyDown: onKeyDown , onKeyUp: onKeyUp , description: description , errorMessage: errorMessage , ...otherProps } = props;
|
|
217
405
|
let { increment: increment , incrementToMax: incrementToMax , decrement: decrement , decrementToMin: decrementToMin , numberValue: numberValue , commit: commit } = state;
|
|
218
|
-
const
|
|
406
|
+
const stringFormatter = $2wEZH$reactariai18n.useLocalizedStringFormatter((/*@__PURE__*/$parcel$interopDefault($1bcaad54abc442a2$exports)));
|
|
219
407
|
let inputId = $2wEZH$reactariautils.useId(id);
|
|
220
408
|
let { focusProps: focusProps } = $2wEZH$reactariainteractions.useFocus({
|
|
221
409
|
onBlur: ()=>{
|
|
@@ -313,11 +501,11 @@ function $fa863e9b015ae839$export$23f548e970bdf099(props, state, inputRef) {
|
|
|
313
501
|
description: description,
|
|
314
502
|
errorMessage: errorMessage
|
|
315
503
|
}, state, inputRef);
|
|
316
|
-
let inputProps = $2wEZH$reactariautils.mergeProps(spinButtonProps,
|
|
504
|
+
let inputProps = $2wEZH$reactariautils.mergeProps(spinButtonProps, focusProps, textFieldProps, {
|
|
317
505
|
// override the spinbutton role, we can't focus a spin button with VO
|
|
318
506
|
role: null,
|
|
319
507
|
// ignore aria-roledescription on iOS so that required state will announce when it is present
|
|
320
|
-
'aria-roledescription': !$2wEZH$reactariautils.isIOS() ?
|
|
508
|
+
'aria-roledescription': !$2wEZH$reactariautils.isIOS() ? stringFormatter.format('numberField') : null,
|
|
321
509
|
'aria-valuemax': null,
|
|
322
510
|
'aria-valuemin': null,
|
|
323
511
|
'aria-valuenow': null,
|
|
@@ -351,7 +539,7 @@ function $fa863e9b015ae839$export$23f548e970bdf099(props, state, inputRef) {
|
|
|
351
539
|
let incrementId = $2wEZH$reactariautils.useId();
|
|
352
540
|
let decrementId = $2wEZH$reactariautils.useId();
|
|
353
541
|
let incrementButtonProps = $2wEZH$reactariautils.mergeProps(incButtonProps, {
|
|
354
|
-
'aria-label': incrementAriaLabel ||
|
|
542
|
+
'aria-label': incrementAriaLabel || stringFormatter.format('increase', {
|
|
355
543
|
fieldLabel: fieldLabel
|
|
356
544
|
}).trim(),
|
|
357
545
|
id: ariaLabelledby && !incrementAriaLabel ? incrementId : null,
|
|
@@ -364,7 +552,7 @@ function $fa863e9b015ae839$export$23f548e970bdf099(props, state, inputRef) {
|
|
|
364
552
|
onPressStart: onButtonPressStart
|
|
365
553
|
});
|
|
366
554
|
let decrementButtonProps = $2wEZH$reactariautils.mergeProps(decButtonProps, {
|
|
367
|
-
'aria-label': decrementAriaLabel ||
|
|
555
|
+
'aria-label': decrementAriaLabel || stringFormatter.format('decrease', {
|
|
368
556
|
fieldLabel: fieldLabel
|
|
369
557
|
}).trim(),
|
|
370
558
|
id: ariaLabelledby && !decrementAriaLabel ? decrementId : null,
|
|
@@ -393,7 +581,6 @@ function $fa863e9b015ae839$export$23f548e970bdf099(props, state, inputRef) {
|
|
|
393
581
|
}
|
|
394
582
|
|
|
395
583
|
|
|
396
|
-
$parcel$exportWildcard(module.exports, $fa863e9b015ae839$exports);
|
|
397
584
|
|
|
398
585
|
|
|
399
586
|
//# sourceMappingURL=main.js.map
|
package/dist/main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iB,kBAAE,cAAc,KAAK,kBAAkB,MAAM,WAAW,CAAC,CAAC,EAAE,cAAc,KAAK,IAAI;QACpG,CAAe,gBAAE,OAAO;QACxB,mBAAmB,EAAE,IAAI;QACzB,mBAAmB,EAAE,IAAI;QACzB,sBAAsB,EAAE,IAAI;QAC5B,UAAU,GAAG,KAAK,CAAC,YAAY;QAC/B,YAAY,EAAE,kBAAkB;IAClC,CAAC;IAED,MAAM,CAAC,CAAC;QACN,UAAU,EAAE,CAAC;YACX,IAAI,EAAE,CAAO;YACb,CAAe,gBAAE,UAAU;YAC3B,CAAc,eAAE,eAAe,KAAK,CAAS,WAAG,CAAM,QAAG,SAAS;eAC/D,gBAAgB;QACrB,CAAC;oBACD,UAAU;oBACV,UAAU;8BACV,oBAAoB;8BACpB,oBAAoB;2BACpB,iBAAiB;0BACjB,gBAAgB;IAClB,CAAC;AACH,CAAC","sources":["packages/@react-aria/numberfield/src/index.ts","packages/@react-aria/numberfield/src/useNumberField.ts","packages/@react-aria/numberfield/intl/*.js","packages/@react-aria/numberfield/intl/ar-AE.json","packages/@react-aria/numberfield/intl/bg-BG.json","packages/@react-aria/numberfield/intl/cs-CZ.json","packages/@react-aria/numberfield/intl/da-DK.json","packages/@react-aria/numberfield/intl/de-DE.json","packages/@react-aria/numberfield/intl/el-GR.json","packages/@react-aria/numberfield/intl/en-US.json","packages/@react-aria/numberfield/intl/es-ES.json","packages/@react-aria/numberfield/intl/et-EE.json","packages/@react-aria/numberfield/intl/fi-FI.json","packages/@react-aria/numberfield/intl/fr-FR.json","packages/@react-aria/numberfield/intl/he-IL.json","packages/@react-aria/numberfield/intl/hr-HR.json","packages/@react-aria/numberfield/intl/hu-HU.json","packages/@react-aria/numberfield/intl/it-IT.json","packages/@react-aria/numberfield/intl/ja-JP.json","packages/@react-aria/numberfield/intl/ko-KR.json","packages/@react-aria/numberfield/intl/lt-LT.json","packages/@react-aria/numberfield/intl/lv-LV.json","packages/@react-aria/numberfield/intl/nb-NO.json","packages/@react-aria/numberfield/intl/nl-NL.json","packages/@react-aria/numberfield/intl/pl-PL.json","packages/@react-aria/numberfield/intl/pt-BR.json","packages/@react-aria/numberfield/intl/pt-PT.json","packages/@react-aria/numberfield/intl/ro-RO.json","packages/@react-aria/numberfield/intl/ru-RU.json","packages/@react-aria/numberfield/intl/sk-SK.json","packages/@react-aria/numberfield/intl/sl-SI.json","packages/@react-aria/numberfield/intl/sr-SP.json","packages/@react-aria/numberfield/intl/sv-SE.json","packages/@react-aria/numberfield/intl/tr-TR.json","packages/@react-aria/numberfield/intl/uk-UA.json","packages/@react-aria/numberfield/intl/zh-CN.json","packages/@react-aria/numberfield/intl/zh-TW.json"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport * from './useNumberField';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaButtonProps} from '@react-types/button';\nimport {AriaNumberFieldProps} from '@react-types/numberfield';\nimport {filterDOMProps, isAndroid, isIOS, isIPhone, mergeProps, useId} from '@react-aria/utils';\nimport {\n HTMLAttributes,\n InputHTMLAttributes,\n LabelHTMLAttributes,\n RefObject,\n useCallback,\n useMemo,\n useState\n} from 'react';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {NumberFieldState} from '@react-stately/numberfield';\nimport {TextInputDOMProps} from '@react-types/shared';\nimport {useFocus, useFocusWithin} from '@react-aria/interactions';\nimport {useFormattedTextField} from '@react-aria/textfield';\nimport {\n useMessageFormatter,\n useNumberFormatter\n} from '@react-aria/i18n';\nimport {useScrollWheel} from '@react-aria/interactions';\nimport {useSpinButton} from '@react-aria/spinbutton';\n\ninterface NumberFieldAria {\n /** Props for the label element. */\n labelProps: LabelHTMLAttributes<HTMLLabelElement>,\n /** Props for the group wrapper around the input and stepper buttons. */\n groupProps: HTMLAttributes<HTMLElement>,\n /** Props for the input element. */\n inputProps: InputHTMLAttributes<HTMLInputElement>,\n /** Props for the increment button, to be passed to [useButton](useButton.html). */\n incrementButtonProps: AriaButtonProps,\n /** Props for the decrement button, to be passed to [useButton](useButton.html). */\n decrementButtonProps: AriaButtonProps,\n /** Props for the number field's description element, if any. */\n descriptionProps: HTMLAttributes<HTMLElement>,\n /** Props for the number field's error message element, if any. */\n errorMessageProps: HTMLAttributes<HTMLElement>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a number field component.\n * Number fields allow users to enter a number, and increment or decrement the value using stepper buttons.\n */\nexport function useNumberField(props: AriaNumberFieldProps, state: NumberFieldState, inputRef: RefObject<HTMLInputElement>): NumberFieldAria {\n let {\n id,\n decrementAriaLabel,\n incrementAriaLabel,\n isDisabled,\n isReadOnly,\n isRequired,\n minValue,\n maxValue,\n autoFocus,\n validationState,\n label,\n formatOptions,\n onBlur,\n onFocus,\n onFocusChange,\n onKeyDown,\n onKeyUp,\n description,\n errorMessage,\n ...otherProps\n } = props;\n\n let {\n increment,\n incrementToMax,\n decrement,\n decrementToMin,\n numberValue,\n commit\n } = state;\n\n const formatMessage = useMessageFormatter(intlMessages);\n\n let inputId = useId(id);\n\n let {focusProps} = useFocus({\n onBlur: () => {\n // Set input value to normalized valid value\n commit();\n }\n });\n\n let {\n spinButtonProps,\n incrementButtonProps: incButtonProps,\n decrementButtonProps: decButtonProps\n } = useSpinButton(\n {\n isDisabled,\n isReadOnly,\n isRequired,\n maxValue,\n minValue,\n onIncrement: increment,\n onIncrementToMax: incrementToMax,\n onDecrement: decrement,\n onDecrementToMin: decrementToMin,\n value: numberValue,\n textValue: state.inputValue\n }\n );\n\n let [focusWithin, setFocusWithin] = useState(false);\n let {focusWithinProps} = useFocusWithin({isDisabled, onFocusWithinChange: setFocusWithin});\n\n let onWheel = useCallback((e) => {\n // if on a trackpad, users can scroll in both X and Y at once, check the magnitude of the change\n // if it's mostly in the X direction, then just return, the user probably doesn't mean to inc/dec\n // this isn't perfect, events come in fast with small deltas and a part of the scroll may give a false indication\n // especially if the user is scrolling near 45deg\n if (Math.abs(e.deltaY) <= Math.abs(e.deltaX)) {\n return;\n }\n if (e.deltaY > 0) {\n increment();\n } else if (e.deltaY < 0) {\n decrement();\n }\n }, [decrement, increment]);\n // If the input isn't supposed to receive input, disable scrolling.\n let scrollingDisabled = isDisabled || isReadOnly || !focusWithin;\n useScrollWheel({onScroll: onWheel, isDisabled: scrollingDisabled}, inputRef);\n\n // The inputMode attribute influences the software keyboard that is shown on touch devices.\n // Browsers and operating systems are quite inconsistent about what keys are available, however.\n // We choose between numeric and decimal based on whether we allow negative and fractional numbers,\n // and based on testing on various devices to determine what keys are available in each inputMode.\n let numberFormatter = useNumberFormatter(formatOptions);\n let intlOptions = useMemo(() => numberFormatter.resolvedOptions(), [numberFormatter]);\n let hasDecimals = intlOptions.maximumFractionDigits > 0;\n let hasNegative = isNaN(state.minValue) || state.minValue < 0;\n let inputMode: TextInputDOMProps['inputMode'] = 'numeric';\n if (isIPhone()) {\n // iPhone doesn't have a minus sign in either numeric or decimal.\n // Note this is only for iPhone, not iPad, which always has both\n // minus and decimal in numeric.\n if (hasNegative) {\n inputMode = 'text';\n } else if (hasDecimals) {\n inputMode = 'decimal';\n }\n } else if (isAndroid()) {\n // Android numeric has both a decimal point and minus key.\n // decimal does not have a minus key.\n if (hasNegative) {\n inputMode = 'numeric';\n } else if (hasDecimals) {\n inputMode = 'decimal';\n }\n }\n\n let onChange = value => {\n state.setInputValue(value);\n };\n\n let domProps = filterDOMProps(props);\n\n let {labelProps, inputProps: textFieldProps, descriptionProps, errorMessageProps} = useFormattedTextField({\n ...otherProps,\n ...domProps,\n label,\n autoFocus,\n isDisabled,\n isReadOnly,\n isRequired,\n validationState,\n value: state.inputValue,\n defaultValue: undefined, // defaultValue already used to populate state.inputValue, unneeded here\n autoComplete: 'off',\n 'aria-label': props['aria-label'] || null,\n 'aria-labelledby': props['aria-labelledby'] || null,\n id: inputId,\n type: 'text', // Can't use type=\"number\" because then we can't have things like $ in the field.\n inputMode,\n onChange,\n onBlur,\n onFocus,\n onFocusChange,\n onKeyDown,\n onKeyUp,\n description,\n errorMessage\n }, state, inputRef);\n\n let inputProps = mergeProps(\n spinButtonProps,\n textFieldProps,\n focusProps,\n {\n // override the spinbutton role, we can't focus a spin button with VO\n role: null,\n // ignore aria-roledescription on iOS so that required state will announce when it is present\n 'aria-roledescription': (!isIOS() ? formatMessage('numberField') : null),\n 'aria-valuemax': null,\n 'aria-valuemin': null,\n 'aria-valuenow': null,\n 'aria-valuetext': null,\n autoCorrect: 'off',\n spellCheck: 'false'\n }\n );\n\n let onButtonPressStart = (e) => {\n // If focus is already on the input, keep it there so we don't hide the\n // software keyboard when tapping the increment/decrement buttons.\n if (document.activeElement === inputRef.current) {\n return;\n }\n\n // Otherwise, when using a mouse, move focus to the input.\n // On touch, or with a screen reader, focus the button so that the software\n // keyboard does not appear and the screen reader cursor is not moved off the button.\n if (e.pointerType === 'mouse') {\n inputRef.current.focus();\n } else {\n e.target.focus();\n }\n };\n\n // Determine the label for the increment and decrement buttons. There are 4 cases:\n //\n // 1. With a visible label that is a string: aria-label: `Increase ${props.label}`\n // 2. With a visible label that is JSX: aria-label: 'Increase', aria-labelledby: '${incrementId} ${labelId}'\n // 3. With an aria-label: aria-label: `Increase ${props['aria-label']}`\n // 4. With an aria-labelledby: aria-label: 'Increase', aria-labelledby: `${incrementId} ${props['aria-labelledby']}`\n //\n // (1) and (2) could possibly be combined and both use aria-labelledby. However, placing the label in\n // the aria-label string rather than using aria-labelledby gives more flexibility to translators to change\n // the order or add additional words around the label if needed.\n let fieldLabel = props['aria-label'] || (typeof props.label === 'string' ? props.label : '');\n let ariaLabelledby: string;\n if (!fieldLabel) {\n ariaLabelledby = props.label != null ? labelProps.id : props['aria-labelledby'];\n }\n\n let incrementId = useId();\n let decrementId = useId();\n\n let incrementButtonProps: AriaButtonProps = mergeProps(incButtonProps, {\n 'aria-label': incrementAriaLabel || formatMessage('increase', {fieldLabel}).trim(),\n id: ariaLabelledby && !incrementAriaLabel ? incrementId : null,\n 'aria-labelledby': ariaLabelledby && !incrementAriaLabel ? `${incrementId} ${ariaLabelledby}` : null,\n 'aria-controls': inputId,\n excludeFromTabOrder: true,\n preventFocusOnPress: true,\n allowFocusWhenDisabled: true,\n isDisabled: !state.canIncrement,\n onPressStart: onButtonPressStart\n });\n\n let decrementButtonProps: AriaButtonProps = mergeProps(decButtonProps, {\n 'aria-label': decrementAriaLabel || formatMessage('decrease', {fieldLabel}).trim(),\n id: ariaLabelledby && !decrementAriaLabel ? decrementId : null,\n 'aria-labelledby': ariaLabelledby && !decrementAriaLabel ? `${decrementId} ${ariaLabelledby}` : null,\n 'aria-controls': inputId,\n excludeFromTabOrder: true,\n preventFocusOnPress: true,\n allowFocusWhenDisabled: true,\n isDisabled: !state.canDecrement,\n onPressStart: onButtonPressStart\n });\n\n return {\n groupProps: {\n role: 'group',\n 'aria-disabled': isDisabled,\n 'aria-invalid': validationState === 'invalid' ? 'true' : undefined,\n ...focusWithinProps\n },\n labelProps,\n inputProps,\n incrementButtonProps,\n decrementButtonProps,\n errorMessageProps,\n descriptionProps\n };\n}\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"decrease\": \"خفض {fieldLabel}\",\n \"increase\": \"زيادة {fieldLabel}\",\n \"numberField\": \"حقل رقمي\"\n}\n","{\n \"decrease\": \"Намаляване {fieldLabel}\",\n \"increase\": \"Усилване {fieldLabel}\",\n \"numberField\": \"Номер на полето\"\n}\n","{\n \"decrease\": \"Snížit {fieldLabel}\",\n \"increase\": \"Zvýšit {fieldLabel}\",\n \"numberField\": \"Číselné pole\"\n}\n","{\n \"decrease\": \"Reducer {fieldLabel}\",\n \"increase\": \"Øg {fieldLabel}\",\n \"numberField\": \"Talfelt\"\n}\n","{\n \"decrease\": \"{fieldLabel} verringern\",\n \"increase\": \"{fieldLabel} erhöhen\",\n \"numberField\": \"Nummernfeld\"\n}\n","{\n \"decrease\": \"Μείωση {fieldLabel}\",\n \"increase\": \"Αύξηση {fieldLabel}\",\n \"numberField\": \"Πεδίο αριθμού\"\n}\n","{\n \"decrease\": \"Decrease {fieldLabel}\",\n \"increase\": \"Increase {fieldLabel}\",\n \"numberField\": \"Number field\"\n}\n","{\n \"decrease\": \"Reducir {fieldLabel}\",\n \"increase\": \"Aumentar {fieldLabel}\",\n \"numberField\": \"Campo de número\"\n}\n","{\n \"decrease\": \"Vähenda {fieldLabel}\",\n \"increase\": \"Suurenda {fieldLabel}\",\n \"numberField\": \"Numbri väli\"\n}\n","{\n \"decrease\": \"Vähennä {fieldLabel}\",\n \"increase\": \"Lisää {fieldLabel}\",\n \"numberField\": \"Numerokenttä\"\n}\n","{\n \"decrease\": \"Diminuer {fieldLabel}\",\n \"increase\": \"Augmenter {fieldLabel}\",\n \"numberField\": \"Champ de nombre\"\n}\n","{\n \"decrease\": \"הקטן {fieldLabel}\",\n \"increase\": \"הגדל {fieldLabel}\",\n \"numberField\": \"שדה מספר\"\n}\n","{\n \"decrease\": \"Smanji {fieldLabel}\",\n \"increase\": \"Povećaj {fieldLabel}\",\n \"numberField\": \"Polje broja\"\n}\n","{\n \"decrease\": \"{fieldLabel} csökkentése\",\n \"increase\": \"{fieldLabel} növelése\",\n \"numberField\": \"Számmező\"\n}\n","{\n \"decrease\": \"Riduci {fieldLabel}\",\n \"increase\": \"Aumenta {fieldLabel}\",\n \"numberField\": \"Campo numero\"\n}\n","{\n \"decrease\": \"{fieldLabel}を縮小\",\n \"increase\": \"{fieldLabel}を拡大\",\n \"numberField\": \"数値フィールド\"\n}\n","{\n \"decrease\": \"{fieldLabel} 감소\",\n \"increase\": \"{fieldLabel} 증가\",\n \"numberField\": \"번호 필드\"\n}\n","{\n \"decrease\": \"Sumažinti {fieldLabel}\",\n \"increase\": \"Padidinti {fieldLabel}\",\n \"numberField\": \"Numerio laukas\"\n}\n","{\n \"decrease\": \"Samazināšana {fieldLabel}\",\n \"increase\": \"Palielināšana {fieldLabel}\",\n \"numberField\": \"Skaitļu lauks\"\n}\n","{\n \"decrease\": \"Reduser {fieldLabel}\",\n \"increase\": \"Øk {fieldLabel}\",\n \"numberField\": \"Tallfelt\"\n}\n","{\n \"decrease\": \"{fieldLabel} verlagen\",\n \"increase\": \"{fieldLabel} verhogen\",\n \"numberField\": \"Getalveld\"\n}\n","{\n \"decrease\": \"Zmniejsz {fieldLabel}\",\n \"increase\": \"Zwiększ {fieldLabel}\",\n \"numberField\": \"Pole numeru\"\n}\n","{\n \"decrease\": \"Diminuir {fieldLabel}\",\n \"increase\": \"Aumentar {fieldLabel}\",\n \"numberField\": \"Campo de número\"\n}\n","{\n \"decrease\": \"Diminuir {fieldLabel}\",\n \"increase\": \"Aumentar {fieldLabel}\",\n \"numberField\": \"Campo numérico\"\n}\n","{\n \"decrease\": \"Scădere {fieldLabel}\",\n \"increase\": \"Creștere {fieldLabel}\",\n \"numberField\": \"Câmp numeric\"\n}\n","{\n \"decrease\": \"Уменьшение {fieldLabel}\",\n \"increase\": \"Увеличение {fieldLabel}\",\n \"numberField\": \"Числовое поле\"\n}\n","{\n \"decrease\": \"Znížiť {fieldLabel}\",\n \"increase\": \"Zvýšiť {fieldLabel}\",\n \"numberField\": \"Číselné pole\"\n}\n","{\n \"decrease\": \"Upadati {fieldLabel}\",\n \"increase\": \"Povečajte {fieldLabel}\",\n \"numberField\": \"Številčno polje\"\n}\n","{\n \"decrease\": \"Decrease {fieldLabel}\",\n \"increase\": \"Increase {fieldLabel}\",\n \"numberField\": \"Number field\"\n}\n","{\n \"decrease\": \"Minska {fieldLabel}\",\n \"increase\": \"Öka {fieldLabel}\",\n \"numberField\": \"Nummerfält\"\n}\n","{\n \"decrease\": \"{fieldLabel} azalt\",\n \"increase\": \"{fieldLabel} arttır\",\n \"numberField\": \"Sayı alanı\"\n}\n","{\n \"decrease\": \"Зменшити {fieldLabel}\",\n \"increase\": \"Збільшити {fieldLabel}\",\n \"numberField\": \"Поле номера\"\n}\n","{\n \"decrease\": \"降低 {fieldLabel}\",\n \"increase\": \"提高 {fieldLabel}\",\n \"numberField\": \"数字字段\"\n}\n","{\n \"decrease\": \"縮小 {fieldLabel}\",\n \"increase\": \"放大 {fieldLabel}\",\n \"numberField\": \"數字欄位\"\n}\n"],"names":[],"version":3,"file":"main.js.map"}
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;AGAA,yBAAc,GAAG,CAAC;IAAE,CAAU,YAAG,IAAI,IAAM,OAAI,EAAK,IAAI,CAAC,UAAU;;IAC9D,CAAO,YAAG,IAAI,IAAM,WAAM,EAAO,IAAI,CAAC,UAAU;;IAC9C,CAAQ,eAAG,eAAQ;AAC1B,CAAC;;;;ACHD,yBAAc,GAAG,CAAC;IAAE,CAAU,YA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/useNumberField.ts","packages/@react-aria/numberfield/intl/*.js","packages/@react-aria/numberfield/intl/ar-AE.json","packages/@react-aria/numberfield/intl/bg-BG.json","packages/@react-aria/numberfield/intl/cs-CZ.json","packages/@react-aria/numberfield/intl/da-DK.json","packages/@react-aria/numberfield/intl/de-DE.json","packages/@react-aria/numberfield/intl/el-GR.json","packages/@react-aria/numberfield/intl/en-US.json","packages/@react-aria/numberfield/intl/es-ES.json","packages/@react-aria/numberfield/intl/et-EE.json","packages/@react-aria/numberfield/intl/fi-FI.json","packages/@react-aria/numberfield/intl/fr-FR.json","packages/@react-aria/numberfield/intl/he-IL.json","packages/@react-aria/numberfield/intl/hr-HR.json","packages/@react-aria/numberfield/intl/hu-HU.json","packages/@react-aria/numberfield/intl/it-IT.json","packages/@react-aria/numberfield/intl/ja-JP.json","packages/@react-aria/numberfield/intl/ko-KR.json","packages/@react-aria/numberfield/intl/lt-LT.json","packages/@react-aria/numberfield/intl/lv-LV.json","packages/@react-aria/numberfield/intl/nb-NO.json","packages/@react-aria/numberfield/intl/nl-NL.json","packages/@react-aria/numberfield/intl/pl-PL.json","packages/@react-aria/numberfield/intl/pt-BR.json","packages/@react-aria/numberfield/intl/pt-PT.json","packages/@react-aria/numberfield/intl/ro-RO.json","packages/@react-aria/numberfield/intl/ru-RU.json","packages/@react-aria/numberfield/intl/sk-SK.json","packages/@react-aria/numberfield/intl/sl-SI.json","packages/@react-aria/numberfield/intl/sr-SP.json","packages/@react-aria/numberfield/intl/sv-SE.json","packages/@react-aria/numberfield/intl/tr-TR.json","packages/@react-aria/numberfield/intl/uk-UA.json","packages/@react-aria/numberfield/intl/zh-CN.json","packages/@react-aria/numberfield/intl/zh-TW.json"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\nexport {useNumberField} from './useNumberField';\nexport type {AriaNumberFieldProps} from '@react-types/numberfield';\nexport type {NumberFieldAria} from './useNumberField';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaButtonProps} from '@react-types/button';\nimport {AriaNumberFieldProps} from '@react-types/numberfield';\nimport {DOMAttributes, TextInputDOMProps} from '@react-types/shared';\nimport {filterDOMProps, isAndroid, isIOS, isIPhone, mergeProps, useId} from '@react-aria/utils';\nimport {\n InputHTMLAttributes,\n LabelHTMLAttributes,\n RefObject,\n useCallback,\n useMemo,\n useState\n} from 'react';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {NumberFieldState} from '@react-stately/numberfield';\nimport {useFocus, useFocusWithin} from '@react-aria/interactions';\nimport {useFormattedTextField} from '@react-aria/textfield';\nimport {\n useLocalizedStringFormatter,\n useNumberFormatter\n} from '@react-aria/i18n';\nimport {useScrollWheel} from '@react-aria/interactions';\nimport {useSpinButton} from '@react-aria/spinbutton';\n\nexport interface NumberFieldAria {\n /** Props for the label element. */\n labelProps: LabelHTMLAttributes<HTMLLabelElement>,\n /** Props for the group wrapper around the input and stepper buttons. */\n groupProps: DOMAttributes,\n /** Props for the input element. */\n inputProps: InputHTMLAttributes<HTMLInputElement>,\n /** Props for the increment button, to be passed to [useButton](useButton.html). */\n incrementButtonProps: AriaButtonProps,\n /** Props for the decrement button, to be passed to [useButton](useButton.html). */\n decrementButtonProps: AriaButtonProps,\n /** Props for the number field's description element, if any. */\n descriptionProps: DOMAttributes,\n /** Props for the number field's error message element, if any. */\n errorMessageProps: DOMAttributes\n}\n\n/**\n * Provides the behavior and accessibility implementation for a number field component.\n * Number fields allow users to enter a number, and increment or decrement the value using stepper buttons.\n */\nexport function useNumberField(props: AriaNumberFieldProps, state: NumberFieldState, inputRef: RefObject<HTMLInputElement>): NumberFieldAria {\n let {\n id,\n decrementAriaLabel,\n incrementAriaLabel,\n isDisabled,\n isReadOnly,\n isRequired,\n minValue,\n maxValue,\n autoFocus,\n validationState,\n label,\n formatOptions,\n onBlur = () => {},\n onFocus,\n onFocusChange,\n onKeyDown,\n onKeyUp,\n description,\n errorMessage,\n ...otherProps\n } = props;\n\n let {\n increment,\n incrementToMax,\n decrement,\n decrementToMin,\n numberValue,\n commit\n } = state;\n\n const stringFormatter = useLocalizedStringFormatter(intlMessages);\n\n let inputId = useId(id);\n\n let {focusProps} = useFocus({\n onBlur: () => {\n // Set input value to normalized valid value\n commit();\n }\n });\n\n let {\n spinButtonProps,\n incrementButtonProps: incButtonProps,\n decrementButtonProps: decButtonProps\n } = useSpinButton(\n {\n isDisabled,\n isReadOnly,\n isRequired,\n maxValue,\n minValue,\n onIncrement: increment,\n onIncrementToMax: incrementToMax,\n onDecrement: decrement,\n onDecrementToMin: decrementToMin,\n value: numberValue,\n textValue: state.inputValue\n }\n );\n\n let [focusWithin, setFocusWithin] = useState(false);\n let {focusWithinProps} = useFocusWithin({isDisabled, onFocusWithinChange: setFocusWithin});\n\n let onWheel = useCallback((e) => {\n // if on a trackpad, users can scroll in both X and Y at once, check the magnitude of the change\n // if it's mostly in the X direction, then just return, the user probably doesn't mean to inc/dec\n // this isn't perfect, events come in fast with small deltas and a part of the scroll may give a false indication\n // especially if the user is scrolling near 45deg\n if (Math.abs(e.deltaY) <= Math.abs(e.deltaX)) {\n return;\n }\n if (e.deltaY > 0) {\n increment();\n } else if (e.deltaY < 0) {\n decrement();\n }\n }, [decrement, increment]);\n // If the input isn't supposed to receive input, disable scrolling.\n let scrollingDisabled = isDisabled || isReadOnly || !focusWithin;\n useScrollWheel({onScroll: onWheel, isDisabled: scrollingDisabled}, inputRef);\n\n // The inputMode attribute influences the software keyboard that is shown on touch devices.\n // Browsers and operating systems are quite inconsistent about what keys are available, however.\n // We choose between numeric and decimal based on whether we allow negative and fractional numbers,\n // and based on testing on various devices to determine what keys are available in each inputMode.\n let numberFormatter = useNumberFormatter(formatOptions);\n let intlOptions = useMemo(() => numberFormatter.resolvedOptions(), [numberFormatter]);\n let hasDecimals = intlOptions.maximumFractionDigits > 0;\n let hasNegative = isNaN(state.minValue) || state.minValue < 0;\n let inputMode: TextInputDOMProps['inputMode'] = 'numeric';\n if (isIPhone()) {\n // iPhone doesn't have a minus sign in either numeric or decimal.\n // Note this is only for iPhone, not iPad, which always has both\n // minus and decimal in numeric.\n if (hasNegative) {\n inputMode = 'text';\n } else if (hasDecimals) {\n inputMode = 'decimal';\n }\n } else if (isAndroid()) {\n // Android numeric has both a decimal point and minus key.\n // decimal does not have a minus key.\n if (hasNegative) {\n inputMode = 'numeric';\n } else if (hasDecimals) {\n inputMode = 'decimal';\n }\n }\n\n let onChange = value => {\n state.setInputValue(value);\n };\n\n let domProps = filterDOMProps(props);\n\n let {labelProps, inputProps: textFieldProps, descriptionProps, errorMessageProps} = useFormattedTextField({\n ...otherProps,\n ...domProps,\n label,\n autoFocus,\n isDisabled,\n isReadOnly,\n isRequired,\n validationState,\n value: state.inputValue,\n defaultValue: undefined, // defaultValue already used to populate state.inputValue, unneeded here\n autoComplete: 'off',\n 'aria-label': props['aria-label'] || null,\n 'aria-labelledby': props['aria-labelledby'] || null,\n id: inputId,\n type: 'text', // Can't use type=\"number\" because then we can't have things like $ in the field.\n inputMode,\n onChange,\n onBlur,\n onFocus,\n onFocusChange,\n onKeyDown,\n onKeyUp,\n description,\n errorMessage\n }, state, inputRef);\n\n let inputProps = mergeProps(\n spinButtonProps,\n focusProps,\n textFieldProps,\n {\n // override the spinbutton role, we can't focus a spin button with VO\n role: null,\n // ignore aria-roledescription on iOS so that required state will announce when it is present\n 'aria-roledescription': (!isIOS() ? stringFormatter.format('numberField') : null),\n 'aria-valuemax': null,\n 'aria-valuemin': null,\n 'aria-valuenow': null,\n 'aria-valuetext': null,\n autoCorrect: 'off',\n spellCheck: 'false'\n }\n );\n\n let onButtonPressStart = (e) => {\n // If focus is already on the input, keep it there so we don't hide the\n // software keyboard when tapping the increment/decrement buttons.\n if (document.activeElement === inputRef.current) {\n return;\n }\n\n // Otherwise, when using a mouse, move focus to the input.\n // On touch, or with a screen reader, focus the button so that the software\n // keyboard does not appear and the screen reader cursor is not moved off the button.\n if (e.pointerType === 'mouse') {\n inputRef.current.focus();\n } else {\n e.target.focus();\n }\n };\n\n // Determine the label for the increment and decrement buttons. There are 4 cases:\n //\n // 1. With a visible label that is a string: aria-label: `Increase ${props.label}`\n // 2. With a visible label that is JSX: aria-label: 'Increase', aria-labelledby: '${incrementId} ${labelId}'\n // 3. With an aria-label: aria-label: `Increase ${props['aria-label']}`\n // 4. With an aria-labelledby: aria-label: 'Increase', aria-labelledby: `${incrementId} ${props['aria-labelledby']}`\n //\n // (1) and (2) could possibly be combined and both use aria-labelledby. However, placing the label in\n // the aria-label string rather than using aria-labelledby gives more flexibility to translators to change\n // the order or add additional words around the label if needed.\n let fieldLabel = props['aria-label'] || (typeof props.label === 'string' ? props.label : '');\n let ariaLabelledby: string;\n if (!fieldLabel) {\n ariaLabelledby = props.label != null ? labelProps.id : props['aria-labelledby'];\n }\n\n let incrementId = useId();\n let decrementId = useId();\n\n let incrementButtonProps: AriaButtonProps = mergeProps(incButtonProps, {\n 'aria-label': incrementAriaLabel || stringFormatter.format('increase', {fieldLabel}).trim(),\n id: ariaLabelledby && !incrementAriaLabel ? incrementId : null,\n 'aria-labelledby': ariaLabelledby && !incrementAriaLabel ? `${incrementId} ${ariaLabelledby}` : null,\n 'aria-controls': inputId,\n excludeFromTabOrder: true,\n preventFocusOnPress: true,\n allowFocusWhenDisabled: true,\n isDisabled: !state.canIncrement,\n onPressStart: onButtonPressStart\n });\n\n let decrementButtonProps: AriaButtonProps = mergeProps(decButtonProps, {\n 'aria-label': decrementAriaLabel || stringFormatter.format('decrease', {fieldLabel}).trim(),\n id: ariaLabelledby && !decrementAriaLabel ? decrementId : null,\n 'aria-labelledby': ariaLabelledby && !decrementAriaLabel ? `${decrementId} ${ariaLabelledby}` : null,\n 'aria-controls': inputId,\n excludeFromTabOrder: true,\n preventFocusOnPress: true,\n allowFocusWhenDisabled: true,\n isDisabled: !state.canDecrement,\n onPressStart: onButtonPressStart\n });\n\n return {\n groupProps: {\n role: 'group',\n 'aria-disabled': isDisabled,\n 'aria-invalid': validationState === 'invalid' ? 'true' : undefined,\n ...focusWithinProps\n },\n labelProps,\n inputProps,\n incrementButtonProps,\n decrementButtonProps,\n errorMessageProps,\n descriptionProps\n };\n}\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"decrease\": \"خفض {fieldLabel}\",\n \"increase\": \"زيادة {fieldLabel}\",\n \"numberField\": \"حقل رقمي\"\n}\n","{\n \"decrease\": \"Намаляване {fieldLabel}\",\n \"increase\": \"Усилване {fieldLabel}\",\n \"numberField\": \"Номер на полето\"\n}\n","{\n \"decrease\": \"Snížit {fieldLabel}\",\n \"increase\": \"Zvýšit {fieldLabel}\",\n \"numberField\": \"Číselné pole\"\n}\n","{\n \"decrease\": \"Reducer {fieldLabel}\",\n \"increase\": \"Øg {fieldLabel}\",\n \"numberField\": \"Talfelt\"\n}\n","{\n \"decrease\": \"{fieldLabel} verringern\",\n \"increase\": \"{fieldLabel} erhöhen\",\n \"numberField\": \"Nummernfeld\"\n}\n","{\n \"decrease\": \"Μείωση {fieldLabel}\",\n \"increase\": \"Αύξηση {fieldLabel}\",\n \"numberField\": \"Πεδίο αριθμού\"\n}\n","{\n \"decrease\": \"Decrease {fieldLabel}\",\n \"increase\": \"Increase {fieldLabel}\",\n \"numberField\": \"Number field\"\n}\n","{\n \"decrease\": \"Reducir {fieldLabel}\",\n \"increase\": \"Aumentar {fieldLabel}\",\n \"numberField\": \"Campo de número\"\n}\n","{\n \"decrease\": \"Vähenda {fieldLabel}\",\n \"increase\": \"Suurenda {fieldLabel}\",\n \"numberField\": \"Numbri väli\"\n}\n","{\n \"decrease\": \"Vähennä {fieldLabel}\",\n \"increase\": \"Lisää {fieldLabel}\",\n \"numberField\": \"Numerokenttä\"\n}\n","{\n \"decrease\": \"Diminuer {fieldLabel}\",\n \"increase\": \"Augmenter {fieldLabel}\",\n \"numberField\": \"Champ de nombre\"\n}\n","{\n \"decrease\": \"הקטן {fieldLabel}\",\n \"increase\": \"הגדל {fieldLabel}\",\n \"numberField\": \"שדה מספר\"\n}\n","{\n \"decrease\": \"Smanji {fieldLabel}\",\n \"increase\": \"Povećaj {fieldLabel}\",\n \"numberField\": \"Polje broja\"\n}\n","{\n \"decrease\": \"{fieldLabel} csökkentése\",\n \"increase\": \"{fieldLabel} növelése\",\n \"numberField\": \"Számmező\"\n}\n","{\n \"decrease\": \"Riduci {fieldLabel}\",\n \"increase\": \"Aumenta {fieldLabel}\",\n \"numberField\": \"Campo numero\"\n}\n","{\n \"decrease\": \"{fieldLabel}を縮小\",\n \"increase\": \"{fieldLabel}を拡大\",\n \"numberField\": \"数値フィールド\"\n}\n","{\n \"decrease\": \"{fieldLabel} 감소\",\n \"increase\": \"{fieldLabel} 증가\",\n \"numberField\": \"번호 필드\"\n}\n","{\n \"decrease\": \"Sumažinti {fieldLabel}\",\n \"increase\": \"Padidinti {fieldLabel}\",\n \"numberField\": \"Numerio laukas\"\n}\n","{\n \"decrease\": \"Samazināšana {fieldLabel}\",\n \"increase\": \"Palielināšana {fieldLabel}\",\n \"numberField\": \"Skaitļu lauks\"\n}\n","{\n \"decrease\": \"Reduser {fieldLabel}\",\n \"increase\": \"Øk {fieldLabel}\",\n \"numberField\": \"Tallfelt\"\n}\n","{\n \"decrease\": \"{fieldLabel} verlagen\",\n \"increase\": \"{fieldLabel} verhogen\",\n \"numberField\": \"Getalveld\"\n}\n","{\n \"decrease\": \"Zmniejsz {fieldLabel}\",\n \"increase\": \"Zwiększ {fieldLabel}\",\n \"numberField\": \"Pole numeru\"\n}\n","{\n \"decrease\": \"Diminuir {fieldLabel}\",\n \"increase\": \"Aumentar {fieldLabel}\",\n \"numberField\": \"Campo de número\"\n}\n","{\n \"decrease\": \"Diminuir {fieldLabel}\",\n \"increase\": \"Aumentar {fieldLabel}\",\n \"numberField\": \"Campo numérico\"\n}\n","{\n \"decrease\": \"Scădere {fieldLabel}\",\n \"increase\": \"Creștere {fieldLabel}\",\n \"numberField\": \"Câmp numeric\"\n}\n","{\n \"decrease\": \"Уменьшение {fieldLabel}\",\n \"increase\": \"Увеличение {fieldLabel}\",\n \"numberField\": \"Числовое поле\"\n}\n","{\n \"decrease\": \"Znížiť {fieldLabel}\",\n \"increase\": \"Zvýšiť {fieldLabel}\",\n \"numberField\": \"Číselné pole\"\n}\n","{\n \"decrease\": \"Upadati {fieldLabel}\",\n \"increase\": \"Povečajte {fieldLabel}\",\n \"numberField\": \"Številčno polje\"\n}\n","{\n \"decrease\": \"Decrease {fieldLabel}\",\n \"increase\": \"Increase {fieldLabel}\",\n \"numberField\": \"Number field\"\n}\n","{\n \"decrease\": \"Minska {fieldLabel}\",\n \"increase\": \"Öka {fieldLabel}\",\n \"numberField\": \"Nummerfält\"\n}\n","{\n \"decrease\": \"{fieldLabel} azalt\",\n \"increase\": \"{fieldLabel} arttır\",\n \"numberField\": \"Sayı alanı\"\n}\n","{\n \"decrease\": \"Зменшити {fieldLabel}\",\n \"increase\": \"Збільшити {fieldLabel}\",\n \"numberField\": \"Поле номера\"\n}\n","{\n \"decrease\": \"降低 {fieldLabel}\",\n \"increase\": \"提高 {fieldLabel}\",\n \"numberField\": \"数字字段\"\n}\n","{\n \"decrease\": \"縮小 {fieldLabel}\",\n \"increase\": \"放大 {fieldLabel}\",\n \"numberField\": \"數字欄位\"\n}\n"],"names":[],"version":3,"file":"main.js.map"}
|