antd-mobile 5.34.0 → 5.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/2x/bundle/antd-mobile.cjs.development.js +427 -1385
  2. package/2x/bundle/antd-mobile.cjs.js +7 -7
  3. package/2x/bundle/antd-mobile.es.development.js +428 -1386
  4. package/2x/bundle/antd-mobile.es.js +6409 -7003
  5. package/2x/bundle/antd-mobile.umd.development.js +427 -1385
  6. package/2x/bundle/antd-mobile.umd.js +7 -7
  7. package/2x/bundle/css-vars-patch.css +3 -3
  8. package/2x/bundle/style.css +6 -10
  9. package/2x/cjs/components/button/button.d.ts +1 -1
  10. package/2x/cjs/components/button/button.patch.css +3 -3
  11. package/2x/cjs/components/cascader-view/use-cascader-value-extend.js +10 -5
  12. package/2x/cjs/components/checkbox/native-input.js +1 -1
  13. package/2x/cjs/components/config-provider/config-provider.d.ts +3 -2
  14. package/2x/cjs/components/error-block/create-error-block.d.ts +1 -0
  15. package/2x/cjs/components/error-block/create-error-block.js +1 -0
  16. package/2x/cjs/components/error-block/index.d.ts +0 -1
  17. package/2x/cjs/components/error-block/index.js +2 -3
  18. package/2x/cjs/components/form/form-item.js +1 -0
  19. package/2x/cjs/components/form/form.js +2 -2
  20. package/2x/cjs/components/infinite-scroll/infinite-scroll.js +8 -4
  21. package/2x/cjs/components/picker-view/wheel.js +7 -4
  22. package/2x/cjs/components/popover/index.d.ts +1 -1
  23. package/2x/cjs/components/popover/popover.d.ts +1 -1
  24. package/2x/cjs/components/radio/radio.css +1 -1
  25. package/2x/cjs/components/radio/radio.d.ts +1 -1
  26. package/2x/cjs/components/radio/radio.js +5 -5
  27. package/2x/cjs/components/result-page/result-page.css +5 -5
  28. package/2x/cjs/components/swipe-action/swipe-action.d.ts +1 -1
  29. package/2x/cjs/components/text-area/text-area.css +0 -4
  30. package/2x/cjs/global/css-vars-patch.css +3 -3
  31. package/2x/cjs/index.d.ts +1 -1
  32. package/2x/cjs/index.js +6 -0
  33. package/2x/cjs/locales/hu-HU.d.ts +139 -0
  34. package/2x/cjs/locales/hu-HU.js +148 -0
  35. package/2x/cjs/locales/th-TH.d.ts +139 -0
  36. package/2x/cjs/locales/th-TH.js +149 -0
  37. package/2x/cjs/utils/with-default-props.js +8 -9
  38. package/2x/cjs/utils/with-stop-propagation.d.ts +1 -1
  39. package/2x/cjs/utils/with-stop-propagation.js +2 -1
  40. package/2x/es/components/button/button.d.ts +1 -1
  41. package/2x/es/components/button/button.patch.css +3 -3
  42. package/2x/es/components/cascader-view/use-cascader-value-extend.js +8 -3
  43. package/2x/es/components/checkbox/native-input.js +1 -1
  44. package/2x/es/components/config-provider/config-provider.d.ts +3 -2
  45. package/2x/es/components/error-block/create-error-block.d.ts +1 -0
  46. package/2x/es/components/error-block/create-error-block.js +1 -0
  47. package/2x/es/components/error-block/index.d.ts +0 -1
  48. package/2x/es/components/error-block/index.js +0 -1
  49. package/2x/es/components/form/form-item.js +1 -0
  50. package/2x/es/components/form/form.js +2 -2
  51. package/2x/es/components/infinite-scroll/infinite-scroll.js +8 -4
  52. package/2x/es/components/picker-view/wheel.js +6 -3
  53. package/2x/es/components/popover/index.d.ts +1 -1
  54. package/2x/es/components/popover/popover.d.ts +1 -1
  55. package/2x/es/components/radio/radio.css +1 -1
  56. package/2x/es/components/radio/radio.d.ts +1 -1
  57. package/2x/es/components/radio/radio.js +4 -4
  58. package/2x/es/components/result-page/result-page.css +5 -5
  59. package/2x/es/components/swipe-action/swipe-action.d.ts +1 -1
  60. package/2x/es/components/text-area/text-area.css +0 -4
  61. package/2x/es/global/css-vars-patch.css +3 -3
  62. package/2x/es/index.d.ts +1 -1
  63. package/2x/es/index.js +1 -1
  64. package/2x/es/locales/hu-HU.d.ts +139 -0
  65. package/2x/es/locales/hu-HU.js +140 -0
  66. package/2x/es/locales/th-TH.d.ts +139 -0
  67. package/2x/es/locales/th-TH.js +142 -0
  68. package/2x/es/utils/with-default-props.js +8 -8
  69. package/2x/es/utils/with-stop-propagation.d.ts +1 -1
  70. package/2x/es/utils/with-stop-propagation.js +2 -1
  71. package/2x/package.json +11 -3
  72. package/bundle/antd-mobile.cjs.development.js +427 -1385
  73. package/bundle/antd-mobile.cjs.js +7 -7
  74. package/bundle/antd-mobile.compatible.umd.js +1 -1
  75. package/bundle/antd-mobile.es.development.js +428 -1386
  76. package/bundle/antd-mobile.es.js +6409 -7003
  77. package/bundle/antd-mobile.umd.development.js +427 -1385
  78. package/bundle/antd-mobile.umd.js +7 -7
  79. package/bundle/css-vars-patch.css +3 -3
  80. package/bundle/style.css +1 -1
  81. package/cjs/components/button/button.d.ts +1 -1
  82. package/cjs/components/button/button.patch.css +3 -3
  83. package/cjs/components/cascader-view/use-cascader-value-extend.js +10 -5
  84. package/cjs/components/checkbox/native-input.js +1 -1
  85. package/cjs/components/config-provider/config-provider.d.ts +3 -2
  86. package/cjs/components/error-block/create-error-block.d.ts +1 -0
  87. package/cjs/components/error-block/create-error-block.js +1 -0
  88. package/cjs/components/error-block/index.d.ts +0 -1
  89. package/cjs/components/error-block/index.js +2 -3
  90. package/cjs/components/form/form-item.js +1 -0
  91. package/cjs/components/form/form.js +2 -2
  92. package/cjs/components/infinite-scroll/infinite-scroll.js +8 -4
  93. package/cjs/components/picker-view/wheel.js +7 -4
  94. package/cjs/components/popover/index.d.ts +1 -1
  95. package/cjs/components/popover/popover.d.ts +1 -1
  96. package/cjs/components/radio/radio.css +1 -1
  97. package/cjs/components/radio/radio.d.ts +1 -1
  98. package/cjs/components/radio/radio.js +5 -5
  99. package/cjs/components/result-page/result-page.css +5 -5
  100. package/cjs/components/swipe-action/swipe-action.d.ts +1 -1
  101. package/cjs/components/text-area/text-area.css +0 -3
  102. package/cjs/global/css-vars-patch.css +3 -3
  103. package/cjs/index.d.ts +1 -1
  104. package/cjs/index.js +6 -0
  105. package/cjs/locales/hu-HU.d.ts +139 -0
  106. package/cjs/locales/hu-HU.js +148 -0
  107. package/cjs/locales/th-TH.d.ts +139 -0
  108. package/cjs/locales/th-TH.js +149 -0
  109. package/cjs/utils/with-default-props.js +8 -9
  110. package/cjs/utils/with-stop-propagation.d.ts +1 -1
  111. package/cjs/utils/with-stop-propagation.js +2 -1
  112. package/es/components/button/button.d.ts +1 -1
  113. package/es/components/button/button.patch.css +3 -3
  114. package/es/components/cascader-view/use-cascader-value-extend.js +8 -3
  115. package/es/components/checkbox/native-input.js +1 -1
  116. package/es/components/config-provider/config-provider.d.ts +3 -2
  117. package/es/components/error-block/create-error-block.d.ts +1 -0
  118. package/es/components/error-block/create-error-block.js +1 -0
  119. package/es/components/error-block/index.d.ts +0 -1
  120. package/es/components/error-block/index.js +0 -1
  121. package/es/components/form/form-item.js +1 -0
  122. package/es/components/form/form.js +2 -2
  123. package/es/components/infinite-scroll/infinite-scroll.js +8 -4
  124. package/es/components/picker-view/wheel.js +6 -3
  125. package/es/components/popover/index.d.ts +1 -1
  126. package/es/components/popover/popover.d.ts +1 -1
  127. package/es/components/radio/radio.css +1 -1
  128. package/es/components/radio/radio.d.ts +1 -1
  129. package/es/components/radio/radio.js +4 -4
  130. package/es/components/result-page/result-page.css +5 -5
  131. package/es/components/swipe-action/swipe-action.d.ts +1 -1
  132. package/es/components/text-area/text-area.css +0 -3
  133. package/es/global/css-vars-patch.css +3 -3
  134. package/es/index.d.ts +1 -1
  135. package/es/index.js +1 -1
  136. package/es/locales/hu-HU.d.ts +139 -0
  137. package/es/locales/hu-HU.js +140 -0
  138. package/es/locales/th-TH.d.ts +139 -0
  139. package/es/locales/th-TH.js +142 -0
  140. package/es/utils/with-default-props.js +8 -8
  141. package/es/utils/with-stop-propagation.d.ts +1 -1
  142. package/es/utils/with-stop-propagation.js +2 -1
  143. package/package.json +11 -3
  144. package/umd/antd-mobile.js +1 -1
