assui 3.2.43 → 3.2.45

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 (525) hide show
  1. package/es/a-select/index.d.ts +5 -5
  2. package/es/a-select/index.js +59 -88
  3. package/es/a-select/style/index.css +47 -52
  4. package/es/a-select/style/index.js +2 -2
  5. package/es/a-select/style/index.less +1 -2
  6. package/es/area-text/index.d.ts +2 -2
  7. package/es/area-text/index.js +5 -9
  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 +8 -10
  11. package/es/button-drawer/index.js +61 -94
  12. package/es/button-drawer/style/index.js +1 -1
  13. package/es/button-modal/index.d.ts +8 -10
  14. package/es/button-modal/index.js +60 -93
  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 +22 -24
  19. package/es/color-select/index.d.ts +18 -18
  20. package/es/color-select/index.js +68 -113
  21. package/es/color-select/style/index.css +47 -52
  22. package/es/color-select/style/index.js +1 -1
  23. package/es/complex-val-select/index.d.ts +13 -25
  24. package/es/complex-val-select/index.js +54 -71
  25. package/es/complex-val-select/style/index.js +1 -1
  26. package/es/condition-input/index.d.ts +13 -21
  27. package/es/condition-input/index.js +51 -67
  28. package/es/condition-input/parse2RegexOption.d.ts +7 -10
  29. package/es/condition-input/parse2RegexOption.js +21 -31
  30. package/es/condition-input/style/index.js +1 -1
  31. package/es/condition-select/index.d.ts +1 -7
  32. package/es/condition-select/index.js +85 -141
  33. package/es/condition-select/style/index.js +3 -3
  34. package/es/condition-select/types.d.ts +14 -16
  35. package/es/condition-select/types.js +1 -1
  36. package/es/condition-select/utils/index.d.ts +2 -5
  37. package/es/condition-select/utils/index.js +2 -2
  38. package/es/condition-select-input/index.d.ts +29 -29
  39. package/es/condition-select-input/index.js +106 -196
  40. package/es/condition-select-input/style/index.d.ts +1 -1
  41. package/es/condition-select-input/style/index.js +3 -3
  42. package/es/config-provider/context.d.ts +1 -1
  43. package/es/config-provider/context.js +2 -2
  44. package/es/config-provider/index.d.ts +3 -27
  45. package/es/config-provider/index.js +5 -9
  46. package/es/copy-to-clipboard/index.d.ts +18 -20
  47. package/es/copy-to-clipboard/index.js +44 -63
  48. package/es/copy-to-clipboard/style/index.css +14 -23
  49. package/es/copy-to-clipboard/style/index.js +1 -1
  50. package/es/count-down/index.d.ts +3 -3
  51. package/es/count-down/index.js +26 -44
  52. package/es/count-up/index.d.ts +2 -2
  53. package/es/count-up/index.js +1 -1
  54. package/es/flex/index.d.ts +18 -21
  55. package/es/flex/index.js +32 -64
  56. package/es/flex/style/index.css +47 -52
  57. package/es/flex/style/index.js +1 -1
  58. package/es/flex/utils/gapSize.js +1 -1
  59. package/es/flex/utils/index.d.ts +3 -27
  60. package/es/flex/utils/index.js +19 -53
  61. package/es/highlight-textarea/HighlighedContents.d.ts +3 -6
  62. package/es/highlight-textarea/HighlighedContents.js +5 -9
  63. package/es/highlight-textarea/extractSpansOfClasses.d.ts +10 -10
  64. package/es/highlight-textarea/extractSpansOfClasses.js +45 -62
  65. package/es/highlight-textarea/getRanges.js +34 -41
  66. package/es/highlight-textarea/getType.js +2 -6
  67. package/es/highlight-textarea/index.d.ts +7 -14
  68. package/es/highlight-textarea/index.js +70 -114
  69. package/es/highlight-textarea/style/index.css +55 -125
  70. package/es/highlight-textarea/style/index.js +1 -1
  71. package/es/highlight-textarea/types.d.ts +7 -26
  72. package/es/highlight-textarea/types.js +1 -1
  73. package/es/highlight-words/index.d.ts +2 -6
  74. package/es/highlight-words/index.js +1 -1
  75. package/es/img-crop/EasyCrop.d.ts +2 -6
  76. package/es/img-crop/EasyCrop.js +79 -104
  77. package/es/img-crop/getCroppedImg.d.ts +3 -8
  78. package/es/img-crop/getCroppedImg.js +118 -155
  79. package/es/img-crop/index.d.ts +29 -29
  80. package/es/img-crop/index.js +340 -490
  81. package/es/img-crop/style/index.css +47 -52
  82. package/es/img-crop/style/index.d.ts +1 -1
  83. package/es/img-crop/style/index.js +3 -3
  84. package/es/index.d.ts +56 -62
  85. package/es/index.js +29 -29
  86. package/es/json-editor/index.d.ts +5 -7
  87. package/es/json-editor/index.js +62 -91
  88. package/es/json-editor/style/index.js +1 -1
  89. package/es/keep-tab/index.d.ts +17 -17
  90. package/es/keep-tab/index.js +78 -125
  91. package/es/keep-tab/style/index.css +32 -72
  92. package/es/keep-tab/style/index.js +1 -1
  93. package/es/label-auto-complete/index.d.ts +3 -3
  94. package/es/label-auto-complete/index.js +58 -82
  95. package/es/label-auto-complete/style/index.css +50 -61
  96. package/es/label-auto-complete/style/index.js +2 -2
  97. package/es/label-condition-input/index.d.ts +11 -12
  98. package/es/label-condition-input/index.js +62 -100
  99. package/es/label-condition-input/style/index.css +47 -52
  100. package/es/label-condition-input/style/index.js +1 -1
  101. package/es/label-condition-select-input/index.d.ts +33 -35
  102. package/es/label-condition-select-input/index.js +109 -198
  103. package/es/label-condition-select-input/style/index.css +47 -52
  104. package/es/label-condition-select-input/style/index.d.ts +1 -1
  105. package/es/label-condition-select-input/style/index.js +2 -2
  106. package/es/label-customize-range-picker/defaultRadioList.d.ts +28 -34
  107. package/es/label-customize-range-picker/defaultRadioList.js +114 -206
  108. package/es/label-customize-range-picker/index.d.ts +24 -27
  109. package/es/label-customize-range-picker/index.js +141 -300
  110. package/es/label-customize-range-picker/style/index.css +47 -52
  111. package/es/label-customize-range-picker/style/index.d.ts +2 -2
  112. package/es/label-customize-range-picker/style/index.js +4 -4
  113. package/es/label-customize-range-picker/utils/index.d.ts +3 -9
  114. package/es/label-customize-range-picker/utils/index.js +29 -57
  115. package/es/label-date-picker/index.d.ts +2 -2
  116. package/es/label-date-picker/index.js +57 -81
  117. package/es/label-date-picker/style/index.css +47 -52
  118. package/es/label-date-picker/style/index.js +2 -2
  119. package/es/label-input/index.d.ts +25 -29
  120. package/es/label-input/index.js +80 -122
  121. package/es/label-input/style/index.css +47 -52
  122. package/es/label-input/style/index.js +1 -1
  123. package/es/label-number-input/index.d.ts +6 -6
  124. package/es/label-number-input/index.js +63 -101
  125. package/es/label-number-input/style/index.css +48 -54
  126. package/es/label-number-input/style/index.js +1 -1
  127. package/es/label-range-number/index.d.ts +17 -17
  128. package/es/label-range-number/index.js +95 -156
  129. package/es/label-range-number/style/index.css +47 -52
  130. package/es/label-range-number/style/index.js +1 -1
  131. package/es/label-range-picker/index.d.ts +3 -3
  132. package/es/label-range-picker/index.js +71 -103
  133. package/es/label-range-picker/style/index.css +47 -52
  134. package/es/label-range-picker/style/index.js +2 -2
  135. package/es/label-select/index.d.ts +5 -7
  136. package/es/label-select/index.js +69 -100
  137. package/es/label-select/style/index.css +51 -65
  138. package/es/label-select/style/index.js +2 -2
  139. package/es/label-text-area/index.d.ts +17 -21
  140. package/es/label-text-area/index.js +64 -97
  141. package/es/label-text-area/style/index.css +47 -52
  142. package/es/label-text-area/style/index.js +1 -1
  143. package/es/label-tree-select/index.d.ts +7 -8
  144. package/es/label-tree-select/index.js +61 -98
  145. package/es/label-tree-select/style/index.css +48 -55
  146. package/es/label-tree-select/style/index.js +2 -2
  147. package/es/messages/ar_EG.d.ts +24 -24
  148. package/es/messages/ar_EG.js +5 -5
  149. package/es/messages/bg_BG.d.ts +24 -24
  150. package/es/messages/bg_BG.js +5 -5
  151. package/es/messages/cs_CZ.d.ts +24 -24
  152. package/es/messages/cs_CZ.js +5 -5
  153. package/es/messages/de_DE.d.ts +24 -24
  154. package/es/messages/de_DE.js +5 -5
  155. package/es/messages/en_US.d.ts +24 -24
  156. package/es/messages/en_US.js +5 -5
  157. package/es/messages/es_ES.d.ts +24 -24
  158. package/es/messages/es_ES.js +5 -5
  159. package/es/messages/fi_FI.d.ts +24 -24
  160. package/es/messages/fi_FI.js +5 -5
  161. package/es/messages/fr_FR.d.ts +24 -24
  162. package/es/messages/fr_FR.js +5 -5
  163. package/es/messages/id_ID.d.ts +24 -24
  164. package/es/messages/id_ID.js +5 -5
  165. package/es/messages/index.d.ts +23 -27
  166. package/es/messages/index.js +3 -3
  167. package/es/messages/it_IT.d.ts +24 -24
  168. package/es/messages/it_IT.js +5 -5
  169. package/es/messages/ja_JP.d.ts +24 -24
  170. package/es/messages/ja_JP.js +5 -5
  171. package/es/messages/ko_KR.d.ts +24 -24
  172. package/es/messages/ko_KR.js +5 -5
  173. package/es/messages/ms_MY.d.ts +24 -24
  174. package/es/messages/ms_MY.js +5 -5
  175. package/es/messages/nb_NO.d.ts +24 -24
  176. package/es/messages/nb_NO.js +5 -5
  177. package/es/messages/nl_NL.d.ts +24 -24
  178. package/es/messages/nl_NL.js +5 -5
  179. package/es/messages/pt_PT.d.ts +24 -24
  180. package/es/messages/pt_PT.js +5 -5
  181. package/es/messages/ro_RO.d.ts +24 -24
  182. package/es/messages/ro_RO.js +5 -5
  183. package/es/messages/ru_RU.d.ts +24 -24
  184. package/es/messages/ru_RU.js +5 -5
  185. package/es/messages/sv_SE.d.ts +24 -24
  186. package/es/messages/sv_SE.js +5 -5
  187. package/es/messages/th_TH.d.ts +24 -24
  188. package/es/messages/th_TH.js +5 -5
  189. package/es/messages/ug_UG.d.ts +24 -24
  190. package/es/messages/ug_UG.js +5 -5
  191. package/es/messages/vi_VN.d.ts +24 -24
  192. package/es/messages/vi_VN.js +5 -5
  193. package/es/messages/zh_CN.d.ts +24 -24
  194. package/es/messages/zh_CN.js +5 -5
  195. package/es/messages/zh_TW.d.ts +24 -24
  196. package/es/messages/zh_TW.js +5 -5
  197. package/es/multipart-upload/getMultipartUploadHandler.d.ts +1 -3
  198. package/es/multipart-upload/getMultipartUploadHandler.js +6 -8
  199. package/es/multipart-upload/index.d.ts +33 -39
  200. package/es/multipart-upload/index.js +121 -217
  201. package/es/multipart-upload/parse2RegexOption.d.ts +7 -10
  202. package/es/multipart-upload/parse2RegexOption.js +21 -31
  203. package/es/multipart-upload/style/index.css +47 -52
  204. package/es/multipart-upload/style/index.js +2 -2
  205. package/es/number-format-input/index.js +25 -36
  206. package/es/number-format-input/style/index.js +1 -1
  207. package/es/number-input/const/dataTypeEnum.d.ts +2 -2
  208. package/es/number-input/const/dataTypeEnum.js +1 -1
  209. package/es/number-input/const/numberType.d.ts +2 -2
  210. package/es/number-input/const/numberType.js +1 -1
  211. package/es/number-input/index.d.ts +35 -37
  212. package/es/number-input/index.js +65 -94
  213. package/es/number-input/style/index.js +1 -1
  214. package/es/number-input/utils.d.ts +6 -15
  215. package/es/number-input/utils.js +2 -2
  216. package/es/rc-echart/core.d.ts +13 -13
  217. package/es/rc-echart/core.js +19 -28
  218. package/es/rc-echart/index.d.ts +12 -12
  219. package/es/rc-echart/index.js +16 -26
  220. package/es/rc-motion/index.d.ts +2 -14
  221. package/es/rc-motion/index.js +1 -1
  222. package/es/rc-qrcode/index.d.ts +8 -11
  223. package/es/rc-qrcode/index.js +17 -21
  224. package/es/rc-qrcode/useQrcode.d.ts +2 -5
  225. package/es/rc-qrcode/useQrcode.js +33 -38
  226. package/es/rc-transition-group/index.js +1 -1
  227. package/es/resizable/index.d.ts +1 -10
  228. package/es/resizable/index.js +1 -1
  229. package/es/resizable/style/index.js +1 -1
  230. package/es/rich-text-editor/index.d.ts +18 -18
  231. package/es/rich-text-editor/index.js +45 -78
  232. package/es/rich-text-editor/lang/zh_CN.d.ts +404 -404
  233. package/es/rich-text-editor/lang/zh_CN.js +393 -416
  234. package/es/rich-text-editor/plugins/code/index.js +20 -25
  235. package/es/rich-text-editor/style/index.css +47 -52
  236. package/es/rich-text-editor/style/index.js +1 -1
  237. package/es/single-img-upload/index.d.ts +8 -8
  238. package/es/single-img-upload/index.js +230 -338
  239. package/es/single-img-upload/style/index.css +47 -52
  240. package/es/single-img-upload/style/index.js +4 -4
  241. package/es/sortable-hoc/index.js +1 -1
  242. package/es/split-pane/index.d.ts +53 -53
  243. package/es/split-pane/index.js +13 -17
  244. package/es/split-pane/style/index.js +1 -1
  245. package/es/step-number-input/const/countType.d.ts +2 -2
  246. package/es/step-number-input/const/countType.js +1 -1
  247. package/es/step-number-input/const/numberType.d.ts +2 -2
  248. package/es/step-number-input/const/numberType.js +1 -1
  249. package/es/step-number-input/index.d.ts +31 -31
  250. package/es/step-number-input/index.js +85 -135
  251. package/es/step-number-input/style/index.css +47 -52
  252. package/es/step-number-input/style/index.js +2 -2
  253. package/es/table-col/index.d.ts +3 -3
  254. package/es/table-col/index.js +7 -11
  255. package/es/table-col/style/index.js +1 -1
  256. package/es/text-area/index.d.ts +8 -13
  257. package/es/text-area/index.js +48 -64
  258. package/es/text-area/style/index.js +1 -1
  259. package/es/text-input/index.d.ts +1 -3
  260. package/es/text-input/index.js +58 -76
  261. package/es/text-input/style/index.css +53 -123
  262. package/es/text-input/style/index.js +1 -1
  263. package/lib/a-select/index.d.ts +5 -5
  264. package/lib/a-select/index.js +69 -102
  265. package/lib/a-select/style/index.css +47 -52
  266. package/lib/a-select/style/index.js +5 -5
  267. package/lib/a-select/style/index.less +1 -2
  268. package/lib/area-text/index.d.ts +2 -2
  269. package/lib/area-text/index.js +13 -21
  270. package/lib/area-text/style/index.js +4 -4
  271. package/lib/beautiful-dnd/index.js +37 -52
  272. package/lib/button-drawer/index.d.ts +8 -10
  273. package/lib/button-drawer/index.js +101 -153
  274. package/lib/button-drawer/style/index.js +4 -4
  275. package/lib/button-modal/index.d.ts +8 -10
  276. package/lib/button-modal/index.js +99 -151
  277. package/lib/button-modal/style/index.js +4 -4
  278. package/lib/client-only/index.d.ts +2 -2
  279. package/lib/client-only/index.js +5 -5
  280. package/lib/client-only/useClientOnly.js +26 -28
  281. package/lib/color-select/index.d.ts +18 -18
  282. package/lib/color-select/index.js +112 -180
  283. package/lib/color-select/style/index.css +47 -52
  284. package/lib/color-select/style/index.js +5 -5
  285. package/lib/complex-val-select/index.d.ts +13 -25
  286. package/lib/complex-val-select/index.js +102 -140
  287. package/lib/complex-val-select/style/index.js +4 -4
  288. package/lib/condition-input/index.d.ts +13 -21
  289. package/lib/condition-input/index.js +96 -131
  290. package/lib/condition-input/parse2RegexOption.d.ts +7 -10
  291. package/lib/condition-input/parse2RegexOption.js +33 -47
  292. package/lib/condition-input/style/index.js +4 -4
  293. package/lib/condition-select/index.d.ts +1 -7
  294. package/lib/condition-select/index.js +94 -154
  295. package/lib/condition-select/style/index.js +6 -6
  296. package/lib/condition-select/types.d.ts +14 -16
  297. package/lib/condition-select/types.js +4 -4
  298. package/lib/condition-select/utils/index.d.ts +2 -5
  299. package/lib/condition-select/utils/index.js +5 -5
  300. package/lib/condition-select-input/index.d.ts +29 -29
  301. package/lib/condition-select-input/index.js +150 -259
  302. package/lib/condition-select-input/style/index.d.ts +1 -1
  303. package/lib/condition-select-input/style/index.js +6 -6
  304. package/lib/config-provider/context.d.ts +1 -1
  305. package/lib/config-provider/context.js +11 -15
  306. package/lib/config-provider/index.d.ts +3 -27
  307. package/lib/config-provider/index.js +61 -69
  308. package/lib/copy-to-clipboard/index.d.ts +18 -20
  309. package/lib/copy-to-clipboard/index.js +86 -124
  310. package/lib/copy-to-clipboard/style/index.css +14 -23
  311. package/lib/copy-to-clipboard/style/index.js +4 -4
  312. package/lib/count-down/index.d.ts +3 -3
  313. package/lib/count-down/index.js +36 -58
  314. package/lib/count-up/index.d.ts +2 -2
  315. package/lib/count-up/index.js +39 -54
  316. package/lib/flex/index.d.ts +18 -21
  317. package/lib/flex/index.js +42 -78
  318. package/lib/flex/style/index.css +47 -52
  319. package/lib/flex/style/index.js +4 -4
  320. package/lib/flex/utils/gapSize.js +4 -4
  321. package/lib/flex/utils/index.d.ts +3 -27
  322. package/lib/flex/utils/index.js +27 -65
  323. package/lib/highlight-textarea/HighlighedContents.d.ts +3 -6
  324. package/lib/highlight-textarea/HighlighedContents.js +16 -24
  325. package/lib/highlight-textarea/extractSpansOfClasses.d.ts +10 -10
  326. package/lib/highlight-textarea/extractSpansOfClasses.js +54 -75
  327. package/lib/highlight-textarea/getRanges.js +44 -55
  328. package/lib/highlight-textarea/getType.js +6 -10
  329. package/lib/highlight-textarea/index.d.ts +7 -14
  330. package/lib/highlight-textarea/index.js +113 -176
  331. package/lib/highlight-textarea/style/index.css +55 -125
  332. package/lib/highlight-textarea/style/index.js +4 -4
  333. package/lib/highlight-textarea/types.d.ts +7 -26
  334. package/lib/highlight-textarea/types.js +4 -4
  335. package/lib/highlight-words/index.d.ts +2 -6
  336. package/lib/highlight-words/index.js +9 -13
  337. package/lib/img-crop/EasyCrop.d.ts +2 -6
  338. package/lib/img-crop/EasyCrop.js +120 -164
  339. package/lib/img-crop/getCroppedImg.d.ts +3 -8
  340. package/lib/img-crop/getCroppedImg.js +121 -158
  341. package/lib/img-crop/index.d.ts +29 -29
  342. package/lib/img-crop/index.js +383 -555
  343. package/lib/img-crop/style/index.css +47 -52
  344. package/lib/img-crop/style/index.d.ts +1 -1
  345. package/lib/img-crop/style/index.js +6 -6
  346. package/lib/index.d.ts +56 -62
  347. package/lib/index.js +202 -254
  348. package/lib/json-editor/index.d.ts +5 -7
  349. package/lib/json-editor/index.js +108 -156
  350. package/lib/json-editor/style/index.js +5 -5
  351. package/lib/keep-tab/index.d.ts +17 -17
  352. package/lib/keep-tab/index.js +120 -186
  353. package/lib/keep-tab/style/index.css +32 -72
  354. package/lib/keep-tab/style/index.js +4 -4
  355. package/lib/label-auto-complete/index.d.ts +3 -3
  356. package/lib/label-auto-complete/index.js +71 -103
  357. package/lib/label-auto-complete/style/index.css +50 -61
  358. package/lib/label-auto-complete/style/index.js +5 -5
  359. package/lib/label-condition-input/index.d.ts +11 -12
  360. package/lib/label-condition-input/index.js +77 -119
  361. package/lib/label-condition-input/style/index.css +47 -52
  362. package/lib/label-condition-input/style/index.js +4 -4
  363. package/lib/label-condition-select-input/index.d.ts +33 -35
  364. package/lib/label-condition-select-input/index.js +154 -262
  365. package/lib/label-condition-select-input/style/index.css +47 -52
  366. package/lib/label-condition-select-input/style/index.d.ts +1 -1
  367. package/lib/label-condition-select-input/style/index.js +6 -6
  368. package/lib/label-customize-range-picker/defaultRadioList.d.ts +28 -34
  369. package/lib/label-customize-range-picker/defaultRadioList.js +156 -297
  370. package/lib/label-customize-range-picker/index.d.ts +24 -27
  371. package/lib/label-customize-range-picker/index.js +186 -363
  372. package/lib/label-customize-range-picker/style/index.css +47 -52
  373. package/lib/label-customize-range-picker/style/index.d.ts +2 -2
  374. package/lib/label-customize-range-picker/style/index.js +8 -8
  375. package/lib/label-customize-range-picker/utils/index.d.ts +3 -9
  376. package/lib/label-customize-range-picker/utils/index.js +38 -75
  377. package/lib/label-date-picker/index.d.ts +2 -2
  378. package/lib/label-date-picker/index.js +68 -96
  379. package/lib/label-date-picker/style/index.css +47 -52
  380. package/lib/label-date-picker/style/index.js +5 -5
  381. package/lib/label-input/index.d.ts +25 -29
  382. package/lib/label-input/index.js +96 -142
  383. package/lib/label-input/style/index.css +47 -52
  384. package/lib/label-input/style/index.js +4 -4
  385. package/lib/label-number-input/index.d.ts +6 -6
  386. package/lib/label-number-input/index.js +78 -122
  387. package/lib/label-number-input/style/index.css +48 -54
  388. package/lib/label-number-input/style/index.js +4 -4
  389. package/lib/label-range-number/index.d.ts +17 -17
  390. package/lib/label-range-number/index.js +107 -172
  391. package/lib/label-range-number/style/index.css +47 -52
  392. package/lib/label-range-number/style/index.js +4 -4
  393. package/lib/label-range-picker/index.d.ts +3 -3
  394. package/lib/label-range-picker/index.js +83 -122
  395. package/lib/label-range-picker/style/index.css +47 -52
  396. package/lib/label-range-picker/style/index.js +5 -5
  397. package/lib/label-select/index.d.ts +5 -7
  398. package/lib/label-select/index.js +83 -130
  399. package/lib/label-select/style/index.css +51 -65
  400. package/lib/label-select/style/index.js +5 -5
  401. package/lib/label-text-area/index.d.ts +17 -21
  402. package/lib/label-text-area/index.js +77 -114
  403. package/lib/label-text-area/style/index.css +47 -52
  404. package/lib/label-text-area/style/index.js +4 -4
  405. package/lib/label-tree-select/index.d.ts +7 -8
  406. package/lib/label-tree-select/index.js +72 -113
  407. package/lib/label-tree-select/style/index.css +48 -55
  408. package/lib/label-tree-select/style/index.js +5 -5
  409. package/lib/messages/ar_EG.d.ts +24 -24
  410. package/lib/messages/ar_EG.js +8 -8
  411. package/lib/messages/bg_BG.d.ts +24 -24
  412. package/lib/messages/bg_BG.js +8 -8
  413. package/lib/messages/cs_CZ.d.ts +24 -24
  414. package/lib/messages/cs_CZ.js +8 -8
  415. package/lib/messages/de_DE.d.ts +24 -24
  416. package/lib/messages/de_DE.js +8 -8
  417. package/lib/messages/en_US.d.ts +24 -24
  418. package/lib/messages/en_US.js +8 -8
  419. package/lib/messages/es_ES.d.ts +24 -24
  420. package/lib/messages/es_ES.js +8 -8
  421. package/lib/messages/fi_FI.d.ts +24 -24
  422. package/lib/messages/fi_FI.js +8 -8
  423. package/lib/messages/fr_FR.d.ts +24 -24
  424. package/lib/messages/fr_FR.js +8 -8
  425. package/lib/messages/id_ID.d.ts +24 -24
  426. package/lib/messages/id_ID.js +8 -8
  427. package/lib/messages/index.d.ts +23 -27
  428. package/lib/messages/index.js +7 -7
  429. package/lib/messages/it_IT.d.ts +24 -24
  430. package/lib/messages/it_IT.js +8 -8
  431. package/lib/messages/ja_JP.d.ts +24 -24
  432. package/lib/messages/ja_JP.js +8 -8
  433. package/lib/messages/ko_KR.d.ts +24 -24
  434. package/lib/messages/ko_KR.js +8 -8
  435. package/lib/messages/ms_MY.d.ts +24 -24
  436. package/lib/messages/ms_MY.js +8 -8
  437. package/lib/messages/nb_NO.d.ts +24 -24
  438. package/lib/messages/nb_NO.js +8 -8
  439. package/lib/messages/nl_NL.d.ts +24 -24
  440. package/lib/messages/nl_NL.js +8 -8
  441. package/lib/messages/pt_PT.d.ts +24 -24
  442. package/lib/messages/pt_PT.js +8 -8
  443. package/lib/messages/ro_RO.d.ts +24 -24
  444. package/lib/messages/ro_RO.js +8 -8
  445. package/lib/messages/ru_RU.d.ts +24 -24
  446. package/lib/messages/ru_RU.js +8 -8
  447. package/lib/messages/sv_SE.d.ts +24 -24
  448. package/lib/messages/sv_SE.js +8 -8
  449. package/lib/messages/th_TH.d.ts +24 -24
  450. package/lib/messages/th_TH.js +8 -8
  451. package/lib/messages/ug_UG.d.ts +24 -24
  452. package/lib/messages/ug_UG.js +8 -8
  453. package/lib/messages/vi_VN.d.ts +24 -24
  454. package/lib/messages/vi_VN.js +8 -8
  455. package/lib/messages/zh_CN.d.ts +24 -24
  456. package/lib/messages/zh_CN.js +8 -8
  457. package/lib/messages/zh_TW.d.ts +24 -24
  458. package/lib/messages/zh_TW.js +8 -8
  459. package/lib/multipart-upload/getMultipartUploadHandler.d.ts +1 -3
  460. package/lib/multipart-upload/getMultipartUploadHandler.js +10 -12
  461. package/lib/multipart-upload/index.d.ts +33 -39
  462. package/lib/multipart-upload/index.js +165 -286
  463. package/lib/multipart-upload/parse2RegexOption.d.ts +7 -10
  464. package/lib/multipart-upload/parse2RegexOption.js +33 -47
  465. package/lib/multipart-upload/style/index.css +47 -52
  466. package/lib/multipart-upload/style/index.js +5 -5
  467. package/lib/number-format-input/index.js +34 -49
  468. package/lib/number-format-input/style/index.js +4 -4
  469. package/lib/number-input/const/dataTypeEnum.d.ts +2 -2
  470. package/lib/number-input/const/dataTypeEnum.js +4 -4
  471. package/lib/number-input/const/numberType.d.ts +2 -2
  472. package/lib/number-input/const/numberType.js +4 -4
  473. package/lib/number-input/index.d.ts +35 -37
  474. package/lib/number-input/index.js +105 -153
  475. package/lib/number-input/style/index.js +4 -4
  476. package/lib/number-input/utils.d.ts +6 -15
  477. package/lib/number-input/utils.js +5 -5
  478. package/lib/rc-echart/core.d.ts +13 -13
  479. package/lib/rc-echart/core.js +60 -88
  480. package/lib/rc-echart/index.d.ts +12 -12
  481. package/lib/rc-echart/index.js +57 -86
  482. package/lib/rc-motion/index.d.ts +2 -14
  483. package/lib/rc-motion/index.js +9 -13
  484. package/lib/rc-qrcode/index.d.ts +8 -11
  485. package/lib/rc-qrcode/index.js +62 -85
  486. package/lib/rc-qrcode/useQrcode.d.ts +2 -5
  487. package/lib/rc-qrcode/useQrcode.js +42 -51
  488. package/lib/rc-transition-group/index.js +37 -52
  489. package/lib/resizable/index.d.ts +1 -10
  490. package/lib/resizable/index.js +9 -9
  491. package/lib/resizable/style/index.js +4 -4
  492. package/lib/rich-text-editor/index.d.ts +18 -18
  493. package/lib/rich-text-editor/index.js +70 -107
  494. package/lib/rich-text-editor/lang/zh_CN.d.ts +404 -404
  495. package/lib/rich-text-editor/lang/zh_CN.js +397 -420
  496. package/lib/rich-text-editor/plugins/code/index.js +29 -38
  497. package/lib/rich-text-editor/style/index.css +47 -52
  498. package/lib/rich-text-editor/style/index.js +4 -4
  499. package/lib/single-img-upload/index.d.ts +8 -8
  500. package/lib/single-img-upload/index.js +273 -400
  501. package/lib/single-img-upload/style/index.css +47 -52
  502. package/lib/single-img-upload/style/index.js +7 -7
  503. package/lib/sortable-hoc/index.js +37 -52
  504. package/lib/split-pane/index.d.ts +53 -53
  505. package/lib/split-pane/index.js +22 -33
  506. package/lib/split-pane/style/index.js +4 -4
  507. package/lib/step-number-input/const/countType.d.ts +2 -2
  508. package/lib/step-number-input/const/countType.js +4 -4
  509. package/lib/step-number-input/const/numberType.d.ts +2 -2
  510. package/lib/step-number-input/const/numberType.js +4 -4
  511. package/lib/step-number-input/index.d.ts +31 -31
  512. package/lib/step-number-input/index.js +133 -204
  513. package/lib/step-number-input/style/index.css +47 -52
  514. package/lib/step-number-input/style/index.js +5 -5
  515. package/lib/table-col/index.d.ts +3 -3
  516. package/lib/table-col/index.js +15 -23
  517. package/lib/table-col/style/index.js +4 -4
  518. package/lib/text-area/index.d.ts +8 -13
  519. package/lib/text-area/index.js +89 -124
  520. package/lib/text-area/style/index.js +4 -4
  521. package/lib/text-input/index.d.ts +1 -3
  522. package/lib/text-input/index.js +67 -89
  523. package/lib/text-input/style/index.css +53 -123
  524. package/lib/text-input/style/index.js +4 -4
  525. package/package.json +4 -4
