@uxf/form 11.72.3 → 11.74.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.
Files changed (78) hide show
  1. package/README.md +3 -1
  2. package/avatar-file-input/avatar-file-input.js +5 -1
  3. package/avatar-file-input/translations.d.ts +13 -0
  4. package/avatar-file-input/translations.js +14 -0
  5. package/checkbox-button/checkbox-button.js +5 -1
  6. package/checkbox-button/translations.d.ts +13 -0
  7. package/checkbox-button/translations.js +14 -0
  8. package/checkbox-input/checkbox-input.js +5 -1
  9. package/checkbox-input/translations.d.ts +13 -0
  10. package/checkbox-input/translations.js +14 -0
  11. package/checkbox-list/checkbox-list.js +5 -1
  12. package/checkbox-list/translations.d.ts +13 -0
  13. package/checkbox-list/translations.js +14 -0
  14. package/color-radio-group/color-radio-group.js +5 -1
  15. package/color-radio-group/translations.d.ts +13 -0
  16. package/color-radio-group/translations.js +14 -0
  17. package/combobox/combobox.js +5 -1
  18. package/combobox/translations.d.ts +13 -0
  19. package/combobox/translations.js +14 -0
  20. package/date-picker-input/date-picker-input.js +17 -4
  21. package/date-picker-input/translations.d.ts +31 -0
  22. package/date-picker-input/translations.js +32 -0
  23. package/date-range-picker-input/date-range-picker-input.js +12 -3
  24. package/date-range-picker-input/translations.d.ts +25 -0
  25. package/date-range-picker-input/translations.js +26 -0
  26. package/datetime-picker-input/datetime-picker-input.js +17 -4
  27. package/datetime-picker-input/translations.d.ts +31 -0
  28. package/datetime-picker-input/translations.js +32 -0
  29. package/dropzone/dropzone-input.js +11 -3
  30. package/dropzone/translations.d.ts +31 -0
  31. package/dropzone/translations.js +32 -0
  32. package/file-input/file-input.js +5 -1
  33. package/file-input/translations.d.ts +13 -0
  34. package/file-input/translations.js +14 -0
  35. package/form-renderer/field/base-field.js +3 -1
  36. package/form-renderer/field/one-to-many.js +4 -2
  37. package/form-renderer/form-renderer.js +3 -1
  38. package/form-renderer/translations.d.ts +33 -0
  39. package/form-renderer/translations.js +34 -0
  40. package/gps-input/gps-input.js +11 -9
  41. package/gps-input/translations.d.ts +31 -0
  42. package/gps-input/translations.js +32 -0
  43. package/money-input/money-input.js +5 -1
  44. package/money-input/translations.d.ts +13 -0
  45. package/money-input/translations.js +14 -0
  46. package/multi-combobox/multi-combobox.js +5 -1
  47. package/multi-combobox/translations.d.ts +13 -0
  48. package/multi-combobox/translations.js +14 -0
  49. package/multi-select/multi-select.js +5 -1
  50. package/multi-select/translations.d.ts +13 -0
  51. package/multi-select/translations.js +14 -0
  52. package/number-input/number-input.js +27 -12
  53. package/number-input/translations.d.ts +25 -0
  54. package/number-input/translations.js +26 -0
  55. package/package.json +4 -2
  56. package/password-input/password-input.js +24 -9
  57. package/password-input/translations.d.ts +19 -0
  58. package/password-input/translations.js +20 -0
  59. package/radio-group/radio-group.js +5 -1
  60. package/radio-group/translations.d.ts +13 -0
  61. package/radio-group/translations.js +14 -0
  62. package/select/select.js +3 -1
  63. package/select/translations.d.ts +13 -0
  64. package/select/translations.js +14 -0
  65. package/text-input/text-input.js +37 -19
  66. package/text-input/translations.d.ts +31 -0
  67. package/text-input/translations.js +32 -0
  68. package/textarea/textarea.js +5 -1
  69. package/textarea/translations.d.ts +13 -0
  70. package/textarea/translations.js +14 -0
  71. package/time-picker-input/time-picker-input.js +9 -2
  72. package/time-picker-input/translations.d.ts +19 -0
  73. package/time-picker-input/translations.js +20 -0
  74. package/toggle/toggle.js +3 -1
  75. package/toggle/translations.d.ts +13 -0
  76. package/toggle/translations.js +14 -0
  77. package/translations/translations.d.ts +389 -0
  78. package/translations/translations.js +55 -0
package/toggle/toggle.js CHANGED
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  };
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.Toggle = Toggle;
8
+ const translations_1 = require("@uxf/core-react/translations");
8
9
  const is_not_nil_1 = require("@uxf/core/utils/is-not-nil");