@@ -0,0 +1,148 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.huHU = exports.default = void 0;
7
+ var _mergeLocale = require("../utils/merge-locale");
8
+ var _base = require("./base");
9
+ const typeTemplate = '${label} is not a valid ${type}';
10
+ const huHU = (0, _mergeLocale.mergeLocale)(_base.base, {
11
+ locale: 'hu',
12
+ common: {
13
+ confirm: 'Alkalmazás',
14
+ cancel: 'Visszavonás',
15
+ loading: 'Betöltés',
16
+ close: 'Bezárás'
17
+ },
18
+ Calendar: {
19
+ title: 'Dátum kiválasztása',
20
+ confirm: 'Alkalmazás',
21
+ today: 'ma',
22
+ markItems: ['Hét', 'Ked', 'Sze', 'Csü', 'Pén', 'Szo', 'Vas'],
23
+ yearAndMonth: '${year}-${month}'
24
+ },
25
+ Cascader: {
26
+ placeholder: 'Kiválasztás'
27
+ },
28
+ Dialog: {
29
+ ok: 'OK'
30
+ },
31
+ DatePicker: {
32
+ tillNow: 'Till Now'
33
+ },
34
+ ErrorBlock: {
35
+ default: {
36
+ title: 'Oopsz, valami hiba történt',
37
+ description: 'Kérjük, várjon egy percet, és próbálja újra'
38
+ },
39
+ busy: {
40
+ title: 'Oopsz, nem sikerült betölteni',
41
+ description: 'Próbálja meg frissíteni az oldalt'
42
+ },
43
+ disconnected: {
44
+ title: 'A hálózat elfoglalt',
45
+ description: 'Próbálja meg frissíteni az oldalt'
46
+ },
47
+ empty: {
48
+ title: "Hmm, nem találjuk amit keresel...",
49
+ description: 'Szeretnél új keresést indítani?'
50
+ }
51
+ },
52
+ Form: {
53
+ required: 'Kötelező',
54
+ optional: 'Opcionális',
55
+ defaultValidateMessages: {
56
+ default: 'Mező validációs hiba ${label}',
57
+ required: 'Mező kitöltése kötelező ${label}',
58
+ enum: '${label} tatroznia kell [${enum}]',
59
+ whitespace: '${label} nem lehet üres karakter',
60
+ date: {
61
+ format: '${label} dátum formátuma érvénytelen',
62
+ parse: '${label} nem alakítható dátummá',
63
+ invalid: '${label} nem érvényes dátum'
64
+ },
65
+ types: {
66
+ string: typeTemplate,
67
+ method: typeTemplate,
68
+ array: typeTemplate,
69
+ object: typeTemplate,
70
+ number: typeTemplate,
71
+ date: typeTemplate,
72
+ boolean: typeTemplate,
73
+ integer: typeTemplate,
74
+ float: typeTemplate,
75
+ regexp: typeTemplate,
76
+ email: typeTemplate,
77
+ url: typeTemplate,
78
+ hex: typeTemplate
79
+ },
80
+ string: {
81
+ len: '${label} muszáj hogy ${len} karakter hosszú legyen',
82
+ min: '${label} muszáj hogy legalább ${min} karakter hosszú legyen',
83
+ max: '${label} muszáj hogy maximum ${max} karakter hosszú legyen',
84
+ range: '${label} muszáj hogy ${min}-${max} karakter hosszú legyen'
85
+ },
86
+ number: {
87
+ len: '${label} muszáj hogy ${len} legyen',
88
+ min: '${label} legalább ${min} legyen',
89
+ max: '${label} maximum ${max} lehet',
90
+ range: '${label} muszáj hogy ${min}-${max} között legyen'
91
+ },
92
+ array: {
93
+ len: 'Muszáj ${len} legyen ${label}',
94
+ min: 'Legalább ${min} ${label}',
95
+ max: 'Maximum ${max} ${label}',
96
+ range: '${label} értéke ${min}-${max} között kell legyen'
97
+ },
98
+ pattern: {
99
+ mismatch: '${label} nem hasonlít ${pattern}'
100
+ }
101
+ }
102
+ },
103
+ ImageUploader: {
104
+ uploading: 'Feltöltés...',
105
+ upload: 'Feltöltés'
106
+ },
107
+ InfiniteScroll: {
108
+ noMore: 'Nincs több',
109
+ failedToLoad: 'Nem sikerült betölteni',
110
+ retry: 'Újra'
111
+ },
112
+ Input: {
113
+ clear: 'Törlés'
114
+ },
115
+ Mask: {
116
+ name: 'Maszk'
117
+ },
118
+ Modal: {
119
+ ok: 'OK'
120
+ },
121
+ PasscodeInput: {
122
+ name: 'PIN-kód'
123
+ },
124
+ PullToRefresh: {
125
+ pulling: 'Görgessen le a frissítéshez',
126
+ canRelease: 'Engedje el az azonnalli frissítéshez',
127
+ complete: 'Sikeresen frissítve'
128
+ },
129
+ SearchBar: {
130
+ name: 'Keresés'
131
+ },
132
+ Slider: {
133
+ name: 'Csúszka'
134
+ },
135
+ Stepper: {
136
+ decrease: 'csökkentés',
137
+ increase: 'növelés'
138
+ },
139
+ Switch: {
140
+ name: 'Kapcsoló'
141
+ },
142
+ Selector: {
143
+ name: 'Kiválasztás'
144
+ }
145
+ });
146
+ exports.huHU = huHU;
147
+ var _default = huHU;
148
+ exports.default = _default;
@@ -0,0 +1,139 @@
1
+ declare const thTH: {
2
+ locale: string;
3
+ common: {
4
+ confirm: string;
5
+ cancel: string;
6
+ loading: string;
7
+ close: string;
8
+ };
9
+ Calendar: {
10
+ title: string;
11
+ confirm: string;
12
+ start: string;
13
+ end: string;
14
+ today: string;
15
+ markItems: string[];
16
+ yearAndMonth: string;
17
+ };
18
+ Cascader: {
19
+ placeholder: string;
20
+ };
21
+ Dialog: {
22
+ ok: string;
23
+ };
24
+ DatePicker: {
25
+ tillNow: string;
26
+ };
27
+ ErrorBlock: {
28
+ default: {
29
+ title: string;
30
+ description: string;
31
+ };
32
+ busy: {
33
+ title: string;
34
+ description: string;
35
+ };
36
+ disconnected: {
37
+ title: string;
38
+ description: string;
39
+ };
40
+ empty: {
41
+ title: string;
42
+ description: string;
43
+ };
44
+ };
45
+ Form: {
46
+ required: string;
47
+ optional: string;
48
+ defaultValidateMessages: {
49
+ default: string;
50
+ required: string;
51
+ enum: string;
52
+ whitespace: string;
53
+ date: {
54
+ format: string;
55
+ parse: string;
56
+ invalid: string;
57
+ };
58
+ types: {
59
+ string: string;
60
+ method: string;
61
+ array: string;
62
+ object: string;
63
+ number: string;
64
+ date: string;
65
+ boolean: string;
66
+ integer: string;
67
+ float: string;
68
+ regexp: string;
69
+ email: string;
70
+ url: string;
71
+ hex: string;
72
+ };
73
+ string: {
74
+ len: string;
75
+ min: string;
76
+ max: string;
77
+ range: string;
78
+ };
79
+ number: {
80
+ len: string;
81
+ min: string;
82
+ max: string;
83
+ range: string;
84
+ };
85
+ array: {
86
+ len: string;
87
+ min: string;
88
+ max: string;
89
+ range: string;
90
+ };
91
+ pattern: {
92
+ mismatch: string;
93
+ };
94
+ };
95
+ };
96
+ ImageUploader: {
97
+ uploading: string;
98
+ upload: string;
99
+ };
100
+ InfiniteScroll: {
101
+ noMore: string;
102
+ failedToLoad: string;
103
+ retry: string;
104
+ };
105
+ Input: {
106
+ clear: string;
107
+ };
108
+ Mask: {
109
+ name: string;
110
+ };
111
+ Modal: {
112
+ ok: string;
113
+ };
114
+ PasscodeInput: {
115
+ name: string;
116
+ };
117
+ PullToRefresh: {
118
+ pulling: string;
119
+ canRelease: string;
120
+ complete: string;
121
+ };
122
+ SearchBar: {
123
+ name: string;
124
+ };
125
+ Slider: {
126
+ name: string;
127
+ };
128
+ Stepper: {
129
+ decrease: string;
130
+ increase: string;
131
+ };
132
+ Switch: {
133
+ name: string;
134
+ };
135
+ Selector: {
136
+ name: string;
137
+ };
138
+ };
139
+ export default thTH;
@@ -0,0 +1,149 @@
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}ไม่ใช่${type}ที่ถูกต้อง';
10
+ const thTH = (0, _mergeLocale.mergeLocale)(_base.base, {
11
+ locale: 'th-TH',
12
+ common: {
13
+ confirm: 'ยืนยัน',
14
+ cancel: 'ยกเลิก',
15
+ loading: 'กำลังโหลด',
16
+ close: 'ปิด'
17
+ },
18
+ Calendar: {
19
+ title: 'เลือกวันที่',
20
+ confirm: 'ยืนยัน',
21
+ start: 'เริ่ม',
22
+ end: 'เสร็จ',
23
+ today: 'วันนี้',
24
+ markItems: ['วันจันทร์', 'วันอังคาร', 'วันพุธ', 'วันพฤหัสบดี', 'วันศุกร์', 'วันเสาร์', 'วันอาทิตย์'],
25
+ yearAndMonth: '${year}/${month}'
26
+ },
27
+ Cascader: {
28
+ placeholder: 'เลือก'
29
+ },
30
+ Dialog: {
31
+ ok: 'โอเค'
32
+ },
33
+ DatePicker: {
34
+ tillNow: 'จนถึงตอนนี้'
35
+ },
36
+ ErrorBlock: {
37
+ default: {
38
+ title: 'อุ๊ปส์, มีบางอย่างผิดพลาด',
39
+ description: 'กรุณารอสักครู่แล้วลองอีกครั้ง'
40
+ },
41
+ busy: {
42
+ title: 'อุ๊ปส์, ไม่ได้โหลด',
43
+ description: 'ลองรีเฟรชหน้า'
44
+ },
45
+ disconnected: {
46
+ title: 'เครือข่ายไม่ว่าง',
47
+ description: 'ลองรีเฟรชหน้า'
48
+ },
49
+ empty: {
50
+ title: 'อืมม, ไม่พบ...',
51
+ description: 'ลองค้นหาใหม่?'
52
+ }
53
+ },
54
+ Form: {
55
+ required: 'จำเป็น',
56
+ optional: 'ไม่จำเป็น',
57
+ defaultValidateMessages: {
58
+ default: 'ข้อผิดพลาดในการตรวจสอบฟิลด์ ${label}',
59
+ required: 'กรุณากรอก ${label}',
60
+ enum: '${label} ต้องเป็นหนึ่งใน [${enum}]',
61
+ whitespace: '${label} ต้องไม่มีช่องว่าง',
62
+ date: {
63
+ format: 'รูปแบบวันที่ ${label} ไม่ถูกต้อง',
64
+ parse: '${label} ไม่สามารถแปลงเป็นวันที่ได้',
65
+ invalid: '${label} เป็นวันที่ไม่ถูกต้อง'
66
+ },
67
+ types: {
68
+ string: typeTemplate,
69
+ method: typeTemplate,
70
+ array: typeTemplate,
71
+ object: typeTemplate,
72
+ number: typeTemplate,
73
+ date: typeTemplate,
74
+ boolean: typeTemplate,
75
+ integer: typeTemplate,
76
+ float: typeTemplate,
77
+ regexp: typeTemplate,
78
+ email: typeTemplate,
79
+ url: typeTemplate,
80
+ hex: typeTemplate
81
+ },
82
+ string: {
83
+ len: '${label} ต้องมี ${len} ตัวอักษร',
84
+ min: '${label} ต้องมีอย่างน้อย ${min} ตัวอักษร',
85
+ max: '${label} ต้องมีไม่เกิน ${max} ตัวอักษร',
86
+ range: '${label} ต้องอยู่ระหว่าง ${min}-${max} ตัวอักษร'
87
+ },
88
+ number: {
89
+ len: '${label} ต้องเท่ากับ ${len}',
90
+ min: '${label} ต้องมีอย่างน้อย ${min}',
91
+ max: '${label} ต้องมีไม่เกิน ${max}',
92
+ range: '${label} ต้องอยู่ระหว่าง ${min}-${max}'
93
+ },
94
+ array: {
95
+ len: 'ต้องมี ${len} ${label}',
96
+ min: 'อย่างน้อย ${min} ${label}',
97
+ max: 'มากสุด ${max} ${label}',
98
+ range: 'จำนวน ${label} ต้องอยู่ระหว่าง ${min}-${max}'
99
+ },
100
+ pattern: {
101
+ mismatch: '${label} ไม่ตรงกับรูปแบบ ${pattern}'
102
+ }
103
+ }
104
+ },
105
+ ImageUploader: {
106
+ uploading: 'กำลังอัปโหลด...',
107
+ upload: 'อัปโหลด'
108
+ },
109
+ InfiniteScroll: {
110
+ noMore: 'ไม่มีเพิ่มเติม',
111
+ failedToLoad: 'โหลดล้มเหลว',
112
+ retry: 'ลองใหม่'
113
+ },
114
+ Input: {
115
+ clear: 'ชัดเจน'
116
+ },
117
+ Mask: {
118
+ name: 'มาสก์'
119
+ },
120
+ Modal: {
121
+ ok: 'ตกลง'
122
+ },
123
+ PasscodeInput: {
124
+ name: 'ป้อนรหัสผ่าน'
125
+ },
126
+ PullToRefresh: {
127
+ pulling: 'ดึงลงเพื่อรีเฟรช',
128
+ canRelease: 'ปล่อยเพื่อรีเฟรชทันที',
129
+ complete: 'รีเฟรชสำเร็จ'
130
+ },
131
+ SearchBar: {
132
+ name: 'แถบค้นหา'
133
+ },
134
+ Slider: {
135
+ name: 'สไลด์เดอร์'
136
+ },
137
+ Stepper: {
138
+ decrease: 'ลด',
139
+ increase: 'เพิ่ม'
140
+ },
141
+ Switch: {
142
+ name: 'สวิตช์'
143
+ },
144
+ Selector: {
145
+ name: 'เลือก'
146
+ }
147
+ });
148
+ var _default = thTH;
149
+ exports.default = _default;
@@ -4,15 +4,14 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.mergeProps = mergeProps;
7
- var _assignWith = _interopRequireDefault(require("lodash/assignWith"));
8
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
7
  function mergeProps(...items) {
10
- function customizer(objValue, srcValue) {
11
- return srcValue === undefined ? objValue : srcValue;
12
- }
13
- let ret = Object.assign({}, items[0]);
14
- for (let i = 1; i < items.length; i++) {
15
- ret = (0, _assignWith.default)(ret, items[i], customizer);
16
- }
8
+ const ret = {};
9
+ items.forEach(item => {
10
+ Object.keys(item).forEach(key => {
11
+ if (item[key] !== undefined) {
12
+ ret[key] = item[key];
13
+ }
14
+ });
15
+ });
17
16
  return ret;
18
17
  }
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import type { ReactElement } from 'react';
3
- export declare type PropagationEvent = 'click';
3
+ export declare type PropagationEvent = 'click' | 'touchstart';
4
4
  export declare function withStopPropagation(events: PropagationEvent[], element: ReactElement): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
