shineout 1.12.2 → 1.12.3

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 (1026) hide show
  1. package/css/DatePicker/Month.js +0 -6
  2. package/css/DatePicker/Quarter.js +1 -7
  3. package/css/DatePicker/Year.js +0 -6
  4. package/css/index.d.ts +1 -1
  5. package/css/index.js +1 -1
  6. package/dist/shineout.js +367 -925
  7. package/dist/shineout.js.map +1 -1
  8. package/dist/shineout.min.js +1 -1
  9. package/es/DatePicker/Month.js +0 -6
  10. package/es/DatePicker/Quarter.js +1 -7
  11. package/es/DatePicker/Year.js +0 -6
  12. package/es/index.d.ts +1 -1
  13. package/es/index.js +1 -1
  14. package/esm/@types/common.d.ts +47 -0
  15. package/esm/@types/common.js +1 -0
  16. package/esm/Alert/Props.d.ts +85 -0
  17. package/esm/Alert/Props.js +1 -0
  18. package/esm/Alert/index.d.ts +26 -0
  19. package/esm/Alert/index.js +165 -0
  20. package/esm/Alert/interface.d.ts +1 -0
  21. package/esm/Alert/interface.js +1 -0
  22. package/esm/Alert/styles/alert.less +143 -0
  23. package/esm/Alert/styles/index.d.ts +2 -0
  24. package/esm/Alert/styles/index.js +4 -0
  25. package/esm/AnimationList/AbsoluteList.d.ts +3 -0
  26. package/esm/AnimationList/AbsoluteList.js +373 -0
  27. package/esm/AnimationList/LazyList.d.ts +26 -0
  28. package/esm/AnimationList/LazyList.js +163 -0
  29. package/esm/AnimationList/List.d.ts +10 -0
  30. package/esm/AnimationList/List.js +46 -0
  31. package/esm/AnimationList/Props.d.ts +61 -0
  32. package/esm/AnimationList/Props.js +1 -0
  33. package/esm/AnimationList/index.d.ts +4 -0
  34. package/esm/AnimationList/index.js +27 -0
  35. package/esm/AnimationList/styles/index.d.ts +2 -0
  36. package/esm/AnimationList/styles/index.js +4 -0
  37. package/esm/Breadcrumb/Props.d.ts +81 -0
  38. package/esm/Breadcrumb/Props.js +1 -0
  39. package/esm/Breadcrumb/index.d.ts +17 -0
  40. package/esm/Breadcrumb/index.js +91 -0
  41. package/esm/Breadcrumb/interface.d.ts +1 -0
  42. package/esm/Breadcrumb/interface.js +1 -0
  43. package/esm/Breadcrumb/styles/breadcrumb.less +52 -0
  44. package/esm/Breadcrumb/styles/index.d.ts +2 -0
  45. package/esm/Breadcrumb/styles/index.js +4 -0
  46. package/esm/Button/Button.d.ts +13 -0
  47. package/esm/Button/Button.js +113 -0
  48. package/esm/Button/Group.d.ts +10 -0
  49. package/esm/Button/Group.js +48 -0
  50. package/esm/Button/Once.d.ts +10 -0
  51. package/esm/Button/Once.js +43 -0
  52. package/esm/Button/Props.d.ts +153 -0
  53. package/esm/Button/Props.js +1 -0
  54. package/esm/Button/index.d.ts +1 -0
  55. package/esm/Button/index.js +1 -0
  56. package/esm/Button/interface.d.ts +1 -0
  57. package/esm/Button/interface.js +1 -0
  58. package/esm/Button/styles/button.less +389 -0
  59. package/esm/Button/styles/index.d.ts +2 -0
  60. package/esm/Button/styles/index.js +4 -0
  61. package/esm/Card/Accordion.d.ts +20 -0
  62. package/esm/Card/Accordion.js +67 -0
  63. package/esm/Card/Body.d.ts +6 -0
  64. package/esm/Card/Body.js +48 -0
  65. package/esm/Card/Card.d.ts +4 -0
  66. package/esm/Card/Card.js +106 -0
  67. package/esm/Card/Footer.d.ts +5 -0
  68. package/esm/Card/Footer.js +35 -0
  69. package/esm/Card/Header.d.ts +7 -0
  70. package/esm/Card/Header.js +48 -0
  71. package/esm/Card/Props.d.ts +196 -0
  72. package/esm/Card/Props.js +79 -0
  73. package/esm/Card/Submit.d.ts +8 -0
  74. package/esm/Card/Submit.js +52 -0
  75. package/esm/Card/context.d.ts +4 -0
  76. package/esm/Card/context.js +27 -0
  77. package/esm/Card/index.d.ts +2 -0
  78. package/esm/Card/index.js +17 -0
  79. package/esm/Card/interface.d.ts +1 -0
  80. package/esm/Card/interface.js +1 -0
  81. package/esm/Card/styles/card.less +156 -0
  82. package/esm/Card/styles/index.d.ts +2 -0
  83. package/esm/Card/styles/index.js +4 -0
  84. package/esm/CardGroup/CardGroup.d.ts +18 -0
  85. package/esm/CardGroup/CardGroup.js +104 -0
  86. package/esm/CardGroup/Item.d.ts +8 -0
  87. package/esm/CardGroup/Item.js +62 -0
  88. package/esm/CardGroup/Props.d.ts +122 -0
  89. package/esm/CardGroup/Props.js +1 -0
  90. package/esm/CardGroup/context.d.ts +4 -0
  91. package/esm/CardGroup/context.js +13 -0
  92. package/esm/CardGroup/index.d.ts +2 -0
  93. package/esm/CardGroup/index.js +8 -0
  94. package/esm/CardGroup/interface.d.ts +1 -0
  95. package/esm/CardGroup/interface.js +1 -0
  96. package/esm/CardGroup/styles/cardGroup.less +40 -0
  97. package/esm/CardGroup/styles/index.d.ts +2 -0
  98. package/esm/CardGroup/styles/index.js +4 -0
  99. package/esm/Carousel/Item.d.ts +11 -0
  100. package/esm/Carousel/Item.js +31 -0
  101. package/esm/Carousel/Props.d.ts +58 -0
  102. package/esm/Carousel/Props.js +1 -0
  103. package/esm/Carousel/index.d.ts +4 -0
  104. package/esm/Carousel/index.js +201 -0
  105. package/esm/Carousel/interface.d.ts +1 -0
  106. package/esm/Carousel/interface.js +1 -0
  107. package/esm/Carousel/styles/carousel.less +288 -0
  108. package/esm/Carousel/styles/index.d.ts +2 -0
  109. package/esm/Carousel/styles/index.js +4 -0
  110. package/esm/Cascader/Cascader.d.ts +61 -0
  111. package/esm/Cascader/Cascader.js +609 -0
  112. package/esm/Cascader/FilterList.d.ts +2 -0
  113. package/esm/Cascader/FilterList.js +195 -0
  114. package/esm/Cascader/Input.d.ts +26 -0
  115. package/esm/Cascader/Input.js +117 -0
  116. package/esm/Cascader/List.d.ts +15 -0
  117. package/esm/Cascader/List.js +85 -0
  118. package/esm/Cascader/Node.d.ts +19 -0
  119. package/esm/Cascader/Node.js +182 -0
  120. package/esm/Cascader/Props.d.ts +311 -0
  121. package/esm/Cascader/Props.js +1 -0
  122. package/esm/Cascader/Result.d.ts +41 -0
  123. package/esm/Cascader/Result.js +399 -0
  124. package/esm/Cascader/filter.d.ts +4 -0
  125. package/esm/Cascader/filter.js +103 -0
  126. package/esm/Cascader/index.d.ts +2 -0
  127. package/esm/Cascader/index.js +12 -0
  128. package/esm/Cascader/interface.d.ts +1 -0
  129. package/esm/Cascader/interface.js +1 -0
  130. package/esm/Cascader/styles/cascader.less +452 -0
  131. package/esm/Cascader/styles/index.d.ts +2 -0
  132. package/esm/Cascader/styles/index.js +4 -0
  133. package/esm/Checkbox/CheckItem.d.ts +9 -0
  134. package/esm/Checkbox/CheckItem.js +199 -0
  135. package/esm/Checkbox/Checkbox.d.ts +3 -0
  136. package/esm/Checkbox/Checkbox.js +3 -0
  137. package/esm/Checkbox/Group.d.ts +17 -0
  138. package/esm/Checkbox/Group.js +130 -0
  139. package/esm/Checkbox/Props.d.ts +122 -0
  140. package/esm/Checkbox/Props.js +13 -0
  141. package/esm/Checkbox/context.d.ts +4 -0
  142. package/esm/Checkbox/context.js +13 -0
  143. package/esm/Checkbox/index.d.ts +2 -0
  144. package/esm/Checkbox/index.js +14 -0
  145. package/esm/Checkbox/interface.d.ts +1 -0
  146. package/esm/Checkbox/interface.js +1 -0
  147. package/esm/Checkbox/styles/checkinput.less +602 -0
  148. package/esm/Checkbox/styles/index.d.ts +2 -0
  149. package/esm/Checkbox/styles/index.js +4 -0
  150. package/esm/DataList/BaseItem.d.ts +13 -0
  151. package/esm/DataList/BaseItem.js +40 -0
  152. package/esm/DataList/Extra.d.ts +8 -0
  153. package/esm/DataList/Extra.js +34 -0
  154. package/esm/DataList/List.d.ts +26 -0
  155. package/esm/DataList/List.js +209 -0
  156. package/esm/DataList/Meta.d.ts +16 -0
  157. package/esm/DataList/Meta.js +120 -0
  158. package/esm/DataList/Pagination.d.ts +5 -0
  159. package/esm/DataList/Pagination.js +9 -0
  160. package/esm/DataList/Props.d.ts +138 -0
  161. package/esm/DataList/Props.js +1 -0
  162. package/esm/DataList/index.d.ts +2 -0
  163. package/esm/DataList/index.js +14 -0
  164. package/esm/DataList/styles/index.d.ts +1 -0
  165. package/esm/DataList/styles/index.js +4 -0
  166. package/esm/DataList/styles/list.less +213 -0
  167. package/esm/DatePicker/Container.d.ts +82 -0
  168. package/esm/DatePicker/Container.js +650 -0
  169. package/esm/DatePicker/Day.d.ts +37 -0
  170. package/esm/DatePicker/Day.js +339 -0
  171. package/esm/DatePicker/Icon.d.ts +12 -0
  172. package/esm/DatePicker/Icon.js +40 -0
  173. package/esm/DatePicker/Month.d.ts +18 -0
  174. package/esm/DatePicker/Month.js +144 -0
  175. package/esm/DatePicker/Picker.d.ts +21 -0
  176. package/esm/DatePicker/Picker.js +158 -0
  177. package/esm/DatePicker/Props.d.ts +397 -0
  178. package/esm/DatePicker/Props.js +1 -0
  179. package/esm/DatePicker/Quarter.d.ts +18 -0
  180. package/esm/DatePicker/Quarter.js +164 -0
  181. package/esm/DatePicker/Quick.d.ts +15 -0
  182. package/esm/DatePicker/Quick.js +64 -0
  183. package/esm/DatePicker/Range.d.ts +35 -0
  184. package/esm/DatePicker/Range.js +299 -0
  185. package/esm/DatePicker/Text.d.ts +20 -0
  186. package/esm/DatePicker/Text.js +141 -0
  187. package/esm/DatePicker/Time.d.ts +21 -0
  188. package/esm/DatePicker/Time.js +215 -0
  189. package/esm/DatePicker/TimeScroll.d.ts +26 -0
  190. package/esm/DatePicker/TimeScroll.js +185 -0
  191. package/esm/DatePicker/Year.d.ts +17 -0
  192. package/esm/DatePicker/Year.js +146 -0
  193. package/esm/DatePicker/index.d.ts +2 -0
  194. package/esm/DatePicker/index.js +18 -0
  195. package/esm/DatePicker/interface.d.ts +1 -0
  196. package/esm/DatePicker/interface.js +1 -0
  197. package/esm/DatePicker/paramUtils.d.ts +19 -0
  198. package/esm/DatePicker/paramUtils.js +106 -0
  199. package/esm/DatePicker/styles/datepicker.less +727 -0
  200. package/esm/DatePicker/styles/index.d.ts +2 -0
  201. package/esm/DatePicker/styles/index.js +4 -0
  202. package/esm/DatePicker/utils.d.ts +68 -0
  203. package/esm/DatePicker/utils.js +419 -0
  204. package/esm/DatePicker/value.d.ts +44 -0
  205. package/esm/DatePicker/value.js +179 -0
  206. package/esm/Datum/Form.d.ts +55 -0
  207. package/esm/Datum/Form.js +433 -0
  208. package/esm/Datum/List.d.ts +47 -0
  209. package/esm/Datum/List.js +441 -0
  210. package/esm/Datum/Props.d.ts +89 -0
  211. package/esm/Datum/Props.js +1 -0
  212. package/esm/Datum/Tree.d.ts +78 -0
  213. package/esm/Datum/Tree.js +424 -0
  214. package/esm/Datum/hoc.d.ts +2 -0
  215. package/esm/Datum/hoc.js +133 -0
  216. package/esm/Datum/index.d.ts +8 -0
  217. package/esm/Datum/index.js +8 -0
  218. package/esm/Datum/types.d.ts +16 -0
  219. package/esm/Datum/types.js +22 -0
  220. package/esm/Divider/Props.d.ts +30 -0
  221. package/esm/Divider/Props.js +1 -0
  222. package/esm/Divider/index.d.ts +10 -0
  223. package/esm/Divider/index.js +50 -0
  224. package/esm/Divider/interface.d.ts +1 -0
  225. package/esm/Divider/interface.js +1 -0
  226. package/esm/Divider/styles/divider.less +83 -0
  227. package/esm/Divider/styles/index.d.ts +2 -0
  228. package/esm/Divider/styles/index.js +4 -0
  229. package/esm/Drawer/index.d.ts +12 -0
  230. package/esm/Drawer/index.js +17 -0
  231. package/esm/Drawer/interface.d.ts +1 -0
  232. package/esm/Drawer/interface.js +1 -0
  233. package/esm/Dropdown/Item.d.ts +16 -0
  234. package/esm/Dropdown/Item.js +73 -0
  235. package/esm/Dropdown/Props.d.ts +164 -0
  236. package/esm/Dropdown/Props.js +1 -0
  237. package/esm/Dropdown/index.d.ts +2 -0
  238. package/esm/Dropdown/index.js +347 -0
  239. package/esm/Dropdown/interface.d.ts +1 -0
  240. package/esm/Dropdown/interface.js +1 -0
  241. package/esm/Dropdown/styles/dropdown.less +349 -0
  242. package/esm/Dropdown/styles/index.d.ts +1 -0
  243. package/esm/Dropdown/styles/index.js +4 -0
  244. package/esm/EditableArea/EditableArea.d.ts +36 -0
  245. package/esm/EditableArea/EditableArea.js +275 -0
  246. package/esm/EditableArea/Props.d.ts +105 -0
  247. package/esm/EditableArea/Props.js +1 -0
  248. package/esm/EditableArea/index.d.ts +2 -0
  249. package/esm/EditableArea/index.js +7 -0
  250. package/esm/EditableArea/interface.d.ts +1 -0
  251. package/esm/EditableArea/interface.js +1 -0
  252. package/esm/EditableArea/styles/editableArea.less +63 -0
  253. package/esm/EditableArea/styles/index.d.ts +1 -0
  254. package/esm/EditableArea/styles/index.js +4 -0
  255. package/esm/Form/Field.d.ts +12 -0
  256. package/esm/Form/Field.js +76 -0
  257. package/esm/Form/FieldError.d.ts +6 -0
  258. package/esm/Form/FieldError.js +29 -0
  259. package/esm/Form/FieldSet.d.ts +8 -0
  260. package/esm/Form/FieldSet.js +240 -0
  261. package/esm/Form/Flow.d.ts +10 -0
  262. package/esm/Form/Flow.js +66 -0
  263. package/esm/Form/Form.d.ts +29 -0
  264. package/esm/Form/Form.js +229 -0
  265. package/esm/Form/Item.d.ts +29 -0
  266. package/esm/Form/Item.js +210 -0
  267. package/esm/Form/Props.d.ts +436 -0
  268. package/esm/Form/Props.js +1 -0
  269. package/esm/Form/formButton.d.ts +3 -0
  270. package/esm/Form/formButton.js +69 -0
  271. package/esm/Form/formContext.d.ts +9 -0
  272. package/esm/Form/formContext.js +103 -0
  273. package/esm/Form/index.d.ts +2 -0
  274. package/esm/Form/index.js +35 -0
  275. package/esm/Form/inputable.d.ts +4 -0
  276. package/esm/Form/inputable.js +411 -0
  277. package/esm/Form/interface.d.ts +1 -0
  278. package/esm/Form/interface.js +1 -0
  279. package/esm/Form/mode.d.ts +2 -0
  280. package/esm/Form/mode.js +16 -0
  281. package/esm/Form/styles/form.less +779 -0
  282. package/esm/Form/styles/index.d.ts +2 -0
  283. package/esm/Form/styles/index.js +5 -0
  284. package/esm/Gap/Props.d.ts +37 -0
  285. package/esm/Gap/Props.js +1 -0
  286. package/esm/Gap/index.d.ts +4 -0
  287. package/esm/Gap/index.js +74 -0
  288. package/esm/Gap/interface.d.ts +1 -0
  289. package/esm/Gap/interface.js +1 -0
  290. package/esm/Gap/styles/gap.less +10 -0
  291. package/esm/Gap/styles/index.d.ts +1 -0
  292. package/esm/Gap/styles/index.js +4 -0
  293. package/esm/Gap/support.d.ts +1 -0
  294. package/esm/Gap/support.js +12 -0
  295. package/esm/Grid/Props.d.ts +53 -0
  296. package/esm/Grid/Props.js +1 -0
  297. package/esm/Grid/index.d.ts +7 -0
  298. package/esm/Grid/index.js +89 -0
  299. package/esm/Grid/interface.d.ts +1 -0
  300. package/esm/Grid/interface.js +1 -0
  301. package/esm/Grid/utils.d.ts +13 -0
  302. package/esm/Grid/utils.js +97 -0
  303. package/esm/Icon/Icon.d.ts +23 -0
  304. package/esm/Icon/Icon.js +67 -0
  305. package/esm/Icon/Props.d.ts +80 -0
  306. package/esm/Icon/Props.js +1 -0
  307. package/esm/Icon/index.d.ts +3 -0
  308. package/esm/Icon/index.js +48 -0
  309. package/esm/Icon/interface.d.ts +1 -0
  310. package/esm/Icon/interface.js +1 -0
  311. package/esm/Icon/styles/icon.less +54 -0
  312. package/esm/Icon/styles/index.d.ts +2 -0
  313. package/esm/Icon/styles/index.js +4 -0
  314. package/esm/Image/Gallery.d.ts +9 -0
  315. package/esm/Image/Gallery.js +147 -0
  316. package/esm/Image/Group.d.ts +8 -0
  317. package/esm/Image/Group.js +65 -0
  318. package/esm/Image/Image.d.ts +39 -0
  319. package/esm/Image/Image.js +297 -0
  320. package/esm/Image/Magnify.d.ts +25 -0
  321. package/esm/Image/Magnify.js +147 -0
  322. package/esm/Image/Props.d.ts +184 -0
  323. package/esm/Image/Props.js +1 -0
  324. package/esm/Image/events.d.ts +6 -0
  325. package/esm/Image/events.js +40 -0
  326. package/esm/Image/index.d.ts +2 -0
  327. package/esm/Image/index.js +6 -0
  328. package/esm/Image/interface.d.ts +1 -0
  329. package/esm/Image/interface.js +1 -0
  330. package/esm/Image/styles/image.less +311 -0
  331. package/esm/Image/styles/index.d.ts +2 -0
  332. package/esm/Image/styles/index.js +4 -0
  333. package/esm/Input/Group.d.ts +10 -0
  334. package/esm/Input/Group.js +25 -0
  335. package/esm/Input/Input.d.ts +24 -0
  336. package/esm/Input/Input.js +307 -0
  337. package/esm/Input/Number.d.ts +24 -0
  338. package/esm/Input/Number.js +275 -0
  339. package/esm/Input/Password.d.ts +12 -0
  340. package/esm/Input/Password.js +73 -0
  341. package/esm/Input/Props.d.ts +311 -0
  342. package/esm/Input/Props.js +1 -0
  343. package/esm/Input/clear.d.ts +8 -0
  344. package/esm/Input/clear.js +46 -0
  345. package/esm/Input/index.d.ts +2 -0
  346. package/esm/Input/index.js +22 -0
  347. package/esm/Input/interface.d.ts +1 -0
  348. package/esm/Input/interface.js +1 -0
  349. package/esm/Input/styles/index.d.ts +1 -0
  350. package/esm/Input/styles/index.js +4 -0
  351. package/esm/InputTitle/Props.d.ts +25 -0
  352. package/esm/InputTitle/Props.js +1 -0
  353. package/esm/InputTitle/index.d.ts +2 -0
  354. package/esm/InputTitle/index.js +2 -0
  355. package/esm/InputTitle/inputTitle.d.ts +14 -0
  356. package/esm/InputTitle/inputTitle.js +75 -0
  357. package/esm/InputTitle/styles/index.d.ts +1 -0
  358. package/esm/InputTitle/styles/index.js +3 -0
  359. package/esm/InputTitle/styles/inputTitle.less +139 -0
  360. package/esm/Lazyload/Props.d.ts +7 -0
  361. package/esm/Lazyload/Props.js +1 -0
  362. package/esm/Lazyload/index.d.ts +19 -0
  363. package/esm/Lazyload/index.js +78 -0
  364. package/esm/Lazyload/styles/index.d.ts +1 -0
  365. package/esm/Lazyload/styles/index.js +4 -0
  366. package/esm/Lazyload/styles/lazyload.less +8 -0
  367. package/esm/List/index.d.ts +2 -0
  368. package/esm/List/index.js +2 -0
  369. package/esm/List/interface.d.ts +1 -0
  370. package/esm/List/interface.js +1 -0
  371. package/esm/Menu/Item.d.ts +4 -0
  372. package/esm/Menu/Item.js +339 -0
  373. package/esm/Menu/List.d.ts +6 -0
  374. package/esm/Menu/List.js +76 -0
  375. package/esm/Menu/Props.d.ts +204 -0
  376. package/esm/Menu/Props.js +1 -0
  377. package/esm/Menu/Root.d.ts +94 -0
  378. package/esm/Menu/Root.js +452 -0
  379. package/esm/Menu/context.d.ts +4 -0
  380. package/esm/Menu/context.js +19 -0
  381. package/esm/Menu/index.d.ts +2 -0
  382. package/esm/Menu/index.js +3 -0
  383. package/esm/Menu/interface.d.ts +1 -0
  384. package/esm/Menu/interface.js +1 -0
  385. package/esm/Menu/styles/index.d.ts +1 -0
  386. package/esm/Menu/styles/index.js +4 -0
  387. package/esm/Menu/styles/menu.less +780 -0
  388. package/esm/Message/Container.d.ts +33 -0
  389. package/esm/Message/Container.js +186 -0
  390. package/esm/Message/Props.d.ts +55 -0
  391. package/esm/Message/Props.js +1 -0
  392. package/esm/Message/index.d.ts +14 -0
  393. package/esm/Message/index.js +54 -0
  394. package/esm/Message/interface.d.ts +1 -0
  395. package/esm/Message/interface.js +1 -0
  396. package/esm/Message/messager.d.ts +5 -0
  397. package/esm/Message/messager.js +44 -0
  398. package/esm/Message/styles/index.d.ts +1 -0
  399. package/esm/Message/styles/index.js +6 -0
  400. package/esm/Message/styles/message.less +148 -0
  401. package/esm/Modal/Modal.d.ts +34 -0
  402. package/esm/Modal/Modal.js +122 -0
  403. package/esm/Modal/Panel.d.ts +43 -0
  404. package/esm/Modal/Panel.js +293 -0
  405. package/esm/Modal/Props.d.ts +300 -0
  406. package/esm/Modal/Props.js +1 -0
  407. package/esm/Modal/context.d.ts +7 -0
  408. package/esm/Modal/context.js +19 -0
  409. package/esm/Modal/events.d.ts +8 -0
  410. package/esm/Modal/events.js +277 -0
  411. package/esm/Modal/index.d.ts +2 -0
  412. package/esm/Modal/index.js +12 -0
  413. package/esm/Modal/interface.d.ts +1 -0
  414. package/esm/Modal/interface.js +1 -0
  415. package/esm/Modal/styles/index.d.ts +1 -0
  416. package/esm/Modal/styles/index.js +4 -0
  417. package/esm/Modal/styles/modal.less +377 -0
  418. package/esm/Pagination/Item.d.ts +12 -0
  419. package/esm/Pagination/Item.js +54 -0
  420. package/esm/Pagination/Jumper.d.ts +11 -0
  421. package/esm/Pagination/Jumper.js +101 -0
  422. package/esm/Pagination/Links.d.ts +14 -0
  423. package/esm/Pagination/Links.js +144 -0
  424. package/esm/Pagination/Next.d.ts +8 -0
  425. package/esm/Pagination/Next.js +56 -0
  426. package/esm/Pagination/PageSizeList.d.ts +11 -0
  427. package/esm/Pagination/PageSizeList.js +67 -0
  428. package/esm/Pagination/Pagination.d.ts +15 -0
  429. package/esm/Pagination/Pagination.js +88 -0
  430. package/esm/Pagination/Prev.d.ts +8 -0
  431. package/esm/Pagination/Prev.js +53 -0
  432. package/esm/Pagination/Props.d.ts +175 -0
  433. package/esm/Pagination/Props.js +1 -0
  434. package/esm/Pagination/Simple.d.ts +5 -0
  435. package/esm/Pagination/Simple.js +37 -0
  436. package/esm/Pagination/index.d.ts +20 -0
  437. package/esm/Pagination/index.js +76 -0
  438. package/esm/Pagination/interface.d.ts +1 -0
  439. package/esm/Pagination/interface.js +1 -0
  440. package/esm/Pagination/styles/index.d.ts +1 -0
  441. package/esm/Pagination/styles/index.js +4 -0
  442. package/esm/Pagination/styles/pagination.less +180 -0
  443. package/esm/Popover/Confirm.d.ts +16 -0
  444. package/esm/Popover/Confirm.js +124 -0
  445. package/esm/Popover/Content.d.ts +4 -0
  446. package/esm/Popover/Content.js +11 -0
  447. package/esm/Popover/Panel.d.ts +4 -0
  448. package/esm/Popover/Panel.js +373 -0
  449. package/esm/Popover/Props.d.ts +237 -0
  450. package/esm/Popover/Props.js +1 -0
  451. package/esm/Popover/context.d.ts +4 -0
  452. package/esm/Popover/context.js +16 -0
  453. package/esm/Popover/index.d.ts +3 -0
  454. package/esm/Popover/index.js +10 -0
  455. package/esm/Popover/interface.d.ts +1 -0
  456. package/esm/Popover/interface.js +1 -0
  457. package/esm/Popover/styles/index.d.ts +1 -0
  458. package/esm/Popover/styles/index.js +4 -0
  459. package/esm/Popover/styles/popover.less +309 -0
  460. package/esm/Progress/Circle.d.ts +12 -0
  461. package/esm/Progress/Circle.js +79 -0
  462. package/esm/Progress/Line.d.ts +9 -0
  463. package/esm/Progress/Line.js +61 -0
  464. package/esm/Progress/Popup.d.ts +9 -0
  465. package/esm/Progress/Popup.js +43 -0
  466. package/esm/Progress/Props.d.ts +103 -0
  467. package/esm/Progress/Props.js +1 -0
  468. package/esm/Progress/analyzeColor.d.ts +3 -0
  469. package/esm/Progress/analyzeColor.js +21 -0
  470. package/esm/Progress/index.d.ts +10 -0
  471. package/esm/Progress/index.js +19 -0
  472. package/esm/Progress/interface.d.ts +1 -0
  473. package/esm/Progress/interface.js +1 -0
  474. package/esm/Progress/styles/index.d.ts +1 -0
  475. package/esm/Progress/styles/index.js +4 -0
  476. package/esm/Progress/styles/progress.less +119 -0
  477. package/esm/Radio/Group.d.ts +18 -0
  478. package/esm/Radio/Group.js +119 -0
  479. package/esm/Radio/Props.d.ts +39 -0
  480. package/esm/Radio/Props.js +1 -0
  481. package/esm/Radio/Radio.d.ts +3 -0
  482. package/esm/Radio/Radio.js +2 -0
  483. package/esm/Radio/index.d.ts +2 -0
  484. package/esm/Radio/index.js +15 -0
  485. package/esm/Radio/interface.d.ts +1 -0
  486. package/esm/Radio/interface.js +1 -0
  487. package/esm/Radio/styles/index.d.ts +1 -0
  488. package/esm/Radio/styles/index.js +1 -0
  489. package/esm/Rate/Props.d.ts +96 -0
  490. package/esm/Rate/Props.js +1 -0
  491. package/esm/Rate/Rate.d.ts +36 -0
  492. package/esm/Rate/Rate.js +252 -0
  493. package/esm/Rate/index.d.ts +5 -0
  494. package/esm/Rate/index.js +18 -0
  495. package/esm/Rate/interface.d.ts +1 -0
  496. package/esm/Rate/interface.js +1 -0
  497. package/esm/Rate/styles/index.d.ts +2 -0
  498. package/esm/Rate/styles/index.js +4 -0
  499. package/esm/Rate/styles/rate.less +105 -0
  500. package/esm/Rule/Props.d.ts +172 -0
  501. package/esm/Rule/Props.js +1 -0
  502. package/esm/Rule/index.d.ts +15 -0
  503. package/esm/Rule/index.js +81 -0
  504. package/esm/Rule/interface.d.ts +1 -0
  505. package/esm/Rule/interface.js +1 -0
  506. package/esm/Rule/length.d.ts +10 -0
  507. package/esm/Rule/length.js +54 -0
  508. package/esm/Rule/regExp.d.ts +5 -0
  509. package/esm/Rule/regExp.js +25 -0
  510. package/esm/Rule/required.d.ts +8 -0
  511. package/esm/Rule/required.js +27 -0
  512. package/esm/Rule/styles/index.d.ts +1 -0
  513. package/esm/Rule/styles/index.js +1 -0
  514. package/esm/Rule/type.d.ts +8 -0
  515. package/esm/Rule/type.js +27 -0
  516. package/esm/Scroll/Bar.d.ts +3 -0
  517. package/esm/Scroll/Bar.js +183 -0
  518. package/esm/Scroll/Props.d.ts +44 -0
  519. package/esm/Scroll/Props.js +1 -0
  520. package/esm/Scroll/Scroll.d.ts +54 -0
  521. package/esm/Scroll/Scroll.js +436 -0
  522. package/esm/Scroll/context.d.ts +4 -0
  523. package/esm/Scroll/context.js +22 -0
  524. package/esm/Scroll/fixedLength.d.ts +3 -0
  525. package/esm/Scroll/fixedLength.js +32 -0
  526. package/esm/Scroll/index.d.ts +23 -0
  527. package/esm/Scroll/index.js +95 -0
  528. package/esm/Scroll/styles/index.d.ts +2 -0
  529. package/esm/Scroll/styles/index.js +4 -0
  530. package/esm/Scroll/styles/scroll.less +175 -0
  531. package/esm/Select/BoxList.d.ts +19 -0
  532. package/esm/Select/BoxList.js +218 -0
  533. package/esm/Select/BoxOption.d.ts +9 -0
  534. package/esm/Select/BoxOption.js +73 -0
  535. package/esm/Select/Input.d.ts +39 -0
  536. package/esm/Select/Input.js +286 -0
  537. package/esm/Select/More.d.ts +15 -0
  538. package/esm/Select/More.js +151 -0
  539. package/esm/Select/Option.d.ts +12 -0
  540. package/esm/Select/Option.js +90 -0
  541. package/esm/Select/OptionList.d.ts +21 -0
  542. package/esm/Select/OptionList.js +282 -0
  543. package/esm/Select/OptionTree.d.ts +13 -0
  544. package/esm/Select/OptionTree.js +124 -0
  545. package/esm/Select/Props.d.ts +626 -0
  546. package/esm/Select/Props.js +1 -0
  547. package/esm/Select/Result.d.ts +33 -0
  548. package/esm/Select/Result.js +435 -0
  549. package/esm/Select/Select.d.ts +91 -0
  550. package/esm/Select/Select.js +791 -0
  551. package/esm/Select/filter.d.ts +58 -0
  552. package/esm/Select/filter.js +272 -0
  553. package/esm/Select/group.d.ts +39 -0
  554. package/esm/Select/group.js +86 -0
  555. package/esm/Select/index.d.ts +2 -0
  556. package/esm/Select/index.js +34 -0
  557. package/esm/Select/interface.d.ts +1 -0
  558. package/esm/Select/interface.js +1 -0
  559. package/esm/Select/styles/index.d.ts +1 -0
  560. package/esm/Select/styles/index.js +4 -0
  561. package/esm/Select/styles/select.less +724 -0
  562. package/esm/Select/utils.d.ts +4 -0
  563. package/esm/Select/utils.js +7 -0
  564. package/esm/Slider/Container.d.ts +22 -0
  565. package/esm/Slider/Container.js +180 -0
  566. package/esm/Slider/Indicator.d.ts +2 -0
  567. package/esm/Slider/Indicator.js +28 -0
  568. package/esm/Slider/Props.d.ts +128 -0
  569. package/esm/Slider/Props.js +1 -0
  570. package/esm/Slider/Slider.d.ts +22 -0
  571. package/esm/Slider/Slider.js +148 -0
  572. package/esm/Slider/index.d.ts +2 -0
  573. package/esm/Slider/index.js +5 -0
  574. package/esm/Slider/interface.d.ts +1 -0
  575. package/esm/Slider/interface.js +1 -0
  576. package/esm/Slider/styles/index.d.ts +1 -0
  577. package/esm/Slider/styles/index.js +4 -0
  578. package/esm/Slider/styles/slider.less +346 -0
  579. package/esm/Slider/utils.d.ts +2 -0
  580. package/esm/Slider/utils.js +28 -0
  581. package/esm/Spin/Multiple.d.ts +12 -0
  582. package/esm/Spin/Multiple.js +179 -0
  583. package/esm/Spin/Props.d.ts +28 -0
  584. package/esm/Spin/Props.js +1 -0
  585. package/esm/Spin/Simple.d.ts +5 -0
  586. package/esm/Spin/Simple.js +40 -0
  587. package/esm/Spin/Spin.d.ts +3 -0
  588. package/esm/Spin/Spin.js +31 -0
  589. package/esm/Spin/index.d.ts +32 -0
  590. package/esm/Spin/index.js +96 -0
  591. package/esm/Spin/interface.d.ts +1 -0
  592. package/esm/Spin/interface.js +1 -0
  593. package/esm/Spin/styles/chasing-dots.less +47 -0
  594. package/esm/Spin/styles/chasing-ring.less +112 -0
  595. package/esm/Spin/styles/cube-grid.less +65 -0
  596. package/esm/Spin/styles/default.less +77 -0
  597. package/esm/Spin/styles/double-bounce.less +36 -0
  598. package/esm/Spin/styles/four-dots.less +73 -0
  599. package/esm/Spin/styles/index.d.ts +14 -0
  600. package/esm/Spin/styles/index.js +28 -0
  601. package/esm/Spin/styles/plane.less +24 -0
  602. package/esm/Spin/styles/pulse.less +22 -0
  603. package/esm/Spin/styles/ring.less +23 -0
  604. package/esm/Spin/styles/scale-circle.less +74 -0
  605. package/esm/Spin/styles/spin.less +57 -0
  606. package/esm/Spin/styles/three-bounce.less +41 -0
  607. package/esm/Spin/styles/wave.less +48 -0
  608. package/esm/Spin/util.d.ts +4 -0
  609. package/esm/Spin/util.js +7 -0
  610. package/esm/Sticky/Props.d.ts +65 -0
  611. package/esm/Sticky/Props.js +1 -0
  612. package/esm/Sticky/context.d.ts +4 -0
  613. package/esm/Sticky/context.js +13 -0
  614. package/esm/Sticky/index.d.ts +2 -0
  615. package/esm/Sticky/index.js +361 -0
  616. package/esm/Sticky/interface.d.ts +1 -0
  617. package/esm/Sticky/interface.js +1 -0
  618. package/esm/Sticky/styles/index.d.ts +1 -0
  619. package/esm/Sticky/styles/index.js +1 -0
  620. package/esm/Switch/Props.d.ts +8 -0
  621. package/esm/Switch/Props.js +1 -0
  622. package/esm/Switch/Switch.d.ts +3 -0
  623. package/esm/Switch/Switch.js +2 -0
  624. package/esm/Switch/index.d.ts +2 -0
  625. package/esm/Switch/index.js +8 -0
  626. package/esm/Switch/interface.d.ts +1 -0
  627. package/esm/Switch/interface.js +1 -0
  628. package/esm/Table/Checkbox.d.ts +11 -0
  629. package/esm/Table/Checkbox.js +72 -0
  630. package/esm/Table/CheckboxAll.d.ts +16 -0
  631. package/esm/Table/CheckboxAll.js +155 -0
  632. package/esm/Table/Colgroup.d.ts +11 -0
  633. package/esm/Table/Colgroup.js +77 -0
  634. package/esm/Table/Expand.d.ts +13 -0
  635. package/esm/Table/Expand.js +79 -0
  636. package/esm/Table/Props.d.ts +547 -0
  637. package/esm/Table/Props.js +1 -0
  638. package/esm/Table/SeperateTable.d.ts +70 -0
  639. package/esm/Table/SeperateTable.js +857 -0
  640. package/esm/Table/SimpleTable.d.ts +36 -0
  641. package/esm/Table/SimpleTable.js +315 -0
  642. package/esm/Table/Sorter.d.ts +13 -0
  643. package/esm/Table/Sorter.js +100 -0
  644. package/esm/Table/Table.d.ts +2 -0
  645. package/esm/Table/Table.js +173 -0
  646. package/esm/Table/Tbody.d.ts +29 -0
  647. package/esm/Table/Tbody.js +301 -0
  648. package/esm/Table/Td.d.ts +18 -0
  649. package/esm/Table/Td.js +200 -0
  650. package/esm/Table/Tfoot.d.ts +8 -0
  651. package/esm/Table/Tfoot.js +89 -0
  652. package/esm/Table/Thead.d.ts +28 -0
  653. package/esm/Table/Thead.js +292 -0
  654. package/esm/Table/Tr.d.ts +30 -0
  655. package/esm/Table/Tr.js +327 -0
  656. package/esm/Table/TreeExpand.d.ts +45 -0
  657. package/esm/Table/TreeExpand.js +168 -0
  658. package/esm/Table/context.d.ts +7 -0
  659. package/esm/Table/context.js +18 -0
  660. package/esm/Table/fixedAuto.d.ts +57 -0
  661. package/esm/Table/fixedAuto.js +95 -0
  662. package/esm/Table/index.d.ts +23 -0
  663. package/esm/Table/index.js +360 -0
  664. package/esm/Table/interface.d.ts +1 -0
  665. package/esm/Table/interface.js +1 -0
  666. package/esm/Table/resizable.d.ts +43 -0
  667. package/esm/Table/resizable.js +108 -0
  668. package/esm/Table/select.d.ts +54 -0
  669. package/esm/Table/select.js +309 -0
  670. package/esm/Table/styles/index.d.ts +2 -0
  671. package/esm/Table/styles/index.js +4 -0
  672. package/esm/Table/styles/table.less +813 -0
  673. package/esm/Tabs/Header.d.ts +38 -0
  674. package/esm/Tabs/Header.js +265 -0
  675. package/esm/Tabs/Link.d.ts +7 -0
  676. package/esm/Tabs/Link.js +58 -0
  677. package/esm/Tabs/Panel.d.ts +9 -0
  678. package/esm/Tabs/Panel.js +60 -0
  679. package/esm/Tabs/Props.d.ts +242 -0
  680. package/esm/Tabs/Props.js +1 -0
  681. package/esm/Tabs/Tab.d.ts +12 -0
  682. package/esm/Tabs/Tab.js +113 -0
  683. package/esm/Tabs/Tabs.d.ts +45 -0
  684. package/esm/Tabs/Tabs.js +270 -0
  685. package/esm/Tabs/Wrapper.d.ts +6 -0
  686. package/esm/Tabs/Wrapper.js +37 -0
  687. package/esm/Tabs/index.d.ts +2 -0
  688. package/esm/Tabs/index.js +7 -0
  689. package/esm/Tabs/interface.d.ts +1 -0
  690. package/esm/Tabs/interface.js +1 -0
  691. package/esm/Tabs/styles/index.d.ts +1 -0
  692. package/esm/Tabs/styles/index.js +4 -0
  693. package/esm/Tabs/styles/tabs.less +422 -0
  694. package/esm/Tag/Input.d.ts +2 -0
  695. package/esm/Tag/Input.js +84 -0
  696. package/esm/Tag/Props.d.ts +86 -0
  697. package/esm/Tag/Props.js +1 -0
  698. package/esm/Tag/Tag.d.ts +31 -0
  699. package/esm/Tag/Tag.js +230 -0
  700. package/esm/Tag/index.d.ts +6 -0
  701. package/esm/Tag/index.js +6 -0
  702. package/esm/Tag/interface.d.ts +1 -0
  703. package/esm/Tag/interface.js +1 -0
  704. package/esm/Tag/styles/index.d.ts +2 -0
  705. package/esm/Tag/styles/index.js +4 -0
  706. package/esm/Tag/styles/tag.less +107 -0
  707. package/esm/Textarea/Textarea.d.ts +27 -0
  708. package/esm/Textarea/Textarea.js +199 -0
  709. package/esm/Textarea/index.d.ts +297 -0
  710. package/esm/Textarea/index.js +22 -0
  711. package/esm/Textarea/interface.d.ts +1 -0
  712. package/esm/Textarea/interface.js +1 -0
  713. package/esm/Textarea/props.d.ts +76 -0
  714. package/esm/Textarea/props.js +1 -0
  715. package/esm/Tooltip/Container.d.ts +3 -0
  716. package/esm/Tooltip/Container.js +179 -0
  717. package/esm/Tooltip/Props.d.ts +83 -0
  718. package/esm/Tooltip/Props.js +1 -0
  719. package/esm/Tooltip/events.d.ts +5 -0
  720. package/esm/Tooltip/events.js +96 -0
  721. package/esm/Tooltip/index.d.ts +3 -0
  722. package/esm/Tooltip/index.js +5 -0
  723. package/esm/Tooltip/interface.d.ts +1 -0
  724. package/esm/Tooltip/interface.js +1 -0
  725. package/esm/Tooltip/styles/index.d.ts +2 -0
  726. package/esm/Tooltip/styles/index.js +4 -0
  727. package/esm/Tooltip/styles/tooltip.less +169 -0
  728. package/esm/Transfer/Card.d.ts +2 -0
  729. package/esm/Transfer/Card.js +247 -0
  730. package/esm/Transfer/Props.d.ts +175 -0
  731. package/esm/Transfer/Props.js +1 -0
  732. package/esm/Transfer/Transfer.d.ts +16 -0
  733. package/esm/Transfer/Transfer.js +192 -0
  734. package/esm/Transfer/btns.d.ts +13 -0
  735. package/esm/Transfer/btns.js +113 -0
  736. package/esm/Transfer/context.d.ts +4 -0
  737. package/esm/Transfer/context.js +2 -0
  738. package/esm/Transfer/filter.d.ts +7 -0
  739. package/esm/Transfer/filter.js +70 -0
  740. package/esm/Transfer/index.d.ts +2 -0
  741. package/esm/Transfer/index.js +10 -0
  742. package/esm/Transfer/interface.d.ts +1 -0
  743. package/esm/Transfer/interface.js +1 -0
  744. package/esm/Transfer/item.d.ts +4 -0
  745. package/esm/Transfer/item.js +71 -0
  746. package/esm/Transfer/select.d.ts +3 -0
  747. package/esm/Transfer/select.js +20 -0
  748. package/esm/Transfer/styles/index.d.ts +2 -0
  749. package/esm/Transfer/styles/index.js +4 -0
  750. package/esm/Transfer/styles/transfer.less +123 -0
  751. package/esm/Tree/Checkbox.d.ts +12 -0
  752. package/esm/Tree/Checkbox.js +76 -0
  753. package/esm/Tree/Content.d.ts +16 -0
  754. package/esm/Tree/Content.js +158 -0
  755. package/esm/Tree/List.d.ts +21 -0
  756. package/esm/Tree/List.js +107 -0
  757. package/esm/Tree/Node.d.ts +24 -0
  758. package/esm/Tree/Node.js +268 -0
  759. package/esm/Tree/Props.d.ts +291 -0
  760. package/esm/Tree/Props.js +1 -0
  761. package/esm/Tree/Root.d.ts +10 -0
  762. package/esm/Tree/Root.js +23 -0
  763. package/esm/Tree/Tree.d.ts +33 -0
  764. package/esm/Tree/Tree.js +344 -0
  765. package/esm/Tree/index.d.ts +7 -0
  766. package/esm/Tree/index.js +9 -0
  767. package/esm/Tree/interface.d.ts +1 -0
  768. package/esm/Tree/interface.js +1 -0
  769. package/esm/Tree/styles/index.d.ts +2 -0
  770. package/esm/Tree/styles/index.js +4 -0
  771. package/esm/Tree/styles/tree.less +263 -0
  772. package/esm/TreeSelect/Input.d.ts +22 -0
  773. package/esm/TreeSelect/Input.js +110 -0
  774. package/esm/TreeSelect/Props.d.ts +230 -0
  775. package/esm/TreeSelect/Props.js +1 -0
  776. package/esm/TreeSelect/Result.d.ts +31 -0
  777. package/esm/TreeSelect/Result.js +351 -0
  778. package/esm/TreeSelect/TreeSelect.d.ts +59 -0
  779. package/esm/TreeSelect/TreeSelect.js +464 -0
  780. package/esm/TreeSelect/datum.d.ts +37 -0
  781. package/esm/TreeSelect/datum.js +75 -0
  782. package/esm/TreeSelect/filter.d.ts +49 -0
  783. package/esm/TreeSelect/filter.js +157 -0
  784. package/esm/TreeSelect/index.d.ts +2 -0
  785. package/esm/TreeSelect/index.js +15 -0
  786. package/esm/TreeSelect/interface.d.ts +1 -0
  787. package/esm/TreeSelect/interface.js +1 -0
  788. package/esm/TreeSelect/styles/index.d.ts +2 -0
  789. package/esm/TreeSelect/styles/index.js +4 -0
  790. package/esm/TreeSelect/styles/treeSelect.less +618 -0
  791. package/esm/TreeSelect/tiled.d.ts +5 -0
  792. package/esm/TreeSelect/tiled.js +151 -0
  793. package/esm/Upload/Dragger.d.ts +10 -0
  794. package/esm/Upload/Dragger.js +66 -0
  795. package/esm/Upload/Drop.d.ts +26 -0
  796. package/esm/Upload/Drop.js +86 -0
  797. package/esm/Upload/File.d.ts +8 -0
  798. package/esm/Upload/File.js +64 -0
  799. package/esm/Upload/FileInput.d.ts +11 -0
  800. package/esm/Upload/FileInput.js +69 -0
  801. package/esm/Upload/Image.d.ts +22 -0
  802. package/esm/Upload/Image.js +184 -0
  803. package/esm/Upload/ImageFile.d.ts +8 -0
  804. package/esm/Upload/ImageFile.js +64 -0
  805. package/esm/Upload/ImageResult.d.ts +24 -0
  806. package/esm/Upload/ImageResult.js +162 -0
  807. package/esm/Upload/Progress.d.ts +22 -0
  808. package/esm/Upload/Progress.js +152 -0
  809. package/esm/Upload/Props.d.ts +548 -0
  810. package/esm/Upload/Props.js +1 -0
  811. package/esm/Upload/RemoveConfirm.d.ts +13 -0
  812. package/esm/Upload/RemoveConfirm.js +60 -0
  813. package/esm/Upload/Result.d.ts +17 -0
  814. package/esm/Upload/Result.js +86 -0
  815. package/esm/Upload/Upload.d.ts +59 -0
  816. package/esm/Upload/Upload.js +726 -0
  817. package/esm/Upload/accept.d.ts +61 -0
  818. package/esm/Upload/accept.js +35 -0
  819. package/esm/Upload/context.d.ts +3 -0
  820. package/esm/Upload/context.js +13 -0
  821. package/esm/Upload/index.d.ts +2 -0
  822. package/esm/Upload/index.js +16 -0
  823. package/esm/Upload/interface.d.ts +1 -0
  824. package/esm/Upload/interface.js +1 -0
  825. package/esm/Upload/request.d.ts +5 -0
  826. package/esm/Upload/request.js +71 -0
  827. package/esm/Upload/styles/index.d.ts +2 -0
  828. package/esm/Upload/styles/index.js +4 -0
  829. package/esm/Upload/styles/upload.less +539 -0
  830. package/esm/component.d.ts +116 -0
  831. package/esm/component.js +63 -0
  832. package/esm/config.d.ts +21 -0
  833. package/esm/config.js +42 -0
  834. package/esm/context/index.d.ts +3 -0
  835. package/esm/context/index.js +4 -0
  836. package/esm/hoc/Props.d.ts +96 -0
  837. package/esm/hoc/Props.js +1 -0
  838. package/esm/hoc/coin.d.ts +5 -0
  839. package/esm/hoc/coin.js +122 -0
  840. package/esm/hoc/config.d.ts +31 -0
  841. package/esm/hoc/config.js +38 -0
  842. package/esm/hoc/delay.d.ts +2 -0
  843. package/esm/hoc/delay.js +118 -0
  844. package/esm/hoc/draggable.d.ts +2 -0
  845. package/esm/hoc/draggable.js +105 -0
  846. package/esm/hoc/hidable.d.ts +20 -0
  847. package/esm/hoc/hidable.js +156 -0
  848. package/esm/hoc/inputBorder.d.ts +2 -0
  849. package/esm/hoc/inputBorder.js +139 -0
  850. package/esm/hoc/moveable.d.ts +2 -0
  851. package/esm/hoc/moveable.js +143 -0
  852. package/esm/hoc/pagable.d.ts +46 -0
  853. package/esm/hoc/pagable.js +81 -0
  854. package/esm/hoc/resizable.d.ts +57 -0
  855. package/esm/hoc/resizable.js +151 -0
  856. package/esm/hoc/styles/hidable.less +60 -0
  857. package/esm/hoc/styles/index.d.ts +4 -0
  858. package/esm/hoc/styles/index.js +8 -0
  859. package/esm/hoc/styles/moveable.less +10 -0
  860. package/esm/hoc/styles/resizable.less +43 -0
  861. package/esm/icons/Caret.d.ts +31 -0
  862. package/esm/icons/Caret.js +15 -0
  863. package/esm/icons/Props.d.ts +1 -0
  864. package/esm/icons/Props.js +1 -0
  865. package/esm/icons/index.d.ts +26 -0
  866. package/esm/icons/index.js +58 -0
  867. package/esm/index.d.ts +58 -0
  868. package/esm/index.js +58 -0
  869. package/esm/locale/Props.d.ts +2 -0
  870. package/esm/locale/Props.js +1 -0
  871. package/esm/locale/en_US.d.ts +45 -0
  872. package/esm/locale/en_US.js +44 -0
  873. package/esm/locale/index.d.ts +4 -0
  874. package/esm/locale/index.js +19 -0
  875. package/esm/locale/zh-CN.d.ts +45 -0
  876. package/esm/locale/zh-CN.js +44 -0
  877. package/esm/styles/expose.d.ts +1 -0
  878. package/esm/styles/expose.js +3 -0
  879. package/esm/styles/expose.less +491 -0
  880. package/esm/styles/index.d.ts +1 -0
  881. package/esm/styles/index.js +1 -0
  882. package/esm/styles/mixins/alerts.less +44 -0
  883. package/esm/styles/mixins/animation.less +2 -0
  884. package/esm/styles/mixins/background-variant.less +10 -0
  885. package/esm/styles/mixins/border-radius.less +18 -0
  886. package/esm/styles/mixins/breadcrumbs.less +12 -0
  887. package/esm/styles/mixins/buttons.less +434 -0
  888. package/esm/styles/mixins/caret.less +120 -0
  889. package/esm/styles/mixins/center-block.less +7 -0
  890. package/esm/styles/mixins/clearfix.less +23 -0
  891. package/esm/styles/mixins/close.less +35 -0
  892. package/esm/styles/mixins/forms.less +88 -0
  893. package/esm/styles/mixins/gradients.less +138 -0
  894. package/esm/styles/mixins/grid-framework.less +97 -0
  895. package/esm/styles/mixins/grid.less +122 -0
  896. package/esm/styles/mixins/hide-text.less +21 -0
  897. package/esm/styles/mixins/image.less +25 -0
  898. package/esm/styles/mixins/input-title.less +66 -0
  899. package/esm/styles/mixins/labels.less +12 -0
  900. package/esm/styles/mixins/list-group.less +31 -0
  901. package/esm/styles/mixins/menu-selected.less +36 -0
  902. package/esm/styles/mixins/nav-divider.less +10 -0
  903. package/esm/styles/mixins/nav-vertical-align.less +9 -0
  904. package/esm/styles/mixins/opacity.less +9 -0
  905. package/esm/styles/mixins/pagination.less +26 -0
  906. package/esm/styles/mixins/panels.less +26 -0
  907. package/esm/styles/mixins/progress-bar.less +10 -0
  908. package/esm/styles/mixins/reset-filter.less +8 -0
  909. package/esm/styles/mixins/reset-text.less +18 -0
  910. package/esm/styles/mixins/resize.less +6 -0
  911. package/esm/styles/mixins/responsive-visibility.less +24 -0
  912. package/esm/styles/mixins/size.less +10 -0
  913. package/esm/styles/mixins/tab-focus.less +10 -0
  914. package/esm/styles/mixins/table-row.less +28 -0
  915. package/esm/styles/mixins/tag.less +7 -0
  916. package/esm/styles/mixins/text-emphasis.less +10 -0
  917. package/esm/styles/mixins/text-overflow.less +8 -0
  918. package/esm/styles/mixins/vendor-prefixes.less +229 -0
  919. package/esm/styles/normalize.less +580 -0
  920. package/esm/styles/themes/antd.less +296 -0
  921. package/esm/styles/themes/antd2.less +25 -0
  922. package/esm/styles/themes/base.less +899 -0
  923. package/esm/styles/themes/bootstrap.less +290 -0
  924. package/esm/styles/themes/cssvar.less +735 -0
  925. package/esm/styles/themes/default.less +183 -0
  926. package/esm/styles/themes/shineout.less +806 -0
  927. package/esm/styles/themes/vars-inject.less +6 -0
  928. package/esm/styles/variables.less +54 -0
  929. package/esm/utils/accept.d.ts +3 -0
  930. package/esm/utils/accept.js +24 -0
  931. package/esm/utils/classname.d.ts +12 -0
  932. package/esm/utils/classname.js +34 -0
  933. package/esm/utils/cleanProps.d.ts +10 -0
  934. package/esm/utils/cleanProps.js +15 -0
  935. package/esm/utils/clone.d.ts +3 -0
  936. package/esm/utils/clone.js +38 -0
  937. package/esm/utils/color.d.ts +21 -0
  938. package/esm/utils/color.js +458 -0
  939. package/esm/utils/compose.d.ts +1 -0
  940. package/esm/utils/compose.js +96 -0
  941. package/esm/utils/css-accessors.d.ts +10 -0
  942. package/esm/utils/css-accessors.js +119 -0
  943. package/esm/utils/curry.d.ts +24 -0
  944. package/esm/utils/curry.js +23 -0
  945. package/esm/utils/dom/detect.d.ts +12 -0
  946. package/esm/utils/dom/detect.js +50 -0
  947. package/esm/utils/dom/document.d.ts +11 -0
  948. package/esm/utils/dom/document.js +43 -0
  949. package/esm/utils/dom/element.d.ts +37 -0
  950. package/esm/utils/dom/element.js +262 -0
  951. package/esm/utils/dom/getDataset.d.ts +4 -0
  952. package/esm/utils/dom/getDataset.js +10 -0
  953. package/esm/utils/dom/isDOMElement.d.ts +6 -0
  954. package/esm/utils/dom/isDOMElement.js +3 -0
  955. package/esm/utils/dom/normalizeWheel.d.ts +14 -0
  956. package/esm/utils/dom/normalizeWheel.js +67 -0
  957. package/esm/utils/dom/popContainer.d.ts +2 -0
  958. package/esm/utils/dom/popContainer.js +17 -0
  959. package/esm/utils/dom/popover.d.ts +9 -0
  960. package/esm/utils/dom/popover.js +96 -0
  961. package/esm/utils/dom/ready.d.ts +1 -0
  962. package/esm/utils/dom/ready.js +6 -0
  963. package/esm/utils/dom/scrollBehavior.d.ts +1 -0
  964. package/esm/utils/dom/scrollBehavior.js +27 -0
  965. package/esm/utils/dom/translate.d.ts +2 -0
  966. package/esm/utils/dom/translate.js +30 -0
  967. package/esm/utils/errors.d.ts +9 -0
  968. package/esm/utils/errors.js +62 -0
  969. package/esm/utils/expose.d.ts +18 -0
  970. package/esm/utils/expose.js +125 -0
  971. package/esm/utils/flat.d.ts +25 -0
  972. package/esm/utils/flat.js +166 -0
  973. package/esm/utils/func.d.ts +25 -0
  974. package/esm/utils/func.js +72 -0
  975. package/esm/utils/hash.d.ts +1 -0
  976. package/esm/utils/hash.js +36 -0
  977. package/esm/utils/index.d.ts +24 -0
  978. package/esm/utils/index.js +24 -0
  979. package/esm/utils/is.d.ts +28 -0
  980. package/esm/utils/is.js +111 -0
  981. package/esm/utils/lazyload.d.ts +13 -0
  982. package/esm/utils/lazyload.js +136 -0
  983. package/esm/utils/notification.d.ts +15 -0
  984. package/esm/utils/notification.js +43 -0
  985. package/esm/utils/numbers.d.ts +7 -0
  986. package/esm/utils/numbers.js +97 -0
  987. package/esm/utils/objects.d.ts +19 -0
  988. package/esm/utils/objects.js +296 -0
  989. package/esm/utils/proptypes.d.ts +14 -0
  990. package/esm/utils/proptypes.js +30 -0
  991. package/esm/utils/shallowEqual.d.ts +7 -0
  992. package/esm/utils/shallowEqual.js +79 -0
  993. package/esm/utils/strings.d.ts +7 -0
  994. package/esm/utils/strings.js +86 -0
  995. package/esm/utils/transform.d.ts +2 -0
  996. package/esm/utils/transform.js +30 -0
  997. package/esm/utils/tree.d.ts +14 -0
  998. package/esm/utils/tree.js +93 -0
  999. package/esm/utils/uid.d.ts +5 -0
  1000. package/esm/utils/uid.js +23 -0
  1001. package/esm/utils/validate/index.d.ts +4 -0
  1002. package/esm/utils/validate/index.js +109 -0
  1003. package/esm/utils/validate/isJson.d.ts +1 -0
  1004. package/esm/utils/validate/isJson.js +30 -0
  1005. package/esm/utils/validate/nullable.d.ts +2 -0
  1006. package/esm/utils/validate/nullable.js +10 -0
  1007. package/esm/utils/validate/range.d.ts +6 -0
  1008. package/esm/utils/validate/range.js +29 -0
  1009. package/esm/utils/validate/rangeLength.d.ts +6 -0
  1010. package/esm/utils/validate/rangeLength.js +22 -0
  1011. package/esm/utils/validate/regExp.d.ts +4 -0
  1012. package/esm/utils/validate/regExp.js +21 -0
  1013. package/esm/utils/validate/required.d.ts +5 -0
  1014. package/esm/utils/validate/required.js +18 -0
  1015. package/esm/utils/validate/type.d.ts +14 -0
  1016. package/esm/utils/validate/type.js +93 -0
  1017. package/esm/utils/vars-inject.d.ts +1070 -0
  1018. package/esm/utils/vars-inject.js +4272 -0
  1019. package/esm/utils/zoom.d.ts +2 -0
  1020. package/esm/utils/zoom.js +33 -0
  1021. package/lib/DatePicker/Month.js +0 -6
  1022. package/lib/DatePicker/Quarter.js +1 -7
  1023. package/lib/DatePicker/Year.js +0 -6
  1024. package/lib/index.d.ts +1 -1
  1025. package/lib/index.js +1 -1
  1026. package/package.json +1 -1