9
10
  const toggle_1 = require("@uxf/ui/toggle");
10
11
  const react_1 = __importDefault(require("react"));
@@ -13,12 +14,13 @@ const form_context_1 = require("../form-id-context/form-context");
13
14
  function Toggle(props) {
14
15
  var _a, _b;
15
16
  const formContext = (0, form_context_1.useFormContext)();
17
+ const t = (0, translations_1.useUxfTranslation)();
16
18
  const id = (_a = props.id) !== null && _a !== void 0 ? _a : `${formContext.formId}__${props.name}`;
17
19
  const { field, fieldState } = (0, react_hook_form_1.useController)({
18
20
  control: props.control,
19
21
  name: props.name,
20
22
  rules: {
21
- required: props.isRequired ? props.requiredMessage || "Toto pole je povinné" : undefined,
23
+ required: props.isRequired ? props.requiredMessage || t("uxf-form-toggle:validation.required") : undefined,
22
24
  ...props.rules,
23
25
  },
24
26
  shouldUnregister: props.shouldUnregister,
@@ -0,0 +1,13 @@
1
+ declare const _default: {
2
+ "uxf-form-toggle": {
3
+ validation: {
4
+ required: {
5
+ cs: string;
6
+ en: string;
7
+ sk: string;
8
+ de: string;
9
+ };
10
+ };
11
+ };
12
+ };
13
+ export default _default;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ "uxf-form-toggle": {
5
+ validation: {
6
+ required: {
7
+ cs: "Toto pole je povinné",
8
+ en: "This field is required",
9
+ sk: "Toto pole je povinné",
10
+ de: "Dieses Feld ist erforderlich",
11
+ },
12
+ },
13
+ },
14
+ };
@@ -0,0 +1,389 @@
1
+ declare const _default: {
2
+ "uxf-form-toggle": {
3
+ validation: {
4
+ required: {
5
+ cs: string;
6
+ en: string;
7
+ sk: string;
8
+ de: string;
9
+ };
10
+ };
11
+ };
12
+ "uxf-form-time-picker-input": {
13
+ validation: {
14
+ required: {
15
+ cs: string;
16
+ en: string;
17
+ sk: string;
18
+ de: string;
19
+ };
20
+ "invalid-time-format": {
21
+ cs: string;
22
+ en: string;
23
+ sk: string;
24
+ de: string;
25
+ };
26
+ };
27
+ };
28
+ "uxf-form-textarea": {
29
+ validation: {
30
+ required: {
31
+ cs: string;
32
+ en: string;
33
+ sk: string;
34
+ de: string;
35
+ };
36
+ };
37
+ };
38
+ "uxf-form-text-input": {
39
+ validation: {
40
+ required: {
41
+ cs: string;
42
+ en: string;
43
+ sk: string;
44
+ de: string;
45
+ };
46
+ "invalid-email": {
47
+ cs: string;
48
+ en: string;
49
+ sk: string;
50
+ de: string;
51
+ };
52
+ "invalid-phone": {
53
+ cs: string;
54
+ en: string;
55
+ sk: string;
56
+ de: string;
57
+ };
58
+ "invalid-url": {
59
+ cs: string;
60
+ en: string;
61
+ sk: string;
62
+ de: string;
63
+ };
64
+ };
65
+ };
66
+ "uxf-form-select": {
67
+ validation: {
68
+ required: {
69
+ cs: string;
70
+ en: string;
71
+ sk: string;
72
+ de: string;
73
+ };
74
+ };
75
+ };
76
+ "uxf-form-radio-group": {
77
+ validation: {
78
+ required: {
79
+ cs: string;
80
+ en: string;
81
+ sk: string;
82
+ de: string;
83
+ };
84
+ };
85
+ };
86
+ "uxf-form-password-input": {
87
+ validation: {
88
+ required: {
89
+ cs: string;
90
+ en: string;
91
+ sk: string;
92
+ de: string;
93
+ };
94
+ "min-length": {
95
+ cs: string;
96
+ en: string;
97
+ sk: string;
98
+ de: string;
99
+ };
100
+ };
101
+ };
102
+ "uxf-form-number-input": {
103
+ validation: {
104
+ required: {
105
+ cs: string;
106
+ en: string;
107
+ sk: string;
108
+ de: string;
109
+ };
110
+ "max-value": {
111
+ cs: string;
112
+ en: string;
113
+ sk: string;
114
+ de: string;
115
+ };
116
+ "min-value": {
117
+ cs: string;
118
+ en: string;
119
+ sk: string;
120
+ de: string;
121
+ };
122
+ };
123
+ };
124
+ "uxf-form-multi-select": {
125
+ validation: {
126
+ required: {
127
+ cs: string;
128
+ en: string;
129
+ sk: string;
130
+ de: string;
131
+ };
132
+ };
133
+ };
134
+ "uxf-form-multi-combobox": {
135
+ validation: {
136
+ required: {
137
+ cs: string;
138
+ en: string;
139
+ sk: string;
140
+ de: string;
141
+ };
142
+ };
143
+ };
144
+ "uxf-form-money-input": {
145
+ validation: {
146
+ required: {
147
+ cs: string;
148
+ en: string;
149
+ sk: string;
150
+ de: string;
151
+ };
152
+ };
153
+ };
154
+ "uxf-form-gps-input": {
155
+ validation: {
156
+ "supported-formats": {
157
+ cs: string;
158
+ en: string;
159
+ sk: string;
160
+ de: string;
161
+ };
162
+ required: {
163
+ cs: string;
164
+ en: string;
165
+ sk: string;
166
+ de: string;
167
+ };
168
+ "empty-coordinates": {
169
+ cs: string;
170
+ en: string;
171
+ sk: string;
172
+ de: string;
173
+ };
174
+ "invalid-coordinates": {
175
+ cs: string;
176
+ en: string;
177
+ sk: string;
178
+ de: string;
179
+ };
180
+ };
181
+ };
182
+ "uxf-form-form-renderer": {
183
+ "file-upload-error": {
184
+ cs: string;
185
+ en: string;
186
+ sk: string;
187
+ de: string;
188
+ };
189
+ "submit-button": {
190
+ cs: string;
191
+ en: string;
192
+ sk: string;
193
+ de: string;
194
+ };
195
+ fields: {
196
+ "one-to-many": {
197
+ "delete-item": {
198
+ cs: string;
199
+ en: string;
200
+ sk: string;
201
+ de: string;
202
+ };
203
+ "add-item": {
204
+ cs: string;
205
+ en: string;
206
+ sk: string;
207
+ de: string;
208
+ };
209
+ };
210
+ };
211
+ };
212
+ "uxf-form-file-input": {
213
+ validation: {
214
+ required: {
215
+ cs: string;
216
+ en: string;
217
+ sk: string;
218
+ de: string;
219
+ };
220
+ };
221
+ };
222
+ "uxf-form-dropzone": {
223
+ validation: {
224
+ required: {
225
+ cs: string;
226
+ en: string;
227
+ sk: string;
228
+ de: string;
229
+ };
230
+ "max-files-count": {
231
+ cs: string;
232
+ en: string;
233
+ sk: string;
234
+ de: string;
235
+ };
236
+ "min-files-count": {
237
+ cs: string;
238
+ en: string;
239
+ sk: string;
240
+ de: string;
241
+ };
242
+ "upload-not-completed": {
243
+ cs: string;
244
+ en: string;
245
+ sk: string;
246
+ de: string;
247
+ };
248
+ };
249
+ };
250
+ "uxf-form-datetime-picker-input": {
251
+ validation: {
252
+ required: {
253
+ cs: string;
254
+ en: string;
255
+ sk: string;
256
+ de: string;
257
+ };
258
+ "invalid-datetime-format": {
259
+ cs: string;
260
+ en: string;
261
+ sk: string;
262
+ de: string;
263
+ };
264
+ "min-date": {
265
+ cs: string;
266
+ en: string;
267
+ sk: string;
268
+ de: string;
269
+ };
270
+ "max-date": {
271
+ cs: string;
272
+ en: string;
273
+ sk: string;
274
+ de: string;
275
+ };
276
+ };
277
+ };
278
+ "uxf-form-date-range-picker-input": {
279
+ validation: {
280
+ required: {
281
+ cs: string;
282
+ en: string;
283
+ sk: string;
284
+ de: string;
285
+ };
286
+ "invalid-date-range-format": {
287
+ cs: string;
288
+ en: string;
289
+ sk: string;
290
+ de: string;
291
+ };
292
+ "invalid-date-range-order": {
293
+ cs: string;
294
+ en: string;
295
+ sk: string;
296
+ de: string;
297
+ };
298
+ };
299
+ };
300
+ "uxf-form-date-picker-input": {
301
+ validation: {
302
+ required: {
303
+ cs: string;
304
+ en: string;
305
+ sk: string;
306
+ de: string;
307
+ };
308
+ "invalid-date-format": {
309
+ cs: string;
310
+ en: string;
311
+ sk: string;
312
+ de: string;
313
+ };
314
+ "min-date": {
315
+ cs: string;
316
+ en: string;
317
+ sk: string;
318
+ de: string;
319
+ };
320
+ "max-date": {
321
+ cs: string;
322
+ en: string;
323
+ sk: string;
324
+ de: string;
325
+ };
326
+ };
327
+ };
328
+ "uxf-form-combobox": {
329
+ validation: {
330
+ required: {
331
+ cs: string;
332
+ en: string;
333
+ sk: string;
334
+ de: string;
335
+ };
336
+ };
337
+ };
338
+ "uxf-form-color-radio-group": {
339
+ validation: {
340
+ required: {
341
+ cs: string;
342
+ en: string;
343
+ sk: string;
344
+ de: string;
345
+ };
346
+ };
347
+ };
348
+ "uxf-form-checkbox-list": {
349
+ validation: {
350
+ required: {
351
+ cs: string;
352
+ en: string;
353
+ sk: string;
354
+ de: string;
355
+ };
356
+ };
357
+ };
358
+ "uxf-form-checkbox-input": {
359
+ validation: {
360
+ required: {
361
+ cs: string;
362
+ en: string;
363
+ sk: string;
364
+ de: string;
365
+ };
366
+ };
367
+ };
368
+ "uxf-form-checkbox-button": {
369
+ validation: {
370
+ required: {
371
+ cs: string;
372
+ en: string;
373
+ sk: string;
374
+ de: string;
375
+ };
376
+ };
377
+ };
378
+ "uxf-form-avatar-file-input": {
379
+ validation: {
380
+ required: {
381
+ cs: string;
382
+ en: string;
383
+ sk: string;
384
+ de: string;
385
+ };
386
+ };
387
+ };
388
+ };
389
+ export default _default;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const translations_1 = __importDefault(require("@uxf/form/avatar-file-input/translations"));
7
+ const translations_2 = __importDefault(require("@uxf/form/checkbox-button/translations"));
8
+ const translations_3 = __importDefault(require("@uxf/form/checkbox-input/translations"));
9
+ const translations_4 = __importDefault(require("@uxf/form/checkbox-list/translations"));
10
+ const translations_5 = __importDefault(require("@uxf/form/color-radio-group/translations"));
11
+ const translations_6 = __importDefault(require("@uxf/form/combobox/translations"));
12
+ const translations_7 = __importDefault(require("@uxf/form/date-picker-input/translations"));
13
+ const translations_8 = __importDefault(require("@uxf/form/date-range-picker-input/translations"));
14
+ const translations_9 = __importDefault(require("@uxf/form/datetime-picker-input/translations"));
15
+ const translations_10 = __importDefault(require("@uxf/form/dropzone/translations"));
16
+ const translations_11 = __importDefault(require("@uxf/form/file-input/translations"));
17
+ const translations_12 = __importDefault(require("@uxf/form/form-renderer/translations"));
18
+ const translations_13 = __importDefault(require("@uxf/form/gps-input/translations"));
19
+ const translations_14 = __importDefault(require("@uxf/form/money-input/translations"));
20
+ const translations_15 = __importDefault(require("@uxf/form/multi-combobox/translations"));
21
+ const translations_16 = __importDefault(require("@uxf/form/multi-select/translations"));
22
+ const translations_17 = __importDefault(require("@uxf/form/number-input/translations"));
23
+ const translations_18 = __importDefault(require("@uxf/form/password-input/translations"));
24
+ const translations_19 = __importDefault(require("@uxf/form/radio-group/translations"));
25
+ const translations_20 = __importDefault(require("@uxf/form/select/translations"));
26
+ const translations_21 = __importDefault(require("@uxf/form/text-input/translations"));
27
+ const translations_22 = __importDefault(require("@uxf/form/textarea/translations"));
28
+ const translations_23 = __importDefault(require("@uxf/form/time-picker-input/translations"));
29
+ const translations_24 = __importDefault(require("@uxf/form/toggle/translations"));
30
+ exports.default = {
31
+ ...translations_1.default,
32
+ ...translations_2.default,
33
+ ...translations_3.default,
34
+ ...translations_4.default,
35
+ ...translations_5.default,
36
+ ...translations_6.default,
37
+ ...translations_7.default,
38
+ ...translations_8.default,
39
+ ...translations_9.default,
40
+ ...translations_10.default,
41
+ ...translations_11.default,
42
+ ...translations_12.default,
43
+ ...translations_13.default,
44
+ ...translations_14.default,
45
+ ...translations_15.default,
46
+ ...translations_16.default,
47
+ ...translations_17.default,
48
+ ...translations_18.default,
49
+ ...translations_19.default,
50
+ ...translations_20.default,
51
+ ...translations_21.default,
52
+ ...translations_22.default,
53
+ ...translations_23.default,
54
+ ...translations_24.default,
55
+ };