@@ -7,7 +7,8 @@ exports.withStopPropagation = withStopPropagation;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
9
  const eventToPropRecord = {
10
- 'click': 'onClick'
10
+ 'click': 'onClick',
11
+ 'touchstart': 'onTouchStart'
11
12
  };
12
13
  function withStopPropagation(events, element) {
13
14
  const props = Object.assign({}, element.props);
@@ -32,7 +32,7 @@ export declare const Button: React.ForwardRefExoticComponent<{
32
32
  type?: "reset" | "submit" | "button" | undefined;
33
33
  shape?: "default" | "rounded" | "rectangular" | undefined;
34
34
  children?: ReactNode;
35
- } & Pick<NativeButtonProps, "id" | "onMouseDown" | "onMouseUp" | "onTouchEnd" | "onTouchStart"> & {
35
+ } & Pick<NativeButtonProps, "id" | "onTouchStart" | "onMouseDown" | "onMouseUp" | "onTouchEnd"> & {
36
36
  className?: string | undefined;
37
37
  style?: (React.CSSProperties & Partial<Record<"--border-radius" | "--text-color" | "--background-color" | "--border-width" | "--border-style" | "--border-color", string>>) | undefined;
38
38
  tabIndex?: number | undefined;
@@ -47,12 +47,12 @@
47
47
  color: #00b578;
48
48
  }
49
49
  .adm-button-danger {
50
- background-color: #00b578;
51
- border-color: #00b578;
50
+ background-color: #ff3141;
51
+ border-color: #ff3141;
52
52
  }
53
53
  .adm-button-danger.adm-button-fill-outline,
54
54
  .adm-button-danger.adm-button-fill-none {
55
- color: #00b578;
55
+ color: #ff3141;
56
56
  }
57
57
  .adm-button-warning {
58
58
  background-color: #ff8f1f;
@@ -1,5 +1,6 @@
1
1
  import { useMemo } from 'react';
2
- import memoize from 'lodash/memoize';
2
+ import isEqual from 'react-fast-compare';
3
+ import memoize from 'nano-memoize';
3
4
  export function useCascaderValueExtend(options, fieldNames) {
4
5
  const {
5
6
  valueName,
@@ -19,7 +20,9 @@ export function useCascaderValueExtend(options, fieldNames) {
19
20
  currentOptions = target[childrenName];
20
21
  }
21
22
  return ret;
22
- }, val => JSON.stringify(val));
23
+ }, {
24
+ equals: isEqual
25
+ });
23
26
  }, [options]);
