assui 3.2.39 → 3.2.40

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 (512) hide show
  1. package/es/a-select/index.d.ts +5 -5
  2. package/es/a-select/index.js +88 -59
  3. package/es/a-select/style/index.css +52 -47
  4. package/es/a-select/style/index.js +2 -2
  5. package/es/a-select/style/index.less +2 -1
  6. package/es/area-text/index.d.ts +2 -2
  7. package/es/area-text/index.js +9 -5
  8. package/es/area-text/style/index.js +1 -1
  9. package/es/beautiful-dnd/index.js +1 -1
  10. package/es/button-drawer/index.d.ts +10 -8
  11. package/es/button-drawer/index.js +94 -61
  12. package/es/button-drawer/style/index.js +1 -1
  13. package/es/button-modal/index.d.ts +10 -8
  14. package/es/button-modal/index.js +93 -60
  15. package/es/button-modal/style/index.js +1 -1
  16. package/es/client-only/index.d.ts +2 -2
  17. package/es/client-only/index.js +1 -1
  18. package/es/client-only/useClientOnly.js +24 -22
  19. package/es/color-select/index.d.ts +18 -18
  20. package/es/color-select/index.js +113 -68
  21. package/es/color-select/style/index.css +52 -47
  22. package/es/color-select/style/index.js +1 -1
  23. package/es/complex-val-select/index.d.ts +25 -13
  24. package/es/complex-val-select/index.js +71 -54
  25. package/es/complex-val-select/style/index.js +1 -1
  26. package/es/condition-input/index.d.ts +21 -13
  27. package/es/condition-input/index.js +67 -51
  28. package/es/condition-input/parse2RegexOption.d.ts +10 -7
  29. package/es/condition-input/parse2RegexOption.js +31 -21
  30. package/es/condition-input/style/index.js +1 -1
  31. package/es/condition-select-input/index.d.ts +29 -29
  32. package/es/condition-select-input/index.js +196 -106
  33. package/es/condition-select-input/style/index.d.ts +1 -1
  34. package/es/condition-select-input/style/index.js +3 -3
  35. package/es/config-provider/context.d.ts +1 -1
  36. package/es/config-provider/context.js +2 -2
  37. package/es/config-provider/index.d.ts +27 -3
  38. package/es/config-provider/index.js +9 -5
  39. package/es/copy-to-clipboard/index.d.ts +20 -18
  40. package/es/copy-to-clipboard/index.js +63 -44
  41. package/es/copy-to-clipboard/style/index.css +23 -14
  42. package/es/copy-to-clipboard/style/index.js +1 -1
  43. package/es/count-down/index.d.ts +3 -3
  44. package/es/count-down/index.js +44 -26
  45. package/es/count-up/index.d.ts +2 -2
  46. package/es/count-up/index.js +1 -1
  47. package/es/flex/index.d.ts +21 -18
  48. package/es/flex/index.js +64 -32
  49. package/es/flex/style/index.css +52 -47
  50. package/es/flex/style/index.js +1 -1
  51. package/es/flex/utils/gapSize.js +1 -1
  52. package/es/flex/utils/index.d.ts +27 -3
  53. package/es/flex/utils/index.js +53 -19
  54. package/es/highlight-textarea/HighlighedContents.d.ts +6 -3
  55. package/es/highlight-textarea/HighlighedContents.js +9 -5
  56. package/es/highlight-textarea/extractSpansOfClasses.d.ts +10 -10
  57. package/es/highlight-textarea/extractSpansOfClasses.js +62 -45
  58. package/es/highlight-textarea/getRanges.js +41 -34
  59. package/es/highlight-textarea/getType.js +6 -2
  60. package/es/highlight-textarea/index.d.ts +14 -7
  61. package/es/highlight-textarea/index.js +114 -70
  62. package/es/highlight-textarea/style/index.css +125 -55
  63. package/es/highlight-textarea/style/index.js +1 -1
  64. package/es/highlight-textarea/types.d.ts +26 -7
  65. package/es/highlight-textarea/types.js +1 -1
  66. package/es/highlight-words/index.d.ts +6 -2
  67. package/es/highlight-words/index.js +1 -1
  68. package/es/img-crop/EasyCrop.d.ts +6 -2
  69. package/es/img-crop/EasyCrop.js +104 -79
  70. package/es/img-crop/getCroppedImg.d.ts +8 -3
  71. package/es/img-crop/getCroppedImg.js +155 -118
  72. package/es/img-crop/index.d.ts +29 -29
  73. package/es/img-crop/index.js +490 -340
  74. package/es/img-crop/style/index.css +52 -47
  75. package/es/img-crop/style/index.d.ts +1 -1
  76. package/es/img-crop/style/index.js +3 -3
  77. package/es/index.d.ts +77 -71
  78. package/es/index.js +28 -28
  79. package/es/json-editor/index.d.ts +7 -5
  80. package/es/json-editor/index.js +91 -62
  81. package/es/json-editor/style/index.js +1 -1
  82. package/es/keep-tab/index.d.ts +17 -17
  83. package/es/keep-tab/index.js +125 -78
  84. package/es/keep-tab/style/index.css +72 -32
  85. package/es/keep-tab/style/index.js +1 -1
  86. package/es/label-auto-complete/index.d.ts +3 -3
  87. package/es/label-auto-complete/index.js +82 -58
  88. package/es/label-auto-complete/style/index.css +61 -50
  89. package/es/label-auto-complete/style/index.js +2 -2
  90. package/es/label-condition-input/index.d.ts +12 -11
  91. package/es/label-condition-input/index.js +100 -62
  92. package/es/label-condition-input/style/index.css +52 -47
  93. package/es/label-condition-input/style/index.js +1 -1
  94. package/es/label-condition-select-input/index.d.ts +35 -33
  95. package/es/label-condition-select-input/index.js +198 -109
  96. package/es/label-condition-select-input/style/index.css +52 -47
  97. package/es/label-condition-select-input/style/index.d.ts +1 -1
  98. package/es/label-condition-select-input/style/index.js +2 -2
  99. package/es/label-customize-range-picker/defaultRadioList.d.ts +34 -28
  100. package/es/label-customize-range-picker/defaultRadioList.js +206 -114
  101. package/es/label-customize-range-picker/index.d.ts +27 -24
  102. package/es/label-customize-range-picker/index.js +300 -141
  103. package/es/label-customize-range-picker/style/index.css +52 -47
  104. package/es/label-customize-range-picker/style/index.d.ts +2 -2
  105. package/es/label-customize-range-picker/style/index.js +4 -4
  106. package/es/label-customize-range-picker/utils/index.d.ts +9 -3
  107. package/es/label-customize-range-picker/utils/index.js +57 -29
  108. package/es/label-date-picker/index.d.ts +2 -2
  109. package/es/label-date-picker/index.js +81 -57
  110. package/es/label-date-picker/style/index.css +52 -47
  111. package/es/label-date-picker/style/index.js +2 -2
  112. package/es/label-input/index.d.ts +29 -25
  113. package/es/label-input/index.js +122 -80
  114. package/es/label-input/style/index.css +52 -47
  115. package/es/label-input/style/index.js +1 -1
  116. package/es/label-number-input/index.d.ts +6 -6
  117. package/es/label-number-input/index.js +101 -63
  118. package/es/label-number-input/style/index.css +54 -48
  119. package/es/label-number-input/style/index.js +1 -1
  120. package/es/label-range-number/index.d.ts +17 -17
  121. package/es/label-range-number/index.js +156 -95
  122. package/es/label-range-number/style/index.css +52 -47
  123. package/es/label-range-number/style/index.js +1 -1
  124. package/es/label-range-picker/index.d.ts +3 -3
  125. package/es/label-range-picker/index.js +103 -71
  126. package/es/label-range-picker/style/index.css +52 -47
  127. package/es/label-range-picker/style/index.js +2 -2
  128. package/es/label-select/index.d.ts +7 -5
  129. package/es/label-select/index.js +100 -69
  130. package/es/label-select/style/index.css +65 -51
  131. package/es/label-select/style/index.js +2 -2
  132. package/es/label-text-area/index.d.ts +21 -17
  133. package/es/label-text-area/index.js +97 -64
  134. package/es/label-text-area/style/index.css +52 -47
  135. package/es/label-text-area/style/index.js +1 -1
  136. package/es/label-tree-select/index.d.ts +8 -7
  137. package/es/label-tree-select/index.js +98 -61
  138. package/es/label-tree-select/style/index.css +55 -48
  139. package/es/label-tree-select/style/index.js +2 -2
  140. package/es/messages/ar_EG.d.ts +24 -24
  141. package/es/messages/ar_EG.js +5 -5
  142. package/es/messages/bg_BG.d.ts +24 -24
  143. package/es/messages/bg_BG.js +5 -5
  144. package/es/messages/cs_CZ.d.ts +24 -24
  145. package/es/messages/cs_CZ.js +5 -5
  146. package/es/messages/de_DE.d.ts +24 -24
  147. package/es/messages/de_DE.js +5 -5
  148. package/es/messages/en_US.d.ts +24 -24
  149. package/es/messages/en_US.js +5 -5
  150. package/es/messages/es_ES.d.ts +24 -24
  151. package/es/messages/es_ES.js +5 -5
  152. package/es/messages/fi_FI.d.ts +24 -24
  153. package/es/messages/fi_FI.js +5 -5
  154. package/es/messages/fr_FR.d.ts +24 -24
  155. package/es/messages/fr_FR.js +5 -5
  156. package/es/messages/id_ID.d.ts +24 -24
  157. package/es/messages/id_ID.js +5 -5
  158. package/es/messages/index.d.ts +27 -23
  159. package/es/messages/index.js +3 -3
  160. package/es/messages/it_IT.d.ts +24 -24
  161. package/es/messages/it_IT.js +5 -5
  162. package/es/messages/ja_JP.d.ts +24 -24
  163. package/es/messages/ja_JP.js +5 -5
  164. package/es/messages/ko_KR.d.ts +24 -24
  165. package/es/messages/ko_KR.js +5 -5
  166. package/es/messages/ms_MY.d.ts +24 -24
  167. package/es/messages/ms_MY.js +5 -5
  168. package/es/messages/nb_NO.d.ts +24 -24
  169. package/es/messages/nb_NO.js +5 -5
  170. package/es/messages/nl_NL.d.ts +24 -24
  171. package/es/messages/nl_NL.js +5 -5
  172. package/es/messages/pt_PT.d.ts +24 -24
  173. package/es/messages/pt_PT.js +5 -5
  174. package/es/messages/ro_RO.d.ts +24 -24
  175. package/es/messages/ro_RO.js +5 -5
  176. package/es/messages/ru_RU.d.ts +24 -24
  177. package/es/messages/ru_RU.js +5 -5
  178. package/es/messages/sv_SE.d.ts +24 -24
  179. package/es/messages/sv_SE.js +5 -5
  180. package/es/messages/th_TH.d.ts +24 -24
  181. package/es/messages/th_TH.js +5 -5
  182. package/es/messages/ug_UG.d.ts +24 -24
  183. package/es/messages/ug_UG.js +5 -5
  184. package/es/messages/vi_VN.d.ts +24 -24
  185. package/es/messages/vi_VN.js +5 -5
  186. package/es/messages/zh_CN.d.ts +24 -24
  187. package/es/messages/zh_CN.js +5 -5
  188. package/es/messages/zh_TW.d.ts +24 -24
  189. package/es/messages/zh_TW.js +5 -5
  190. package/es/multipart-upload/getMultipartUploadHandler.d.ts +3 -1
  191. package/es/multipart-upload/getMultipartUploadHandler.js +8 -6
  192. package/es/multipart-upload/index.d.ts +39 -33
  193. package/es/multipart-upload/index.js +217 -121
  194. package/es/multipart-upload/parse2RegexOption.d.ts +10 -7
  195. package/es/multipart-upload/parse2RegexOption.js +31 -21
  196. package/es/multipart-upload/style/index.css +52 -47
  197. package/es/multipart-upload/style/index.js +2 -2
  198. package/es/number-format-input/index.js +36 -25
  199. package/es/number-format-input/style/index.js +1 -1
  200. package/es/number-input/const/dataTypeEnum.d.ts +2 -2
  201. package/es/number-input/const/dataTypeEnum.js +1 -1
  202. package/es/number-input/const/numberType.d.ts +2 -2
  203. package/es/number-input/const/numberType.js +1 -1
  204. package/es/number-input/index.d.ts +37 -35
  205. package/es/number-input/index.js +94 -65
  206. package/es/number-input/style/index.js +1 -1
  207. package/es/number-input/utils.d.ts +15 -6
  208. package/es/number-input/utils.js +2 -2
  209. package/es/rc-echart/core.d.ts +13 -13
  210. package/es/rc-echart/core.js +28 -19
  211. package/es/rc-echart/index.d.ts +12 -12
  212. package/es/rc-echart/index.js +26 -16
  213. package/es/rc-motion/index.d.ts +14 -2
  214. package/es/rc-motion/index.js +1 -1
  215. package/es/rc-qrcode/index.d.ts +11 -8
  216. package/es/rc-qrcode/index.js +21 -17
  217. package/es/rc-qrcode/useQrcode.d.ts +5 -2
  218. package/es/rc-qrcode/useQrcode.js +38 -33
  219. package/es/rc-transition-group/index.js +1 -1
  220. package/es/resizable/index.d.ts +10 -1
  221. package/es/resizable/index.js +1 -1
  222. package/es/resizable/style/index.js +1 -1
  223. package/es/rich-text-editor/index.d.ts +18 -18
  224. package/es/rich-text-editor/index.js +78 -45
  225. package/es/rich-text-editor/lang/zh_CN.d.ts +404 -404
  226. package/es/rich-text-editor/lang/zh_CN.js +416 -393
  227. package/es/rich-text-editor/plugins/code/index.js +25 -20
  228. package/es/rich-text-editor/style/index.css +52 -47
  229. package/es/rich-text-editor/style/index.js +1 -1
  230. package/es/single-img-upload/index.d.ts +8 -8
  231. package/es/single-img-upload/index.js +338 -230
  232. package/es/single-img-upload/style/index.css +52 -47
  233. package/es/single-img-upload/style/index.js +4 -4
  234. package/es/sortable-hoc/index.js +1 -1
  235. package/es/split-pane/index.d.ts +53 -53
  236. package/es/split-pane/index.js +17 -13
  237. package/es/split-pane/style/index.js +1 -1
  238. package/es/step-number-input/const/countType.d.ts +2 -2
  239. package/es/step-number-input/const/countType.js +1 -1
  240. package/es/step-number-input/const/numberType.d.ts +2 -2
  241. package/es/step-number-input/const/numberType.js +1 -1
  242. package/es/step-number-input/index.d.ts +31 -31
  243. package/es/step-number-input/index.js +135 -85
  244. package/es/step-number-input/style/index.css +52 -47
  245. package/es/step-number-input/style/index.js +2 -2
  246. package/es/table-col/index.d.ts +3 -3
  247. package/es/table-col/index.js +11 -7
  248. package/es/table-col/style/index.js +1 -1
  249. package/es/text-area/index.d.ts +13 -8
  250. package/es/text-area/index.js +64 -48
  251. package/es/text-area/style/index.js +1 -1
  252. package/es/text-input/index.d.ts +3 -1
  253. package/es/text-input/index.js +76 -58
  254. package/es/text-input/style/index.css +123 -53
  255. package/es/text-input/style/index.js +1 -1
  256. package/lib/a-select/index.d.ts +5 -5
  257. package/lib/a-select/index.js +102 -69
  258. package/lib/a-select/style/index.css +52 -47
  259. package/lib/a-select/style/index.js +5 -5
  260. package/lib/a-select/style/index.less +2 -1
  261. package/lib/area-text/index.d.ts +2 -2
  262. package/lib/area-text/index.js +21 -13
  263. package/lib/area-text/style/index.js +4 -4
  264. package/lib/beautiful-dnd/index.js +52 -37
  265. package/lib/button-drawer/index.d.ts +10 -8
  266. package/lib/button-drawer/index.js +153 -101
  267. package/lib/button-drawer/style/index.js +4 -4
  268. package/lib/button-modal/index.d.ts +10 -8
  269. package/lib/button-modal/index.js +151 -99
  270. package/lib/button-modal/style/index.js +4 -4
  271. package/lib/client-only/index.d.ts +2 -2
  272. package/lib/client-only/index.js +5 -5
  273. package/lib/client-only/useClientOnly.js +28 -26
  274. package/lib/color-select/index.d.ts +18 -18
  275. package/lib/color-select/index.js +180 -112
  276. package/lib/color-select/style/index.css +52 -47
  277. package/lib/color-select/style/index.js +5 -5
  278. package/lib/complex-val-select/index.d.ts +25 -13
  279. package/lib/complex-val-select/index.js +140 -102
  280. package/lib/complex-val-select/style/index.js +4 -4
  281. package/lib/condition-input/index.d.ts +21 -13
  282. package/lib/condition-input/index.js +131 -96
  283. package/lib/condition-input/parse2RegexOption.d.ts +10 -7
  284. package/lib/condition-input/parse2RegexOption.js +47 -33
  285. package/lib/condition-input/style/index.js +4 -4
  286. package/lib/condition-select-input/index.d.ts +29 -29
  287. package/lib/condition-select-input/index.js +259 -150
  288. package/lib/condition-select-input/style/index.d.ts +1 -1
  289. package/lib/condition-select-input/style/index.js +6 -6
  290. package/lib/config-provider/context.d.ts +1 -1
  291. package/lib/config-provider/context.js +15 -11
  292. package/lib/config-provider/index.d.ts +27 -3
  293. package/lib/config-provider/index.js +69 -61
  294. package/lib/copy-to-clipboard/index.d.ts +20 -18
  295. package/lib/copy-to-clipboard/index.js +124 -86
  296. package/lib/copy-to-clipboard/style/index.css +23 -14
  297. package/lib/copy-to-clipboard/style/index.js +4 -4
  298. package/lib/count-down/index.d.ts +3 -3
  299. package/lib/count-down/index.js +58 -36
  300. package/lib/count-up/index.d.ts +2 -2
  301. package/lib/count-up/index.js +54 -39
  302. package/lib/flex/index.d.ts +21 -18
  303. package/lib/flex/index.js +78 -42
  304. package/lib/flex/style/index.css +52 -47
  305. package/lib/flex/style/index.js +4 -4
  306. package/lib/flex/utils/gapSize.js +4 -4
  307. package/lib/flex/utils/index.d.ts +27 -3
  308. package/lib/flex/utils/index.js +65 -27
  309. package/lib/highlight-textarea/HighlighedContents.d.ts +6 -3
  310. package/lib/highlight-textarea/HighlighedContents.js +24 -16
  311. package/lib/highlight-textarea/extractSpansOfClasses.d.ts +10 -10
  312. package/lib/highlight-textarea/extractSpansOfClasses.js +75 -54
  313. package/lib/highlight-textarea/getRanges.js +55 -44
  314. package/lib/highlight-textarea/getType.js +10 -6
  315. package/lib/highlight-textarea/index.d.ts +14 -7
  316. package/lib/highlight-textarea/index.js +176 -113
  317. package/lib/highlight-textarea/style/index.css +125 -55
  318. package/lib/highlight-textarea/style/index.js +4 -4
  319. package/lib/highlight-textarea/types.d.ts +26 -7
  320. package/lib/highlight-textarea/types.js +4 -4
  321. package/lib/highlight-words/index.d.ts +6 -2
  322. package/lib/highlight-words/index.js +13 -9
  323. package/lib/img-crop/EasyCrop.d.ts +6 -2
  324. package/lib/img-crop/EasyCrop.js +164 -120
  325. package/lib/img-crop/getCroppedImg.d.ts +8 -3
  326. package/lib/img-crop/getCroppedImg.js +158 -121
  327. package/lib/img-crop/index.d.ts +29 -29
  328. package/lib/img-crop/index.js +555 -383
  329. package/lib/img-crop/style/index.css +52 -47
  330. package/lib/img-crop/style/index.d.ts +1 -1
  331. package/lib/img-crop/style/index.js +6 -6
  332. package/lib/index.d.ts +77 -71
  333. package/lib/index.js +249 -198
  334. package/lib/json-editor/index.d.ts +7 -5
  335. package/lib/json-editor/index.js +156 -108
  336. package/lib/json-editor/style/index.js +5 -5
  337. package/lib/keep-tab/index.d.ts +17 -17
  338. package/lib/keep-tab/index.js +186 -120
  339. package/lib/keep-tab/style/index.css +72 -32
  340. package/lib/keep-tab/style/index.js +4 -4
  341. package/lib/label-auto-complete/index.d.ts +3 -3
  342. package/lib/label-auto-complete/index.js +103 -71
  343. package/lib/label-auto-complete/style/index.css +61 -50
  344. package/lib/label-auto-complete/style/index.js +5 -5
  345. package/lib/label-condition-input/index.d.ts +12 -11
  346. package/lib/label-condition-input/index.js +119 -77
  347. package/lib/label-condition-input/style/index.css +52 -47
  348. package/lib/label-condition-input/style/index.js +4 -4
  349. package/lib/label-condition-select-input/index.d.ts +35 -33
  350. package/lib/label-condition-select-input/index.js +262 -154
  351. package/lib/label-condition-select-input/style/index.css +52 -47
  352. package/lib/label-condition-select-input/style/index.d.ts +1 -1
  353. package/lib/label-condition-select-input/style/index.js +6 -6
  354. package/lib/label-customize-range-picker/defaultRadioList.d.ts +34 -28
  355. package/lib/label-customize-range-picker/defaultRadioList.js +297 -156
  356. package/lib/label-customize-range-picker/index.d.ts +27 -24
  357. package/lib/label-customize-range-picker/index.js +363 -186
  358. package/lib/label-customize-range-picker/style/index.css +52 -47
  359. package/lib/label-customize-range-picker/style/index.d.ts +2 -2
  360. package/lib/label-customize-range-picker/style/index.js +8 -8
  361. package/lib/label-customize-range-picker/utils/index.d.ts +9 -3
  362. package/lib/label-customize-range-picker/utils/index.js +75 -38
  363. package/lib/label-date-picker/index.d.ts +2 -2
  364. package/lib/label-date-picker/index.js +96 -68
  365. package/lib/label-date-picker/style/index.css +52 -47
  366. package/lib/label-date-picker/style/index.js +5 -5
  367. package/lib/label-input/index.d.ts +29 -25
  368. package/lib/label-input/index.js +142 -96
  369. package/lib/label-input/style/index.css +52 -47
  370. package/lib/label-input/style/index.js +4 -4
  371. package/lib/label-number-input/index.d.ts +6 -6
  372. package/lib/label-number-input/index.js +122 -78
  373. package/lib/label-number-input/style/index.css +54 -48
  374. package/lib/label-number-input/style/index.js +4 -4
  375. package/lib/label-range-number/index.d.ts +17 -17
  376. package/lib/label-range-number/index.js +172 -107
  377. package/lib/label-range-number/style/index.css +52 -47
  378. package/lib/label-range-number/style/index.js +4 -4
  379. package/lib/label-range-picker/index.d.ts +3 -3
  380. package/lib/label-range-picker/index.js +122 -83
  381. package/lib/label-range-picker/style/index.css +52 -47
  382. package/lib/label-range-picker/style/index.js +5 -5
  383. package/lib/label-select/index.d.ts +7 -5
  384. package/lib/label-select/index.js +130 -83
  385. package/lib/label-select/style/index.css +65 -51
  386. package/lib/label-select/style/index.js +5 -5
  387. package/lib/label-text-area/index.d.ts +21 -17
  388. package/lib/label-text-area/index.js +114 -77
  389. package/lib/label-text-area/style/index.css +52 -47
  390. package/lib/label-text-area/style/index.js +4 -4
  391. package/lib/label-tree-select/index.d.ts +8 -7
  392. package/lib/label-tree-select/index.js +113 -72
  393. package/lib/label-tree-select/style/index.css +55 -48
  394. package/lib/label-tree-select/style/index.js +5 -5
  395. package/lib/messages/ar_EG.d.ts +24 -24
  396. package/lib/messages/ar_EG.js +8 -8
  397. package/lib/messages/bg_BG.d.ts +24 -24
  398. package/lib/messages/bg_BG.js +8 -8
  399. package/lib/messages/cs_CZ.d.ts +24 -24
  400. package/lib/messages/cs_CZ.js +8 -8
  401. package/lib/messages/de_DE.d.ts +24 -24
  402. package/lib/messages/de_DE.js +8 -8
  403. package/lib/messages/en_US.d.ts +24 -24
  404. package/lib/messages/en_US.js +8 -8
  405. package/lib/messages/es_ES.d.ts +24 -24
  406. package/lib/messages/es_ES.js +8 -8
  407. package/lib/messages/fi_FI.d.ts +24 -24
  408. package/lib/messages/fi_FI.js +8 -8
  409. package/lib/messages/fr_FR.d.ts +24 -24
  410. package/lib/messages/fr_FR.js +8 -8
  411. package/lib/messages/id_ID.d.ts +24 -24
  412. package/lib/messages/id_ID.js +8 -8
  413. package/lib/messages/index.d.ts +27 -23
  414. package/lib/messages/index.js +7 -7
  415. package/lib/messages/it_IT.d.ts +24 -24
  416. package/lib/messages/it_IT.js +8 -8
  417. package/lib/messages/ja_JP.d.ts +24 -24
  418. package/lib/messages/ja_JP.js +8 -8
  419. package/lib/messages/ko_KR.d.ts +24 -24
  420. package/lib/messages/ko_KR.js +8 -8
  421. package/lib/messages/ms_MY.d.ts +24 -24
  422. package/lib/messages/ms_MY.js +8 -8
  423. package/lib/messages/nb_NO.d.ts +24 -24
  424. package/lib/messages/nb_NO.js +8 -8
  425. package/lib/messages/nl_NL.d.ts +24 -24
  426. package/lib/messages/nl_NL.js +8 -8
  427. package/lib/messages/pt_PT.d.ts +24 -24
  428. package/lib/messages/pt_PT.js +8 -8
  429. package/lib/messages/ro_RO.d.ts +24 -24
  430. package/lib/messages/ro_RO.js +8 -8
  431. package/lib/messages/ru_RU.d.ts +24 -24
  432. package/lib/messages/ru_RU.js +8 -8
  433. package/lib/messages/sv_SE.d.ts +24 -24
  434. package/lib/messages/sv_SE.js +8 -8
  435. package/lib/messages/th_TH.d.ts +24 -24
  436. package/lib/messages/th_TH.js +8 -8
  437. package/lib/messages/ug_UG.d.ts +24 -24
  438. package/lib/messages/ug_UG.js +8 -8
  439. package/lib/messages/vi_VN.d.ts +24 -24
  440. package/lib/messages/vi_VN.js +8 -8
  441. package/lib/messages/zh_CN.d.ts +24 -24
  442. package/lib/messages/zh_CN.js +8 -8
  443. package/lib/messages/zh_TW.d.ts +24 -24
  444. package/lib/messages/zh_TW.js +8 -8
  445. package/lib/multipart-upload/getMultipartUploadHandler.d.ts +3 -1
  446. package/lib/multipart-upload/getMultipartUploadHandler.js +12 -10
  447. package/lib/multipart-upload/index.d.ts +39 -33
  448. package/lib/multipart-upload/index.js +286 -165
  449. package/lib/multipart-upload/parse2RegexOption.d.ts +10 -7
  450. package/lib/multipart-upload/parse2RegexOption.js +47 -33
  451. package/lib/multipart-upload/style/index.css +52 -47
  452. package/lib/multipart-upload/style/index.js +5 -5
  453. package/lib/number-format-input/index.js +49 -34
  454. package/lib/number-format-input/style/index.js +4 -4
  455. package/lib/number-input/const/dataTypeEnum.d.ts +2 -2
  456. package/lib/number-input/const/dataTypeEnum.js +4 -4
  457. package/lib/number-input/const/numberType.d.ts +2 -2
  458. package/lib/number-input/const/numberType.js +4 -4
  459. package/lib/number-input/index.d.ts +37 -35
  460. package/lib/number-input/index.js +153 -105
  461. package/lib/number-input/style/index.js +4 -4
  462. package/lib/number-input/utils.d.ts +15 -6
  463. package/lib/number-input/utils.js +5 -5
  464. package/lib/rc-echart/core.d.ts +13 -13
  465. package/lib/rc-echart/core.js +88 -60
  466. package/lib/rc-echart/index.d.ts +12 -12
  467. package/lib/rc-echart/index.js +86 -57
  468. package/lib/rc-motion/index.d.ts +14 -2
  469. package/lib/rc-motion/index.js +13 -9
  470. package/lib/rc-qrcode/index.d.ts +11 -8
  471. package/lib/rc-qrcode/index.js +85 -62
  472. package/lib/rc-qrcode/useQrcode.d.ts +5 -2
  473. package/lib/rc-qrcode/useQrcode.js +51 -42
  474. package/lib/rc-transition-group/index.js +52 -37
  475. package/lib/resizable/index.d.ts +10 -1
  476. package/lib/resizable/index.js +9 -9
  477. package/lib/resizable/style/index.js +4 -4
  478. package/lib/rich-text-editor/index.d.ts +18 -18
  479. package/lib/rich-text-editor/index.js +107 -70
  480. package/lib/rich-text-editor/lang/zh_CN.d.ts +404 -404
  481. package/lib/rich-text-editor/lang/zh_CN.js +420 -397
  482. package/lib/rich-text-editor/plugins/code/index.js +38 -29
  483. package/lib/rich-text-editor/style/index.css +52 -47
  484. package/lib/rich-text-editor/style/index.js +4 -4
  485. package/lib/single-img-upload/index.d.ts +8 -8
  486. package/lib/single-img-upload/index.js +400 -273
  487. package/lib/single-img-upload/style/index.css +52 -47
  488. package/lib/single-img-upload/style/index.js +7 -7
  489. package/lib/sortable-hoc/index.js +52 -37
  490. package/lib/split-pane/index.d.ts +53 -53
  491. package/lib/split-pane/index.js +33 -22
  492. package/lib/split-pane/style/index.js +4 -4
  493. package/lib/step-number-input/const/countType.d.ts +2 -2
  494. package/lib/step-number-input/const/countType.js +4 -4
  495. package/lib/step-number-input/const/numberType.d.ts +2 -2
  496. package/lib/step-number-input/const/numberType.js +4 -4
  497. package/lib/step-number-input/index.d.ts +31 -31
  498. package/lib/step-number-input/index.js +204 -133
  499. package/lib/step-number-input/style/index.css +52 -47
  500. package/lib/step-number-input/style/index.js +5 -5
  501. package/lib/table-col/index.d.ts +3 -3
  502. package/lib/table-col/index.js +23 -15
  503. package/lib/table-col/style/index.js +4 -4
  504. package/lib/text-area/index.d.ts +13 -8
  505. package/lib/text-area/index.js +124 -89
  506. package/lib/text-area/style/index.js +4 -4
  507. package/lib/text-input/index.d.ts +3 -1
  508. package/lib/text-input/index.js +89 -67
  509. package/lib/text-input/style/index.css +123 -53
  510. package/lib/text-input/style/index.js +4 -4
  511. package/package.json +4 -4
  512. package/LICENSE +0 -21
