antd-mobile 5.29.0 → 5.29.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 (68) hide show
  1. package/2x/bundle/antd-mobile.cjs.development.js +27 -25
  2. package/2x/bundle/antd-mobile.cjs.js +3 -3
  3. package/2x/bundle/antd-mobile.es.development.js +27 -25
  4. package/2x/bundle/antd-mobile.es.js +22 -8
  5. package/2x/bundle/antd-mobile.umd.development.js +27 -25
  6. package/2x/bundle/antd-mobile.umd.js +3 -3
  7. package/2x/cjs/components/calendar/calendar.js +1 -1
  8. package/2x/cjs/components/number-keyboard/number-keyboard.js +5 -3
  9. package/2x/cjs/components/popup/popup.js +13 -11
  10. package/2x/cjs/components/text-area/text-area.js +1 -0
  11. package/2x/cjs/components/virtual-input/virtual-input.js +1 -2
  12. package/2x/cjs/locales/da-DK.d.ts +134 -0
  13. package/2x/cjs/locales/da-DK.js +132 -0
  14. package/2x/cjs/locales/it-IT.d.ts +134 -0
  15. package/2x/cjs/locales/it-IT.js +144 -0
  16. package/2x/cjs/locales/nb-NO.d.ts +134 -0
  17. package/2x/cjs/locales/nb-NO.js +144 -0
  18. package/2x/cjs/locales/nl-NL.d.ts +134 -0
  19. package/2x/cjs/locales/nl-NL.js +144 -0
  20. package/2x/es/components/calendar/calendar.js +1 -1
  21. package/2x/es/components/number-keyboard/number-keyboard.js +5 -3
  22. package/2x/es/components/popup/popup.js +13 -11
  23. package/2x/es/components/text-area/text-area.js +1 -0
  24. package/2x/es/components/virtual-input/virtual-input.js +1 -2
  25. package/2x/es/locales/da-DK.d.ts +134 -0
  26. package/2x/es/locales/da-DK.js +125 -0
  27. package/2x/es/locales/it-IT.d.ts +134 -0
  28. package/2x/es/locales/it-IT.js +137 -0
  29. package/2x/es/locales/nb-NO.d.ts +134 -0
  30. package/2x/es/locales/nb-NO.js +137 -0
  31. package/2x/es/locales/nl-NL.d.ts +134 -0
  32. package/2x/es/locales/nl-NL.js +137 -0
  33. package/2x/package.json +1 -1
  34. package/bundle/antd-mobile.cjs.development.js +27 -25
  35. package/bundle/antd-mobile.cjs.js +3 -3
  36. package/bundle/antd-mobile.compatible.umd.js +1 -1
  37. package/bundle/antd-mobile.es.development.js +27 -25
  38. package/bundle/antd-mobile.es.js +22 -8
  39. package/bundle/antd-mobile.umd.development.js +27 -25
  40. package/bundle/antd-mobile.umd.js +3 -3
  41. package/cjs/components/calendar/calendar.js +1 -1
  42. package/cjs/components/number-keyboard/number-keyboard.js +5 -3
  43. package/cjs/components/popup/popup.js +13 -11
  44. package/cjs/components/text-area/text-area.js +1 -0
  45. package/cjs/components/virtual-input/virtual-input.js +1 -2
  46. package/cjs/locales/da-DK.d.ts +134 -0
  47. package/cjs/locales/da-DK.js +132 -0
  48. package/cjs/locales/it-IT.d.ts +134 -0
  49. package/cjs/locales/it-IT.js +144 -0
  50. package/cjs/locales/nb-NO.d.ts +134 -0
  51. package/cjs/locales/nb-NO.js +144 -0
  52. package/cjs/locales/nl-NL.d.ts +134 -0
  53. package/cjs/locales/nl-NL.js +144 -0
  54. package/es/components/calendar/calendar.js +1 -1
  55. package/es/components/number-keyboard/number-keyboard.js +5 -3
  56. package/es/components/popup/popup.js +13 -11
  57. package/es/components/text-area/text-area.js +1 -0
  58. package/es/components/virtual-input/virtual-input.js +1 -2
  59. package/es/locales/da-DK.d.ts +134 -0
  60. package/es/locales/da-DK.js +125 -0
  61. package/es/locales/it-IT.d.ts +134 -0
  62. package/es/locales/it-IT.js +137 -0
  63. package/es/locales/nb-NO.d.ts +134 -0
  64. package/es/locales/nb-NO.js +137 -0
  65. package/es/locales/nl-NL.d.ts +134 -0
  66. package/es/locales/nl-NL.js +137 -0
  67. package/package.json +1 -1
  68. package/umd/antd-mobile.js +1 -1