@@ -3,12 +3,12 @@
3
3
  /* stylelint-disable no-duplicate-selectors */
4
4
  /* stylelint-disable */
5
5
  /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
6
- [class^='ant-']::-ms-clear,
7
- [class*='ant-']::-ms-clear,
8
- [class^='ant-'] input::-ms-clear,
9
- [class*='ant-'] input::-ms-clear,
10
- [class^='ant-'] input::-ms-reveal,
11
- [class*='ant-'] input::-ms-reveal {
6
+ [class^=ant-]::-ms-clear,
7
+ [class*= ant-]::-ms-clear,
8
+ [class^=ant-] input::-ms-clear,
9
+ [class*= ant-] input::-ms-clear,
10
+ [class^=ant-] input::-ms-reveal,
11
+ [class*= ant-] input::-ms-reveal {
12
12
  display: none;
13
13
  }
14
14
  /* stylelint-disable property-no-vendor-prefix, at-rule-no-vendor-prefix */
@@ -38,9 +38,7 @@ body {
38
38
  margin: 0;
39
39
  color: rgba(0, 0, 0, 0.85);
40
40
  font-size: 14px;
41
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
42
- Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
43
- 'Segoe UI Symbol', 'Noto Color Emoji';
41
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
44
42
  font-variant: tabular-nums;
45
43
  line-height: 1.5715;
46
44
  background-color: #fff;
@@ -71,9 +69,9 @@ p {
71
69
  }
72
70
  abbr[title],
73
71
  abbr[data-original-title] {
74
- -webkit-text-decoration: underline dotted;
75
72
  text-decoration: underline;
76
- text-decoration: underline dotted;
73
+ -webkit-text-decoration: underline dotted;
74
+ text-decoration: underline dotted;
77
75
  border-bottom: 0;
78
76
  cursor: help;
79
77
  }
@@ -221,9 +219,9 @@ select {
221
219
  text-transform: none;
222
220
  }
223
221
  button,
224
- html [type='button'],
225
- [type='reset'],
226
- [type='submit'] {
222
+ html [type="button"],
223
+ [type="reset"],
224
+ [type="submit"] {
227
225
  -webkit-appearance: button;
228
226
  }
229
227
  button::-moz-focus-inner,
@@ -356,13 +354,13 @@ mark {
356
354
  .ant-fade-enter,
357
355
  .ant-fade-appear {
358
356
  animation-duration: 0.2s;
359
- animation-play-state: paused;
360
357
  animation-fill-mode: both;
358
+ animation-play-state: paused;
361
359
  }
362
360
  .ant-fade-leave {
363
361
  animation-duration: 0.2s;
364
- animation-play-state: paused;
365
362
  animation-fill-mode: both;
363
+ animation-play-state: paused;
366
364
  }
367
365
  .ant-fade-enter.ant-fade-enter-active,
368
366
  .ant-fade-appear.ant-fade-appear-active {
@@ -401,13 +399,13 @@ mark {
401
399
  .ant-move-up-enter,
402
400
  .ant-move-up-appear {
403
401
  animation-duration: 0.2s;
404
- animation-play-state: paused;
405
402
  animation-fill-mode: both;
403
+ animation-play-state: paused;
406
404
  }
407
405
  .ant-move-up-leave {
408
406
  animation-duration: 0.2s;
409
- animation-play-state: paused;
410
407
  animation-fill-mode: both;
408
+ animation-play-state: paused;
411
409
  }
412
410
  .ant-move-up-enter.ant-move-up-enter-active,
413
411
  .ant-move-up-appear.ant-move-up-appear-active {
@@ -430,13 +428,13 @@ mark {
430
428
  .ant-move-down-enter,
431
429
  .ant-move-down-appear {
432
430
  animation-duration: 0.2s;
433
- animation-play-state: paused;
434
431
  animation-fill-mode: both;
432
+ animation-play-state: paused;
435
433
  }
436
434
  .ant-move-down-leave {
437
435
  animation-duration: 0.2s;
438
- animation-play-state: paused;
439
436
  animation-fill-mode: both;
437
+ animation-play-state: paused;
440
438
  }
441
439
  .ant-move-down-enter.ant-move-down-enter-active,
442
440
  .ant-move-down-appear.ant-move-down-appear-active {
@@ -459,13 +457,13 @@ mark {
459
457
  .ant-move-left-enter,
460
458
  .ant-move-left-appear {
461
459
  animation-duration: 0.2s;
462
- animation-play-state: paused;
463
460
  animation-fill-mode: both;
461
+ animation-play-state: paused;
464
462
  }
465
463
  .ant-move-left-leave {
466
464
  animation-duration: 0.2s;
467
- animation-play-state: paused;
468
465
  animation-fill-mode: both;
466
+ animation-play-state: paused;
469
467
  }
470
468
  .ant-move-left-enter.ant-move-left-enter-active,
471
469
  .ant-move-left-appear.ant-move-left-appear-active {
@@ -488,13 +486,13 @@ mark {
488
486
  .ant-move-right-enter,
489
487
  .ant-move-right-appear {
490
488
  animation-duration: 0.2s;
491
- animation-play-state: paused;
492
489
  animation-fill-mode: both;
490
+ animation-play-state: paused;
493
491
  }
494
492
  .ant-move-right-leave {
495
493
  animation-duration: 0.2s;
496
- animation-play-state: paused;
497
494
  animation-fill-mode: both;
495
+ animation-play-state: paused;
498
496
  }
499
497
  .ant-move-right-enter.ant-move-right-enter-active,
500
498
  .ant-move-right-appear.ant-move-right-appear-active {
@@ -635,8 +633,7 @@ html {
635
633
  box-shadow: 0 0 0 0 #1890ff;
636
634
  box-shadow: 0 0 0 0 var(--antd-wave-shadow-color);
637
635
  opacity: 0.2;
638
- animation: fadeEffect 2s cubic-bezier(0.08, 0.82, 0.17, 1),
639
- waveEffect 0.4s cubic-bezier(0.08, 0.82, 0.17, 1);
636
+ animation: fadeEffect 2s cubic-bezier(0.08, 0.82, 0.17, 1), waveEffect 0.4s cubic-bezier(0.08, 0.82, 0.17, 1);
640
637
  animation-fill-mode: forwards;
641
638
  content: '';
642
639
  pointer-events: none;
@@ -655,13 +652,13 @@ html {
655
652
  .ant-slide-up-enter,
656
653
  .ant-slide-up-appear {
657
654
  animation-duration: 0.2s;
658
- animation-play-state: paused;
659
655
  animation-fill-mode: both;
656
+ animation-play-state: paused;
660
657
  }
661
658
  .ant-slide-up-leave {
662
659
  animation-duration: 0.2s;
663
- animation-play-state: paused;
664
660
  animation-fill-mode: both;
661
+ animation-play-state: paused;
665
662
  }
666
663
  .ant-slide-up-enter.ant-slide-up-enter-active,
667
664
  .ant-slide-up-appear.ant-slide-up-appear-active {
@@ -684,13 +681,13 @@ html {
684
681
  .ant-slide-down-enter,
685
682
  .ant-slide-down-appear {
686
683
  animation-duration: 0.2s;
687
- animation-play-state: paused;
688
684
  animation-fill-mode: both;
685
+ animation-play-state: paused;
689
686
  }
690
687
  .ant-slide-down-leave {
691
688
  animation-duration: 0.2s;
692
- animation-play-state: paused;
693
689
  animation-fill-mode: both;
690
+ animation-play-state: paused;
694
691
  }
695
692
  .ant-slide-down-enter.ant-slide-down-enter-active,
696
693
  .ant-slide-down-appear.ant-slide-down-appear-active {
@@ -713,13 +710,13 @@ html {
713
710
  .ant-slide-left-enter,
714
711
  .ant-slide-left-appear {
715
712
  animation-duration: 0.2s;
716
- animation-play-state: paused;
717
713
  animation-fill-mode: both;
714
+ animation-play-state: paused;
718
715
  }
719
716
  .ant-slide-left-leave {
720
717
  animation-duration: 0.2s;
721
- animation-play-state: paused;
722
718
  animation-fill-mode: both;
719
+ animation-play-state: paused;
723
720
  }
724
721
  .ant-slide-left-enter.ant-slide-left-enter-active,
725
722
  .ant-slide-left-appear.ant-slide-left-appear-active {
@@ -742,13 +739,13 @@ html {
742
739
  .ant-slide-right-enter,
743
740
  .ant-slide-right-appear {
744
741
  animation-duration: 0.2s;
745
- animation-play-state: paused;
746
742
  animation-fill-mode: both;
743
+ animation-play-state: paused;
747
744
  }
748
745
  .ant-slide-right-leave {
749
746
  animation-duration: 0.2s;
750
- animation-play-state: paused;
751
747
  animation-fill-mode: both;
748
+ animation-play-state: paused;
752
749
  }
753
750
  .ant-slide-right-enter.ant-slide-right-enter-active,
754
751
  .ant-slide-right-appear.ant-slide-right-appear-active {
@@ -867,13 +864,13 @@ html {
867
864
  .ant-zoom-enter,
868
865
  .ant-zoom-appear {
869
866
  animation-duration: 0.2s;
870
- animation-play-state: paused;
871
867
  animation-fill-mode: both;
868
+ animation-play-state: paused;
872
869
  }
873
870
  .ant-zoom-leave {
874
871
  animation-duration: 0.2s;
875
- animation-play-state: paused;
876
872
  animation-fill-mode: both;
873
+ animation-play-state: paused;
877
874
  }
878
875
  .ant-zoom-enter.ant-zoom-enter-active,
879
876
  .ant-zoom-appear.ant-zoom-appear-active {
@@ -901,13 +898,13 @@ html {
901
898
  .ant-zoom-big-enter,
902
899
  .ant-zoom-big-appear {
903
900
  animation-duration: 0.2s;
904
- animation-play-state: paused;
905
901
  animation-fill-mode: both;
902
+ animation-play-state: paused;
906
903
  }
907
904
  .ant-zoom-big-leave {
908
905
  animation-duration: 0.2s;
909
- animation-play-state: paused;
910
906
  animation-fill-mode: both;
907
+ animation-play-state: paused;
911
908
  }
912
909
  .ant-zoom-big-enter.ant-zoom-big-enter-active,
913
910
  .ant-zoom-big-appear.ant-zoom-big-appear-active {
@@ -935,13 +932,13 @@ html {
935
932
  .ant-zoom-big-fast-enter,
936
933
  .ant-zoom-big-fast-appear {
937
934
  animation-duration: 0.1s;
938
- animation-play-state: paused;
939
935
  animation-fill-mode: both;
936
+ animation-play-state: paused;
940
937
  }
941
938
  .ant-zoom-big-fast-leave {
942
939
  animation-duration: 0.1s;
943
- animation-play-state: paused;
944
940
  animation-fill-mode: both;
941
+ animation-play-state: paused;
945
942
  }
946
943
  .ant-zoom-big-fast-enter.ant-zoom-big-fast-enter-active,
947
944
  .ant-zoom-big-fast-appear.ant-zoom-big-fast-appear-active {
@@ -969,13 +966,13 @@ html {
969
966
  .ant-zoom-up-enter,
970
967
  .ant-zoom-up-appear {
971
968
  animation-duration: 0.2s;
972
- animation-play-state: paused;
973
969
  animation-fill-mode: both;
970
+ animation-play-state: paused;
974
971
  }
975
972
  .ant-zoom-up-leave {
976
973
  animation-duration: 0.2s;
977
- animation-play-state: paused;
978
974
  animation-fill-mode: both;
975
+ animation-play-state: paused;
979
976
  }
980
977
  .ant-zoom-up-enter.ant-zoom-up-enter-active,
981
978
  .ant-zoom-up-appear.ant-zoom-up-appear-active {
@@ -1003,13 +1000,13 @@ html {
1003
1000
  .ant-zoom-down-enter,
1004
1001
  .ant-zoom-down-appear {
1005
1002
  animation-duration: 0.2s;
1006
- animation-play-state: paused;
1007
1003
  animation-fill-mode: both;
1004
+ animation-play-state: paused;
1008
1005
  }
1009
1006
  .ant-zoom-down-leave {
1010
1007
  animation-duration: 0.2s;
1011
- animation-play-state: paused;
1012
1008
  animation-fill-mode: both;
1009
+ animation-play-state: paused;
1013
1010
  }
1014
1011
  .ant-zoom-down-enter.ant-zoom-down-enter-active,
1015
1012
  .ant-zoom-down-appear.ant-zoom-down-appear-active {
@@ -1037,13 +1034,13 @@ html {
1037
1034
  .ant-zoom-left-enter,
1038
1035
  .ant-zoom-left-appear {
1039
1036
  animation-duration: 0.2s;
1040
- animation-play-state: paused;
1041
1037
  animation-fill-mode: both;
1038
+ animation-play-state: paused;
1042
1039
  }
1043
1040
  .ant-zoom-left-leave {
1044
1041
  animation-duration: 0.2s;
1045
- animation-play-state: paused;
1046
1042
  animation-fill-mode: both;
1043
+ animation-play-state: paused;
1047
1044
  }
1048
1045
  .ant-zoom-left-enter.ant-zoom-left-enter-active,
1049
1046
  .ant-zoom-left-appear.ant-zoom-left-appear-active {
@@ -1071,13 +1068,13 @@ html {
1071
1068
  .ant-zoom-right-enter,
1072
1069
  .ant-zoom-right-appear {
1073
1070
  animation-duration: 0.2s;
1074
- animation-play-state: paused;
1075
1071
  animation-fill-mode: both;
1072
+ animation-play-state: paused;
1076
1073
  }
1077
1074
  .ant-zoom-right-leave {
1078
1075
  animation-duration: 0.2s;
1079
- animation-play-state: paused;
1080
1076
  animation-fill-mode: both;
1077
+ animation-play-state: paused;
1081
1078
  }
1082
1079
  .ant-zoom-right-enter.ant-zoom-right-enter-active,
1083
1080
  .ant-zoom-right-appear.ant-zoom-right-appear-active {
@@ -1232,35 +1229,27 @@ html {
1232
1229
  overflow: hidden;
1233
1230
  }
1234
1231
  .ant-motion-collapse-legacy-active {
1235
- transition: height 0.2s cubic-bezier(0.645, 0.045, 0.355, 1),
1236
- opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) !important;
1232
+ transition: height 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) !important;
1237
1233
  }
1238
1234
  .ant-motion-collapse {
1239
1235
  overflow: hidden;
1240
- transition: height 0.2s cubic-bezier(0.645, 0.045, 0.355, 1),
1241
- opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) !important;
1236
+ transition: height 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) !important;
1242
1237
  }
1243
1238
  .label-auto-complete {
1244
1239
  position: relative;
1245
1240
  width: 100%;
1246
1241
  height: 100%;
1247
1242
  }
1248
- .label-auto-complete
1249
- .ant-select-single.ant-select-lg:not(.ant-select-customize-input):not(.ant-select-disabled)
1250
- .ant-select-selector:hover {
1243
+ .label-auto-complete .ant-select-single.ant-select-lg:not(.ant-select-customize-input):not(.ant-select-disabled) .ant-select-selector:hover {
1251
1244
  border-color: #a0a0a0;
1252
1245
  }
1253
- .label-auto-complete
1254
- .ant-select-single.ant-select-lg:not(.ant-select-customize-input)
1255
- .ant-select-selector {
1246
+ .label-auto-complete .ant-select-single.ant-select-lg:not(.ant-select-customize-input) .ant-select-selector {
1256
1247
  height: 45px;
1257
1248
  border: 1px solid #e5e5e5;
1258
1249
  border-radius: 2px;
1259
1250
  outline: none;
1260
1251
  }
1261
- .label-auto-complete
1262
- .ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input)
1263
- .ant-select-selector {
1252
+ .label-auto-complete .ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector {
1264
1253
  border-color: #000;
1265
1254
  box-shadow: none;
1266
1255
  }
@@ -1,2 +1,2 @@
1
- import 'antd/es/select/style';
2
- import './index.less';
1
+ import "antd/es/select/style";
2
+ import './index.less';
@@ -1,17 +1,16 @@
1
1
  import React from 'react';
2
2
  import type { ConditionInputProps } from '../condition-input';
3
- export interface LabelConditionInputProps
4
- extends Omit<ConditionInputProps, 'onBlur' | 'onChange'> {
5
- /** label 标签的文本 */
6
- label?: React.ReactNode;
7
- /** 输入框内容变化时的回调 */
8
- onChange?: (value: string) => void;
9
- /** 输入框失去焦点的回调 */
10
- onBlur?: (value: string) => void;
11
- /** 输入框除去label之后的最小末尾宽度 */
12
- baseMinWidth?: number;
13
- /** 组件dom id */
14
- id?: string;
3
+ export interface LabelConditionInputProps extends Omit<ConditionInputProps, 'onBlur' | 'onChange'> {
4
+ /** label 标签的文本 */
5
+ label?: React.ReactNode;
6
+ /** 输入框内容变化时的回调 */
7
+ onChange?: (value: string) => void;
8
+ /** 输入框失去焦点的回调 */
9
+ onBlur?: (value: string) => void;
10
+ /** 输入框除去label之后的最小末尾宽度 */
11
+ baseMinWidth?: number;
12
+ /** 组件dom id */
13
+ id?: string;
15
14
  }
16
15
  declare const LabelConditionInput: (props: LabelConditionInputProps) => JSX.Element;
17
16
  export default LabelConditionInput;
@@ -1,50 +1,44 @@
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);
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;
16
10
  };
17
- var __read =
18
- (this && this.__read) ||
19
- function (o, n) {
20
- var m = typeof Symbol === 'function' && o[Symbol.iterator];
21
- if (!m) return o;
22
- var i = m.call(o),
23
- r,
24
- ar = [],
25
- e;
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __read = this && this.__read || function (o, n) {
14
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
15
+ if (!m) return o;
16
+ var i = m.call(o),
17
+ r,
18
+ ar = [],
19
+ e;
20
+ try {
21
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
22
+ ar.push(r.value);
23
+ }
24
+ } catch (error) {
25
+ e = {
26
+ error: error
27
+ };
28
+ } finally {
26
29
  try {
27
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
28
- ar.push(r.value);
29
- }
30
- } catch (error) {
31
- e = {
32
- error: error,
33
- };
30
+ if (r && !r.done && (m = i["return"])) m.call(i);
34
31
  } finally {
35
- try {
36
- if (r && !r.done && (m = i['return'])) m.call(i);
37
- } finally {
38
- if (e) throw e.error;
39
- }
32
+ if (e) throw e.error;
40
33
  }
41
- return ar;
42
- };
43
- import useControllableValue from 'ahooks/es/useControllableValue';
44
- import useSize from 'ahooks/es/useSize';
34
+ }
35
+ return ar;
36
+ };
37
+ import React from 'react';
45
38
  import classNames from 'classnames';
46
39
  import omit from 'lodash/omit';
47
- import React from 'react';
40
+ import useControllableValue from "ahooks/es/useControllableValue";
41
+ import useSize from "ahooks/es/useSize";
48
42
  import ConditionInput from '../condition-input';
49
43
  var LabelConditionInput = function LabelConditionInput(props) {
50
44
  var className = props.className,
@@ -75,63 +69,31 @@ var LabelConditionInput = function LabelConditionInput(props) {
75
69
  setFocused(false);
76
70
  onBlur === null || onBlur === void 0 ? void 0 : onBlur(value);
77
71
  };
78
- var controlMinWidth = (
79
- labelSize === null || labelSize === void 0 ? void 0 : labelSize.width
80
- )
81
- ? labelSize.width + baseMinWidth
82
- : undefined;
83
- return /*#__PURE__*/ React.createElement(
84
- 'div',
85
- {
86
- className: classNames('label-condition-input-warper', className),
87
- id: id,
88
- style: {
89
- minWidth: controlMinWidth,
90
- },
91
- },
92
- /*#__PURE__*/ React.createElement(
93
- 'div',
94
- {
95
- className: classNames('label-condition-input-field', {
96
- 'label-condition-input-focused': focused,
97
- }),
98
- },
99
- /*#__PURE__*/ React.createElement(
100
- ConditionInput,
101
- __assign(
102
- {},
103
- omit(props, [
104
- 'onChange',
105
- 'onBlur',
106
- 'onFocus',
107
- 'className',
108
- 'label',
109
- 'placeholder',
110
- 'baseMinWidth',
111
- ]),
112
- {
113
- 'ref': InputDomRef,
114
- 'data-value': value ? value.length : 0,
115
- 'value': value,
116
- 'onBlur': handleBlur,
117
- 'onFocus': handleFocus,
118
- 'className': 'label-condition-input',
119
- 'onChange': function onChange(inputValue) {
120
- return setValue(inputValue);
121
- },
122
- },
123
- ),
124
- ),
125
- /*#__PURE__*/ React.createElement(
126
- 'label',
127
- {
128
- ref: labelDomRef,
129
- className: 'label-condition-input-text',
130
- onClick: handleLabelClick,
131
- },
132
- label,
133
- ),
134
- ),
135
- );
72
+ var controlMinWidth = (labelSize === null || labelSize === void 0 ? void 0 : labelSize.width) ? labelSize.width + baseMinWidth : undefined;
73
+ return /*#__PURE__*/React.createElement("div", {
74
+ className: classNames('label-condition-input-warper', className),
75
+ id: id,
76
+ style: {
77
+ minWidth: controlMinWidth
78
+ }
79
+ }, /*#__PURE__*/React.createElement("div", {
80
+ className: classNames('label-condition-input-field', {
81
+ 'label-condition-input-focused': focused
82
+ })
83
+ }, /*#__PURE__*/React.createElement(ConditionInput, __assign({}, omit(props, ['onChange', 'onBlur', 'onFocus', 'className', 'label', 'placeholder', 'baseMinWidth']), {
84
+ ref: InputDomRef,
85
+ "data-value": value ? value.length : 0,
86
+ value: value,
87
+ onBlur: handleBlur,
88
+ onFocus: handleFocus,
89
+ className: "label-condition-input",
90
+ onChange: function onChange(inputValue) {
91
+ return setValue(inputValue);
92
+ }
93
+ })), /*#__PURE__*/React.createElement("label", {
94
+ ref: labelDomRef,
95
+ className: "label-condition-input-text",
96
+ onClick: handleLabelClick
97
+ }, label)));
136
98
  };
137
- export default LabelConditionInput;
99
+ export default LabelConditionInput;