shineout 1.12.3 → 1.12.4-beta.2

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 (1044) hide show
  1. package/css/Cascader/Result.js +7 -11
  2. package/css/Checkbox/CheckItem.js +9 -3
  3. package/css/DatePicker/Container.js +3 -5
  4. package/css/DatePicker/Text.js +25 -12
  5. package/css/DatePicker/Time.js +37 -10
  6. package/css/DatePicker/TimeScroll.js +19 -3
  7. package/css/DatePicker/paramUtils.js +39 -32
  8. package/css/Select/Result.js +8 -4
  9. package/css/TreeSelect/Result.js +8 -4
  10. package/css/index.d.ts +1 -1
  11. package/css/index.js +1 -1
  12. package/dist/shineout.js +4650 -4308
  13. package/dist/shineout.js.map +1 -1
  14. package/dist/shineout.min.js +1 -1
  15. package/es/Cascader/Result.js +7 -11
  16. package/es/Checkbox/CheckItem.js +11 -4
  17. package/es/DatePicker/Container.js +1 -2
  18. package/es/DatePicker/Text.js +21 -10
  19. package/es/DatePicker/Time.js +37 -10
  20. package/es/DatePicker/TimeScroll.js +19 -3
  21. package/es/DatePicker/paramUtils.js +39 -31
  22. package/es/Select/Result.js +8 -4
  23. package/es/TreeSelect/Result.js +8 -4
  24. package/es/index.d.ts +1 -1
  25. package/es/index.js +1 -1
  26. package/lib/Cascader/Result.js +7 -11
  27. package/lib/Checkbox/CheckItem.js +9 -3
  28. package/lib/DatePicker/Container.js +3 -5
  29. package/lib/DatePicker/Text.js +25 -12
  30. package/lib/DatePicker/Time.js +37 -10
  31. package/lib/DatePicker/TimeScroll.js +19 -3
  32. package/lib/DatePicker/paramUtils.js +39 -32
  33. package/lib/Select/Result.js +8 -4
  34. package/lib/TreeSelect/Result.js +8 -4
  35. package/lib/index.d.ts +1 -1
  36. package/lib/index.js +1 -1
  37. package/package.json +1 -1
  38. package/esm/@types/common.d.ts +0 -47
  39. package/esm/@types/common.js +0 -1
  40. package/esm/Alert/Props.d.ts +0 -85
  41. package/esm/Alert/Props.js +0 -1
  42. package/esm/Alert/index.d.ts +0 -26
  43. package/esm/Alert/index.js +0 -165
  44. package/esm/Alert/interface.d.ts +0 -1
  45. package/esm/Alert/interface.js +0 -1
  46. package/esm/Alert/styles/alert.less +0 -143
  47. package/esm/Alert/styles/index.d.ts +0 -2
  48. package/esm/Alert/styles/index.js +0 -4
  49. package/esm/AnimationList/AbsoluteList.d.ts +0 -3
  50. package/esm/AnimationList/AbsoluteList.js +0 -373
  51. package/esm/AnimationList/LazyList.d.ts +0 -26
  52. package/esm/AnimationList/LazyList.js +0 -163
  53. package/esm/AnimationList/List.d.ts +0 -10
  54. package/esm/AnimationList/List.js +0 -46
  55. package/esm/AnimationList/Props.d.ts +0 -61
  56. package/esm/AnimationList/Props.js +0 -1
  57. package/esm/AnimationList/index.d.ts +0 -4
  58. package/esm/AnimationList/index.js +0 -27
  59. package/esm/AnimationList/styles/index.d.ts +0 -2
  60. package/esm/AnimationList/styles/index.js +0 -4
  61. package/esm/Breadcrumb/Props.d.ts +0 -81
  62. package/esm/Breadcrumb/Props.js +0 -1
  63. package/esm/Breadcrumb/index.d.ts +0 -17
  64. package/esm/Breadcrumb/index.js +0 -91
  65. package/esm/Breadcrumb/interface.d.ts +0 -1
  66. package/esm/Breadcrumb/interface.js +0 -1
  67. package/esm/Breadcrumb/styles/breadcrumb.less +0 -52
  68. package/esm/Breadcrumb/styles/index.d.ts +0 -2
  69. package/esm/Breadcrumb/styles/index.js +0 -4
  70. package/esm/Button/Button.d.ts +0 -13
  71. package/esm/Button/Button.js +0 -113
  72. package/esm/Button/Group.d.ts +0 -10
  73. package/esm/Button/Group.js +0 -48
  74. package/esm/Button/Once.d.ts +0 -10
  75. package/esm/Button/Once.js +0 -43
  76. package/esm/Button/Props.d.ts +0 -153
  77. package/esm/Button/Props.js +0 -1
  78. package/esm/Button/index.d.ts +0 -1
  79. package/esm/Button/index.js +0 -1
  80. package/esm/Button/interface.d.ts +0 -1
  81. package/esm/Button/interface.js +0 -1
  82. package/esm/Button/styles/button.less +0 -389
  83. package/esm/Button/styles/index.d.ts +0 -2
  84. package/esm/Button/styles/index.js +0 -4
  85. package/esm/Card/Accordion.d.ts +0 -20
  86. package/esm/Card/Accordion.js +0 -67
  87. package/esm/Card/Body.d.ts +0 -6
  88. package/esm/Card/Body.js +0 -48
  89. package/esm/Card/Card.d.ts +0 -4
  90. package/esm/Card/Card.js +0 -106
  91. package/esm/Card/Footer.d.ts +0 -5
  92. package/esm/Card/Footer.js +0 -35
  93. package/esm/Card/Header.d.ts +0 -7
  94. package/esm/Card/Header.js +0 -48
  95. package/esm/Card/Props.d.ts +0 -196
  96. package/esm/Card/Props.js +0 -79
  97. package/esm/Card/Submit.d.ts +0 -8
  98. package/esm/Card/Submit.js +0 -52
  99. package/esm/Card/context.d.ts +0 -4
  100. package/esm/Card/context.js +0 -27
  101. package/esm/Card/index.d.ts +0 -2
  102. package/esm/Card/index.js +0 -17
  103. package/esm/Card/interface.d.ts +0 -1
  104. package/esm/Card/interface.js +0 -1
  105. package/esm/Card/styles/card.less +0 -156
  106. package/esm/Card/styles/index.d.ts +0 -2
  107. package/esm/Card/styles/index.js +0 -4
  108. package/esm/CardGroup/CardGroup.d.ts +0 -18
  109. package/esm/CardGroup/CardGroup.js +0 -104
  110. package/esm/CardGroup/Item.d.ts +0 -8
  111. package/esm/CardGroup/Item.js +0 -62
  112. package/esm/CardGroup/Props.d.ts +0 -122
  113. package/esm/CardGroup/Props.js +0 -1
  114. package/esm/CardGroup/context.d.ts +0 -4
  115. package/esm/CardGroup/context.js +0 -13
  116. package/esm/CardGroup/index.d.ts +0 -2
  117. package/esm/CardGroup/index.js +0 -8
  118. package/esm/CardGroup/interface.d.ts +0 -1
  119. package/esm/CardGroup/interface.js +0 -1
  120. package/esm/CardGroup/styles/cardGroup.less +0 -40
  121. package/esm/CardGroup/styles/index.d.ts +0 -2
  122. package/esm/CardGroup/styles/index.js +0 -4
  123. package/esm/Carousel/Item.d.ts +0 -11
  124. package/esm/Carousel/Item.js +0 -31
  125. package/esm/Carousel/Props.d.ts +0 -58
  126. package/esm/Carousel/Props.js +0 -1
  127. package/esm/Carousel/index.d.ts +0 -4
  128. package/esm/Carousel/index.js +0 -201
  129. package/esm/Carousel/interface.d.ts +0 -1
  130. package/esm/Carousel/interface.js +0 -1
  131. package/esm/Carousel/styles/carousel.less +0 -288
  132. package/esm/Carousel/styles/index.d.ts +0 -2
  133. package/esm/Carousel/styles/index.js +0 -4
  134. package/esm/Cascader/Cascader.d.ts +0 -61
  135. package/esm/Cascader/Cascader.js +0 -609
  136. package/esm/Cascader/FilterList.d.ts +0 -2
  137. package/esm/Cascader/FilterList.js +0 -195
  138. package/esm/Cascader/Input.d.ts +0 -26
  139. package/esm/Cascader/Input.js +0 -117
  140. package/esm/Cascader/List.d.ts +0 -15
  141. package/esm/Cascader/List.js +0 -85
  142. package/esm/Cascader/Node.d.ts +0 -19
  143. package/esm/Cascader/Node.js +0 -182
  144. package/esm/Cascader/Props.d.ts +0 -311
  145. package/esm/Cascader/Props.js +0 -1
  146. package/esm/Cascader/Result.d.ts +0 -41
  147. package/esm/Cascader/Result.js +0 -399
  148. package/esm/Cascader/filter.d.ts +0 -4
  149. package/esm/Cascader/filter.js +0 -103
  150. package/esm/Cascader/index.d.ts +0 -2
  151. package/esm/Cascader/index.js +0 -12
  152. package/esm/Cascader/interface.d.ts +0 -1
  153. package/esm/Cascader/interface.js +0 -1
  154. package/esm/Cascader/styles/cascader.less +0 -452
  155. package/esm/Cascader/styles/index.d.ts +0 -2
  156. package/esm/Cascader/styles/index.js +0 -4
  157. package/esm/Checkbox/CheckItem.d.ts +0 -9
  158. package/esm/Checkbox/CheckItem.js +0 -199
  159. package/esm/Checkbox/Checkbox.d.ts +0 -3
  160. package/esm/Checkbox/Checkbox.js +0 -3
  161. package/esm/Checkbox/Group.d.ts +0 -17
  162. package/esm/Checkbox/Group.js +0 -130
  163. package/esm/Checkbox/Props.d.ts +0 -122
  164. package/esm/Checkbox/Props.js +0 -13
  165. package/esm/Checkbox/context.d.ts +0 -4
  166. package/esm/Checkbox/context.js +0 -13
  167. package/esm/Checkbox/index.d.ts +0 -2
  168. package/esm/Checkbox/index.js +0 -14
  169. package/esm/Checkbox/interface.d.ts +0 -1
  170. package/esm/Checkbox/interface.js +0 -1
  171. package/esm/Checkbox/styles/checkinput.less +0 -602
  172. package/esm/Checkbox/styles/index.d.ts +0 -2
  173. package/esm/Checkbox/styles/index.js +0 -4
  174. package/esm/DataList/BaseItem.d.ts +0 -13
  175. package/esm/DataList/BaseItem.js +0 -40
  176. package/esm/DataList/Extra.d.ts +0 -8
  177. package/esm/DataList/Extra.js +0 -34
  178. package/esm/DataList/List.d.ts +0 -26
  179. package/esm/DataList/List.js +0 -209
  180. package/esm/DataList/Meta.d.ts +0 -16
  181. package/esm/DataList/Meta.js +0 -120
  182. package/esm/DataList/Pagination.d.ts +0 -5
  183. package/esm/DataList/Pagination.js +0 -9
  184. package/esm/DataList/Props.d.ts +0 -138
  185. package/esm/DataList/Props.js +0 -1
  186. package/esm/DataList/index.d.ts +0 -2
  187. package/esm/DataList/index.js +0 -14
  188. package/esm/DataList/styles/index.d.ts +0 -1
  189. package/esm/DataList/styles/index.js +0 -4
  190. package/esm/DataList/styles/list.less +0 -213
  191. package/esm/DatePicker/Container.d.ts +0 -82
  192. package/esm/DatePicker/Container.js +0 -650
  193. package/esm/DatePicker/Day.d.ts +0 -37
  194. package/esm/DatePicker/Day.js +0 -339
  195. package/esm/DatePicker/Icon.d.ts +0 -12
  196. package/esm/DatePicker/Icon.js +0 -40
  197. package/esm/DatePicker/Month.d.ts +0 -18
  198. package/esm/DatePicker/Month.js +0 -144
  199. package/esm/DatePicker/Picker.d.ts +0 -21
  200. package/esm/DatePicker/Picker.js +0 -158
  201. package/esm/DatePicker/Props.d.ts +0 -397
  202. package/esm/DatePicker/Props.js +0 -1
  203. package/esm/DatePicker/Quarter.d.ts +0 -18
  204. package/esm/DatePicker/Quarter.js +0 -164
  205. package/esm/DatePicker/Quick.d.ts +0 -15
  206. package/esm/DatePicker/Quick.js +0 -64
  207. package/esm/DatePicker/Range.d.ts +0 -35
  208. package/esm/DatePicker/Range.js +0 -299
  209. package/esm/DatePicker/Text.d.ts +0 -20
  210. package/esm/DatePicker/Text.js +0 -141
  211. package/esm/DatePicker/Time.d.ts +0 -21
  212. package/esm/DatePicker/Time.js +0 -215
  213. package/esm/DatePicker/TimeScroll.d.ts +0 -26
  214. package/esm/DatePicker/TimeScroll.js +0 -185
  215. package/esm/DatePicker/Year.d.ts +0 -17
  216. package/esm/DatePicker/Year.js +0 -146
  217. package/esm/DatePicker/index.d.ts +0 -2
  218. package/esm/DatePicker/index.js +0 -18
  219. package/esm/DatePicker/interface.d.ts +0 -1
  220. package/esm/DatePicker/interface.js +0 -1
  221. package/esm/DatePicker/paramUtils.d.ts +0 -19
  222. package/esm/DatePicker/paramUtils.js +0 -106
  223. package/esm/DatePicker/styles/datepicker.less +0 -727
  224. package/esm/DatePicker/styles/index.d.ts +0 -2
  225. package/esm/DatePicker/styles/index.js +0 -4
  226. package/esm/DatePicker/utils.d.ts +0 -68
  227. package/esm/DatePicker/utils.js +0 -419
  228. package/esm/DatePicker/value.d.ts +0 -44
  229. package/esm/DatePicker/value.js +0 -179
  230. package/esm/Datum/Form.d.ts +0 -55
  231. package/esm/Datum/Form.js +0 -433
  232. package/esm/Datum/List.d.ts +0 -47
  233. package/esm/Datum/List.js +0 -441
  234. package/esm/Datum/Props.d.ts +0 -89
  235. package/esm/Datum/Props.js +0 -1
  236. package/esm/Datum/Tree.d.ts +0 -78
  237. package/esm/Datum/Tree.js +0 -424
  238. package/esm/Datum/hoc.d.ts +0 -2
  239. package/esm/Datum/hoc.js +0 -133
  240. package/esm/Datum/index.d.ts +0 -8
  241. package/esm/Datum/index.js +0 -8
  242. package/esm/Datum/types.d.ts +0 -16
  243. package/esm/Datum/types.js +0 -22
  244. package/esm/Divider/Props.d.ts +0 -30
  245. package/esm/Divider/Props.js +0 -1
  246. package/esm/Divider/index.d.ts +0 -10
  247. package/esm/Divider/index.js +0 -50
  248. package/esm/Divider/interface.d.ts +0 -1
  249. package/esm/Divider/interface.js +0 -1
  250. package/esm/Divider/styles/divider.less +0 -83
  251. package/esm/Divider/styles/index.d.ts +0 -2
  252. package/esm/Divider/styles/index.js +0 -4
  253. package/esm/Drawer/index.d.ts +0 -12
  254. package/esm/Drawer/index.js +0 -17
  255. package/esm/Drawer/interface.d.ts +0 -1
  256. package/esm/Drawer/interface.js +0 -1
  257. package/esm/Dropdown/Item.d.ts +0 -16
  258. package/esm/Dropdown/Item.js +0 -73
  259. package/esm/Dropdown/Props.d.ts +0 -164
  260. package/esm/Dropdown/Props.js +0 -1
  261. package/esm/Dropdown/index.d.ts +0 -2
  262. package/esm/Dropdown/index.js +0 -347
  263. package/esm/Dropdown/interface.d.ts +0 -1
  264. package/esm/Dropdown/interface.js +0 -1
  265. package/esm/Dropdown/styles/dropdown.less +0 -349
  266. package/esm/Dropdown/styles/index.d.ts +0 -1
  267. package/esm/Dropdown/styles/index.js +0 -4
  268. package/esm/EditableArea/EditableArea.d.ts +0 -36
  269. package/esm/EditableArea/EditableArea.js +0 -275
  270. package/esm/EditableArea/Props.d.ts +0 -105
  271. package/esm/EditableArea/Props.js +0 -1
  272. package/esm/EditableArea/index.d.ts +0 -2
  273. package/esm/EditableArea/index.js +0 -7
  274. package/esm/EditableArea/interface.d.ts +0 -1
  275. package/esm/EditableArea/interface.js +0 -1
  276. package/esm/EditableArea/styles/editableArea.less +0 -63
  277. package/esm/EditableArea/styles/index.d.ts +0 -1
  278. package/esm/EditableArea/styles/index.js +0 -4
  279. package/esm/Form/Field.d.ts +0 -12
  280. package/esm/Form/Field.js +0 -76
  281. package/esm/Form/FieldError.d.ts +0 -6
  282. package/esm/Form/FieldError.js +0 -29
  283. package/esm/Form/FieldSet.d.ts +0 -8
  284. package/esm/Form/FieldSet.js +0 -240
  285. package/esm/Form/Flow.d.ts +0 -10
  286. package/esm/Form/Flow.js +0 -66
  287. package/esm/Form/Form.d.ts +0 -29
  288. package/esm/Form/Form.js +0 -229
  289. package/esm/Form/Item.d.ts +0 -29
  290. package/esm/Form/Item.js +0 -210
  291. package/esm/Form/Props.d.ts +0 -436
  292. package/esm/Form/Props.js +0 -1
  293. package/esm/Form/formButton.d.ts +0 -3
  294. package/esm/Form/formButton.js +0 -69
  295. package/esm/Form/formContext.d.ts +0 -9
  296. package/esm/Form/formContext.js +0 -103
  297. package/esm/Form/index.d.ts +0 -2
  298. package/esm/Form/index.js +0 -35
  299. package/esm/Form/inputable.d.ts +0 -4
  300. package/esm/Form/inputable.js +0 -411
  301. package/esm/Form/interface.d.ts +0 -1
  302. package/esm/Form/interface.js +0 -1
  303. package/esm/Form/mode.d.ts +0 -2
  304. package/esm/Form/mode.js +0 -16
  305. package/esm/Form/styles/form.less +0 -779
  306. package/esm/Form/styles/index.d.ts +0 -2
  307. package/esm/Form/styles/index.js +0 -5
  308. package/esm/Gap/Props.d.ts +0 -37
  309. package/esm/Gap/Props.js +0 -1
  310. package/esm/Gap/index.d.ts +0 -4
  311. package/esm/Gap/index.js +0 -74
  312. package/esm/Gap/interface.d.ts +0 -1
  313. package/esm/Gap/interface.js +0 -1
  314. package/esm/Gap/styles/gap.less +0 -10
  315. package/esm/Gap/styles/index.d.ts +0 -1
  316. package/esm/Gap/styles/index.js +0 -4
  317. package/esm/Gap/support.d.ts +0 -1
  318. package/esm/Gap/support.js +0 -12
  319. package/esm/Grid/Props.d.ts +0 -53
  320. package/esm/Grid/Props.js +0 -1
  321. package/esm/Grid/index.d.ts +0 -7
  322. package/esm/Grid/index.js +0 -89
  323. package/esm/Grid/interface.d.ts +0 -1
  324. package/esm/Grid/interface.js +0 -1
  325. package/esm/Grid/utils.d.ts +0 -13
  326. package/esm/Grid/utils.js +0 -97
  327. package/esm/Icon/Icon.d.ts +0 -23
  328. package/esm/Icon/Icon.js +0 -67
  329. package/esm/Icon/Props.d.ts +0 -80
  330. package/esm/Icon/Props.js +0 -1
  331. package/esm/Icon/index.d.ts +0 -3
  332. package/esm/Icon/index.js +0 -48
  333. package/esm/Icon/interface.d.ts +0 -1
  334. package/esm/Icon/interface.js +0 -1
  335. package/esm/Icon/styles/icon.less +0 -54
  336. package/esm/Icon/styles/index.d.ts +0 -2
  337. package/esm/Icon/styles/index.js +0 -4
  338. package/esm/Image/Gallery.d.ts +0 -9
  339. package/esm/Image/Gallery.js +0 -147
  340. package/esm/Image/Group.d.ts +0 -8
  341. package/esm/Image/Group.js +0 -65
  342. package/esm/Image/Image.d.ts +0 -39
  343. package/esm/Image/Image.js +0 -297
  344. package/esm/Image/Magnify.d.ts +0 -25
  345. package/esm/Image/Magnify.js +0 -147
  346. package/esm/Image/Props.d.ts +0 -184
  347. package/esm/Image/Props.js +0 -1
  348. package/esm/Image/events.d.ts +0 -6
  349. package/esm/Image/events.js +0 -40
  350. package/esm/Image/index.d.ts +0 -2
  351. package/esm/Image/index.js +0 -6
  352. package/esm/Image/interface.d.ts +0 -1
  353. package/esm/Image/interface.js +0 -1
  354. package/esm/Image/styles/image.less +0 -311
  355. package/esm/Image/styles/index.d.ts +0 -2
  356. package/esm/Image/styles/index.js +0 -4
  357. package/esm/Input/Group.d.ts +0 -10
  358. package/esm/Input/Group.js +0 -25
  359. package/esm/Input/Input.d.ts +0 -24
  360. package/esm/Input/Input.js +0 -307
  361. package/esm/Input/Number.d.ts +0 -24
  362. package/esm/Input/Number.js +0 -275
  363. package/esm/Input/Password.d.ts +0 -12
  364. package/esm/Input/Password.js +0 -73
  365. package/esm/Input/Props.d.ts +0 -311
  366. package/esm/Input/Props.js +0 -1
  367. package/esm/Input/clear.d.ts +0 -8
  368. package/esm/Input/clear.js +0 -46
  369. package/esm/Input/index.d.ts +0 -2
  370. package/esm/Input/index.js +0 -22
  371. package/esm/Input/interface.d.ts +0 -1
  372. package/esm/Input/interface.js +0 -1
  373. package/esm/Input/styles/index.d.ts +0 -1
  374. package/esm/Input/styles/index.js +0 -4
  375. package/esm/InputTitle/Props.d.ts +0 -25
  376. package/esm/InputTitle/Props.js +0 -1
  377. package/esm/InputTitle/index.d.ts +0 -2
  378. package/esm/InputTitle/index.js +0 -2
  379. package/esm/InputTitle/inputTitle.d.ts +0 -14
  380. package/esm/InputTitle/inputTitle.js +0 -75
  381. package/esm/InputTitle/styles/index.d.ts +0 -1
  382. package/esm/InputTitle/styles/index.js +0 -3
  383. package/esm/InputTitle/styles/inputTitle.less +0 -139
  384. package/esm/Lazyload/Props.d.ts +0 -7
  385. package/esm/Lazyload/Props.js +0 -1
  386. package/esm/Lazyload/index.d.ts +0 -19
  387. package/esm/Lazyload/index.js +0 -78
  388. package/esm/Lazyload/styles/index.d.ts +0 -1
  389. package/esm/Lazyload/styles/index.js +0 -4
  390. package/esm/Lazyload/styles/lazyload.less +0 -8
  391. package/esm/List/index.d.ts +0 -2
  392. package/esm/List/index.js +0 -2
  393. package/esm/List/interface.d.ts +0 -1
  394. package/esm/List/interface.js +0 -1
  395. package/esm/Menu/Item.d.ts +0 -4
  396. package/esm/Menu/Item.js +0 -339
  397. package/esm/Menu/List.d.ts +0 -6
  398. package/esm/Menu/List.js +0 -76
  399. package/esm/Menu/Props.d.ts +0 -204
  400. package/esm/Menu/Props.js +0 -1
  401. package/esm/Menu/Root.d.ts +0 -94
  402. package/esm/Menu/Root.js +0 -452
  403. package/esm/Menu/context.d.ts +0 -4
  404. package/esm/Menu/context.js +0 -19
  405. package/esm/Menu/index.d.ts +0 -2
  406. package/esm/Menu/index.js +0 -3
  407. package/esm/Menu/interface.d.ts +0 -1
  408. package/esm/Menu/interface.js +0 -1
  409. package/esm/Menu/styles/index.d.ts +0 -1
  410. package/esm/Menu/styles/index.js +0 -4
  411. package/esm/Menu/styles/menu.less +0 -780
  412. package/esm/Message/Container.d.ts +0 -33
  413. package/esm/Message/Container.js +0 -186
  414. package/esm/Message/Props.d.ts +0 -55
  415. package/esm/Message/Props.js +0 -1
  416. package/esm/Message/index.d.ts +0 -14
  417. package/esm/Message/index.js +0 -54
  418. package/esm/Message/interface.d.ts +0 -1
  419. package/esm/Message/interface.js +0 -1
  420. package/esm/Message/messager.d.ts +0 -5
  421. package/esm/Message/messager.js +0 -44
  422. package/esm/Message/styles/index.d.ts +0 -1
  423. package/esm/Message/styles/index.js +0 -6
  424. package/esm/Message/styles/message.less +0 -148
  425. package/esm/Modal/Modal.d.ts +0 -34
  426. package/esm/Modal/Modal.js +0 -122
  427. package/esm/Modal/Panel.d.ts +0 -43
  428. package/esm/Modal/Panel.js +0 -293
  429. package/esm/Modal/Props.d.ts +0 -300
  430. package/esm/Modal/Props.js +0 -1
  431. package/esm/Modal/context.d.ts +0 -7
  432. package/esm/Modal/context.js +0 -19
  433. package/esm/Modal/events.d.ts +0 -8
  434. package/esm/Modal/events.js +0 -277
  435. package/esm/Modal/index.d.ts +0 -2
  436. package/esm/Modal/index.js +0 -12
  437. package/esm/Modal/interface.d.ts +0 -1
  438. package/esm/Modal/interface.js +0 -1
  439. package/esm/Modal/styles/index.d.ts +0 -1
  440. package/esm/Modal/styles/index.js +0 -4
  441. package/esm/Modal/styles/modal.less +0 -377
  442. package/esm/Pagination/Item.d.ts +0 -12
  443. package/esm/Pagination/Item.js +0 -54
  444. package/esm/Pagination/Jumper.d.ts +0 -11
  445. package/esm/Pagination/Jumper.js +0 -101
  446. package/esm/Pagination/Links.d.ts +0 -14
  447. package/esm/Pagination/Links.js +0 -144
  448. package/esm/Pagination/Next.d.ts +0 -8
  449. package/esm/Pagination/Next.js +0 -56
  450. package/esm/Pagination/PageSizeList.d.ts +0 -11
  451. package/esm/Pagination/PageSizeList.js +0 -67
  452. package/esm/Pagination/Pagination.d.ts +0 -15
  453. package/esm/Pagination/Pagination.js +0 -88
  454. package/esm/Pagination/Prev.d.ts +0 -8
  455. package/esm/Pagination/Prev.js +0 -53
  456. package/esm/Pagination/Props.d.ts +0 -175
  457. package/esm/Pagination/Props.js +0 -1
  458. package/esm/Pagination/Simple.d.ts +0 -5
  459. package/esm/Pagination/Simple.js +0 -37
  460. package/esm/Pagination/index.d.ts +0 -20
  461. package/esm/Pagination/index.js +0 -76
  462. package/esm/Pagination/interface.d.ts +0 -1
  463. package/esm/Pagination/interface.js +0 -1
  464. package/esm/Pagination/styles/index.d.ts +0 -1
  465. package/esm/Pagination/styles/index.js +0 -4
  466. package/esm/Pagination/styles/pagination.less +0 -180
  467. package/esm/Popover/Confirm.d.ts +0 -16
  468. package/esm/Popover/Confirm.js +0 -124
  469. package/esm/Popover/Content.d.ts +0 -4
  470. package/esm/Popover/Content.js +0 -11
  471. package/esm/Popover/Panel.d.ts +0 -4
  472. package/esm/Popover/Panel.js +0 -373
  473. package/esm/Popover/Props.d.ts +0 -237
  474. package/esm/Popover/Props.js +0 -1
  475. package/esm/Popover/context.d.ts +0 -4
  476. package/esm/Popover/context.js +0 -16
  477. package/esm/Popover/index.d.ts +0 -3
  478. package/esm/Popover/index.js +0 -10
  479. package/esm/Popover/interface.d.ts +0 -1
  480. package/esm/Popover/interface.js +0 -1
  481. package/esm/Popover/styles/index.d.ts +0 -1
  482. package/esm/Popover/styles/index.js +0 -4
  483. package/esm/Popover/styles/popover.less +0 -309
  484. package/esm/Progress/Circle.d.ts +0 -12
  485. package/esm/Progress/Circle.js +0 -79
  486. package/esm/Progress/Line.d.ts +0 -9
  487. package/esm/Progress/Line.js +0 -61
  488. package/esm/Progress/Popup.d.ts +0 -9
  489. package/esm/Progress/Popup.js +0 -43
  490. package/esm/Progress/Props.d.ts +0 -103
  491. package/esm/Progress/Props.js +0 -1
  492. package/esm/Progress/analyzeColor.d.ts +0 -3
  493. package/esm/Progress/analyzeColor.js +0 -21
  494. package/esm/Progress/index.d.ts +0 -10
  495. package/esm/Progress/index.js +0 -19
  496. package/esm/Progress/interface.d.ts +0 -1
  497. package/esm/Progress/interface.js +0 -1
  498. package/esm/Progress/styles/index.d.ts +0 -1
  499. package/esm/Progress/styles/index.js +0 -4
  500. package/esm/Progress/styles/progress.less +0 -119
  501. package/esm/Radio/Group.d.ts +0 -18
  502. package/esm/Radio/Group.js +0 -119
  503. package/esm/Radio/Props.d.ts +0 -39
  504. package/esm/Radio/Props.js +0 -1
  505. package/esm/Radio/Radio.d.ts +0 -3
  506. package/esm/Radio/Radio.js +0 -2
  507. package/esm/Radio/index.d.ts +0 -2
  508. package/esm/Radio/index.js +0 -15
  509. package/esm/Radio/interface.d.ts +0 -1
  510. package/esm/Radio/interface.js +0 -1
  511. package/esm/Radio/styles/index.d.ts +0 -1
  512. package/esm/Radio/styles/index.js +0 -1
  513. package/esm/Rate/Props.d.ts +0 -96
  514. package/esm/Rate/Props.js +0 -1
  515. package/esm/Rate/Rate.d.ts +0 -36
  516. package/esm/Rate/Rate.js +0 -252
  517. package/esm/Rate/index.d.ts +0 -5
  518. package/esm/Rate/index.js +0 -18
  519. package/esm/Rate/interface.d.ts +0 -1
  520. package/esm/Rate/interface.js +0 -1
  521. package/esm/Rate/styles/index.d.ts +0 -2
  522. package/esm/Rate/styles/index.js +0 -4
  523. package/esm/Rate/styles/rate.less +0 -105
  524. package/esm/Rule/Props.d.ts +0 -172
  525. package/esm/Rule/Props.js +0 -1
  526. package/esm/Rule/index.d.ts +0 -15
  527. package/esm/Rule/index.js +0 -81
  528. package/esm/Rule/interface.d.ts +0 -1
  529. package/esm/Rule/interface.js +0 -1
  530. package/esm/Rule/length.d.ts +0 -10
  531. package/esm/Rule/length.js +0 -54
  532. package/esm/Rule/regExp.d.ts +0 -5
  533. package/esm/Rule/regExp.js +0 -25
  534. package/esm/Rule/required.d.ts +0 -8
  535. package/esm/Rule/required.js +0 -27
  536. package/esm/Rule/styles/index.d.ts +0 -1
  537. package/esm/Rule/styles/index.js +0 -1
  538. package/esm/Rule/type.d.ts +0 -8
  539. package/esm/Rule/type.js +0 -27
  540. package/esm/Scroll/Bar.d.ts +0 -3
  541. package/esm/Scroll/Bar.js +0 -183
  542. package/esm/Scroll/Props.d.ts +0 -44
  543. package/esm/Scroll/Props.js +0 -1
  544. package/esm/Scroll/Scroll.d.ts +0 -54
  545. package/esm/Scroll/Scroll.js +0 -436
  546. package/esm/Scroll/context.d.ts +0 -4
  547. package/esm/Scroll/context.js +0 -22
  548. package/esm/Scroll/fixedLength.d.ts +0 -3
  549. package/esm/Scroll/fixedLength.js +0 -32
  550. package/esm/Scroll/index.d.ts +0 -23
  551. package/esm/Scroll/index.js +0 -95
  552. package/esm/Scroll/styles/index.d.ts +0 -2
  553. package/esm/Scroll/styles/index.js +0 -4
  554. package/esm/Scroll/styles/scroll.less +0 -175
  555. package/esm/Select/BoxList.d.ts +0 -19
  556. package/esm/Select/BoxList.js +0 -218
  557. package/esm/Select/BoxOption.d.ts +0 -9
  558. package/esm/Select/BoxOption.js +0 -73
  559. package/esm/Select/Input.d.ts +0 -39
  560. package/esm/Select/Input.js +0 -286
  561. package/esm/Select/More.d.ts +0 -15
  562. package/esm/Select/More.js +0 -151
  563. package/esm/Select/Option.d.ts +0 -12
  564. package/esm/Select/Option.js +0 -90
  565. package/esm/Select/OptionList.d.ts +0 -21
  566. package/esm/Select/OptionList.js +0 -282
  567. package/esm/Select/OptionTree.d.ts +0 -13
  568. package/esm/Select/OptionTree.js +0 -124
  569. package/esm/Select/Props.d.ts +0 -626
  570. package/esm/Select/Props.js +0 -1
  571. package/esm/Select/Result.d.ts +0 -33
  572. package/esm/Select/Result.js +0 -435
  573. package/esm/Select/Select.d.ts +0 -91
  574. package/esm/Select/Select.js +0 -791
  575. package/esm/Select/filter.d.ts +0 -58
  576. package/esm/Select/filter.js +0 -272
  577. package/esm/Select/group.d.ts +0 -39
  578. package/esm/Select/group.js +0 -86
  579. package/esm/Select/index.d.ts +0 -2
  580. package/esm/Select/index.js +0 -34
  581. package/esm/Select/interface.d.ts +0 -1
  582. package/esm/Select/interface.js +0 -1
  583. package/esm/Select/styles/index.d.ts +0 -1
  584. package/esm/Select/styles/index.js +0 -4
  585. package/esm/Select/styles/select.less +0 -724
  586. package/esm/Select/utils.d.ts +0 -4
  587. package/esm/Select/utils.js +0 -7
  588. package/esm/Slider/Container.d.ts +0 -22
  589. package/esm/Slider/Container.js +0 -180
  590. package/esm/Slider/Indicator.d.ts +0 -2
  591. package/esm/Slider/Indicator.js +0 -28
  592. package/esm/Slider/Props.d.ts +0 -128
  593. package/esm/Slider/Props.js +0 -1
  594. package/esm/Slider/Slider.d.ts +0 -22
  595. package/esm/Slider/Slider.js +0 -148
  596. package/esm/Slider/index.d.ts +0 -2
  597. package/esm/Slider/index.js +0 -5
  598. package/esm/Slider/interface.d.ts +0 -1
  599. package/esm/Slider/interface.js +0 -1
  600. package/esm/Slider/styles/index.d.ts +0 -1
  601. package/esm/Slider/styles/index.js +0 -4
  602. package/esm/Slider/styles/slider.less +0 -346
  603. package/esm/Slider/utils.d.ts +0 -2
  604. package/esm/Slider/utils.js +0 -28
  605. package/esm/Spin/Multiple.d.ts +0 -12
  606. package/esm/Spin/Multiple.js +0 -179
  607. package/esm/Spin/Props.d.ts +0 -28
  608. package/esm/Spin/Props.js +0 -1
  609. package/esm/Spin/Simple.d.ts +0 -5
  610. package/esm/Spin/Simple.js +0 -40
  611. package/esm/Spin/Spin.d.ts +0 -3
  612. package/esm/Spin/Spin.js +0 -31
  613. package/esm/Spin/index.d.ts +0 -32
  614. package/esm/Spin/index.js +0 -96
  615. package/esm/Spin/interface.d.ts +0 -1
  616. package/esm/Spin/interface.js +0 -1
  617. package/esm/Spin/styles/chasing-dots.less +0 -47
  618. package/esm/Spin/styles/chasing-ring.less +0 -112
  619. package/esm/Spin/styles/cube-grid.less +0 -65
  620. package/esm/Spin/styles/default.less +0 -77
  621. package/esm/Spin/styles/double-bounce.less +0 -36
  622. package/esm/Spin/styles/four-dots.less +0 -73
  623. package/esm/Spin/styles/index.d.ts +0 -14
  624. package/esm/Spin/styles/index.js +0 -28
  625. package/esm/Spin/styles/plane.less +0 -24
  626. package/esm/Spin/styles/pulse.less +0 -22
  627. package/esm/Spin/styles/ring.less +0 -23
  628. package/esm/Spin/styles/scale-circle.less +0 -74
  629. package/esm/Spin/styles/spin.less +0 -57
  630. package/esm/Spin/styles/three-bounce.less +0 -41
  631. package/esm/Spin/styles/wave.less +0 -48
  632. package/esm/Spin/util.d.ts +0 -4
  633. package/esm/Spin/util.js +0 -7
  634. package/esm/Sticky/Props.d.ts +0 -65
  635. package/esm/Sticky/Props.js +0 -1
  636. package/esm/Sticky/context.d.ts +0 -4
  637. package/esm/Sticky/context.js +0 -13
  638. package/esm/Sticky/index.d.ts +0 -2
  639. package/esm/Sticky/index.js +0 -361
  640. package/esm/Sticky/interface.d.ts +0 -1
  641. package/esm/Sticky/interface.js +0 -1
  642. package/esm/Sticky/styles/index.d.ts +0 -1
  643. package/esm/Sticky/styles/index.js +0 -1
  644. package/esm/Switch/Props.d.ts +0 -8
  645. package/esm/Switch/Props.js +0 -1
  646. package/esm/Switch/Switch.d.ts +0 -3
  647. package/esm/Switch/Switch.js +0 -2
  648. package/esm/Switch/index.d.ts +0 -2
  649. package/esm/Switch/index.js +0 -8
  650. package/esm/Switch/interface.d.ts +0 -1
  651. package/esm/Switch/interface.js +0 -1
  652. package/esm/Table/Checkbox.d.ts +0 -11
  653. package/esm/Table/Checkbox.js +0 -72
  654. package/esm/Table/CheckboxAll.d.ts +0 -16
  655. package/esm/Table/CheckboxAll.js +0 -155
  656. package/esm/Table/Colgroup.d.ts +0 -11
  657. package/esm/Table/Colgroup.js +0 -77
  658. package/esm/Table/Expand.d.ts +0 -13
  659. package/esm/Table/Expand.js +0 -79
  660. package/esm/Table/Props.d.ts +0 -547
  661. package/esm/Table/Props.js +0 -1
  662. package/esm/Table/SeperateTable.d.ts +0 -70
  663. package/esm/Table/SeperateTable.js +0 -857
  664. package/esm/Table/SimpleTable.d.ts +0 -36
  665. package/esm/Table/SimpleTable.js +0 -315
  666. package/esm/Table/Sorter.d.ts +0 -13
  667. package/esm/Table/Sorter.js +0 -100
  668. package/esm/Table/Table.d.ts +0 -2
  669. package/esm/Table/Table.js +0 -173
  670. package/esm/Table/Tbody.d.ts +0 -29
  671. package/esm/Table/Tbody.js +0 -301
  672. package/esm/Table/Td.d.ts +0 -18
  673. package/esm/Table/Td.js +0 -200
  674. package/esm/Table/Tfoot.d.ts +0 -8
  675. package/esm/Table/Tfoot.js +0 -89
  676. package/esm/Table/Thead.d.ts +0 -28
  677. package/esm/Table/Thead.js +0 -292
  678. package/esm/Table/Tr.d.ts +0 -30
  679. package/esm/Table/Tr.js +0 -327
  680. package/esm/Table/TreeExpand.d.ts +0 -45
  681. package/esm/Table/TreeExpand.js +0 -168
  682. package/esm/Table/context.d.ts +0 -7
  683. package/esm/Table/context.js +0 -18
  684. package/esm/Table/fixedAuto.d.ts +0 -57
  685. package/esm/Table/fixedAuto.js +0 -95
  686. package/esm/Table/index.d.ts +0 -23
  687. package/esm/Table/index.js +0 -360
  688. package/esm/Table/interface.d.ts +0 -1
  689. package/esm/Table/interface.js +0 -1
  690. package/esm/Table/resizable.d.ts +0 -43
  691. package/esm/Table/resizable.js +0 -108
  692. package/esm/Table/select.d.ts +0 -54
  693. package/esm/Table/select.js +0 -309
  694. package/esm/Table/styles/index.d.ts +0 -2
  695. package/esm/Table/styles/index.js +0 -4
  696. package/esm/Table/styles/table.less +0 -813
  697. package/esm/Tabs/Header.d.ts +0 -38
  698. package/esm/Tabs/Header.js +0 -265
  699. package/esm/Tabs/Link.d.ts +0 -7
  700. package/esm/Tabs/Link.js +0 -58
  701. package/esm/Tabs/Panel.d.ts +0 -9
  702. package/esm/Tabs/Panel.js +0 -60
  703. package/esm/Tabs/Props.d.ts +0 -242
  704. package/esm/Tabs/Props.js +0 -1
  705. package/esm/Tabs/Tab.d.ts +0 -12
  706. package/esm/Tabs/Tab.js +0 -113
  707. package/esm/Tabs/Tabs.d.ts +0 -45
  708. package/esm/Tabs/Tabs.js +0 -270
  709. package/esm/Tabs/Wrapper.d.ts +0 -6
  710. package/esm/Tabs/Wrapper.js +0 -37
  711. package/esm/Tabs/index.d.ts +0 -2
  712. package/esm/Tabs/index.js +0 -7
  713. package/esm/Tabs/interface.d.ts +0 -1
  714. package/esm/Tabs/interface.js +0 -1
  715. package/esm/Tabs/styles/index.d.ts +0 -1
  716. package/esm/Tabs/styles/index.js +0 -4
  717. package/esm/Tabs/styles/tabs.less +0 -422
  718. package/esm/Tag/Input.d.ts +0 -2
  719. package/esm/Tag/Input.js +0 -84
  720. package/esm/Tag/Props.d.ts +0 -86
  721. package/esm/Tag/Props.js +0 -1
  722. package/esm/Tag/Tag.d.ts +0 -31
  723. package/esm/Tag/Tag.js +0 -230
  724. package/esm/Tag/index.d.ts +0 -6
  725. package/esm/Tag/index.js +0 -6
  726. package/esm/Tag/interface.d.ts +0 -1
  727. package/esm/Tag/interface.js +0 -1
  728. package/esm/Tag/styles/index.d.ts +0 -2
  729. package/esm/Tag/styles/index.js +0 -4
  730. package/esm/Tag/styles/tag.less +0 -107
  731. package/esm/Textarea/Textarea.d.ts +0 -27
  732. package/esm/Textarea/Textarea.js +0 -199
  733. package/esm/Textarea/index.d.ts +0 -297
  734. package/esm/Textarea/index.js +0 -22
  735. package/esm/Textarea/interface.d.ts +0 -1
  736. package/esm/Textarea/interface.js +0 -1
  737. package/esm/Textarea/props.d.ts +0 -76
  738. package/esm/Textarea/props.js +0 -1
  739. package/esm/Tooltip/Container.d.ts +0 -3
  740. package/esm/Tooltip/Container.js +0 -179
  741. package/esm/Tooltip/Props.d.ts +0 -83
  742. package/esm/Tooltip/Props.js +0 -1
  743. package/esm/Tooltip/events.d.ts +0 -5
  744. package/esm/Tooltip/events.js +0 -96
  745. package/esm/Tooltip/index.d.ts +0 -3
  746. package/esm/Tooltip/index.js +0 -5
  747. package/esm/Tooltip/interface.d.ts +0 -1
  748. package/esm/Tooltip/interface.js +0 -1
  749. package/esm/Tooltip/styles/index.d.ts +0 -2
  750. package/esm/Tooltip/styles/index.js +0 -4
  751. package/esm/Tooltip/styles/tooltip.less +0 -169
  752. package/esm/Transfer/Card.d.ts +0 -2
  753. package/esm/Transfer/Card.js +0 -247
  754. package/esm/Transfer/Props.d.ts +0 -175
  755. package/esm/Transfer/Props.js +0 -1
  756. package/esm/Transfer/Transfer.d.ts +0 -16
  757. package/esm/Transfer/Transfer.js +0 -192
  758. package/esm/Transfer/btns.d.ts +0 -13
  759. package/esm/Transfer/btns.js +0 -113
  760. package/esm/Transfer/context.d.ts +0 -4
  761. package/esm/Transfer/context.js +0 -2
  762. package/esm/Transfer/filter.d.ts +0 -7
  763. package/esm/Transfer/filter.js +0 -70
  764. package/esm/Transfer/index.d.ts +0 -2
  765. package/esm/Transfer/index.js +0 -10
  766. package/esm/Transfer/interface.d.ts +0 -1
  767. package/esm/Transfer/interface.js +0 -1
  768. package/esm/Transfer/item.d.ts +0 -4
  769. package/esm/Transfer/item.js +0 -71
  770. package/esm/Transfer/select.d.ts +0 -3
  771. package/esm/Transfer/select.js +0 -20
  772. package/esm/Transfer/styles/index.d.ts +0 -2
  773. package/esm/Transfer/styles/index.js +0 -4
  774. package/esm/Transfer/styles/transfer.less +0 -123
  775. package/esm/Tree/Checkbox.d.ts +0 -12
  776. package/esm/Tree/Checkbox.js +0 -76
  777. package/esm/Tree/Content.d.ts +0 -16
  778. package/esm/Tree/Content.js +0 -158
  779. package/esm/Tree/List.d.ts +0 -21
  780. package/esm/Tree/List.js +0 -107
  781. package/esm/Tree/Node.d.ts +0 -24
  782. package/esm/Tree/Node.js +0 -268
  783. package/esm/Tree/Props.d.ts +0 -291
  784. package/esm/Tree/Props.js +0 -1
  785. package/esm/Tree/Root.d.ts +0 -10
  786. package/esm/Tree/Root.js +0 -23
  787. package/esm/Tree/Tree.d.ts +0 -33
  788. package/esm/Tree/Tree.js +0 -344
  789. package/esm/Tree/index.d.ts +0 -7
  790. package/esm/Tree/index.js +0 -9
  791. package/esm/Tree/interface.d.ts +0 -1
  792. package/esm/Tree/interface.js +0 -1
  793. package/esm/Tree/styles/index.d.ts +0 -2
  794. package/esm/Tree/styles/index.js +0 -4
  795. package/esm/Tree/styles/tree.less +0 -263
  796. package/esm/TreeSelect/Input.d.ts +0 -22
  797. package/esm/TreeSelect/Input.js +0 -110
  798. package/esm/TreeSelect/Props.d.ts +0 -230
  799. package/esm/TreeSelect/Props.js +0 -1
  800. package/esm/TreeSelect/Result.d.ts +0 -31
  801. package/esm/TreeSelect/Result.js +0 -351
  802. package/esm/TreeSelect/TreeSelect.d.ts +0 -59
  803. package/esm/TreeSelect/TreeSelect.js +0 -464
  804. package/esm/TreeSelect/datum.d.ts +0 -37
  805. package/esm/TreeSelect/datum.js +0 -75
  806. package/esm/TreeSelect/filter.d.ts +0 -49
  807. package/esm/TreeSelect/filter.js +0 -157
  808. package/esm/TreeSelect/index.d.ts +0 -2
  809. package/esm/TreeSelect/index.js +0 -15
  810. package/esm/TreeSelect/interface.d.ts +0 -1
  811. package/esm/TreeSelect/interface.js +0 -1
  812. package/esm/TreeSelect/styles/index.d.ts +0 -2
  813. package/esm/TreeSelect/styles/index.js +0 -4
  814. package/esm/TreeSelect/styles/treeSelect.less +0 -618
  815. package/esm/TreeSelect/tiled.d.ts +0 -5
  816. package/esm/TreeSelect/tiled.js +0 -151
  817. package/esm/Upload/Dragger.d.ts +0 -10
  818. package/esm/Upload/Dragger.js +0 -66
  819. package/esm/Upload/Drop.d.ts +0 -26
  820. package/esm/Upload/Drop.js +0 -86
  821. package/esm/Upload/File.d.ts +0 -8
  822. package/esm/Upload/File.js +0 -64
  823. package/esm/Upload/FileInput.d.ts +0 -11
  824. package/esm/Upload/FileInput.js +0 -69
  825. package/esm/Upload/Image.d.ts +0 -22
  826. package/esm/Upload/Image.js +0 -184
  827. package/esm/Upload/ImageFile.d.ts +0 -8
  828. package/esm/Upload/ImageFile.js +0 -64
  829. package/esm/Upload/ImageResult.d.ts +0 -24
  830. package/esm/Upload/ImageResult.js +0 -162
  831. package/esm/Upload/Progress.d.ts +0 -22
  832. package/esm/Upload/Progress.js +0 -152
  833. package/esm/Upload/Props.d.ts +0 -548
  834. package/esm/Upload/Props.js +0 -1
  835. package/esm/Upload/RemoveConfirm.d.ts +0 -13
  836. package/esm/Upload/RemoveConfirm.js +0 -60
  837. package/esm/Upload/Result.d.ts +0 -17
  838. package/esm/Upload/Result.js +0 -86
  839. package/esm/Upload/Upload.d.ts +0 -59
  840. package/esm/Upload/Upload.js +0 -726
  841. package/esm/Upload/accept.d.ts +0 -61
  842. package/esm/Upload/accept.js +0 -35
  843. package/esm/Upload/context.d.ts +0 -3
  844. package/esm/Upload/context.js +0 -13
  845. package/esm/Upload/index.d.ts +0 -2
  846. package/esm/Upload/index.js +0 -16
  847. package/esm/Upload/interface.d.ts +0 -1
  848. package/esm/Upload/interface.js +0 -1
  849. package/esm/Upload/request.d.ts +0 -5
  850. package/esm/Upload/request.js +0 -71
  851. package/esm/Upload/styles/index.d.ts +0 -2
  852. package/esm/Upload/styles/index.js +0 -4
  853. package/esm/Upload/styles/upload.less +0 -539
  854. package/esm/component.d.ts +0 -116
  855. package/esm/component.js +0 -63
  856. package/esm/config.d.ts +0 -21
  857. package/esm/config.js +0 -42
  858. package/esm/context/index.d.ts +0 -3
  859. package/esm/context/index.js +0 -4
  860. package/esm/hoc/Props.d.ts +0 -96
  861. package/esm/hoc/Props.js +0 -1
  862. package/esm/hoc/coin.d.ts +0 -5
  863. package/esm/hoc/coin.js +0 -122
  864. package/esm/hoc/config.d.ts +0 -31
  865. package/esm/hoc/config.js +0 -38
  866. package/esm/hoc/delay.d.ts +0 -2
  867. package/esm/hoc/delay.js +0 -118
  868. package/esm/hoc/draggable.d.ts +0 -2
  869. package/esm/hoc/draggable.js +0 -105
  870. package/esm/hoc/hidable.d.ts +0 -20
  871. package/esm/hoc/hidable.js +0 -156
  872. package/esm/hoc/inputBorder.d.ts +0 -2
  873. package/esm/hoc/inputBorder.js +0 -139
  874. package/esm/hoc/moveable.d.ts +0 -2
  875. package/esm/hoc/moveable.js +0 -143
  876. package/esm/hoc/pagable.d.ts +0 -46
  877. package/esm/hoc/pagable.js +0 -81
  878. package/esm/hoc/resizable.d.ts +0 -57
  879. package/esm/hoc/resizable.js +0 -151
  880. package/esm/hoc/styles/hidable.less +0 -60
  881. package/esm/hoc/styles/index.d.ts +0 -4
  882. package/esm/hoc/styles/index.js +0 -8
  883. package/esm/hoc/styles/moveable.less +0 -10
  884. package/esm/hoc/styles/resizable.less +0 -43
  885. package/esm/icons/Caret.d.ts +0 -31
  886. package/esm/icons/Caret.js +0 -15
  887. package/esm/icons/Props.d.ts +0 -1
  888. package/esm/icons/Props.js +0 -1
  889. package/esm/icons/index.d.ts +0 -26
  890. package/esm/icons/index.js +0 -58
  891. package/esm/index.d.ts +0 -58
  892. package/esm/index.js +0 -58
  893. package/esm/locale/Props.d.ts +0 -2
  894. package/esm/locale/Props.js +0 -1
  895. package/esm/locale/en_US.d.ts +0 -45
  896. package/esm/locale/en_US.js +0 -44
  897. package/esm/locale/index.d.ts +0 -4
  898. package/esm/locale/index.js +0 -19
  899. package/esm/locale/zh-CN.d.ts +0 -45
  900. package/esm/locale/zh-CN.js +0 -44
  901. package/esm/styles/expose.d.ts +0 -1
  902. package/esm/styles/expose.js +0 -3
  903. package/esm/styles/expose.less +0 -491
  904. package/esm/styles/index.d.ts +0 -1
  905. package/esm/styles/index.js +0 -1
  906. package/esm/styles/mixins/alerts.less +0 -44
  907. package/esm/styles/mixins/animation.less +0 -2
  908. package/esm/styles/mixins/background-variant.less +0 -10
  909. package/esm/styles/mixins/border-radius.less +0 -18
  910. package/esm/styles/mixins/breadcrumbs.less +0 -12
  911. package/esm/styles/mixins/buttons.less +0 -434
  912. package/esm/styles/mixins/caret.less +0 -120
  913. package/esm/styles/mixins/center-block.less +0 -7
  914. package/esm/styles/mixins/clearfix.less +0 -23
  915. package/esm/styles/mixins/close.less +0 -35
  916. package/esm/styles/mixins/forms.less +0 -88
  917. package/esm/styles/mixins/gradients.less +0 -138
  918. package/esm/styles/mixins/grid-framework.less +0 -97
  919. package/esm/styles/mixins/grid.less +0 -122
  920. package/esm/styles/mixins/hide-text.less +0 -21
  921. package/esm/styles/mixins/image.less +0 -25
  922. package/esm/styles/mixins/input-title.less +0 -66
  923. package/esm/styles/mixins/labels.less +0 -12
  924. package/esm/styles/mixins/list-group.less +0 -31
  925. package/esm/styles/mixins/menu-selected.less +0 -36
  926. package/esm/styles/mixins/nav-divider.less +0 -10
  927. package/esm/styles/mixins/nav-vertical-align.less +0 -9
  928. package/esm/styles/mixins/opacity.less +0 -9
  929. package/esm/styles/mixins/pagination.less +0 -26
  930. package/esm/styles/mixins/panels.less +0 -26
  931. package/esm/styles/mixins/progress-bar.less +0 -10
  932. package/esm/styles/mixins/reset-filter.less +0 -8
  933. package/esm/styles/mixins/reset-text.less +0 -18
  934. package/esm/styles/mixins/resize.less +0 -6
  935. package/esm/styles/mixins/responsive-visibility.less +0 -24
  936. package/esm/styles/mixins/size.less +0 -10
  937. package/esm/styles/mixins/tab-focus.less +0 -10
  938. package/esm/styles/mixins/table-row.less +0 -28
  939. package/esm/styles/mixins/tag.less +0 -7
  940. package/esm/styles/mixins/text-emphasis.less +0 -10
  941. package/esm/styles/mixins/text-overflow.less +0 -8
  942. package/esm/styles/mixins/vendor-prefixes.less +0 -229
  943. package/esm/styles/normalize.less +0 -580
  944. package/esm/styles/themes/antd.less +0 -296
  945. package/esm/styles/themes/antd2.less +0 -25
  946. package/esm/styles/themes/base.less +0 -899
  947. package/esm/styles/themes/bootstrap.less +0 -290
  948. package/esm/styles/themes/cssvar.less +0 -735
  949. package/esm/styles/themes/default.less +0 -183
  950. package/esm/styles/themes/shineout.less +0 -806
  951. package/esm/styles/themes/vars-inject.less +0 -6
  952. package/esm/styles/variables.less +0 -54
  953. package/esm/utils/accept.d.ts +0 -3
  954. package/esm/utils/accept.js +0 -24
  955. package/esm/utils/classname.d.ts +0 -12
  956. package/esm/utils/classname.js +0 -34
  957. package/esm/utils/cleanProps.d.ts +0 -10
  958. package/esm/utils/cleanProps.js +0 -15
  959. package/esm/utils/clone.d.ts +0 -3
  960. package/esm/utils/clone.js +0 -38
  961. package/esm/utils/color.d.ts +0 -21
  962. package/esm/utils/color.js +0 -458
  963. package/esm/utils/compose.d.ts +0 -1
  964. package/esm/utils/compose.js +0 -96
  965. package/esm/utils/css-accessors.d.ts +0 -10
  966. package/esm/utils/css-accessors.js +0 -119
  967. package/esm/utils/curry.d.ts +0 -24
  968. package/esm/utils/curry.js +0 -23
  969. package/esm/utils/dom/detect.d.ts +0 -12
  970. package/esm/utils/dom/detect.js +0 -50
  971. package/esm/utils/dom/document.d.ts +0 -11
  972. package/esm/utils/dom/document.js +0 -43
  973. package/esm/utils/dom/element.d.ts +0 -37
  974. package/esm/utils/dom/element.js +0 -262
  975. package/esm/utils/dom/getDataset.d.ts +0 -4
  976. package/esm/utils/dom/getDataset.js +0 -10
  977. package/esm/utils/dom/isDOMElement.d.ts +0 -6
  978. package/esm/utils/dom/isDOMElement.js +0 -3
  979. package/esm/utils/dom/normalizeWheel.d.ts +0 -14
  980. package/esm/utils/dom/normalizeWheel.js +0 -67
  981. package/esm/utils/dom/popContainer.d.ts +0 -2
  982. package/esm/utils/dom/popContainer.js +0 -17
  983. package/esm/utils/dom/popover.d.ts +0 -9
  984. package/esm/utils/dom/popover.js +0 -96
  985. package/esm/utils/dom/ready.d.ts +0 -1
  986. package/esm/utils/dom/ready.js +0 -6
  987. package/esm/utils/dom/scrollBehavior.d.ts +0 -1
  988. package/esm/utils/dom/scrollBehavior.js +0 -27
  989. package/esm/utils/dom/translate.d.ts +0 -2
  990. package/esm/utils/dom/translate.js +0 -30
  991. package/esm/utils/errors.d.ts +0 -9
  992. package/esm/utils/errors.js +0 -62
  993. package/esm/utils/expose.d.ts +0 -18
  994. package/esm/utils/expose.js +0 -125
  995. package/esm/utils/flat.d.ts +0 -25
  996. package/esm/utils/flat.js +0 -166
  997. package/esm/utils/func.d.ts +0 -25
  998. package/esm/utils/func.js +0 -72
  999. package/esm/utils/hash.d.ts +0 -1
  1000. package/esm/utils/hash.js +0 -36
  1001. package/esm/utils/index.d.ts +0 -24
  1002. package/esm/utils/index.js +0 -24
  1003. package/esm/utils/is.d.ts +0 -28
  1004. package/esm/utils/is.js +0 -111
  1005. package/esm/utils/lazyload.d.ts +0 -13
  1006. package/esm/utils/lazyload.js +0 -136
  1007. package/esm/utils/notification.d.ts +0 -15
  1008. package/esm/utils/notification.js +0 -43
  1009. package/esm/utils/numbers.d.ts +0 -7
  1010. package/esm/utils/numbers.js +0 -97
  1011. package/esm/utils/objects.d.ts +0 -19
  1012. package/esm/utils/objects.js +0 -296
  1013. package/esm/utils/proptypes.d.ts +0 -14
  1014. package/esm/utils/proptypes.js +0 -30
  1015. package/esm/utils/shallowEqual.d.ts +0 -7
  1016. package/esm/utils/shallowEqual.js +0 -79
  1017. package/esm/utils/strings.d.ts +0 -7
  1018. package/esm/utils/strings.js +0 -86
  1019. package/esm/utils/transform.d.ts +0 -2
  1020. package/esm/utils/transform.js +0 -30
  1021. package/esm/utils/tree.d.ts +0 -14
  1022. package/esm/utils/tree.js +0 -93
  1023. package/esm/utils/uid.d.ts +0 -5
  1024. package/esm/utils/uid.js +0 -23
  1025. package/esm/utils/validate/index.d.ts +0 -4
  1026. package/esm/utils/validate/index.js +0 -109
  1027. package/esm/utils/validate/isJson.d.ts +0 -1
  1028. package/esm/utils/validate/isJson.js +0 -30
  1029. package/esm/utils/validate/nullable.d.ts +0 -2
  1030. package/esm/utils/validate/nullable.js +0 -10
  1031. package/esm/utils/validate/range.d.ts +0 -6
  1032. package/esm/utils/validate/range.js +0 -29
  1033. package/esm/utils/validate/rangeLength.d.ts +0 -6
  1034. package/esm/utils/validate/rangeLength.js +0 -22
  1035. package/esm/utils/validate/regExp.d.ts +0 -4
  1036. package/esm/utils/validate/regExp.js +0 -21
  1037. package/esm/utils/validate/required.d.ts +0 -5
  1038. package/esm/utils/validate/required.js +0 -18
  1039. package/esm/utils/validate/type.d.ts +0 -14
  1040. package/esm/utils/validate/type.js +0 -93
  1041. package/esm/utils/vars-inject.d.ts +0 -1070
  1042. package/esm/utils/vars-inject.js +0 -4272
  1043. package/esm/utils/zoom.d.ts +0 -2
  1044. package/esm/utils/zoom.js +0 -33
