@douyinfe/semi-foundation 2.19.0-alpha.8 → 2.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (350) hide show
  1. package/anchor/anchor.scss +1 -8
  2. package/anchor/rtl.scss +0 -1
  3. package/anchor/variables.scss +1 -0
  4. package/calendar/eventUtil.ts +8 -7
  5. package/calendar/foundation.ts +14 -14
  6. package/datePicker/monthsGridFoundation.ts +10 -3
  7. package/dropdown/foundation.ts +2 -1
  8. package/dropdown/menuFoundation.ts +2 -1
  9. package/getBabelConfig.js +0 -12
  10. package/lib/cjs/anchor/anchor.css +1 -10
  11. package/lib/cjs/anchor/anchor.scss +1 -8
  12. package/lib/cjs/anchor/constants.js +1 -4
  13. package/lib/cjs/anchor/foundation.js +5 -12
  14. package/lib/cjs/anchor/linkFoundation.js +4 -9
  15. package/lib/cjs/anchor/rtl.scss +0 -1
  16. package/lib/cjs/anchor/variables.scss +1 -0
  17. package/lib/cjs/autoComplete/constants.js +1 -4
  18. package/lib/cjs/autoComplete/foundation.js +14 -33
  19. package/lib/cjs/autoComplete/optionFoundation.js +4 -9
  20. package/lib/cjs/avatar/constants.js +1 -4
  21. package/lib/cjs/avatar/foundation.js +4 -9
  22. package/lib/cjs/backtop/constants.js +1 -4
  23. package/lib/cjs/backtop/foundation.js +4 -9
  24. package/lib/cjs/badge/constants.js +1 -4
  25. package/lib/cjs/banner/constants.js +1 -4
  26. package/lib/cjs/banner/foundation.js +4 -9
  27. package/lib/cjs/base/constants.js +2 -6
  28. package/lib/cjs/base/env.js +1 -4
  29. package/lib/cjs/base/foundation.js +5 -10
  30. package/lib/cjs/base/index.js +3 -6
  31. package/lib/cjs/breadcrumb/constants.js +1 -4
  32. package/lib/cjs/breadcrumb/foundation.js +6 -13
  33. package/lib/cjs/breadcrumb/itemFoundation.js +4 -9
  34. package/lib/cjs/button/constants.js +1 -4
  35. package/lib/cjs/calendar/constants.js +1 -4
  36. package/lib/cjs/calendar/eventUtil.d.ts +3 -3
  37. package/lib/cjs/calendar/eventUtil.js +28 -53
  38. package/lib/cjs/calendar/foundation.js +63 -85
  39. package/lib/cjs/card/constants.js +1 -4
  40. package/lib/cjs/carousel/constants.js +1 -4
  41. package/lib/cjs/carousel/foundation.js +5 -12
  42. package/lib/cjs/cascader/constants.js +1 -4
  43. package/lib/cjs/cascader/foundation.js +55 -100
  44. package/lib/cjs/cascader/util.js +9 -30
  45. package/lib/cjs/checkbox/checkboxFoundation.js +6 -13
  46. package/lib/cjs/checkbox/checkboxGroupFoundation.js +9 -18
  47. package/lib/cjs/checkbox/constants.js +1 -4
  48. package/lib/cjs/collapse/constants.js +1 -4
  49. package/lib/cjs/collapse/foundation.js +9 -20
  50. package/lib/cjs/collapsible/constants.js +1 -4
  51. package/lib/cjs/datePicker/_utils/formatter.js +3 -12
  52. package/lib/cjs/datePicker/_utils/getDayOfWeek.js +1 -4
  53. package/lib/cjs/datePicker/_utils/getDefaultFormatToken.js +1 -4
  54. package/lib/cjs/datePicker/_utils/getDefaultPickerDate.js +5 -10
  55. package/lib/cjs/datePicker/_utils/getFullDateOffset.js +3 -6
  56. package/lib/cjs/datePicker/_utils/getInsetInputFormatToken.js +2 -11
  57. package/lib/cjs/datePicker/_utils/getInsetInputValueFromInsetInputStr.js +1 -4
  58. package/lib/cjs/datePicker/_utils/getMonthTable.js +2 -11
  59. package/lib/cjs/datePicker/_utils/getMonthsInYear.js +3 -16
  60. package/lib/cjs/datePicker/_utils/getYears.js +2 -9
  61. package/lib/cjs/datePicker/_utils/index.js +16 -30
  62. package/lib/cjs/datePicker/_utils/isAfter.js +3 -6
  63. package/lib/cjs/datePicker/_utils/isBefore.js +3 -6
  64. package/lib/cjs/datePicker/_utils/isBetween.js +3 -6
  65. package/lib/cjs/datePicker/_utils/isDate.js +1 -4
  66. package/lib/cjs/datePicker/_utils/isSameDay.js +3 -6
  67. package/lib/cjs/datePicker/_utils/isTimestamp.js +3 -6
  68. package/lib/cjs/datePicker/_utils/isUnixTimestamp.js +3 -6
  69. package/lib/cjs/datePicker/_utils/isValidDate.js +1 -4
  70. package/lib/cjs/datePicker/_utils/isWithinInterval.js +3 -6
  71. package/lib/cjs/datePicker/_utils/parser.js +1 -4
  72. package/lib/cjs/datePicker/constants.js +3 -10
  73. package/lib/cjs/datePicker/foundation.js +42 -85
  74. package/lib/cjs/datePicker/inputFoundation.js +7 -20
  75. package/lib/cjs/datePicker/monthFoundation.js +5 -12
  76. package/lib/cjs/datePicker/monthsGridFoundation.js +47 -68
  77. package/lib/cjs/datePicker/yearAndMonthFoundation.js +4 -9
  78. package/lib/cjs/descriptions/constants.js +1 -4
  79. package/lib/cjs/divider/constants.js +1 -4
  80. package/lib/cjs/dropdown/constants.js +1 -4
  81. package/lib/cjs/dropdown/foundation.js +7 -15
  82. package/lib/cjs/dropdown/menuFoundation.js +11 -31
  83. package/lib/cjs/empty/constants.js +1 -4
  84. package/lib/cjs/form/constants.js +1 -4
  85. package/lib/cjs/form/foundation.js +64 -104
  86. package/lib/cjs/form/interface.js +1 -3
  87. package/lib/cjs/form/utils.js +14 -29
  88. package/lib/cjs/grid/constants.js +1 -4
  89. package/lib/cjs/icons/constants.js +1 -4
  90. package/lib/cjs/input/constants.js +1 -4
  91. package/lib/cjs/input/foundation.js +7 -18
  92. package/lib/cjs/input/textareaFoundation.js +6 -13
  93. package/lib/cjs/input/util/calculateNodeHeight.js +3 -17
  94. package/lib/cjs/input/util/getSizingData.js +5 -10
  95. package/lib/cjs/inputNumber/constants.js +4 -11
  96. package/lib/cjs/inputNumber/foundation.js +11 -30
  97. package/lib/cjs/layout/constants.js +1 -4
  98. package/lib/cjs/list/constants.js +1 -4
  99. package/lib/cjs/modal/constants.js +1 -4
  100. package/lib/cjs/modal/modalContentFoundation.js +4 -9
  101. package/lib/cjs/modal/modalFoundation.js +4 -9
  102. package/lib/cjs/navigation/NavItem.js +6 -21
  103. package/lib/cjs/navigation/constants.js +1 -4
  104. package/lib/cjs/navigation/foundation.js +22 -37
  105. package/lib/cjs/navigation/itemFoundation.js +4 -9
  106. package/lib/cjs/navigation/subNavFoundation.js +10 -21
  107. package/lib/cjs/notification/constants.js +1 -4
  108. package/lib/cjs/notification/notificationFoundation.js +5 -12
  109. package/lib/cjs/notification/notificationListFoundation.js +4 -9
  110. package/lib/cjs/overflowList/constants.js +3 -10
  111. package/lib/cjs/overflowList/foundation.js +12 -29
  112. package/lib/cjs/pagination/constants.js +1 -4
  113. package/lib/cjs/pagination/foundation.js +18 -37
  114. package/lib/cjs/popconfirm/constants.js +1 -4
  115. package/lib/cjs/popconfirm/popconfirm.css +1 -7
  116. package/lib/cjs/popconfirm/popconfirm.scss +1 -11
  117. package/lib/cjs/popconfirm/popconfirmFoundation.js +3 -6
  118. package/lib/cjs/popover/constants.js +2 -9
  119. package/lib/cjs/progress/constants.js +1 -4
  120. package/lib/cjs/radio/constants.js +1 -4
  121. package/lib/cjs/radio/radioFoundation.js +3 -6
  122. package/lib/cjs/radio/radioGroupFoundation.js +6 -11
  123. package/lib/cjs/radio/radioInnerFoundation.js +5 -10
  124. package/lib/cjs/rating/constants.js +1 -4
  125. package/lib/cjs/rating/foundation.js +7 -20
  126. package/lib/cjs/scrollList/constants.js +1 -4
  127. package/lib/cjs/scrollList/foundation.js +3 -6
  128. package/lib/cjs/scrollList/itemFoundation.js +8 -21
  129. package/lib/cjs/scrollList/scrollTo.js +1 -4
  130. package/lib/cjs/select/constants.js +1 -4
  131. package/lib/cjs/select/foundation.js +56 -98
  132. package/lib/cjs/select/optionFoundation.js +4 -9
  133. package/lib/cjs/sideSheet/constants.js +1 -4
  134. package/lib/cjs/sideSheet/sideSheet.css +1 -0
  135. package/lib/cjs/sideSheet/sideSheet.scss +1 -0
  136. package/lib/cjs/sideSheet/sideSheetFoundation.js +6 -15
  137. package/lib/cjs/skeleton/constants.js +1 -4
  138. package/lib/cjs/slider/constants.js +1 -4
  139. package/lib/cjs/slider/foundation.js +32 -33
  140. package/lib/cjs/space/constants.js +1 -4
  141. package/lib/cjs/spin/constants.js +1 -4
  142. package/lib/cjs/spin/foundation.js +5 -12
  143. package/lib/cjs/steps/constants.js +1 -4
  144. package/lib/cjs/switch/constants.js +1 -4
  145. package/lib/cjs/switch/foundation.js +4 -9
  146. package/lib/cjs/table/bodyFoundation.js +9 -22
  147. package/lib/cjs/table/cellFoundation.js +3 -6
  148. package/lib/cjs/table/constants.js +1 -4
  149. package/lib/cjs/table/foundation.js +76 -117
  150. package/lib/cjs/table/mixin.scss +2 -2
  151. package/lib/cjs/table/rtl.scss +8 -8
  152. package/lib/cjs/table/table.scss +16 -16
  153. package/lib/cjs/table/tableRowFoundation.js +3 -6
  154. package/lib/cjs/table/tableSelectionCellFoundation.js +3 -6
  155. package/lib/cjs/table/utils.js +42 -71
  156. package/lib/cjs/table/variables.scss +0 -3
  157. package/lib/cjs/tabs/constants.js +1 -4
  158. package/lib/cjs/tabs/foundation.js +8 -23
  159. package/lib/cjs/tag/constants.js +1 -4
  160. package/lib/cjs/tagInput/constants.js +1 -4
  161. package/lib/cjs/tagInput/foundation.js +12 -31
  162. package/lib/cjs/tagInput/utils/getSplitedArray.js +3 -6
  163. package/lib/cjs/timePicker/ComboxFoundation.js +10 -29
  164. package/lib/cjs/timePicker/constants.js +1 -4
  165. package/lib/cjs/timePicker/foundation.js +26 -45
  166. package/lib/cjs/timePicker/inputFoundation.js +4 -9
  167. package/lib/cjs/timePicker/utils/index.js +7 -14
  168. package/lib/cjs/timePicker/utils/localeDate.js +2 -9
  169. package/lib/cjs/timeline/constants.js +1 -4
  170. package/lib/cjs/toast/constants.js +1 -4
  171. package/lib/cjs/toast/toastFoundation.js +5 -12
  172. package/lib/cjs/toast/toastListFoundation.js +5 -12
  173. package/lib/cjs/tooltip/constants.js +1 -4
  174. package/lib/cjs/tooltip/foundation.js +29 -56
  175. package/lib/cjs/transfer/constants.js +1 -4
  176. package/lib/cjs/transfer/foundation.js +24 -47
  177. package/lib/cjs/transfer/transferUtils.js +16 -45
  178. package/lib/cjs/tree/constants.js +1 -4
  179. package/lib/cjs/tree/foundation.js +41 -76
  180. package/lib/cjs/tree/tree.css +3 -0
  181. package/lib/cjs/tree/tree.scss +4 -0
  182. package/lib/cjs/tree/treeUtil.d.ts +1 -1
  183. package/lib/cjs/tree/treeUtil.js +60 -107
  184. package/lib/cjs/treeSelect/constants.js +1 -4
  185. package/lib/cjs/treeSelect/foundation.js +49 -82
  186. package/lib/cjs/typography/constants.js +1 -4
  187. package/lib/cjs/upload/constants.d.ts +1 -1
  188. package/lib/cjs/upload/constants.js +1 -4
  189. package/lib/cjs/upload/foundation.js +56 -112
  190. package/lib/cjs/upload/utils.js +13 -32
  191. package/lib/cjs/utils/Event.js +9 -23
  192. package/lib/cjs/utils/FocusHandle.js +6 -15
  193. package/lib/cjs/utils/Logger.js +1 -4
  194. package/lib/cjs/utils/Store.js +5 -20
  195. package/lib/cjs/utils/a11y.js +8 -13
  196. package/lib/cjs/utils/array.js +6 -15
  197. package/lib/cjs/utils/arrayMove.js +3 -12
  198. package/lib/cjs/utils/classnames.js +6 -15
  199. package/lib/cjs/utils/date-fns-extra.js +7 -18
  200. package/lib/cjs/utils/dom.js +5 -12
  201. package/lib/cjs/utils/function.js +1 -4
  202. package/lib/cjs/utils/getDataAttr.js +2 -13
  203. package/lib/cjs/utils/getHighlight.js +7 -22
  204. package/lib/cjs/utils/getMotionObjFromProps.js +4 -9
  205. package/lib/cjs/utils/index.js +5 -15
  206. package/lib/cjs/utils/isBothNaN.js +1 -4
  207. package/lib/cjs/utils/isElement.js +1 -4
  208. package/lib/cjs/utils/isEnterPress.js +3 -6
  209. package/lib/cjs/utils/isEscPress.js +3 -6
  210. package/lib/cjs/utils/isNullOrUndefined.js +1 -4
  211. package/lib/cjs/utils/isNumber.js +1 -4
  212. package/lib/cjs/utils/isObject.js +1 -4
  213. package/lib/cjs/utils/isPromise.js +3 -6
  214. package/lib/cjs/utils/isString.js +1 -4
  215. package/lib/cjs/utils/keyCode.js +1 -4
  216. package/lib/cjs/utils/log.js +3 -6
  217. package/lib/cjs/utils/number.js +1 -4
  218. package/lib/cjs/utils/object.js +10 -27
  219. package/lib/cjs/utils/set.js +4 -9
  220. package/lib/cjs/utils/shallowEqualObjects.js +3 -10
  221. package/lib/cjs/utils/touchPolyfill.js +5 -12
  222. package/lib/cjs/utils/type.js +1 -3
  223. package/lib/cjs/utils/uuid.js +3 -14
  224. package/lib/cjs/utils/warning.js +1 -4
  225. package/lib/es/anchor/anchor.css +1 -10
  226. package/lib/es/anchor/anchor.scss +1 -8
  227. package/lib/es/anchor/foundation.js +2 -4
  228. package/lib/es/anchor/linkFoundation.js +1 -2
  229. package/lib/es/anchor/rtl.scss +0 -1
  230. package/lib/es/anchor/variables.scss +1 -0
  231. package/lib/es/autoComplete/foundation.js +11 -26
  232. package/lib/es/autoComplete/optionFoundation.js +1 -2
  233. package/lib/es/avatar/foundation.js +1 -2
  234. package/lib/es/backtop/foundation.js +1 -2
  235. package/lib/es/banner/foundation.js +1 -2
  236. package/lib/es/base/foundation.js +2 -3
  237. package/lib/es/breadcrumb/foundation.js +3 -6
  238. package/lib/es/breadcrumb/itemFoundation.js +1 -2
  239. package/lib/es/calendar/eventUtil.d.ts +3 -3
  240. package/lib/es/calendar/eventUtil.js +27 -56
  241. package/lib/es/calendar/foundation.js +60 -90
  242. package/lib/es/carousel/foundation.js +2 -4
  243. package/lib/es/cascader/foundation.js +49 -94
  244. package/lib/es/cascader/util.js +6 -21
  245. package/lib/es/checkbox/checkboxFoundation.js +3 -6
  246. package/lib/es/checkbox/checkboxGroupFoundation.js +6 -9
  247. package/lib/es/collapse/foundation.js +6 -10
  248. package/lib/es/datePicker/_utils/formatter.js +2 -5
  249. package/lib/es/datePicker/_utils/getDefaultPickerDate.js +2 -3
  250. package/lib/es/datePicker/_utils/getInsetInputFormatToken.js +1 -4
  251. package/lib/es/datePicker/_utils/getMonthTable.js +1 -5
  252. package/lib/es/datePicker/_utils/getMonthsInYear.js +2 -9
  253. package/lib/es/datePicker/_utils/getYears.js +1 -3
  254. package/lib/es/datePicker/constants.js +2 -7
  255. package/lib/es/datePicker/foundation.js +39 -70
  256. package/lib/es/datePicker/inputFoundation.js +4 -11
  257. package/lib/es/datePicker/monthFoundation.js +2 -4
  258. package/lib/es/datePicker/monthsGridFoundation.js +40 -55
  259. package/lib/es/datePicker/yearAndMonthFoundation.js +1 -2
  260. package/lib/es/dropdown/foundation.js +4 -7
  261. package/lib/es/dropdown/menuFoundation.js +8 -21
  262. package/lib/es/form/foundation.js +59 -91
  263. package/lib/es/form/utils.js +11 -19
  264. package/lib/es/input/foundation.js +4 -9
  265. package/lib/es/input/textareaFoundation.js +3 -5
  266. package/lib/es/input/util/calculateNodeHeight.js +2 -10
  267. package/lib/es/input/util/getSizingData.js +2 -5
  268. package/lib/es/inputNumber/constants.js +3 -8
  269. package/lib/es/inputNumber/foundation.js +8 -18
  270. package/lib/es/modal/modalContentFoundation.js +1 -2
  271. package/lib/es/modal/modalFoundation.js +1 -2
  272. package/lib/es/navigation/NavItem.js +5 -11
  273. package/lib/es/navigation/foundation.js +19 -25
  274. package/lib/es/navigation/itemFoundation.js +1 -3
  275. package/lib/es/navigation/subNavFoundation.js +7 -13
  276. package/lib/es/notification/notificationFoundation.js +2 -4
  277. package/lib/es/notification/notificationListFoundation.js +1 -3
  278. package/lib/es/overflowList/constants.js +2 -3
  279. package/lib/es/overflowList/foundation.js +9 -23
  280. package/lib/es/pagination/foundation.js +15 -28
  281. package/lib/es/popconfirm/popconfirm.css +1 -7
  282. package/lib/es/popconfirm/popconfirm.scss +1 -11
  283. package/lib/es/popover/constants.js +1 -2
  284. package/lib/es/radio/radioGroupFoundation.js +3 -4
  285. package/lib/es/radio/radioInnerFoundation.js +2 -3
  286. package/lib/es/rating/foundation.js +4 -13
  287. package/lib/es/scrollList/itemFoundation.js +5 -13
  288. package/lib/es/select/foundation.js +50 -88
  289. package/lib/es/select/optionFoundation.js +1 -2
  290. package/lib/es/sideSheet/sideSheet.css +1 -0
  291. package/lib/es/sideSheet/sideSheet.scss +1 -0
  292. package/lib/es/sideSheet/sideSheetFoundation.js +3 -7
  293. package/lib/es/slider/foundation.js +29 -25
  294. package/lib/es/spin/foundation.js +2 -4
  295. package/lib/es/switch/foundation.js +1 -2
  296. package/lib/es/table/bodyFoundation.js +6 -11
  297. package/lib/es/table/foundation.js +67 -93
  298. package/lib/es/table/mixin.scss +2 -2
  299. package/lib/es/table/rtl.scss +8 -8
  300. package/lib/es/table/table.scss +16 -16
  301. package/lib/es/table/utils.js +33 -51
  302. package/lib/es/table/variables.scss +0 -3
  303. package/lib/es/tabs/foundation.js +5 -18
  304. package/lib/es/tagInput/foundation.js +9 -21
  305. package/lib/es/timePicker/ComboxFoundation.js +7 -16
  306. package/lib/es/timePicker/foundation.js +23 -37
  307. package/lib/es/timePicker/inputFoundation.js +1 -2
  308. package/lib/es/timePicker/utils/index.js +4 -6
  309. package/lib/es/timePicker/utils/localeDate.js +1 -2
  310. package/lib/es/toast/toastFoundation.js +2 -4
  311. package/lib/es/toast/toastListFoundation.js +2 -4
  312. package/lib/es/tooltip/foundation.js +26 -46
  313. package/lib/es/transfer/foundation.js +21 -43
  314. package/lib/es/transfer/transferUtils.js +13 -33
  315. package/lib/es/tree/foundation.js +38 -70
  316. package/lib/es/tree/tree.css +3 -0
  317. package/lib/es/tree/tree.scss +4 -0
  318. package/lib/es/tree/treeUtil.d.ts +1 -1
  319. package/lib/es/tree/treeUtil.js +57 -109
  320. package/lib/es/treeSelect/foundation.js +45 -73
  321. package/lib/es/upload/constants.d.ts +1 -1
  322. package/lib/es/upload/foundation.js +52 -118
  323. package/lib/es/upload/utils.js +12 -25
  324. package/lib/es/utils/Event.js +5 -12
  325. package/lib/es/utils/FocusHandle.js +3 -7
  326. package/lib/es/utils/Store.js +4 -12
  327. package/lib/es/utils/a11y.js +5 -6
  328. package/lib/es/utils/array.js +3 -5
  329. package/lib/es/utils/arrayMove.js +2 -6
  330. package/lib/es/utils/classnames.js +3 -6
  331. package/lib/es/utils/date-fns-extra.js +6 -14
  332. package/lib/es/utils/dom.js +1 -2
  333. package/lib/es/utils/getDataAttr.js +1 -5
  334. package/lib/es/utils/getHighlight.js +4 -14
  335. package/lib/es/utils/getMotionObjFromProps.js +1 -2
  336. package/lib/es/utils/object.js +7 -15
  337. package/lib/es/utils/set.js +1 -2
  338. package/lib/es/utils/shallowEqualObjects.js +2 -5
  339. package/lib/es/utils/touchPolyfill.js +2 -6
  340. package/lib/es/utils/uuid.js +2 -7
  341. package/package.json +2 -4
  342. package/popconfirm/popconfirm.scss +1 -11
  343. package/select/foundation.ts +2 -2
  344. package/sideSheet/sideSheet.scss +1 -0
  345. package/slider/foundation.ts +15 -8
  346. package/table/mixin.scss +2 -2
  347. package/table/rtl.scss +8 -8
  348. package/table/table.scss +16 -16
  349. package/table/variables.scss +0 -3
  350. package/tree/tree.scss +4 -0