@@ -1,181 +1,223 @@
1
- var __assign = this && this.__assign || function () {
2
- __assign = Object.assign || function (t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
8
- }
9
- return t;
1
+ var __assign =
2
+ (this && this.__assign) ||
3
+ function () {
4
+ __assign =
5
+ Object.assign ||
6
+ function (t) {
7
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
8
+ s = arguments[i];
9
+ for (var p in s) {
10
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
11
+ }
12
+ }
13
+ return t;
14
+ };
15
+ return __assign.apply(this, arguments);
10
16
  };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) {
14
- function adopt(value) {
15
- return value instanceof P ? value : new P(function (resolve) {
16
- resolve(value);
17
- });
18
- }
19
- return new (P || (P = Promise))(function (resolve, reject) {
20
- function fulfilled(value) {
21
- try {
22
- step(generator.next(value));
23
- } catch (e) {
24
- reject(e);
25
- }
17
+ var __awaiter =
18
+ (this && this.__awaiter) ||
19
+ function (thisArg, _arguments, P, generator) {
20
+ function adopt(value) {
21
+ return value instanceof P
22
+ ? value
23
+ : new P(function (resolve) {
24
+ resolve(value);
25
+ });
26
26
  }
27
- function rejected(value) {
28
- try {
29
- step(generator["throw"](value));
30
- } catch (e) {
31
- reject(e);
27
+ return new (P || (P = Promise))(function (resolve, reject) {
28
+ function fulfilled(value) {
29
+ try {
30
+ step(generator.next(value));
31
+ } catch (e) {
32
+ reject(e);
33
+ }
32
34
  }
33
- }
34
- function step(result) {
35
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
36
- }
37
- step((generator = generator.apply(thisArg, _arguments || [])).next());
38
- });
39
- };
40
- var __generator = this && this.__generator || function (thisArg, body) {
41
- var _ = {
42
- label: 0,
43
- sent: function sent() {
44
- if (t[0] & 1) throw t[1];
45
- return t[1];
35
+ function rejected(value) {
36
+ try {
37
+ step(generator['throw'](value));
38
+ } catch (e) {
39
+ reject(e);
40
+ }
41
+ }
42
+ function step(result) {
43
+ result.done
44
+ ? resolve(result.value)
45
+ : adopt(result.value).then(fulfilled, rejected);
46
+ }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator =
51
+ (this && this.__generator) ||
52
+ function (thisArg, body) {
53
+ var _ = {
54
+ label: 0,
55
+ sent: function sent() {
56
+ if (t[0] & 1) throw t[1];
57
+ return t[1];
58
+ },
59
+ trys: [],
60
+ ops: [],
46
61
  },
47
- trys: [],
48
- ops: []
49
- },
50
- f,
51
- y,
52
- t,
53
- g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
54
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function () {
55
- return this;
56
- }), g;
57
- function verb(n) {
58
- return function (v) {
59
- return step([n, v]);
60
- };
61
- }
62
- function step(op) {
63
- if (f) throw new TypeError("Generator is already executing.");
64
- while (g && (g = 0, op[0] && (_ = 0)), _) {
65
- try {
66
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
67
- if (y = 0, t) op = [op[0] & 2, t.value];
68
- switch (op[0]) {
69
- case 0:
70
- case 1:
71
- t = op;
72
- break;
73
- case 4:
74
- _.label++;
75
- return {
76
- value: op[1],
77
- done: false
78
- };
79
- case 5:
80
- _.label++;
81
- y = op[1];
82
- op = [0];
83
- continue;
84
- case 7:
85
- op = _.ops.pop();
86
- _.trys.pop();
87
- continue;
88
- default:
89
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
90
- _ = 0;
91
- continue;
92
- }
93
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
94
- _.label = op[1];
95
- break;
96
- }
97
- if (op[0] === 6 && _.label < t[1]) {
98
- _.label = t[1];
62
+ f,
63
+ y,
64
+ t,
65
+ g = Object.create((typeof Iterator === 'function' ? Iterator : Object).prototype);
66
+ return (
67
+ (g.next = verb(0)),
68
+ (g['throw'] = verb(1)),
69
+ (g['return'] = verb(2)),
70
+ typeof Symbol === 'function' &&
71
+ (g[Symbol.iterator] = function () {
72
+ return this;
73
+ }),
74
+ g
75
+ );
76
+ function verb(n) {
77
+ return function (v) {
78
+ return step([n, v]);
79
+ };
80
+ }
81
+ function step(op) {
82
+ if (f) throw new TypeError('Generator is already executing.');
83
+ while ((g && ((g = 0), op[0] && (_ = 0)), _)) {
84
+ try {
85
+ if (
86
+ ((f = 1),
87
+ y &&
88
+ (t =
89
+ op[0] & 2
90
+ ? y['return']
91
+ : op[0]
92
+ ? y['throw'] || ((t = y['return']) && t.call(y), 0)
93
+ : y.next) &&
94
+ !(t = t.call(y, op[1])).done)
95
+ )
96
+ return t;
97
+ if (((y = 0), t)) op = [op[0] & 2, t.value];
98
+ switch (op[0]) {
99
+ case 0:
100
+ case 1:
99
101
  t = op;
100
102
  break;
101
- }
102
- if (t && _.label < t[2]) {
103
- _.label = t[2];
104
- _.ops.push(op);
105
- break;
106
- }
107
- if (t[2]) _.ops.pop();
108
- _.trys.pop();
109
- continue;
103
+ case 4:
104
+ _.label++;
105
+ return {
106
+ value: op[1],
107
+ done: false,
108
+ };
109
+ case 5:
110
+ _.label++;
111
+ y = op[1];
112
+ op = [0];
113
+ continue;
114
+ case 7:
115
+ op = _.ops.pop();
116
+ _.trys.pop();
117
+ continue;
118
+ default:
119
+ if (
120
+ !((t = _.trys), (t = t.length > 0 && t[t.length - 1])) &&
121
+ (op[0] === 6 || op[0] === 2)
122
+ ) {
123
+ _ = 0;
124
+ continue;
125
+ }
126
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
127
+ _.label = op[1];
128
+ break;
129
+ }
130
+ if (op[0] === 6 && _.label < t[1]) {
131
+ _.label = t[1];
132
+ t = op;
133
+ break;
134
+ }
135
+ if (t && _.label < t[2]) {
136
+ _.label = t[2];
137
+ _.ops.push(op);
138
+ break;
139
+ }
140
+ if (t[2]) _.ops.pop();
141
+ _.trys.pop();
142
+ continue;
143
+ }
144
+ op = body.call(thisArg, _);
145
+ } catch (e) {
146
+ op = [6, e];
147
+ y = 0;
148
+ } finally {
149
+ f = t = 0;
110
150
  }
111
- op = body.call(thisArg, _);
112
- } catch (e) {
113
- op = [6, e];
114
- y = 0;
115
- } finally {
116
- f = t = 0;
117
151
  }
152
+ if (op[0] & 5) throw op[1];
153
+ return {
154
+ value: op[0] ? op[1] : void 0,
155
+ done: true,
156
+ };
118
157
  }
119
- if (op[0] & 5) throw op[1];
120
- return {
121
- value: op[0] ? op[1] : void 0,
122
- done: true
123
- };
124
- }
125
- };
126
- var __rest = this && this.__rest || function (s, e) {
127
- var t = {};
128
- for (var p in s) {
129
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
130
- }
131
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
132
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
133
- }
134
- return t;
135
- };
136
- var __read = this && this.__read || function (o, n) {
137
- var m = typeof Symbol === "function" && o[Symbol.iterator];
138
- if (!m) return o;
139
- var i = m.call(o),
140
- r,
141
- ar = [],
142
- e;
143
- try {
144
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
145
- ar.push(r.value);
158
+ };
159
+ var __rest =
160
+ (this && this.__rest) ||
161
+ function (s, e) {
162
+ var t = {};
163
+ for (var p in s) {
164
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
146
165
  }
147
- } catch (error) {
148
- e = {
149
- error: error
150
- };
151
- } finally {
166
+ if (s != null && typeof Object.getOwnPropertySymbols === 'function')
167
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
168
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
169
+ t[p[i]] = s[p[i]];
170
+ }
171
+ return t;
172
+ };
173
+ var __read =
174
+ (this && this.__read) ||
175
+ function (o, n) {
176
+ var m = typeof Symbol === 'function' && o[Symbol.iterator];
177
+ if (!m) return o;
178
+ var i = m.call(o),
179
+ r,
180
+ ar = [],
181
+ e;
152
182
  try {
153
- if (r && !r.done && (m = i["return"])) m.call(i);
183
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
184
+ ar.push(r.value);
185
+ }
186
+ } catch (error) {
187
+ e = {
188
+ error: error,
189
+ };
154
190
  } finally {
155
- if (e) throw e.error;
156
- }
157
- }
158
- return ar;
159
- };
160
- var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
161
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
162
- if (ar || !(i in from)) {
163
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
164
- ar[i] = from[i];
191
+ try {
192
+ if (r && !r.done && (m = i['return'])) m.call(i);
193
+ } finally {
194
+ if (e) throw e.error;
195
+ }
165
196
  }
166
- }
167
- return to.concat(ar || Array.prototype.slice.call(from));
168
- };
197
+ return ar;
198
+ };
199
+ var __spreadArray =
200
+ (this && this.__spreadArray) ||
201
+ function (to, from, pack) {
202
+ if (pack || arguments.length === 2)
203
+ for (var i = 0, l = from.length, ar; i < l; i++) {
204
+ if (ar || !(i in from)) {
205
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
206
+ ar[i] = from[i];
207
+ }
208
+ }
209
+ return to.concat(ar || Array.prototype.slice.call(from));
210
+ };
169
211
  /* eslint-disable @typescript-eslint/no-unused-expressions */