@@ -1,69 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
- import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
4
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
5
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
6
- import React, { PureComponent } from 'react';
7
- import PropTypes from 'prop-types';
8
- import Button from '../Button';
9
- import { getParent, dispatchEvent } from '../utils/dom/element';
10
- import { formConsumer } from './formContext';
11
- export default (function (htmlType) {
12
- var _class, _temp;
13
-
14
- return formConsumer(['disabled'], (_temp = _class =
15
- /*#__PURE__*/
16
- function (_PureComponent) {
17
- _inheritsLoose(FormButton, _PureComponent);
18
-
19
- function FormButton(props) {
20
- var _this;
21
-
22
- _this = _PureComponent.call(this, props) || this;
23
-
24
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "button", void 0);
25
-
26
- _this.bindElement = _this.bindElement.bind(_assertThisInitialized(_assertThisInitialized(_this)));
27
- _this.handleClick = _this.handleClick.bind(_assertThisInitialized(_assertThisInitialized(_this)));
28
- return _this;
29
- }
30
-
31
- var _proto = FormButton.prototype;
32
-
33
- _proto.bindElement = function bindElement(el) {
34
- this.button = el;
35
- };
36
-
37
- _proto.handleClick = function handleClick(e) {
38
- if (htmlType === 'button') {
39
- var form = getParent(this.button, 'form');
40
- dispatchEvent(form, 'submit', e.target);
41
- }
42
-
43
- if (this.props.onClick) this.props.onClick();
44
- };
45
-
46
- _proto.render = function render() {
47
- var _this$props = this.props,
48
- children = _this$props.children,
49
- onClick = _this$props.onClick,
50
- other = _objectWithoutPropertiesLoose(_this$props, ["children", "onClick"]);
51
-
52
- var type = this.props.type || (htmlType === 'reset' ? 'default' : 'primary');
53
- return React.createElement(Button, _extends({}, other, {
54
- type: type,
55
- htmlType: htmlType,
56
- onRef: this.bindElement,
57
- onClick: this.handleClick
58
- }), children);
59
- };
60
-
61
- return FormButton;
62
- }(PureComponent), _defineProperty(_class, "propTypes", {
63
- children: PropTypes.any,
64
- disabled: PropTypes.bool,
65
- loading: PropTypes.bool,
66
- onClick: PropTypes.func,
67
- type: PropTypes.string
68
- }), _temp));
69
- });
@@ -1,9 +0,0 @@
1
- import React, { ComponentType } from 'react';
2
- import { FormContextValue, FormProviderProps, GetFormProviderProps } from './Props';
3
- export declare const Provider: React.Provider<FormContextValue>;
4
- export declare const Consumer: React.Consumer<FormContextValue>;
5
- export declare const formProvider: <FormValue, U extends FormProviderProps<FormValue>>(Origin: React.ComponentType<U>) => React.ComponentType<GetFormProviderProps<U, FormValue>>;
6
- export interface FormConsumerProps {
7
- disabled?: boolean | ((...args: any) => boolean);
8
- }
9
- export declare const formConsumer: import("../utils/curry").CurriedFunction3<unknown, unknown, unknown, JSX.Element>;
@@ -1,103 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
3
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
4
- import React, { PureComponent } from 'react';
5
- import createReactContext from '../context';
6
- import { deepGet } from '../utils/objects';
7
- import { isObject, isArray } from '../utils/is';
8
- import { curry3 } from '../utils/func'; // 去掉独有的属性
9
-
10
- var context = createReactContext({}); // eslint-disable-next-line
11
-
12
- export var Provider = context.Provider; // eslint-disable-next-line
13
-
14
- export var Consumer = context.Consumer;
15
- export var formProvider = function formProvider(Origin) {
16
- var FormProvider =
17
- /*#__PURE__*/
18
- function (_PureComponent) {
19
- _inheritsLoose(FormProvider, _PureComponent);
20
-
21
- function FormProvider(props) {
22
- var _this;
23
-
24
- _this = _PureComponent.call(this, props) || this;
25
- _this.combineRules = _this.combineRules.bind(_assertThisInitialized(_assertThisInitialized(_this))); // this.groupValidate = this.groupValidate.bind(this)
26
-
27
- return _this;
28
- }
29
-
30
- var _proto = FormProvider.prototype;
31
-
32
- _proto.combineRules = function combineRules(name, propRules) {
33
- var rules = this.props.rules;
34
- var newRules = [];
35
-
36
- if (isObject(rules) && name) {
37
- newRules = deepGet(rules, name) || [];
38
- } else if (isArray(rules)) {
39
- newRules = rules;
40
- }
41
-
42
- if (isArray(propRules)) {
43
- newRules = newRules.concat(propRules);
44
- }
45
-
46
- return newRules;
47
- } // groupValidate(name) {
48
- // not implement...
49
- // }
50
- ;
51
-
52
- _proto.render = function render() {
53
- var _this$props = this.props,
54
- datum = _this$props.datum,
55
- labelAlign = _this$props.labelAlign,
56
- labelVerticalAlign = _this$props.labelVerticalAlign,
57
- labelWidth = _this$props.labelWidth,
58
- disabled = _this$props.disabled,
59
- pending = _this$props.pending,
60
- mode = _this$props.mode,
61
- size = _this$props.size,
62
- keepErrorHeight = _this$props.keepErrorHeight;
63
- var value = {
64
- formDatum: datum,
65
- formMode: mode,
66
- disabled: !!(disabled || pending),
67
- labelAlign: labelAlign,
68
- labelVerticalAlign: labelVerticalAlign,
69
- labelWidth: labelWidth,
70
- size: size,
71
- combineRules: this.combineRules,
72
- // groupValidate: this.groupValidate,
73
- keepErrorHeight: keepErrorHeight
74
- };
75
- return React.createElement(Provider, {
76
- value: value
77
- }, React.createElement(Origin, this.props));
78
- };
79
-
80
- return FormProvider;
81
- }(PureComponent);
82
-
83
- return FormProvider;
84
- };
85
- export var formConsumer = curry3(function (keys, Origin, props) {
86
- var filterProps = function filterProps(value) {
87
- var cps = {};
88
- if (!value) return cps;
89
- if (!keys) return value;
90
- keys.forEach(function (k) {
91
- var val = value[k];
92
- if (val !== undefined) cps[k] = val;
93
- });
94
- return cps;
95
- };
96
-
97
- return React.createElement(Consumer, null, function (value) {
98
- var formProps = filterProps(value);
99
- return React.createElement(Origin, _extends({}, formProps, props, {
100
- disabled: formProps.disabled || props.disabled
101
- }));
102
- });
103
- });
@@ -1,2 +0,0 @@
1
- declare const _default: typeof import("./Props").Form;
2
- export default _default;
package/esm/Form/index.js DELETED
@@ -1,35 +0,0 @@
1
- import { compose } from '../utils/func';
2
- import Datum from '../Datum';
3
- import { consumer as cardConsumer } from '../Card/context';
4
- import inputable from './inputable';
5
- import Form from './Form';
6
- import Item from './Item';
7
- import Field from './Field';
8
- import Flow from './Flow';
9
- import FieldSet from './FieldSet';
10
- import formButton from './formButton';
11
- import { formProvider, formConsumer } from './formContext';
12
- import useMode from './mode';
13
- var formCardConsumerKey = ['setFormStatus'];
14
- var formDatumKey = ['removeUndefined', 'error'];
15
- var formItemWithFormConsumerKeys = ['formDatum', 'labelWidth', 'labelAlign', 'labelVerticalAlign', 'keepErrorHeight'];
16
- var formFlowWithFormConsumerKeys = ['formDatum'];
17
- var exportForm = compose(Datum.hoc({
18
- type: 'form',
19
- bindProps: formDatumKey
20
- }), formProvider)(cardConsumer(Form, formCardConsumerKey));
21
- exportForm.Item = formConsumer(formItemWithFormConsumerKeys)(Item);
22
- exportForm.Field = inputable(Field);
23
- exportForm.Flow = formConsumer(formFlowWithFormConsumerKeys)(Flow);
24
- exportForm.FieldSet = formConsumer(['formDatum'])(FieldSet);
25
- exportForm.Submit = formButton('submit');
26
- exportForm.Reset = formButton('reset');
27
- exportForm.Button = formButton('button');
28
- exportForm.formConsumer = formConsumer;
29
- exportForm.useMode = useMode;
30
- exportForm.displayName = 'ShineoutForm';
31
- exportForm.Item.displayName = 'ShineoutFormItem';
32
- exportForm.Field.displayName = 'ShineoutFormField';
33
- exportForm.Flow.displayName = 'ShineoutFormFlow';
34
- exportForm.FieldSet.displayName = 'ShineoutFormFieldSet';
35
- export default exportForm;
@@ -1,4 +0,0 @@
1
- import React, { ComponentType } from 'react';
2
- import { BaseInputProps, GetInputableProps } from './Props';
3
- declare const _default: <Value, U extends BaseInputProps, Item = any>(Origin: React.ComponentType<U>) => React.ComponentType<GetInputableProps<U, Value>>;
4
- export default _default;
@@ -1,411 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
- import _createClass from "@babel/runtime/helpers/createClass";
4
- import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
5
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
6
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
7
- import React from 'react';
8
- import immer from 'immer';
9
- import { Component } from '../component';
10
- import { promiseAll, isSameError } from '../utils/errors';
11
- import shallowEqual from '../utils/shallowEqual';
12
- import { filterProps } from '../utils/objects';
13
- import { getUidStr } from '../utils/uid';
14
- import { isArray } from '../utils/is';
15
- import _validate from '../utils/validate';
16
- import { FORCE_PASS, ERROR_TYPE, IGNORE_VALIDATE, errorSubscribe, IGNORE_BIND } from '../Datum/types';
17
- import { formConsumer } from './formContext';
18
- import { itemConsumer } from './Item';
19
- import { fieldSetConsumer } from './FieldSet';
20
- var types = ['formDatum', 'disabled', 'combineRules', 'size'];
21
-
22
- var tryValue = function tryValue(val, def) {
23
- return val === undefined ? def : val;
24
- };
25
-
26
- var beforeValueChange = function beforeValueChange(fn) {
27
- return function (value, datum) {
28
- if (!fn) return value;
29
- var newValue = fn(value, datum);
30
- return newValue === undefined ? value : newValue;
31
- };
32
- };
33
-
34
- export default (function (Origin) {
35
- var InputableInner =
36
- /*#__PURE__*/
37
- function (_Component) {
38
- _inheritsLoose(InputableInner, _Component);
39
-
40
- function InputableInner(props) {
41
- var _this;
42
-
43
- _this = _Component.call(this, props) || this;
44
-
45
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "itemName", void 0);
46
-
47
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "lastValue", void 0);
48
-
49
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "updateTimer", void 0);
50
-
51
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "datum", void 0);
52
-
53
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "lastError", void 0);
54
-
55
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "errorChange", void 0);
56
-
57
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "customValidate", void 0);
58
-
59
- var formDatum = props.formDatum,
60
- name = props.name,
61
- defaultValue = props.defaultValue;
62
- _this.state = {
63
- error: undefined,
64
- value: props.value || defaultValue
65
- };
66
- _this.itemName = getUidStr();
67
- _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
68
- _this.handleUpdate = _this.handleUpdate.bind(_assertThisInitialized(_assertThisInitialized(_this)));
69
- _this.handleDatumBind = _this.handleDatumBind.bind(_assertThisInitialized(_assertThisInitialized(_this)));
70
- _this.handleError = _this.handleError.bind(_assertThisInitialized(_assertThisInitialized(_this)));
71
- _this.validate = _this.validate.bind(_assertThisInitialized(_assertThisInitialized(_this)));
72
- _this.validateHook = _this.validateHook.bind(_assertThisInitialized(_assertThisInitialized(_this)));
73
- _this.lastValue = formDatum && name ? formDatum.get(name) || {} : {};
74
- return _this;
75
- }
76
-
77
- var _proto = InputableInner.prototype;
78
-
79
- _proto.componentDidMount = function componentDidMount() {
80
- var _this2 = this;
81
-
82
- _Component.prototype.componentDidMount.call(this); // @ts-ignore
83
-
84
-
85
- var readOnly = this.props.readOnly;
86
- var _this$props = this.props,
87
- onChange = _this$props.onChange,
88
- disabled = _this$props.disabled;
89
-
90
- if ('value' in this.props && !onChange && disabled !== true && readOnly !== true) {
91
- console.error('warning: You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly` or `disabled`');
92
- }
93
-
94
- var _this$props2 = this.props,
95
- formDatum = _this$props2.formDatum,
96
- name = _this$props2.name,
97
- defaultValue = _this$props2.defaultValue,
98
- bindInputToItem = _this$props2.bindInputToItem,
99
- popover = _this$props2.popover;
100
-
101
- if (formDatum && name) {
102
- if (Array.isArray(name)) {
103
- var dv = defaultValue || [];
104
- name.forEach(function (n, i) {
105
- return formDatum.bind(n, _this2.handleUpdate, dv[i], _this2.validate);
106
- }); // @ts-ignore
107
-
108
- this.state.value = name.map(function (n) {
109
- return formDatum.get(n);
110
- });
111
- formDatum.subscribe(errorSubscribe(this.errorName), this.handleUpdate);
112
- } else {
113
- formDatum.bind(name, this.handleUpdate, defaultValue, this.validate); // @ts-ignore
114
-
115
- this.state.value = formDatum.get(name);
116
- }
117
-
118
- this.lastValue = this.state.value;
119
- }
120
-
121
- if (bindInputToItem && name && !popover) bindInputToItem(this.errorName);
122
- };
123
-
124
- _proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {
125
- var skip = [].concat(this.props.scuSkip || [], ['formDatum']);
126
- var isFormDatum = this.props.formDatum && this.props.name;
127
- if (isFormDatum) skip.push('value');
128
- var options = {
129
- skip: skip,
130
- deep: ['data', 'defaultValue', 'datum', 'name', 'rule', 'style']
131
- };
132
- if (!isFormDatum && !shallowEqual(this.getValue(), nextState.value)) return true;
133
- return !(shallowEqual(nextProps, this.props, options) && shallowEqual(nextState, this.state));
134
- };
135
-
136
- _proto.componentWillUnmount = function componentWillUnmount() {
137
- _Component.prototype.componentWillUnmount.call(this);
138
-
139
- var _this$props3 = this.props,
140
- formDatum = _this$props3.formDatum,
141
- name = _this$props3.name,
142
- unbindInputFromItem = _this$props3.unbindInputFromItem,
143
- reserveAble = _this$props3.reserveAble;
144
- clearTimeout(this.updateTimer);
145
-
146
- if (formDatum && name) {
147
- formDatum.unbind(name, this.handleUpdate, reserveAble);
148
-
149
- if (Array.isArray(name)) {
150
- formDatum.unsubscribe(errorSubscribe(this.errorName), this.handleUpdate);
151
- formDatum.setError(this.errorName);
152
- }
153
- }
154
-
155
- if (unbindInputFromItem && name) unbindInputFromItem(this.errorName);
156
- };
157
-
158
- _proto.getValue = function getValue() {
159
- var _this$props4 = this.props,
160
- formDatum = _this$props4.formDatum,
161
- name = _this$props4.name,
162
- value = _this$props4.value,
163
- defaultValue = _this$props4.defaultValue;
164
-
165
- if (formDatum && name) {
166
- if (Array.isArray(name)) {
167
- var dv = defaultValue || [];
168
- return name.map(function (n, i) {
169
- return tryValue(formDatum.get(n), dv[i]);
170
- });
171
- }
172
-
173
- return tryValue(formDatum.get(name), defaultValue);
174
- }
175
-
176
- var hasValue = 'value' in this.props || 'checked' in this.props;
177
- return !hasValue ? this.state.value : value;
178
- };
179
-
180
- _proto.getError = function getError() {
181
- var _this$props5 = this.props,
182
- formDatum = _this$props5.formDatum,
183
- name = _this$props5.name,
184
- error = _this$props5.error;
185
-
186
- if ('error' in this.props) {
187
- return error;
188
- }
189
-
190
- if (formDatum && name) {
191
- return formDatum.getError(this.errorName);
192
- }
193
-
194
- return this.state.error;
195
- };
196
-
197
- _proto.handleDatumBind = function handleDatumBind(datum) {
198
- this.datum = datum;
199
- };
200
-
201
- _proto.handleError = function handleError(error) {
202
- var _this$props6 = this.props,
203
- formDatum = _this$props6.formDatum,
204
- name = _this$props6.name,
205
- onItemError = _this$props6.onItemError,
206
- onError = _this$props6.onError;
207
-
208
- if (formDatum && name) {
209
- if (!isSameError(error, formDatum.getError(this.errorName, true))) {
210
- formDatum.setError(this.errorName, error, true);
211
- }
212
- } else {
213
- this.setState({
214
- error: error
215
- });
216
- }
217
-
218
- var hasError = error !== undefined;
219
- this.errorChange = hasError !== this.lastError;
220
- this.lastError = hasError;
221
- if (onError) onError(error);
222
- if (onItemError && !name) onItemError(this.itemName, error);
223
- };
224
-
225
- _proto.validateHook = function validateHook(customValidate) {
226
- this.customValidate = customValidate;
227
- };
228
-
229
- _proto.validate = function validate(value, data, type) {
230
- var _this3 = this;
231
-
232
- var _this$props7 = this.props,
233
- name = _this$props7.name,
234
- formDatum = _this$props7.formDatum,
235
- combineRules = _this$props7.combineRules,
236
- bind = _this$props7.bind;
237
- var names = Array.isArray(name) ? name : [name];
238
- var validates = [];
239
- var validateProps = filterProps(this.props, function (v) {
240
- return typeof v === 'string' || typeof v === 'number';
241
- });
242
-
243
- if (this.datum) {
244
- var datumValue = this.datum.formatValue(value);
245
- value = this.datum.limit === 1 ? datumValue[0] : datumValue; // @ts-ignore
246
-
247
- validateProps.type = 'array';
248
- }
249
-
250
- if (type === FORCE_PASS || value === FORCE_PASS) {
251
- this.handleError();
252
- return Promise.resolve(true);
253
- }
254
-
255
- if (value === undefined || Array.isArray(name)) value = this.getValue();
256
- if (!Array.isArray(name)) value = [value];
257
- if (this.customValidate) validates.push(this.customValidate());
258
-
259
- if (formDatum && bind && type !== IGNORE_BIND) {
260
- // console.error(new Error('Use "bind" props to combine validate is not recommend. Use Form "groups" props instead.'))
261
- formDatum.validateFields(bind, IGNORE_BIND).catch(function () {});
262
- }
263
-
264
- if (!data && formDatum) data = formDatum.getValue();
265
- var rules = this.props.rules;
266
- names.forEach(function (n, i) {
267
- if (formDatum && combineRules) {
268
- rules = combineRules(n, rules);
269
- }
270
-
271
- if (isArray(rules) && rules.length > 0) {
272
- validates.push(_validate(value[i], data, rules, validateProps));
273
- }
274
- });
275
- return promiseAll(validates).then(function (res) {
276
- _this3.handleError(res === true ? undefined : res);
277
-
278
- return res;
279
- }).catch(function (e) {
280
- _this3.handleError(e);
281
-
282
- return e;
283
- });
284
- };
285
-
286
- _proto.handleChange = function handleChange(value) {
287
- var _this4 = this;
288
-
289
- var _this$props8 = this.props,
290
- formDatum = _this$props8.formDatum,
291
- name = _this$props8.name,
292
- fieldSetValidate = _this$props8.fieldSetValidate,
293
- onChange = _this$props8.onChange,
294
- filterSameChange = _this$props8.filterSameChange;
295
- var currentValue = this.getValue();
296
-
297
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
298
- args[_key - 1] = arguments[_key];
299
- }
300
-
301
- if ((args.length === 0 || filterSameChange) && shallowEqual(value, currentValue)) {
302
- return;
303
- }
304
-
305
- var beforeChange = beforeValueChange(this.props.beforeChange);
306
-
307
- if (formDatum && name) {
308
- value = beforeChange(value, formDatum);
309
- formDatum.set(name, value);
310
- formDatum.removeFormError(this.errorName);
311
- } else {
312
- value = beforeChange(value, undefined);
313
- this.setState({
314
- value: value
315
- }, function () {
316
- _this4.validate(value).catch(function () {});
317
- });
318
- }
319
-
320
- if (onChange) onChange.apply(void 0, [value].concat(args));
321
- if (fieldSetValidate) fieldSetValidate(true);
322
- };
323
-
324
- _proto.handleUpdate = function handleUpdate(value, sn, type) {
325
- var _this5 = this;
326
-
327
- if (type === ERROR_TYPE) {
328
- if (!isSameError(value, this.state.error)) this.setState({
329
- error: value
330
- });
331
- return;
332
- }
333
-
334
- var _this$props9 = this.props,
335
- name = _this$props9.name,
336
- onChange = _this$props9.onChange,
337
- forceChangeOnValueSet = _this$props9.forceChangeOnValueSet;
338
- var newValue = !Array.isArray(name) ? value : immer(this.getValue(), function (draft) {
339
- name.forEach(function (n, i) {
340
- if (n === sn) draft[i] = value;
341
- });
342
- });
343
- if (!this.errorChange && shallowEqual(newValue, this.lastValue)) return;
344
- this.lastValue = newValue;
345
-
346
- if (type === FORCE_PASS) {
347
- this.handleError();
348
- this.setState({
349
- error: undefined
350
- });
351
- this.forceUpdate();
352
- return;
353
- }
354
-
355
- if (onChange && forceChangeOnValueSet) onChange(newValue);
356
-
357
- if (type !== IGNORE_VALIDATE) {
358
- if (this.updateTimer) clearTimeout(this.updateTimer);
359
- this.updateTimer = setTimeout(function () {
360
- _this5.validate(newValue, undefined, type).catch(function () {});
361
- }, 0);
362
- }
363
-
364
- this.forceUpdate();
365
- };
366
-
367
- _proto.render = function render() {
368
- var _this$props10 = this.props,
369
- formDatum = _this$props10.formDatum,
370
- value = _this$props10.value,
371
- required = _this$props10.required,
372
- bind = _this$props10.bind,
373
- onItemError = _this$props10.onItemError,
374
- bindInputToItem = _this$props10.bindInputToItem,
375
- unbindInputFromItem = _this$props10.unbindInputFromItem,
376
- scuSkip = _this$props10.scuSkip,
377
- defaultValue = _this$props10.defaultValue,
378
- reserveAble = _this$props10.reserveAble,
379
- other = _objectWithoutPropertiesLoose(_this$props10, ["formDatum", "value", "required", "bind", "onItemError", "bindInputToItem", "unbindInputFromItem", "scuSkip", "defaultValue", "reserveAble"]);
380
-
381
- return React.createElement(Origin, _extends({}, other, {
382
- formDatum: formDatum,
383
- error: this.getError(),
384
- value: this.getValue(),
385
- onChange: this.handleChange,
386
- onDatumBind: this.handleDatumBind,
387
- validateHook: this.validateHook
388
- }));
389
- };
390
-
391
- _createClass(InputableInner, [{
392
- key: "errorName",
393
- get: function get() {
394
- var name = this.props.name;
395
- return Array.isArray(name) ? name.join('|') : name;
396
- }
397
- }]);
398
-
399
- return InputableInner;
400
- }(Component);
401
-
402
- _defineProperty(InputableInner, "defaultProps", {
403
- rules: [],
404
- scuSkip: ['onChange', 'rules']
405
- });
406
-
407
- var WithFiledSetConsumer = fieldSetConsumer(InputableInner);
408
- var WidthItemConsumer = itemConsumer(WithFiledSetConsumer);
409
- var WidthFormConsumer = formConsumer(types)(WidthItemConsumer);
410
- return WidthFormConsumer;
411
- });
@@ -1 +0,0 @@
1
- export { FormProps as Props, FormItemProps as ItemProps, FormFieldProps as FieldProps, FormFieldSetProps as FieldSetProps, FormButtonProps as SubmitProps, FormButtonProps as ResetProps, FormRef as Ref, FieldSetChildrenFunc, FieldChildrenFunc, } from './Props';
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- declare const _default: (...args: string[]) => any[];
2
- export default _default;
package/esm/Form/mode.js DELETED
@@ -1,16 +0,0 @@
1
- import { formConsumer } from './formContext';
2
- import { memoize } from '../utils/func';
3
- var createMode = memoize(function (mode) {
4
- return formConsumer(['formMode'], function (props) {
5
- var isMatch = mode === props.formMode;
6
- if (props.reverse) isMatch = !isMatch;
7
- return isMatch ? props.children : true;
8
- });
9
- });
10
- export default (function () {
11
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
12
- args[_key] = arguments[_key];
13
- }
14
-
15
- return args.map(createMode);
16
- });