@@ -0,0 +1,791 @@
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 _defineProperty from "@babel/runtime/helpers/defineProperty";
5
+ import React from 'react';
6
+ import { SUBMIT_TOPIC } from '../Datum/types';
7
+ import { PureComponent } from '../component';
8
+ import { getUidStr } from '../utils/uid';
9
+ import { selectClass } from './styles';
10
+ import Result from './Result';
11
+ import OptionList from './OptionList';
12
+ import OptionTree from './OptionTree';
13
+ import BoxList from './BoxList';
14
+ import { isObject } from '../utils/is';
15
+ import { docSize } from '../utils/dom/document';
16
+ import { getParent } from '../utils/dom/element';
17
+ import { isRTL } from '../config';
18
+ import absoluteList from '../AnimationList/AbsoluteList';
19
+ import { getDirectionClass } from '../utils/classname';
20
+ var WrappedOptionList = absoluteList(OptionList);
21
+ var WrappedBoxList = absoluteList(BoxList);
22
+ var WrappedOptionTree = absoluteList(OptionTree);
23
+
24
+ var isResult = function isResult(el, selector) {
25
+ return getParent(el, selector || "." + selectClass('result'));
26
+ };
27
+
28
+ var DefaultValue = {
29
+ clearable: false,
30
+ data: [],
31
+ height: 250,
32
+ itemsInView: 10,
33
+ lineHeight: 34,
34
+ loading: false,
35
+ multiple: false,
36
+ renderItem: function renderItem(e) {
37
+ return e;
38
+ },
39
+ text: {},
40
+ compressed: false,
41
+ trim: true,
42
+ autoAdapt: false,
43
+ showArrow: true,
44
+ focusSelected: true
45
+ };
46
+
47
+ var Select =
48
+ /*#__PURE__*/
49
+ function (_PureComponent) {
50
+ _inheritsLoose(Select, _PureComponent);
51
+
52
+ function Select(props) {
53
+ var _this;
54
+
55
+ _this = _PureComponent.call(this, props) || this;
56
+
57
+ _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "blurHandler", void 0);
58
+
59
+ _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "renderPending", void 0);
60
+
61
+ _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "optionList", void 0);
62
+
63
+ _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "selectId", void 0);
64
+
65
+ _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "mouseDown", void 0);
66
+
67
+ _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "lastResult", void 0);
68
+
69
+ _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "focusInput", void 0);
70
+
71
+ _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "inputReset", void 0);
72
+
73
+ _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "element", void 0);
74
+
75
+ _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "blured", void 0);
76
+
77
+ _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "inputBlurTimer", void 0);
78
+
79
+ _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "lastChangeIsOptionClick", void 0);
80
+
81
+ _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleRemove", void 0);
82
+
83
+ _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "inputLocked", void 0);
84
+
85
+ _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "keyLocked", void 0);
86
+
87
+ _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "cancelDeleteLockTimer", void 0);
88
+
89
+ _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "deleteLock", void 0);
90
+
91
+ _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "forceChange", function () {
92
+ if (_this.inputBlurTimer && _this.blurHandler) {
93
+ clearTimeout(_this.inputBlurTimer);
94
+
95
+ _this.blurHandler();
96
+ }
97
+ });
98
+
99
+ _this.state = {
100
+ control: 'mouse',
101
+ focus: false,
102
+ position: 'drop-down'
103
+ };
104
+ _this.bindElement = _this.bindElement.bind(_assertThisInitialized(_assertThisInitialized(_this)));
105
+ _this.bindOptionFunc = _this.bindOptionFunc.bind(_assertThisInitialized(_assertThisInitialized(_this)));
106
+ _this.setInputReset = _this.setInputReset.bind(_assertThisInitialized(_assertThisInitialized(_this)));
107
+ _this.shouldFocus = _this.shouldFocus.bind(_assertThisInitialized(_assertThisInitialized(_this)));
108
+ _this.handleClick = _this.handleClick.bind(_assertThisInitialized(_assertThisInitialized(_this)));
109
+ _this.handleFocus = _this.handleFocus.bind(_assertThisInitialized(_assertThisInitialized(_this)));
110
+ _this.handleClear = _this.handleClear.bind(_assertThisInitialized(_assertThisInitialized(_this)));
111
+ _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
112
+ _this.handleRemove = _this.handleChange.bind(_assertThisInitialized(_assertThisInitialized(_this)), false);
113
+ _this.handleKeyDown = _this.handleKeyDown.bind(_assertThisInitialized(_assertThisInitialized(_this)));
114
+ _this.handleKeyUp = _this.handleKeyUp.bind(_assertThisInitialized(_assertThisInitialized(_this)));
115
+ _this.handleInputFocus = _this.handleInputFocus.bind(_assertThisInitialized(_assertThisInitialized(_this)));
116
+ _this.handleControlChange = _this.handleControlChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
117
+ _this.handleClickAway = _this.handleClickAway.bind(_assertThisInitialized(_assertThisInitialized(_this)));
118
+ _this.handleInputBlur = _this.handleInputBlur.bind(_assertThisInitialized(_assertThisInitialized(_this)));
119
+ _this.bindFocusInputFunc = _this.bindFocusInputFunc.bind(_assertThisInitialized(_assertThisInitialized(_this)));
120
+ _this.handleFilter = _this.handleFilter.bind(_assertThisInitialized(_assertThisInitialized(_this))); // this.toInputTriggerCollapse = this.toInputTriggerCollapse.bind(this)
121
+
122
+ _this.renderItem = _this.renderItem.bind(_assertThisInitialized(_assertThisInitialized(_this)));
123
+ _this.renderResult = _this.renderResult.bind(_assertThisInitialized(_assertThisInitialized(_this)));
124
+ _this.handleDelete = _this.handleDelete.bind(_assertThisInitialized(_assertThisInitialized(_this))); // option list not render till first focused
125
+
126
+ _this.renderPending = true;
127
+ _this.optionList = {};
128
+ _this.selectId = "select_" + getUidStr(); // this.closeByResult = false
129
+
130
+ _this.mouseDown = false;
131
+ _this.lastResult = undefined;
132
+ _this.focusInput = null;
133
+ return _this;
134
+ }
135
+
136
+ var _proto = Select.prototype;
137
+
138
+ _proto.componentDidMount = function componentDidMount() {
139
+ _PureComponent.prototype.componentDidMount.call(this);
140
+
141
+ var formDatum = this.props.formDatum;
142
+
143
+ if (formDatum) {
144
+ formDatum.subscribe(SUBMIT_TOPIC, this.forceChange);
145
+ }
146
+ };
147
+
148
+ _proto.componentDidUpdate = function componentDidUpdate(_prevProps, prevState) {
149
+ var onFilter = this.props.onFilter; // clear filter
150
+
151
+ if (prevState.focus !== this.state.focus && !this.state.focus && onFilter) {
152
+ setTimeout(function () {
153
+ onFilter('', 'blur');
154
+ }, 400);
155
+ }
156
+ };
157
+
158
+ _proto.componentWillUnmount = function componentWillUnmount() {
159
+ _PureComponent.prototype.componentWillUnmount.call(this);
160
+
161
+ var formDatum = this.props.formDatum;
162
+
163
+ if (formDatum) {
164
+ formDatum.unsubscribe(SUBMIT_TOPIC, this.forceChange);
165
+ }
166
+
167
+ this.clearClickAway();
168
+ };
169
+
170
+ _proto.getDisabledStatus = function getDisabledStatus() {
171
+ if (typeof this.props.disabled === 'function') {
172
+ return this.props.disabled;
173
+ }
174
+
175
+ return !!this.props.disabled;
176
+ };
177
+
178
+ _proto.getFocusSelected = function getFocusSelected() {
179
+ var _this$props = this.props,
180
+ reFocus = _this$props.reFocus,
181
+ focusSelected = _this$props.focusSelected;
182
+ if (reFocus) return false;
183
+ return focusSelected;
184
+ };
185
+
186
+ _proto.setInputReset = function setInputReset(fn) {
187
+ this.inputReset = fn;
188
+ };
189
+
190
+ // @ts-ignore
191
+ _proto.isDescendent = function isDescendent(el, id) {
192
+ // const stay = el.classList.contains(selectClass('input')) || el.classList.contains(selectClass('item'))
193
+ // if (stay) this.optionsHold = true
194
+ // if (el.classList.contains(selectClass('result')) && this.optionsHold === null && this.state.focus) {
195
+ // this.closeByResult = true
196
+ // this.optionsHold = false
197
+ // }
198
+ if (el.getAttribute('data-id') === id) return true; // in label
199
+
200
+ if (el.tagName === 'LABEL' && el.htmlFor && el.contains(this.element) && el.contains(document.getElementById(el.htmlFor))) {
201
+ return true;
202
+ }
203
+
204
+ if (!el.parentElement) return false;
205
+ return this.isDescendent(el.parentElement, id);
206
+ };
207
+
208
+ _proto.bindOptionFunc = function bindOptionFunc(name, fn) {
209
+ this.optionList[name] = fn;
210
+ };
211
+
212
+ _proto.bindFocusInputFunc = function bindFocusInputFunc(fn) {
213
+ this.focusInput = fn;
214
+ };
215
+
216
+ _proto.bindElement = function bindElement(el) {
217
+ this.element = el;
218
+ };
219
+
220
+ _proto.bindClickAway = function bindClickAway() {
221
+ document.addEventListener('click', this.handleClickAway, true);
222
+ };
223
+
224
+ _proto.clearClickAway = function clearClickAway() {
225
+ document.removeEventListener('click', this.handleClickAway, true);
226
+ };
227
+
228
+ _proto.handleClickAway = function handleClickAway(e) {
229
+ var desc = this.isDescendent(e.target, this.selectId);
230
+
231
+ if (!desc) {
232
+ if (!getParent(e.target, "[data-id=" + this.selectId + "]")) {
233
+ this.blured = true;
234
+ this.props.onBlur();
235
+ this.clearClickAway();
236
+ if (this.element) this.element.blur();
237
+ }
238
+
239
+ this.handleState(false, null);
240
+ }
241
+ };
242
+
243
+ _proto.handleClick = function handleClick(e) {
244
+ var _this$props2 = this.props,
245
+ onCreate = _this$props2.onCreate,
246
+ onFilter = _this$props2.onFilter;
247
+ var plain = !onCreate && !onFilter;
248
+ var target = e.target;
249
+
250
+ if (this.state.focus) {
251
+ if (plain && isResult(target) || isResult(target, "." + selectClass('caret'))) {
252
+ this.handleState(false, e);
253
+ return;
254
+ }
255
+ }
256
+
257
+ this.handleState(true, e);
258
+ };
259
+
260
+ _proto.handleState = function handleState(focus, e) {
261
+ if (this.getDisabledStatus() === true) return;
262
+ if (focus === this.state.focus) return; // click close icon
263
+
264
+ if (focus && e && e.target.classList.contains(selectClass('close'))) return;
265
+ var _this$props3 = this.props,
266
+ _this$props3$height = _this$props3.height,
267
+ height = _this$props3$height === void 0 ? DefaultValue.height : _this$props3$height,
268
+ onCollapse = _this$props3.onCollapse;
269
+ var position = this.props.position;
270
+ var windowHeight = docSize.height;
271
+ var bottom = height + this.element.getBoundingClientRect().bottom;
272
+ if (bottom > windowHeight && !position) position = 'drop-up';
273
+ if (onCollapse) onCollapse(focus);
274
+ this.setState({
275
+ focus: focus,
276
+ position: position || 'drop-down'
277
+ });
278
+
279
+ if (focus) {
280
+ this.blured = false;
281
+ this.renderPending = false;
282
+ }
283
+ };
284
+
285
+ _proto.handleControlChange = function handleControlChange(control) {
286
+ if (control !== this.state.control) this.setState({
287
+ control: control
288
+ });
289
+ };
290
+
291
+ _proto.handleChange = function handleChange(_isActive, data, fromInput) {
292
+ var _this2 = this;
293
+
294
+ console.log('fromInput', fromInput);
295
+ var _this$props4 = this.props,
296
+ datum = _this$props4.datum,
297
+ multiple = _this$props4.multiple,
298
+ emptyAfterSelect = _this$props4.emptyAfterSelect,
299
+ onFilter = _this$props4.onFilter,
300
+ filterText = _this$props4.filterText,
301
+ onCreate = _this$props4.onCreate,
302
+ reFocus = _this$props4.reFocus;
303
+ if (this.getDisabledStatus() === true) return; // if click option, ignore blur event
304
+
305
+ if (this.inputBlurTimer) {
306
+ this.lastChangeIsOptionClick = true;
307
+ clearTimeout(this.inputBlurTimer);
308
+ this.inputBlurTimer = null;
309
+ }
310
+
311
+ var unMatchedData = data;
312
+
313
+ if (multiple) {
314
+ if (isObject(unMatchedData) && unMatchedData.IS_NOT_MATCHED_VALUE) {
315
+ datum.remove(unMatchedData);
316
+ } else {
317
+ var checked = !datum.check(data);
318
+
319
+ if (checked) {
320
+ datum.add(data);
321
+ } else {
322
+ if (fromInput === true) return;
323
+ datum.remove(data);
324
+ }
325
+
326
+ if (this.inputReset) this.inputReset();
327
+ }
328
+ } else {
329
+ datum.set(data);
330
+ if (!reFocus) this.handleState(false); // let the element focus
331
+
332
+ setTimeout(function () {
333
+ if (reFocus && _this2.focusInput) _this2.focusInput(true);
334
+ if (onCreate && _this2.blured) return;
335
+ if (_this2.element) _this2.element.focus();
336
+ }, 10);
337
+ }
338
+
339
+ if (emptyAfterSelect && onFilter && filterText) onFilter('', 'select');
340
+ } // toInputTriggerCollapse(text) {
341
+ // const { onCreate, datum } = this.props
342
+ // if (onCreate) {
343
+ // datum.set(onCreate(text))
344
+ // }
345
+ // this.handleState(true)
346
+ // }
347
+ ;
348
+
349
+ _proto.shouldFocus = function shouldFocus(el) {
350
+ if (el.getAttribute('data-id') === this.selectId) return true;
351
+ if (getParent(el, "." + selectClass('result'))) return true;
352
+ return false;
353
+ };
354
+
355
+ _proto.handleFocus = function handleFocus(e) {
356
+ if (!this.shouldFocus(e.target)) return;
357
+ this.props.onFocus(e);
358
+ this.bindClickAway();
359
+ };
360
+
361
+ _proto.handleInputFocus = function handleInputFocus() {
362
+ var _this$props5 = this.props,
363
+ hideCreateOption = _this$props5.hideCreateOption,
364
+ onCreate = _this$props5.onCreate;
365
+ this.inputLocked = true;
366
+ var noHover = onCreate && hideCreateOption;
367
+
368
+ if (this.props.inputable && this.state.control === 'keyboard' && !noHover) {
369
+ if (this.optionList.handleHover) this.optionList.handleHover(0, true);
370
+ }
371
+ };
372
+
373
+ _proto.handleInputBlur = function handleInputBlur(text) {
374
+ var _this3 = this;
375
+
376
+ var _this$props6 = this.props,
377
+ onFilter = _this$props6.onFilter,
378
+ onCreate = _this$props6.onCreate,
379
+ multiple = _this$props6.multiple,
380
+ filterSingleSelect = _this$props6.filterSingleSelect,
381
+ data = _this$props6.data;
382
+
383
+ if (onFilter && text && filterSingleSelect && data.length === 1) {
384
+ this.handleChange(false, data[0], false);
385
+ return;
386
+ }
387
+
388
+ if (!onCreate) return;
389
+ if (multiple && !text) return;
390
+ if (this.lastChangeIsOptionClick) return;
391
+
392
+ this.blurHandler = function () {
393
+ var retData = onCreate(text);
394
+
395
+ _this3.handleChange(false, retData, true);
396
+ }; // if click option, ignore input blur
397
+
398
+
399
+ this.inputBlurTimer = setTimeout(function () {
400
+ if (_this3.blurHandler) _this3.blurHandler();
401
+ _this3.blurHandler = null;
402
+ }, 200);
403
+ };
404
+
405
+ _proto.handleClear = function handleClear() {
406
+ this.props.datum.setValue([]);
407
+ this.element.focus();
408
+
409
+ if (this.state.focus === false) {
410
+ this.forceUpdate();
411
+ } else {
412
+ this.handleState(false);
413
+ }
414
+ };
415
+
416
+ _proto.handleHideOption = function handleHideOption() {
417
+ var _this$props7 = this.props,
418
+ datum = _this$props7.datum,
419
+ innerData = _this$props7.innerData;
420
+ var checked = datum.check(innerData);
421
+
422
+ if (checked) {
423
+ if (this.inputReset) this.inputReset();
424
+ return;
425
+ }
426
+
427
+ this.handleChange(true, innerData);
428
+ };
429
+
430
+ _proto.handleEnter = function handleEnter() {
431
+ var _this$props8 = this.props,
432
+ onCreate = _this$props8.onCreate,
433
+ hideCreateOption = _this$props8.hideCreateOption;
434
+ var hoverIndex = this.optionList.getIndex && this.optionList.getIndex();
435
+
436
+ if (onCreate && hideCreateOption && hoverIndex === -1) {
437
+ this.handleHideOption();
438
+ return;
439
+ }
440
+
441
+ var data = this.props.data[hoverIndex];
442
+
443
+ if (!data) {
444
+ // eslint-disable-next-line prefer-destructuring
445
+ data = this.props.data[0];
446
+ }
447
+
448
+ if (data && !data[this.props.groupKey]) {
449
+ var checked = !this.props.datum.check(data);
450
+ this.handleChange(checked, data);
451
+ if (this.optionList.handleHover) this.optionList.handleHover(hoverIndex);
452
+ }
453
+ };
454
+
455
+ _proto.handleKeyDown = function handleKeyDown(e) {
456
+ var onEnterExpand = this.props.onEnterExpand;
457
+ this.keyLocked = true; // just for enter to open the list
458
+
459
+ if ((e.keyCode === 13 || e.keyCode === 40) && !this.state.focus) {
460
+ e.preventDefault();
461
+
462
+ if (typeof onEnterExpand === 'function') {
463
+ var canOpen = onEnterExpand(e);
464
+ if (canOpen === false) return;
465
+ }
466
+
467
+ this.handleClick(e);
468
+ return;
469
+ } // fot close the list
470
+
471
+
472
+ if (e.keyCode === 9) {
473
+ this.props.onBlur(e); // e.preventDefault()
474
+
475
+ if (this.state.focus) this.handleState(false, e);else this.clearClickAway();
476
+ return;
477
+ } // no focus no event
478
+
479
+
480
+ if (!this.state.focus) return;
481
+ this.handleControlChange('keyboard');
482
+
483
+ switch (e.keyCode) {
484
+ case 38:
485
+ if (this.optionList.hoverMove) this.optionList.hoverMove(-1);
486
+ e.preventDefault();
487
+ break;
488
+
489
+ case 40:
490
+ if (this.optionList.hoverMove) this.optionList.hoverMove(1);
491
+ e.preventDefault();
492
+ break;
493
+
494
+ case 13:
495
+ this.handleEnter();
496
+ e.preventDefault();
497
+ e.stopPropagation();
498
+ break;
499
+
500
+ case 8:
501
+ this.handleDelete(e);
502
+ break;
503
+
504
+ default:
505
+ this.lastChangeIsOptionClick = false;
506
+ }
507
+ };
508
+
509
+ _proto.handleKeyUp = function handleKeyUp() {
510
+ this.keyLocked = false;
511
+ };
512
+
513
+ _proto.cancelDeleteLock = function cancelDeleteLock() {
514
+ var _this4 = this;
515
+
516
+ if (this.cancelDeleteLockTimer) {
517
+ clearTimeout(this.cancelDeleteLockTimer);
518
+ }
519
+
520
+ this.cancelDeleteLockTimer = setTimeout(function () {
521
+ _this4.deleteLock = false;
522
+ }, 400);
523
+ };
524
+
525
+ _proto.handleDelete = function handleDelete(e) {
526
+ var _this$props9 = this.props,
527
+ multiple = _this$props9.multiple,
528
+ inputText = _this$props9.inputText,
529
+ datum = _this$props9.datum,
530
+ value = _this$props9.value,
531
+ data = _this$props9.data;
532
+ if (!multiple) return;
533
+
534
+ if (inputText) {
535
+ this.deleteLock = true;
536
+ } else if (this.deleteLock) {
537
+ this.cancelDeleteLock();
538
+ }
539
+
540
+ if (inputText || this.deleteLock) return;
541
+ if (!value || Array.isArray(value) && !value.length) return;
542
+ e.preventDefault();
543
+ var raws = Array.isArray(value) ? value : [value];
544
+ var values = [].concat(raws);
545
+ var last = values.pop();
546
+ datum.handleChange(values, datum.getDataByValue(data, last), false);
547
+ };
548
+
549
+ _proto.handleFilter = function handleFilter() {
550
+ var _this$props10 = this.props,
551
+ onFilter = _this$props10.onFilter,
552
+ onCreate = _this$props10.onCreate,
553
+ hideCreateOption = _this$props10.hideCreateOption;
554
+ var hideCreate = onCreate && hideCreateOption;
555
+
556
+ if (hideCreate) {
557
+ if (this.optionList.handleHover) this.optionList.handleHover(-1, true);
558
+ }
559
+
560
+ if (onFilter) {
561
+ onFilter.apply(void 0, arguments);
562
+ }
563
+ };
564
+
565
+ _proto.renderItem = function renderItem(data, index) {
566
+ var renderItem = this.props.renderItem;
567
+ return typeof renderItem === 'function' ? renderItem(data, index) : data[renderItem];
568
+ };
569
+
570
+ _proto.renderResult = function renderResult(data, index) {
571
+ var renderResult = this.props.renderResult;
572
+ if (!renderResult) return this.renderItem(data, index);
573
+ return typeof renderResult === 'function' ? renderResult(data, index) : data[renderResult];
574
+ }
575
+ /**
576
+ * custom options list header
577
+ */
578
+ ;
579
+
580
+ _proto.renderCustomHeader = function renderCustomHeader() {
581
+ var header = this.props.header;
582
+ if (React.isValidElement(header)) return React.createElement("div", {
583
+ className: selectClass('custom-header')
584
+ }, header);
585
+ return null;
586
+ };
587
+
588
+ _proto.renderTree = function renderTree() {
589
+ var _this$state = this.state,
590
+ focus = _this$state.focus,
591
+ position = _this$state.position;
592
+ var optionWidth = this.props.optionWidth;
593
+ var props = {
594
+ treeData: this.props.treeData,
595
+ expanded: this.props.expanded,
596
+ onExpand: this.props.onExpand,
597
+ loader: this.props.loader,
598
+ defaultExpanded: this.props.defaultExpanded,
599
+ defaultExpandAll: this.props.defaultExpandAll,
600
+ datum: this.props.datum,
601
+ keygen: this.props.keygen,
602
+ multiple: this.props.multiple,
603
+ text: this.props.text,
604
+ height: this.props.height,
605
+ loading: this.props.loading,
606
+ onFilter: this.props.onFilter,
607
+ filterText: this.props.filterText,
608
+ absolute: this.props.absolute,
609
+ zIndex: this.props.zIndex,
610
+ childrenKey: this.props.childrenKey,
611
+ expandIcons: this.props.expandIcons,
612
+ emptyText: this.props.emptyText,
613
+ renderOptionList: this.props.renderOptionList,
614
+ renderItem: this.renderItem
615
+ };
616
+ var style = optionWidth ? {
617
+ width: optionWidth
618
+ } : {};
619
+ return React.createElement(WrappedOptionTree, _extends({
620
+ onChange: this.handleChange,
621
+ parentElement: this.element,
622
+ position: position,
623
+ rootClass: selectClass(position, isRTL() && 'rtl'),
624
+ selectId: this.selectId,
625
+ focus: focus,
626
+ renderPending: this.renderPending,
627
+ fixed: "min"
628
+ }, props, {
629
+ style: style,
630
+ customHeader: this.renderCustomHeader()
631
+ }));
632
+ };
633
+
634
+ _proto.renderList = function renderList() {
635
+ var _this$state2 = this.state,
636
+ focus = _this$state2.focus,
637
+ control = _this$state2.control,
638
+ position = _this$state2.position;
639
+ var _this$props11 = this.props,
640
+ autoAdapt = _this$props11.autoAdapt,
641
+ value = _this$props11.value,
642
+ optionWidth = _this$props11.optionWidth;
643
+ var props = {
644
+ data: this.props.data,
645
+ datum: this.props.datum,
646
+ keygen: this.props.keygen,
647
+ multiple: this.props.multiple,
648
+ columns: this.props.columns,
649
+ columnWidth: this.props.columnWidth,
650
+ columnsTitle: this.props.columnsTitle,
651
+ text: this.props.text,
652
+ itemsInView: this.props.itemsInView || DefaultValue.itemsInView,
653
+ absolute: this.props.absolute,
654
+ lineHeight: this.props.lineHeight || DefaultValue.lineHeight,
655
+ height: this.props.height || DefaultValue.height,
656
+ loading: this.props.loading,
657
+ onFilter: this.props.onFilter,
658
+ filterText: this.props.filterText,
659
+ zIndex: this.props.zIndex,
660
+ groupKey: this.props.groupKey,
661
+ hideCreateOption: this.props.hideCreateOption,
662
+ emptyText: this.props.emptyText,
663
+ renderOptionList: this.props.renderOptionList
664
+ };
665
+ var style = optionWidth ? {
666
+ width: optionWidth
667
+ } : {};
668
+
669
+ if (typeof props.columns === 'number' && props.columns >= 1 || props.columns === -1) {
670
+ return React.createElement(WrappedBoxList, _extends({}, props, {
671
+ columns: props.columns,
672
+ style: style,
673
+ rootClass: selectClass(position, isRTL() && 'rtl'),
674
+ autoClass: selectClass(autoAdapt && 'auto-adapt'),
675
+ bindOptionFunc: this.bindOptionFunc,
676
+ renderPending: this.renderPending,
677
+ focus: focus,
678
+ selectId: this.selectId,
679
+ onChange: this.handleChange,
680
+ renderItem: this.renderItem,
681
+ parentElement: this.element,
682
+ position: position,
683
+ fixed: autoAdapt ? 'min' : true,
684
+ value: value,
685
+ customHeader: this.renderCustomHeader()
686
+ }));
687
+ }
688
+
689
+ return React.createElement(WrappedOptionList, _extends({}, props, {
690
+ style: style,
691
+ rootClass: selectClass(position, isRTL() && 'rtl'),
692
+ autoClass: selectClass(autoAdapt && 'auto-adapt'),
693
+ bindOptionFunc: this.bindOptionFunc,
694
+ renderPending: this.renderPending,
695
+ focus: focus,
696
+ control: control,
697
+ selectId: this.selectId,
698
+ onControlChange: this.handleControlChange,
699
+ onChange: this.handleChange,
700
+ renderItem: this.renderItem,
701
+ parentElement: this.element,
702
+ position: position,
703
+ fixed: autoAdapt ? 'min' : true,
704
+ value: value,
705
+ customHeader: this.renderCustomHeader()
706
+ }));
707
+ };
708
+
709
+ _proto.renderOptions = function renderOptions() {
710
+ var treeData = this.props.treeData;
711
+ if (treeData) return this.renderTree();
712
+ return this.renderList();
713
+ };
714
+
715
+ _proto.render = function render() {
716
+ var _this$props12 = this.props,
717
+ placeholder = _this$props12.placeholder,
718
+ multiple = _this$props12.multiple,
719
+ clearable = _this$props12.clearable,
720
+ size = _this$props12.size,
721
+ datum = _this$props12.datum,
722
+ filterText = _this$props12.filterText,
723
+ onCreate = _this$props12.onCreate,
724
+ result = _this$props12.result,
725
+ compressed = _this$props12.compressed,
726
+ compressedBound = _this$props12.compressedBound,
727
+ trim = _this$props12.trim,
728
+ renderUnmatched = _this$props12.renderUnmatched,
729
+ showArrow = _this$props12.showArrow,
730
+ compressedClassName = _this$props12.compressedClassName,
731
+ resultClassName = _this$props12.resultClassName,
732
+ maxLength = _this$props12.maxLength,
733
+ innerTitle = _this$props12.innerTitle,
734
+ keygen = _this$props12.keygen,
735
+ convertBr = _this$props12.convertBr,
736
+ _this$props12$data = _this$props12.data,
737
+ data = _this$props12$data === void 0 ? DefaultValue.data : _this$props12$data,
738
+ onFilter = _this$props12.onFilter,
739
+ treeData = _this$props12.treeData;
740
+ var disabled = this.getDisabledStatus();
741
+ var className = selectClass('inner', size, this.state.focus && 'focus', this.state.position, multiple && 'multiple', disabled === true && getDirectionClass('disabled'), !trim && 'pre');
742
+ return React.createElement("div", {
743
+ // eslint-disable-next-line
744
+ tabIndex: disabled === true ? -1 : 0,
745
+ ref: this.bindElement,
746
+ className: className,
747
+ "data-id": this.selectId,
748
+ onFocus: this.handleFocus,
749
+ onClick: this.handleClick,
750
+ onKeyDown: this.handleKeyDown,
751
+ onKeyUp: this.handleKeyUp
752
+ }, React.createElement(Result, {
753
+ trim: trim,
754
+ maxLength: maxLength,
755
+ filterText: filterText,
756
+ onClear: clearable ? this.handleClear : undefined,
757
+ onCreate: onCreate,
758
+ onRemove: this.handleRemove,
759
+ onFilter: onFilter ? this.handleFilter : undefined,
760
+ datum: datum,
761
+ disabled: disabled,
762
+ focus: this.state.focus,
763
+ result: result,
764
+ multiple: multiple,
765
+ placeholder: placeholder,
766
+ renderResult: this.renderResult,
767
+ renderUnmatched: renderUnmatched,
768
+ onInputBlur: this.handleInputBlur,
769
+ onInputFocus: this.handleInputFocus,
770
+ setInputReset: this.setInputReset,
771
+ bindFocusInputFunc: this.bindFocusInputFunc // collapse={this.toInputTriggerCollapse}
772
+ ,
773
+ compressed: compressed,
774
+ compressedBound: compressedBound,
775
+ showArrow: showArrow,
776
+ focusSelected: this.getFocusSelected(),
777
+ compressedClassName: compressedClassName,
778
+ resultClassName: resultClassName,
779
+ innerTitle: innerTitle,
780
+ keygen: keygen,
781
+ data: treeData || data,
782
+ convertBr: convertBr
783
+ }), this.renderOptions());
784
+ };
785
+
786
+ return Select;
787
+ }(PureComponent);
788
+
789
+ _defineProperty(Select, "defaultProps", DefaultValue);
790
+
791
+ export default Select;