170
- import * as React from 'react';
171
- import Upload from 'rc-upload';
172
- import Progress from "antd/es/progress";
173
- import Image from "antd/es/image";
174
- import Spin from "antd/es/spin";
212
+ import CloseOutlined from 'a-icons/es/CloseOutlined';
213
+ import Image from 'antd/es/image';
214
+ import Progress from 'antd/es/progress';
215
+ import Spin from 'antd/es/spin';
175
216
  import classNames from 'classnames';
176
- import CloseOutlined from "a-icons/es/CloseOutlined";
177
- import isObject from 'lodash/isObject';
178
217
  import isFunction from 'lodash/isFunction';
218
+ import isObject from 'lodash/isObject';
219
+ import Upload from 'rc-upload';
220
+ import * as React from 'react';
179
221
  var getLocalImgURL = function getLocalImgURL(file) {
180
222
  var URL = window.URL || window.webkitURL;
181
223
  var imgURL = URL.createObjectURL(file);
@@ -198,7 +240,20 @@ var SingleImgUpload = function SingleImgUpload(props) {
198
240
  beforeUpload = _a === void 0 ? initBeforeUpload : _a,
199
241
  onError = props.onError,
200
242
  disabled = props.disabled,
201
- restProps = __rest(props, ["className", "wrapperClassName", "children", "value", "onStart", "onDeleteUpload", "onFormatResData", "onSuccess", "onCancel", "beforeUpload", "onError", "disabled"]);
243
+ restProps = __rest(props, [
244
+ 'className',
245
+ 'wrapperClassName',
246
+ 'children',
247
+ 'value',
248
+ 'onStart',
249
+ 'onDeleteUpload',
250
+ 'onFormatResData',
251
+ 'onSuccess',
252
+ 'onCancel',
253
+ 'beforeUpload',
254
+ 'onError',
255
+ 'disabled',
256
+ ]);
202
257
  var uploadInstanceRef = React.useRef();
203
258
  var fileRef = React.useRef();
204
259
  var _b = __read(React.useState(value ? 'done' : 'init'), 2),
@@ -213,26 +268,29 @@ var SingleImgUpload = function SingleImgUpload(props) {
213
268
  var _e = __read(React.useState(false), 2),
214
269
  imageLoading = _e[0],
215
270
  setImageLoading = _e[1];
216
- React.useEffect(function () {
217
- setFileUrl(value);
218
- if (value) {
219
- setImageLoading(true);
220
- setUploadStatus('done');
221
- // eslint-disable-next-line global-require
222
- var heic2Jpeg = require('aa-utils/lib/heic2Jpeg')["default"];
223
- if (isFunction(heic2Jpeg)) {
224
- heic2Jpeg(value).then(function (resultUrl) {
225
- setFileUrl(resultUrl);
271
+ React.useEffect(
272
+ function () {
273
+ setFileUrl(value);
274
+ if (value) {
275
+ setImageLoading(true);
276
+ setUploadStatus('done');
277
+ // eslint-disable-next-line global-require
278
+ var heic2Jpeg = require('aa-utils/lib/heic2Jpeg')['default'];
279
+ if (isFunction(heic2Jpeg)) {
280
+ heic2Jpeg(value).then(function (resultUrl) {
281
+ setFileUrl(resultUrl);
282
+ setImageLoading(false);
283
+ });
284
+ } else {
285
+ setFileUrl(value);
226
286
  setImageLoading(false);
227
- });
287
+ }
228
288
  } else {
229
- setFileUrl(value);
230
- setImageLoading(false);
289
+ setUploadStatus('init');
231
290
  }
232
- } else {
233
- setUploadStatus('init');
234
- }
235
- }, [value]);
291
+ },
292
+ [value],
293
+ );
236
294
  var onBeforeUpload = function onBeforeUpload() {
237
295
  var rest = [];
238
296
  for (var _i = 0; _i < arguments.length; _i++) {
@@ -245,7 +303,10 @@ var SingleImgUpload = function SingleImgUpload(props) {
245
303
  case 0:
246
304
  setFileUrl('');
247
305
  if (!beforeUpload) return [3 /*break*/, 2];
248
- return [4 /*yield*/, beforeUpload.apply(void 0, __spreadArray([], __read(rest), false))];
306
+ return [
307
+ 4 /*yield*/,
308
+ beforeUpload.apply(void 0, __spreadArray([], __read(rest), false)),
309
+ ];
249
310
  case 1:
250
311
  resultBefore = _a.sent();
251
312
  if (isObject(resultBefore)) {
@@ -269,7 +330,7 @@ var SingleImgUpload = function SingleImgUpload(props) {
269
330
  };
270
331
  var handleProgress = function handleProgress(e) {
271
332
  var percent = e.percent;
272
- setUploadPercent(parseInt("".concat(percent), 10));
333
+ setUploadPercent(parseInt(''.concat(percent), 10));
273
334
  };
274
335
  var handleError = function handleError(error, ret, file) {
275
336
  setUploadStatus('init');
@@ -281,7 +342,7 @@ var SingleImgUpload = function SingleImgUpload(props) {
281
342
  setUploadStatus('done');
282
343
  };
283
344
  var uploadCls = classNames(className, {
284
- 'not-upload-init': uploadStatus !== 'init'
345
+ 'not-upload-init': uploadStatus !== 'init',
285
346
  });
286
347
  var handleDeleteUpload = function handleDeleteUpload() {
287
348
  setUploadStatus('init');
@@ -290,57 +351,104 @@ var SingleImgUpload = function SingleImgUpload(props) {
290
351
  var cancelUpload = function cancelUpload() {
291
352
  var _a;
292
353
  if (fileRef.current) {
293
- (_a = uploadInstanceRef.current) === null || _a === void 0 ? void 0 : _a.abort(fileRef.current);
354
+ (_a = uploadInstanceRef.current) === null || _a === void 0
355
+ ? void 0
356
+ : _a.abort(fileRef.current);
294
357
  }
295
358
  setUploadStatus('init');
296
359
  onCancel === null || onCancel === void 0 ? void 0 : onCancel();
297
360
  };
298
361
  var cls = classNames('as-img-upload', wrapperClassName);
299
- return /*#__PURE__*/React.createElement("div", {
300
- className: cls
301
- }, uploadStatus === 'uploading' && /*#__PURE__*/React.createElement("div", {
302
- className: "as-img-upload-content"
303
- }, /*#__PURE__*/React.createElement(Image, {
304
- wrapperClassName: "as-img-upload-preview",
305
- src: fileUrl,
306
- preview: true
307
- }), /*#__PURE__*/React.createElement("div", {
308
- className: "dark"
309
- }), /*#__PURE__*/React.createElement(Progress, {
310
- className: "as-img-upload-upload-progress",
311
- percent: uploadPercent,
312
- size: "small",
313
- status: "active"
314
- }), /*#__PURE__*/React.createElement("div", {
315
- className: "as-img-upload-close-button",
316
- onClick: cancelUpload
317
- }, /*#__PURE__*/React.createElement(CloseOutlined, null))), uploadStatus === 'done' && /*#__PURE__*/React.createElement(Spin, {
318
- spinning: imageLoading
319
- }, /*#__PURE__*/React.createElement("div", {
320
- className: "as-img-upload-content"
321
- }, /*#__PURE__*/React.createElement(Image, {
322
- wrapperClassName: "as-img-upload-preview",
323
- src: fileUrl,
324
- preview: true
325
- }), !disabled && /*#__PURE__*/React.createElement("div", {
326
- className: "as-img-upload-close-button",
327
- onClick: handleDeleteUpload
328
- }, /*#__PURE__*/React.createElement(CloseOutlined, null)))), /*#__PURE__*/React.createElement(Upload, __assign({
329
- ref: function ref(uploader) {
330
- uploadInstanceRef.current = uploader;
362
+ return /*#__PURE__*/ React.createElement(
363
+ 'div',
364
+ {
365
+ className: cls,
331
366
  },
332
- name: "file",
333
- className: uploadCls,
334
- onStart: handleStart,
335
- onProgress: handleProgress,
336
- onError: handleError,
337
- onSuccess: handleSuccess,
338
- disabled: disabled,
339
- beforeUpload: onBeforeUpload
340
- }, restProps), uploadStatus === 'init' && /*#__PURE__*/React.createElement("div", {
341
- className: classNames('as-img-upload-button', {
342
- 'init-disable': disabled
343
- })
344
- }, children)));
367
+ uploadStatus === 'uploading' &&
368
+ /*#__PURE__*/ React.createElement(
369
+ 'div',
370
+ {
371
+ className: 'as-img-upload-content',
372
+ },
373
+ /*#__PURE__*/ React.createElement(Image, {
374
+ wrapperClassName: 'as-img-upload-preview',
375
+ src: fileUrl,
376
+ preview: true,
377
+ }),
378
+ /*#__PURE__*/ React.createElement('div', {
379
+ className: 'dark',
380
+ }),
381
+ /*#__PURE__*/ React.createElement(Progress, {
382
+ className: 'as-img-upload-upload-progress',
383
+ percent: uploadPercent,
384
+ size: 'small',
385
+ status: 'active',
386
+ }),
387
+ /*#__PURE__*/ React.createElement(
388
+ 'div',
389
+ {
390
+ className: 'as-img-upload-close-button',
391
+ onClick: cancelUpload,
392
+ },
393
+ /*#__PURE__*/ React.createElement(CloseOutlined, null),
394
+ ),
395
+ ),
396
+ uploadStatus === 'done' &&
397
+ /*#__PURE__*/ React.createElement(
398
+ Spin,
399
+ {
400
+ spinning: imageLoading,
401
+ },
402
+ /*#__PURE__*/ React.createElement(
403
+ 'div',
404
+ {
405
+ className: 'as-img-upload-content',
406
+ },
407
+ /*#__PURE__*/ React.createElement(Image, {
408
+ wrapperClassName: 'as-img-upload-preview',
409
+ src: fileUrl,
410
+ preview: true,
411
+ }),
412
+ !disabled &&
413
+ /*#__PURE__*/ React.createElement(
414
+ 'div',
415
+ {
416
+ className: 'as-img-upload-close-button',
417
+ onClick: handleDeleteUpload,
418
+ },
419
+ /*#__PURE__*/ React.createElement(CloseOutlined, null),
420
+ ),
421
+ ),
422
+ ),
423
+ /*#__PURE__*/ React.createElement(
424
+ Upload,
425
+ __assign(
426
+ {
427
+ ref: function ref(uploader) {
428
+ uploadInstanceRef.current = uploader;
429
+ },
430
+ name: 'file',
431
+ className: uploadCls,
432
+ onStart: handleStart,
433
+ onProgress: handleProgress,
434
+ onError: handleError,
435
+ onSuccess: handleSuccess,
436
+ disabled: disabled,
437
+ beforeUpload: onBeforeUpload,
438
+ },
439
+ restProps,
440
+ ),
441
+ uploadStatus === 'init' &&
442
+ /*#__PURE__*/ React.createElement(
443
+ 'div',
444
+ {
445
+ className: classNames('as-img-upload-button', {
446
+ 'init-disable': disabled,
447
+ }),
448
+ },
449
+ children,
450
+ ),
451
+ ),
452
+ );
345
453
  };
346
- export default SingleImgUpload;
454
+ export default SingleImgUpload;