@@ -1,21 +1,10 @@
1
1
  "use strict";
2
2
 
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
4
-
5
- var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
6
-
7
- _Object$defineProperty(exports, "__esModule", {
3
+ Object.defineProperty(exports, "__esModule", {
8
4
  value: true
9
5
  });
10
-
11
6
  exports.default = void 0;
12
7
 
13
- var _assign = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/assign"));
14
-
15
- var _isArray = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/array/is-array"));
16
-
17
- var _includes = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/includes"));
18
-
19
8
  var _foundation = _interopRequireDefault(require("../base/foundation"));
20
9
 
21
10
  var _touchPolyfill = _interopRequireDefault(require("../utils/touchPolyfill"));
@@ -24,6 +13,8 @@ var _warning = _interopRequireDefault(require("../utils/warning"));
24
13
 
25
14
  var _a11y = require("../utils/a11y");
26
15
 
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
27
18
  /* eslint-disable no-param-reassign */
28
19
 
29
20
  /* eslint-disable max-len */
@@ -33,7 +24,7 @@ class SliderFoundation extends _foundation.default {
33
24
  constructor(adapter) {
34
25
  var _this;
35
26
 
36
- super((0, _assign.default)((0, _assign.default)({}, SliderFoundation.defaultAdapter), adapter));
27
+ super(Object.assign(Object.assign({}, SliderFoundation.defaultAdapter), adapter));
37
28
  _this = this;
38
29
 
39
30
  /**
@@ -127,7 +118,7 @@ class SliderFoundation extends _foundation.default {
127
118
 
128
119
 
129
120
  this.valueFormatIsCorrect = value => {
130
- if ((0, _isArray.default)(value)) {
121
+ if (Array.isArray(value)) {
131
122
  return typeof value[0] === 'number' && typeof value[0] === 'number';
132
123
  } else {
133
124
  return typeof value === 'number';
@@ -382,19 +373,29 @@ class SliderFoundation extends _foundation.default {
382
373
 
383
374
 
384
375
  this.outPutValue = inputValue => {
385
- const step = this._adapter.getProp('step');
376
+ const checkHowManyDecimals = num => {
377
+ var _a, _b;
386
378
 
387
- let transWay = Math.round;
379
+ const reg = /^\d+(\.\d+)?$/;
388
380
 
389
- if (step < 1 && step >= 0.1) {
390
- transWay = value => Math.round(value * 10) / 10;
391
- } else if (step < 0.1 && step >= 0.01) {
392
- transWay = value => Math.round(value * 100) / 100;
393
- } else if (step < 0.01 && step >= 0.001) {
394
- transWay = value => Math.round(value * 1000) / 1000;
395
- }
381
+ if (reg.test(String(num))) {
382
+ return (_b = (_a = num.toString().split('.')[1]) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
383
+ }
384
+
385
+ return 0;
386
+ };
387
+
388
+ const step = this._adapter.getProp('step');
389
+
390
+ const transWay = (() => {
391
+ const decimals = checkHowManyDecimals(step);
392
+ const multipler = Math.pow(10, decimals);
393
+ return value => {
394
+ return Math.round(value * multipler) / multipler;
395
+ };
396
+ })();
396
397
 
397
- if ((0, _isArray.default)(inputValue)) {
398
+ if (Array.isArray(inputValue)) {
398
399
  return [transWay(inputValue[0]), transWay(inputValue[1])];
399
400
  } else {
400
401
  return transWay(inputValue);
@@ -433,11 +434,11 @@ class SliderFoundation extends _foundation.default {
433
434
  const disableState = {};
434
435
 
435
436
  if (this.valueFormatIsCorrect(nextValue)) {
436
- if ((0, _isArray.default)(prevValue) && (0, _isArray.default)(nextValue)) {
437
+ if (Array.isArray(prevValue) && Array.isArray(nextValue)) {
437
438
  nextValue = [nextValue[0] < min ? min : nextValue[0], nextValue[1] > max ? max : nextValue[1] // Math.round(nextValue[1])
438
439
  ]; // this._adapter.notifyChange(this.outPutValue(nextValue));
439
440
 
440
- resultState = (0, _assign.default)(disableState, {
441
+ resultState = Object.assign(disableState, {
441
442
  currentValue: nextValue
442
443
  });
443
444
  }
@@ -450,7 +451,7 @@ class SliderFoundation extends _foundation.default {
450
451
  } // this._adapter.notifyChange(this.outPutValue(nextValue));
451
452
 
452
453
 
453
- resultState = (0, _assign.default)(disableState, {
454
+ resultState = Object.assign(disableState, {
454
455
  currentValue: nextValue
455
456
  });
456
457
  }
@@ -719,8 +720,6 @@ class SliderFoundation extends _foundation.default {
719
720
  };
720
721
 
721
722
  this.handleKeyDown = (event, handler) => {
722
- var _context;
723
-
724
723
  const {
725
724
  min,
726
725
  max,
@@ -763,10 +762,10 @@ class SliderFoundation extends _foundation.default {
763
762
  break;
764
763
  }
765
764
 
766
- if ((0, _includes.default)(_context = ["ArrowLeft", "ArrowDown", "ArrowRight", "ArrowUp", "PageUp", "PageDown", "Home", "End"]).call(_context, event.key)) {
765
+ if (["ArrowLeft", "ArrowDown", "ArrowRight", "ArrowUp", "PageUp", "PageDown", "Home", "End"].includes(event.key)) {
767
766
  let update = true;
768
767
 
769
- if ((0, _isArray.default)(currentValue)) {
768
+ if (Array.isArray(currentValue)) {
770
769
  update = !(currentValue[0] === outputValue[0] && currentValue[1] === outputValue[1]);
771
770
  } else {
772
771
  update = currentValue !== outputValue;
@@ -881,7 +880,7 @@ class SliderFoundation extends _foundation.default {
881
880
  const currentPos = this.transValueToPos(currentValue);
882
881
  let isMin = true;
883
882
 
884
- if ((0, _isArray.default)(currentPos)) {
883
+ if (Array.isArray(currentPos)) {
885
884
  // Slide on both sides
886
885
  if (pagePos > currentPos[1] || Math.abs(pagePos - currentPos[0]) > Math.abs(pagePos - currentPos[1])) {
887
886
  isMin = false;
@@ -918,7 +917,7 @@ class SliderFoundation extends _foundation.default {
918
917
  } = this.getStates();
919
918
  let checked;
920
919
 
921
- if ((0, _isArray.default)(currentValue)) {
920
+ if (Array.isArray(currentValue)) {
922
921
  checked = [];
923
922
  checked[0] = this._checkValidity(currentValue[0], min, max);
924
923
  checked[1] = this._checkValidity(currentValue[1], min, max);
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
 
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
4
-
5
- _Object$defineProperty(exports, "__esModule", {
3
+ Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
-
9
6
  exports.strings = exports.cssClasses = void 0;
10
7
 
11
8
  var _constants = require("../base/constants");
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
 
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
4
-
5
- _Object$defineProperty(exports, "__esModule", {
3
+ Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
-
9
6
  exports.strings = exports.numbers = exports.cssClasses = void 0;
10
7
 
11
8
  var _constants = require("../base/constants");
@@ -1,24 +1,17 @@
1
1
  "use strict";
2
2
 
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
4
-
5
- var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
6
-
7
- _Object$defineProperty(exports, "__esModule", {
3
+ Object.defineProperty(exports, "__esModule", {
8
4
  value: true
9
5
  });
10
-
11
6
  exports.default = void 0;
12
7
 
13
- var _assign = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/assign"));
14
-
15
- var _setTimeout2 = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/set-timeout"));
16
-
17
8
  var _foundation = _interopRequireDefault(require("../base/foundation"));
18
9
 
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+
19
12
  class SpinFoundation extends _foundation.default {
20
13
  constructor(adapter) {
21
- super((0, _assign.default)((0, _assign.default)({}, SpinFoundation.spinDefaultAdapter), adapter));
14
+ super(Object.assign(Object.assign({}, SpinFoundation.spinDefaultAdapter), adapter));
22
15
  }
23
16
 
24
17
  static get spinDefaultAdapter() {
@@ -40,7 +33,7 @@ class SpinFoundation extends _foundation.default {
40
33
 
41
34
  if (delay) {
42
35
  const self = this;
43
- this._timer = (0, _setTimeout2.default)(() => {
36
+ this._timer = setTimeout(() => {
44
37
  self._adapter.setState({
45
38
  loading: propsSpinning,
46
39
  delay: 0
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
 
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
4
-
5
- _Object$defineProperty(exports, "__esModule", {
3
+ Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
-
9
6
  exports.stepsClasses = void 0;
10
7
 
11
8
  var _constants = require("../base/constants");
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
 
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
4
-
5
- _Object$defineProperty(exports, "__esModule", {
3
+ Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
-
9
6
  exports.strings = exports.cssClasses = void 0;
10
7
 
11
8
  var _constants = require("../base/constants");
@@ -1,24 +1,19 @@
1
1
  "use strict";
2
2
 
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
4
-
5
- var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
6
-
7
- _Object$defineProperty(exports, "__esModule", {
3
+ Object.defineProperty(exports, "__esModule", {
8
4
  value: true
9
5
  });
10
-
11
6
  exports.default = void 0;
12
7
 
13
- var _assign = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/assign"));
14
-
15
8
  var _foundation = _interopRequireDefault(require("../base/foundation"));
16
9
 
17
10
  var _warning = _interopRequireDefault(require("../utils/warning"));
18
11
 
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
19
14
  class SwitchFoundation extends _foundation.default {
20
15
  constructor(adapter) {
21
- super((0, _assign.default)({}, adapter));
16
+ super(Object.assign({}, adapter));
22
17
 
23
18
  this.handleFocusVisible = event => {
24
19
  const {
@@ -1,25 +1,10 @@
1
1
  "use strict";
2
2
 
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
4
-
5
- var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
6
-
7
- _Object$defineProperty(exports, "__esModule", {
3
+ Object.defineProperty(exports, "__esModule", {
8
4
  value: true
9
5
  });
10
-
11
6
  exports.default = void 0;
12
7
 
13
- var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/map"));
14
-
15
- var _forEach = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/for-each"));
16
-
17
- var _findIndex = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/find-index"));
18
-
19
- var _slice = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/slice"));
20
-
21
- var _isArray = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/array/is-array"));
22
-
23
8
  var _isObject2 = _interopRequireDefault(require("lodash/isObject"));
24
9
 
25
10
  var _findLastIndex2 = _interopRequireDefault(require("lodash/findLastIndex"));
@@ -36,6 +21,8 @@ var _constants = require("./constants");
36
21
 
37
22
  var _utils = require("./utils");
38
23
 
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
+
39
26
  class TableBodyFoundation extends _foundation.default {
40
27
  init() {
41
28
  this.initVirtualizedData();
@@ -60,7 +47,7 @@ class TableBodyFoundation extends _foundation.default {
60
47
  if (!(0, _isObject2.default)(newExpandRelatedProps) && !newExpandRelatedProps) {
61
48
  const expandRelatedProps = _constants.strings.EXPAND_RELATED_PROPS; // eslint-disable-next-line no-param-reassign
62
49
 
63
- newExpandRelatedProps = (0, _map.default)(expandRelatedProps).call(expandRelatedProps, key => (0, _get2.default)(props, key, undefined));
50
+ newExpandRelatedProps = expandRelatedProps.map(key => (0, _get2.default)(props, key, undefined));
64
51
  }
65
52
 
66
53
  this._adapter.setCachedExpandRelatedProps(newExpandRelatedProps);
@@ -81,8 +68,8 @@ class TableBodyFoundation extends _foundation.default {
81
68
  } = this.getProps();
82
69
 
83
70
  if (level === 0 && (0, _isMap2.default)(groups)) {
84
- (0, _forEach.default)(groups).call(groups, (set, key) => {
85
- const firstIndex = (0, _findIndex.default)(dataSource).call(dataSource, record => set.has((0, _utils.getRecordKey)(record, rowKey)));
71
+ groups.forEach((set, key) => {
72
+ const firstIndex = dataSource.findIndex(record => set.has((0, _utils.getRecordKey)(record, rowKey)));
86
73
 
87
74
  if (firstIndex > -1) {
88
75
  const lastIndex = (0, _findLastIndex2.default)(dataSource, record => set.has((0, _utils.getRecordKey)(record, rowKey)));
@@ -97,12 +84,12 @@ class TableBodyFoundation extends _foundation.default {
97
84
  });
98
85
 
99
86
  if (expanded) {
100
- flattenData.push(...this.flattenData((0, _slice.default)(dataSource).call(dataSource, firstIndex, lastIndex + 1), level + 1, [...parentKeys], [...childrenKeys]));
87
+ flattenData.push(...this.flattenData(dataSource.slice(firstIndex, lastIndex + 1), level + 1, [...parentKeys], [...childrenKeys]));
101
88
  }
102
89
  }
103
90
  });
104
91
  } else {
105
- (0, _forEach.default)(dataSource).call(dataSource, (record, index) => {
92
+ dataSource.forEach((record, index) => {
106
93
  const recordKey = (0, _utils.getRecordKey)(record, rowKey);
107
94
  const children = (0, _utils.getRecordChildren)(record, childrenRecordName);
108
95
 
@@ -121,7 +108,7 @@ class TableBodyFoundation extends _foundation.default {
121
108
  const extras = [];
122
109
 
123
110
  if ((0, _includes2.default)(expandedRowKeys, recordKey)) {
124
- if ((0, _isArray.default)(children) && children.length) {
111
+ if (Array.isArray(children) && children.length) {
125
112
  extras.push(...this.flattenData(children, level + 1, [...item.parentKeys], [...item.childrenKeys]));
126
113
  } else if (expandedRowRender) {
127
114
  extras.push({
@@ -1,17 +1,14 @@
1
1
  "use strict";
2
2
 
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
4
-
5
- var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
6
-
7
- _Object$defineProperty(exports, "__esModule", {
3
+ Object.defineProperty(exports, "__esModule", {
8
4
  value: true
9
5
  });
10
-
11
6
  exports.default = void 0;
12
7
 
13
8
  var _foundation = _interopRequireDefault(require("../base/foundation"));
14
9
 
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+
15
12
  class TableCellFoundation extends _foundation.default {
16
13
  handleClick(e) {
17
14
  this._adapter.notifyClick(this.getProp('record'), e);
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
 
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
4
-
5
- _Object$defineProperty(exports, "__esModule", {
3
+ Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
-
9
6
  exports.strings = exports.numbers = exports.cssClasses = void 0;
10
7
 
11
8
  var _constants = require("../base/constants");