@@ -90,7 +90,7 @@ const Calendar = (0, _react.forwardRef)((p, ref) => {
90
90
  return;
91
91
  }
92
92
  }
93
- setCurrent(current[action](num, type));
93
+ setCurrent(nxtCurrent);
94
94
  };
95
95
  const header = _react.default.createElement("div", {
96
96
  className: `${classPrefix}-header`
@@ -106,7 +106,7 @@ const NumberKeyboard = p => {
106
106
  var _a;
107
107
  (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
108
108
  },
109
- role: 'button',
109
+ role: 'grid',
110
110
  title: 'CLOSE',
111
111
  tabIndex: -1
112
112
  }, _react.default.createElement(_antdMobileIcons.DownOutline, null)));
@@ -173,11 +173,13 @@ const NumberKeyboard = p => {
173
173
  onBackspacePressEnd();
174
174
  },
175
175
  title: 'BACKSPACE',
176
- role: 'button'
176
+ role: 'grid',
177
+ tabIndex: -1
177
178
  }, _react.default.createElement(_antdMobileIcons.TextDeletionOutline, null)), _react.default.createElement("div", {
178
179
  className: `${classPrefix}-key ${classPrefix}-key-extra ${classPrefix}-key-ok`,
179
180
  onTouchEnd: e => onKeyPress(e, 'OK'),
180
- role: 'button',
181
+ role: 'grid',
182
+ tabIndex: -1,
181
183
  "aria-label": confirmText
182
184
  }, confirmText))), props.safeArea && _react.default.createElement("div", {
183
185
  className: `${classPrefix}-footer`
@@ -88,17 +88,19 @@ const Popup = p => {
88
88
  className: bodyCls,
89
89
  style: Object.assign(Object.assign({}, props.bodyStyle), {
90
90
  transform: percent.to(v => {
91
- if (props.position === 'bottom') {
92
- return `translate(0, ${v}%)`;
93
- }
94
- if (props.position === 'top') {
95
- return `translate(0, -${v}%)`;
96
- }
97
- if (props.position === 'left') {
98
- return `translate(-${v}%, 0)`;
99
- }
100
- if (props.position === 'right') {
101
- return `translate(${v}%, 0)`;
91
+ if (v) {
92
+ if (props.position === 'bottom') {
93
+ return `translate(0, ${v}%)`;
94
+ }
95
+ if (props.position === 'top') {
96
+ return `translate(0, -${v}%)`;
97
+ }
98
+ if (props.position === 'left') {
99
+ return `translate(-${v}%, 0)`;
100
+ }
101
+ if (props.position === 'right') {
102
+ return `translate(${v}%, 0)`;
103
+ }
102
104
  }
103
105
  return 'none';
104
106
  })
@@ -126,6 +126,7 @@ const TextArea = (0, _react.forwardRef)((p, ref) => {
126
126
  ref: hiddenTextAreaRef,
127
127
  className: `${classPrefix}-element ${classPrefix}-element-hidden`,
128
128
  value: value,
129
+ rows: props.rows,
129
130
  "aria-hidden": true,
130
131
  readOnly: true
131
132
  })));
@@ -92,14 +92,13 @@ const VirtualInput = (0, _react.forwardRef)((p, ref) => {
92
92
  [`${classPrefix}-disabled`]: props.disabled
93
93
  }),
94
94
  tabIndex: props.disabled ? undefined : 0,
95
+ role: 'option',
95
96
  onFocus: onFocus,
96
97
  onBlur: onBlur,
97
98
  onClick: props.onClick
98
99
  }, _react.default.createElement("div", {
99
100
  className: `${classPrefix}-content`,
100
101
  ref: contentRef,
101
- role: 'option',
102
- tabIndex: props.disabled ? undefined : 0,
103
102
  "aria-disabled": props.disabled,
104
103
  "aria-label": props.placeholder
105
104
  }, value, _react.default.createElement("div", {
@@ -0,0 +1,134 @@
1
+ declare const daDK: {
2
+ locale: string;
3
+ common: {
4
+ confirm: string;
5
+ cancel: string;
6
+ loading: string;
7
+ close: string;
8
+ };
9
+ Calendar: {
10
+ markItems: string[];
11
+ renderYearAndMonth: (year: number, month: number) => string;
12
+ };
13
+ Cascader: {
14
+ placeholder: string;
15
+ };
16
+ Dialog: {
17
+ ok: string;
18
+ };
19
+ DatePicker: {
20
+ tillNow: string;
21
+ };
22
+ ErrorBlock: {
23
+ default: {
24
+ title: string;
25
+ description: string;
26
+ };
27
+ busy: {
28
+ title: string;
29
+ description: string;
30
+ };
31
+ disconnected: {
32
+ title: string;
33
+ description: string;
34
+ };
35
+ empty: {
36
+ title: string;
37
+ description: string;
38
+ };
39
+ };
40
+ Form: {
41
+ required: string;
42
+ optional: string;
43
+ defaultValidateMessages: {
44
+ default: string;
45
+ required: string;
46
+ enum: string;
47
+ whitespace: string;
48
+ date: {
49
+ format: string;
50
+ parse: string;
51
+ invalid: string;
52
+ };
53
+ types: {
54
+ string: string;
55
+ method: string;
56
+ array: string;
57
+ object: string;
58
+ number: string;
59
+ date: string;
60
+ boolean: string;
61
+ integer: string;
62
+ float: string;
63
+ regexp: string;
64
+ email: string;
65
+ url: string;
66
+ hex: string;
67
+ };
68
+ string: {
69
+ len: string;
70
+ min: string;
71
+ max: string;
72
+ range: string;
73
+ };
74
+ number: {
75
+ len: string;
76
+ min: string;
77
+ max: string;
78
+ range: string;
79
+ };
80
+ array: {
81
+ len: string;
82
+ min: string;
83
+ max: string;
84
+ range: string;
85
+ };
86
+ pattern: {
87
+ mismatch: string;
88
+ };
89
+ };
90
+ };
91
+ ImageUploader: {
92
+ uploading: string;
93
+ upload: string;
94
+ };
95
+ InfiniteScroll: {
96
+ noMore: string;
97
+ failedToLoad: string;
98
+ retry: string;
99
+ };
100
+ Input: {
101
+ clear: string;
102
+ };
103
+ Mask: {
104
+ name: string;
105
+ };
106
+ Modal: {
107
+ ok: string;
108
+ };
109
+ PasscodeInput: {
110
+ name: string;
111
+ };
112
+ PullToRefresh: {
113
+ pulling: string;
114
+ canRelease: string;
115
+ complete: string;
116
+ };
117
+ SearchBar: {
118
+ name: string;
119
+ };
120
+ Slider: {
121
+ name: string;
122
+ };
123
+ Stepper: {
124
+ decrease: string;
125
+ increase: string;
126
+ };
127
+ Switch: {
128
+ name: string;
129
+ };
130
+ Selector: {
131
+ name: string;
132
+ };
133
+ };
134
+ export default daDK;
@@ -0,0 +1,132 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _mergeLocale = require("../utils/merge-locale");
8
+ var _base = require("./base");
9
+ const typeTemplate = '${label} er ikke gyldig som ${type}';
10
+ const daDK = (0, _mergeLocale.mergeLocale)(_base.base, {
11
+ locale: 'da-DK',
12
+ common: {
13
+ confirm: 'Bekræft',
14
+ cancel: 'Afbestille',
15
+ loading: 'Indlæser',
16
+ close: 'Luk'
17
+ },
18
+ Calendar: {
19
+ markItems: ['ma', 'ti', 'on', 'to', 'fr', 'lø', 'sø'],
20
+ renderYearAndMonth: (year, month) => `${month}.${year}`
21
+ },
22
+ Cascader: {
23
+ placeholder: 'Vælger'
24
+ },
25
+ Dialog: {
26
+ ok: 'Bekræft'
27
+ },
28
+ DatePicker: {
29
+ tillNow: 'Indtil nu'
30
+ },
31
+ ErrorBlock: {
32
+ default: {
33
+ title: 'Oops, noget gik galt',
34
+ description: 'Vent et minut og prøv igen'
35
+ },
36
+ busy: {
37
+ title: 'Oops, ikke indlæser',
38
+ description: 'Prøv at opdatere siden'
39
+ },
40
+ disconnected: {
41
+ title: 'Netværket er optaget',
42
+ description: 'Prøv at opdatere siden'
43
+ },
44
+ empty: {
45
+ title: 'Hmm, kunne ikke finde det...',
46
+ description: 'Vil du prøve en ny søgning?'
47
+ }
48
+ },
49
+ Form: {
50
+ required: 'Påkrævet',
51
+ optional: 'Valgfri',
52
+ defaultValidateMessages: {
53
+ default: 'Feltvalideringsfejl for ${label}',
54
+ required: 'Indtast venligst ${label}',
55
+ enum: '${label} skal være en af [${enum}]',
56
+ whitespace: '${label} kan ikke være et tomt tegn',
57
+ date: {
58
+ format: '${label} datoformatet er ugyldigt',
59
+ parse: '${label} kan ikke konverteres til en dato',
60
+ invalid: '${label} er en ugyldig dato'
61
+ },
62
+ types: {
63
+ string: typeTemplate,
64
+ method: typeTemplate,
65
+ array: typeTemplate,
66
+ object: typeTemplate,
67
+ number: typeTemplate,
68
+ date: typeTemplate,
69
+ boolean: typeTemplate,
70
+ integer: typeTemplate,
71
+ float: typeTemplate,
72
+ regexp: typeTemplate,
73
+ email: typeTemplate,
74
+ url: typeTemplate,
75
+ hex: typeTemplate
76
+ },
77
+ string: {
78
+ len: '${label} må være ${len} tegn',
79
+ min: '${label} skal være mindst ${min} tegn',
80
+ max: '${label} skal være op til ${max} tegn',
81
+ range: '${label} skal være imellem ${min}-${max} tegn'
82
+ },
83
+ number: {
84
+ len: '${label} skal være lig med ${len}',
85
+ min: '${label} skal være minimum ${min}',
86
+ max: '${label} skal være maksimalt ${max}',
87
+ range: '${label} skal være imellem ${min}-${max}'
88
+ },
89
+ array: {
90
+ len: 'Må være ${len} ${label}',
91
+ min: 'I det mindste ${min} ${label}',
92
+ max: 'Højst ${max} ${label}',
93
+ range: 'Mængden af ${label} skal være imellem ${min}-${max}'
94
+ },
95
+ pattern: {
96
+ mismatch: '${label} stemmer ikke overens med mønsteret ${pattern}'
97
+ }
98
+ }
99
+ },
100
+ ImageUploader: {
101
+ uploading: 'Uploader...',
102
+ upload: 'Upload'
103
+ },
104
+ InfiniteScroll: {
105
+ noMore: 'Ikke mere',
106
+ failedToLoad: 'Kunne ikke indlæses',
107
+ retry: 'Prøve igen'
108
+ },
109
+ Input: {
110
+ clear: 'slette'
111
+ },
112
+ Mask: {
113
+ name: 'Maske'
114
+ },
115
+ Modal: {
116
+ ok: 'Bekræft'
117
+ },
118
+ PullToRefresh: {
119
+ pulling: 'Rul ned for at opdatere',
120
+ canRelease: 'Slip for at opdatere med det samme',
121
+ complete: 'Opdatering lykkedes'
122
+ },
123
+ Stepper: {
124
+ decrease: 'aftage',
125
+ increase: 'øge'
126
+ },
127
+ Selector: {
128
+ name: 'Vælger'
129
+ }
130
+ });
131
+ var _default = daDK;
132
+ exports.default = _default;
@@ -0,0 +1,134 @@
1
+ declare const itIT: {
2
+ locale: string;
3
+ common: {
4
+ confirm: string;
5
+ cancel: string;
6
+ loading: string;
7
+ close: string;
8
+ };
9
+ Calendar: {
10
+ markItems: string[];
11
+ renderYearAndMonth: (year: number, month: number) => string;
12
+ };
13
+ Cascader: {
14
+ placeholder: string;
15
+ };
16
+ Dialog: {
17
+ ok: string;
18
+ };
19
+ DatePicker: {
20
+ tillNow: string;
21
+ };
22
+ ErrorBlock: {
23
+ default: {
24
+ title: string;
25
+ description: string;
26
+ };
27
+ busy: {
28
+ title: string;
29
+ description: string;
30
+ };
31
+ disconnected: {
32
+ title: string;
33
+ description: string;
34
+ };
35
+ empty: {
36
+ title: string;
37
+ description: string;
38
+ };
39
+ };
40
+ Form: {
41
+ required: string;
42
+ optional: string;
43
+ defaultValidateMessages: {
44
+ default: string;
45
+ required: string;
46
+ enum: string;
47
+ whitespace: string;
48
+ date: {
49
+ format: string;
50
+ parse: string;
51
+ invalid: string;
52
+ };
53
+ types: {
54
+ string: string;
55
+ method: string;
56
+ array: string;
57
+ object: string;
58
+ number: string;
59
+ date: string;
60
+ boolean: string;
61
+ integer: string;
62
+ float: string;
63
+ regexp: string;
64
+ email: string;
65
+ url: string;
66
+ hex: string;
67
+ };
68
+ string: {
69
+ len: string;
70
+ min: string;
71
+ max: string;
72
+ range: string;
73
+ };
74
+ number: {
75
+ len: string;
76
+ min: string;
77
+ max: string;
78
+ range: string;
79
+ };
80
+ array: {
81
+ len: string;
82
+ min: string;
83
+ max: string;
84
+ range: string;
85
+ };
86
+ pattern: {
87
+ mismatch: string;
88
+ };
89
+ };
90
+ };
91
+ ImageUploader: {
92
+ uploading: string;
93
+ upload: string;
94
+ };
95
+ InfiniteScroll: {
96
+ noMore: string;
97
+ failedToLoad: string;
98
+ retry: string;
99
+ };
100
+ Input: {
101
+ clear: string;
102
+ };
103
+ Mask: {
104
+ name: string;
105
+ };
106
+ Modal: {
107
+ ok: string;
108
+ };
109
+ PasscodeInput: {
110
+ name: string;
111
+ };
112
+ PullToRefresh: {
113
+ pulling: string;
114
+ canRelease: string;
115
+ complete: string;
116
+ };
117
+ SearchBar: {
118
+ name: string;
119
+ };
120
+ Slider: {
121
+ name: string;
122
+ };
123
+ Stepper: {
124
+ decrease: string;
125
+ increase: string;
126
+ };
127
+ Switch: {
128
+ name: string;
129
+ };
130
+ Selector: {
131
+ name: string;
132
+ };
133
+ };
134
+ export default itIT;
@@ -0,0 +1,144 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _mergeLocale = require("../utils/merge-locale");
8
+ var _base = require("./base");
9
+ const typeTemplate = '${label} non è valido come ${type}';
10
+ const itIT = (0, _mergeLocale.mergeLocale)(_base.base, {
11
+ locale: 'it-IT',
12
+ common: {
13
+ confirm: 'Conferma',
14
+ cancel: 'Annulla',
15
+ loading: 'Caricamento',
16
+ close: 'Chiudi'
17
+ },
18
+ Calendar: {
19
+ markItems: ['lun', 'mar', 'mer', 'gio', 'ven', 'sab', 'dom'],
20
+ renderYearAndMonth: (year, month) => `${month}/${year}`
21
+ },
22
+ Cascader: {
23
+ placeholder: 'Si prega di selezionare'
24
+ },
25
+ Dialog: {
26
+ ok: 'Ho capito'
27
+ },
28
+ DatePicker: {
29
+ tillNow: 'Finora'
30
+ },
31
+ ErrorBlock: {
32
+ default: {
33
+ title: 'Oops, qualcosa è andato storto',
34
+ description: 'Per favore, attendi un minuto e riprova più tardi'
35
+ },
36
+ busy: {
37
+ title: 'Oops, non sta caricando',
38
+ description: 'Prova a ricaricare la pagina'
39
+ },
40
+ disconnected: {
41
+ title: 'La rete è occupata',
42
+ description: 'Prova a ricaricare la pagina'
43
+ },
44
+ empty: {
45
+ title: 'Mmm, non ho potuto trovarlo...',
46
+ description: 'Vuoi provare una nuova ricerca?'
47
+ }
48
+ },
49
+ Form: {
50
+ required: 'Richiesto',
51
+ optional: 'Opzionale',
52
+ defaultValidateMessages: {
53
+ default: 'Errore di convalida del campo per ${label}',
54
+ required: 'Per favore compila ${label}',
55
+ enum: '${label} deve essere uno di [${enum}]',
56
+ whitespace: '${label} non puà essere un carattere vuoto',
57
+ date: {
58
+ format: '${label} il formato della data non è valido',
59
+ parse: '${label} non può essere convertito in data',
60
+ invalid: '${label} non è una data valida'
61
+ },
62
+ types: {
63
+ string: typeTemplate,
64
+ method: typeTemplate,
65
+ array: typeTemplate,
66
+ object: typeTemplate,
67
+ number: typeTemplate,
68
+ date: typeTemplate,
69
+ boolean: typeTemplate,
70
+ integer: typeTemplate,
71
+ float: typeTemplate,
72
+ regexp: typeTemplate,
73
+ email: typeTemplate,
74
+ url: typeTemplate,
75
+ hex: typeTemplate
76
+ },
77
+ string: {
78
+ len: '${label} deve essere lungo ${len} caratteri',
79
+ min: '${label} deve essere lungo almeno ${min} caratteri',
80
+ max: '${label} deve essere lungo fino a ${max} caratteri',
81
+ range: '${label} deve essere lungo ${min}-${max} caratteri'
82
+ },
83
+ number: {
84
+ len: '${label} deve essere uguale a ${len}',
85
+ min: '${label} deve essere almeno ${min}',
86
+ max: '${label} deve essere massimo ${max}',
87
+ range: '${label} deve essere compreso tra ${min}-${max}'
88
+ },
89
+ array: {
90
+ len: 'Deve essere ${len} ${label}',
91
+ min: 'Almeno ${min} ${label}',
92
+ max: 'Al massimo ${max} ${label}',
93
+ range: 'La quantità ${label} deve essere compresa tra ${min}-${max}'
94
+ },
95
+ pattern: {
96
+ mismatch: '${label} non corrisponde al pattern ${pattern}'
97
+ }
98
+ }
99
+ },
100
+ ImageUploader: {
101
+ uploading: 'Caricamento in corso...',
102
+ upload: 'Carica'
103
+ },
104
+ InfiniteScroll: {
105
+ noMore: 'Finito',
106
+ failedToLoad: 'Caricamento fallito',
107
+ retry: 'Riprova'
108
+ },
109
+ Input: {
110
+ clear: 'cancella'
111
+ },
112
+ Mask: {
113
+ name: 'Maschera'
114
+ },
115
+ Modal: {
116
+ ok: 'Ho capito'
117
+ },
118
+ PasscodeInput: {
119
+ name: 'Input per codice di accesso'
120
+ },
121
+ PullToRefresh: {
122
+ pulling: 'Scrolla in basso per aggiornare',
123
+ canRelease: 'Rilaascia per aggiornare',
124
+ complete: 'Ricarcamento completato'
125
+ },
126
+ SearchBar: {
127
+ name: 'Barra di ricerca'
128
+ },
129
+ Slider: {
130
+ name: 'Slider'
131
+ },
132
+ Stepper: {
133
+ decrease: 'decrementa',
134
+ increase: 'incrementa'
135
+ },
136
+ Switch: {
137
+ name: 'Switch'
138
+ },
139
+ Selector: {
140
+ name: 'Selettore'
141
+ }
142
+ });
143
+ var _default = itIT;
144
+ exports.default = _default;