24
27
  const generateIsLeaf = useMemo(() => {
25
28
  return memoize(val => {
@@ -28,7 +31,9 @@ export function useCascaderValueExtend(options, fieldNames) {
28
31
  return ((_a = currentOptions.find(option => option[valueName] === v)) === null || _a === void 0 ? void 0 : _a[childrenName]) || [];
29
32
  }, options);
30
33
  return children.length === 0;
31
- }, val => JSON.stringify(val));
34
+ }, {
35
+ equals: isEqual
36
+ });
32
37
  }, [options]);
33
38
  function generateValueExtend(val) {
34
39
  return {
@@ -1,5 +1,5 @@
1
- import React, { useEffect, useRef } from 'react';
2
1
  import { useMemoizedFn } from 'ahooks';
2
+ import React, { useEffect, useRef } from 'react';
3
3
  export const NativeInput = props => {
4
4
  const inputRef = useRef(null);
5
5
  const handleClick = useMemoizedFn(e => {
@@ -2,14 +2,15 @@ import type { FC, ReactNode } from 'react';
2
2
  import { Locale } from '../../locales/base';
3
3
  declare type Config = {
4
4
  locale: Locale;
5
- children?: ReactNode;
6
5
  };
7
6
  export declare const defaultConfigRef: {
8
7
  current: Config;
9
8
  };
10
9
  export declare function setDefaultConfig(config: Config): void;
11
10
  export declare function getDefaultConfig(): Config;
12
- export declare type ConfigProviderProps = Config;
11
+ export declare type ConfigProviderProps = Config & {
12
+ children?: ReactNode;
13
+ };
13
14
  export declare const ConfigProvider: FC<ConfigProviderProps>;
14
15
  export declare function useConfig(): Config;
15
16
  export {};
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import type { ReactNode, ReactElement } from 'react';
3
3
  import { NativeProps } from '../../utils/native-props';
4
4
  import type { ErrorBlockStatus, ImageRecord } from '.';
5
+ import './error-block.less';
5
6
  export declare type ErrorBlockProps = {
6
7
  status?: ErrorBlockStatus;
7
8
  title?: ReactNode;
@@ -3,6 +3,7 @@ import classNames from 'classnames';
3
3
  import { mergeProps } from '../../utils/with-default-props';
4
4
  import { withNativeProps } from '../../utils/native-props';
5
5
  import { useConfig } from '../config-provider';
6
+ import "./error-block.css";
6
7
  const classPrefix = `adm-error-block`;
7
8
  const defaultProps = {
8
9
  status: 'default'
@@ -1,4 +1,3 @@
1
- import './error-block.less';
2
1
  import type { ReactNode } from 'react';
3
2
  import { ErrorBlock } from './error-block';
4
3
  export { createErrorBlock } from './create-error-block';
@@ -1,4 +1,3 @@
1
- import "./error-block.css";
2
1
  import { ErrorBlock } from './error-block';
3
2
  export { createErrorBlock } from './create-error-block';
4
3
  export default ErrorBlock;
@@ -71,6 +71,7 @@ const FormItemLayout = props => {
71
71
  }, React.createElement("span", {
72
72
  className: `${classPrefix}-label-help`,
73
73
  onClick: e => {
74
+ e.stopPropagation();
74
75
  e.preventDefault();
75
76
  }
76
77
  }, React.createElement(QuestionCircleOutline, null))));
@@ -7,7 +7,7 @@ import { defaultFormContext, FormContext } from './context';
7
7
  import { mergeProps } from '../../utils/with-default-props';
8
8
  import { Header } from './header';
9
9
  import { useConfig } from '../config-provider';
10
- import merge from 'lodash/merge';
10
+ import merge from 'deepmerge';
11
11
  import { FormArray } from './form-array';
12
12
  import { traverseReactNode } from '../../utils/traverse-react-node';
13
13
  const classPrefix = 'adm-form';
@@ -29,7 +29,7 @@ export const Form = forwardRef((p, ref) => {
29
29
  const {
30
30
  locale
31
31
  } = useConfig();
32
- const validateMessages = useMemo(() => merge({}, locale.Form.defaultValidateMessages, formProps.validateMessages), [locale.Form.defaultValidateMessages, formProps.validateMessages]);
32
+ const validateMessages = useMemo(() => merge(locale.Form.defaultValidateMessages, formProps.validateMessages || {}), [locale.Form.defaultValidateMessages, formProps.validateMessages]);
33
33
  const lists = [];
34
34
  let currentHeader = null;
35
35
  let items = [];
@@ -51,8 +51,10 @@ export const InfiniteScroll = p => {
51
51
  if (current >= elementTop - props.threshold) {
52
52
  const nextFlag = {};
53
53
  nextFlagRef.current = nextFlag;
54
- yield doLoadMore(false);
55
- setFlag(nextFlag);
54
+ try {
55
+ yield doLoadMore(false);
56
+ setFlag(nextFlag);
57
+ } catch (e) {}
56
58
  }
57
59
  }), {
58
60
  wait: 100,
@@ -78,8 +80,10 @@ export const InfiniteScroll = p => {
78
80
  function retry() {
79
81
  return __awaiter(this, void 0, void 0, function* () {
80
82
  setFailed(false);
81
- yield doLoadMore(true);
82
- setFlag(nextFlagRef.current);
83
+ try {
84
+ yield doLoadMore(true);
85
+ setFlag(nextFlagRef.current);
86
+ } catch (e) {}
83
87
  });
84
88
  }
85
89
  return withNativeProps(props, React.createElement("div", {
@@ -3,10 +3,11 @@ import { useSpring, animated } from '@react-spring/web';
3
3
  import { useDrag, useWheel } from '@use-gesture/react';
4
4
  import { rubberbandIfOutOfBounds } from '../../utils/rubberband';
5
5
  import { bound } from '../../utils/bound';
6
- import isEqual from 'lodash/isEqual';
6
+ import isEqual from 'react-fast-compare';
7
7
  import { useIsomorphicLayoutEffect } from 'ahooks';
8
8
  import { measureCSSLength } from '../../utils/measure-css-length';
9
9
  import { supportsPassive } from '../../utils/supports-passive';
10
+ import classNames from 'classnames';
10
11
  const classPrefix = `adm-picker-view`;
11
12
  export const Wheel = memo(props => {
12
13
  const {
@@ -214,8 +215,10 @@ export const Wheel = memo(props => {
214
215
  }
215
216
  return React.createElement("div", {
216
217
  key: (_a = item.key) !== null && _a !== void 0 ? _a : item.value,
217
- "data-selected": item.value === value,
218
- className: `${classPrefix}-column-item`,
218
+ "data-selected": selected,
219
+ className: classNames(`${classPrefix}-column-item`, {
220
+ [`${classPrefix}-column-item-active`]: selected
221
+ }),
219
222
  onClick: handleClick,
220
223
  "aria-hidden": !selected,
221
224
  "aria-label": selected ? 'active' : ''
@@ -14,7 +14,7 @@ declare const _default: import("react").ForwardRefExoticComponent<{
14
14
  mode?: "dark" | "light" | undefined;
15
15
  trigger?: "click" | undefined;
16
16
  placement?: DeprecatedPlacement | Placement | undefined;
17
- stopPropagation?: "click"[] | undefined;
17
+ stopPropagation?: import("../../utils/with-stop-propagation").PropagationEvent[] | undefined;
18
18
  content: import("react").ReactNode;
19
19
  } & {
20
20
  className?: string | undefined;