tntd 2.8.36 → 2.8.39

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 (563) hide show
  1. package/es/_util/context.js +1 -1
  2. package/es/_util/defaultRenderEmpty.js +1 -1
  3. package/es/_util/hooks/useFlexGapSupport.js +4 -4
  4. package/es/_util/hooks/useForceUpdate.js +4 -4
  5. package/es/_util/hooks/useScrollLock.js +64 -0
  6. package/es/_util/hooks/useScrollLock.js.map +1 -0
  7. package/es/_util/responsiveObserve.js +1 -1
  8. package/es/_util/styleChecker.js +1 -1
  9. package/es/actions/index.js +1 -1
  10. package/es/alert/alert.js +93 -0
  11. package/es/alert/alert.js.map +1 -0
  12. package/es/anchor/anchor.js +96 -0
  13. package/es/anchor/anchor.js.map +1 -0
  14. package/es/array-input/icon.js +32 -0
  15. package/es/array-input/icon.js.map +1 -0
  16. package/es/array-input/index.js +9 -9
  17. package/es/cascader/cascader.js +49 -0
  18. package/es/cascader/cascader.js.map +1 -0
  19. package/es/check-card/group.js +8 -8
  20. package/es/check-card/index.js +6 -6
  21. package/es/checkbox/checkbox-group.js +1 -1
  22. package/es/checkbox/checkbox.js +65 -0
  23. package/es/checkbox/checkbox.js.map +1 -0
  24. package/es/color-picker/ColorPicker.js +6 -6
  25. package/es/color-picker/index.js +1 -1
  26. package/es/columns/index.js +1 -1
  27. package/es/config-provider/config-provider.js +1 -1
  28. package/es/date-picker/DatePicker.js +128 -0
  29. package/es/date-picker/DatePicker.js.map +1 -0
  30. package/es/descriptions/descriptions.js +5 -5
  31. package/es/development-login/LoginModal.js +6 -6
  32. package/es/development-login/index.js +4 -4
  33. package/es/drawer/drawer.js +2 -2
  34. package/es/ellipsis/Svg/CopySVG.js +1 -1
  35. package/es/ellipsis/Svg/TickSVG.js +1 -1
  36. package/es/ellipsis/index.js +16 -6
  37. package/es/ellipsis/index.js.map +1 -1
  38. package/es/empty/empty.js +2 -2
  39. package/es/empty/empty.stories.js +2 -2
  40. package/es/exception/exception.js +1 -1
  41. package/es/form/form.js +2 -2
  42. package/es/grid-v4/col.js +2 -2
  43. package/es/grid-v4/hooks/useBreakpoint.js +1 -1
  44. package/es/grid-v4/index.js +1 -1
  45. package/es/grid-v4/row.js +6 -6
  46. package/es/handle/index.js +1 -1
  47. package/es/handle-icon/index.js +11 -11
  48. package/es/icon/IconFont.js +1 -1
  49. package/es/icon/components/Icon.js +9 -9
  50. package/es/icon/components/index.js +1 -1
  51. package/es/icon/components/utils.js +3 -3
  52. package/es/icon/index.js +7 -7
  53. package/es/icon/twoTonePrimaryColor.js +1 -1
  54. package/es/icon/utils.js +1 -1
  55. package/es/img/Contain.js +1 -1
  56. package/es/img/Cover.js +5 -5
  57. package/es/img/index.js +5 -5
  58. package/es/index.js +1 -1
  59. package/es/input/input.js +2 -2
  60. package/es/input-number/index.js +1 -1
  61. package/es/input-number/inputNumber.js +54 -0
  62. package/es/input-number/inputNumber.js.map +1 -0
  63. package/es/label/index.js +2 -2
  64. package/es/loading-button/index.js +5 -5
  65. package/es/locale/default.js +1 -1
  66. package/es/locale/en_US.js +1 -1
  67. package/es/locale/zh_CN.js +1 -1
  68. package/es/modal/modal.js +1 -1
  69. package/es/notification/assets/index.js +1 -1
  70. package/es/notification/index.js +1 -1
  71. package/es/notification/notification.js +1 -1
  72. package/es/page/Box.js +1 -1
  73. package/es/page/index.js +7 -7
  74. package/es/page-container/index.js +1 -1
  75. package/es/page-loading/index.js +1 -1
  76. package/es/page-loading/index.less +4 -4
  77. package/es/page-loading/loading.gif +0 -0
  78. package/es/page-loading/loading1.gif +0 -0
  79. package/es/popconfirm/popconfirm.js +61 -0
  80. package/es/popconfirm/popconfirm.js.map +1 -0
  81. package/es/popover/popover.js +55 -0
  82. package/es/popover/popover.js.map +1 -0
  83. package/es/preview-text/index.js +7 -7
  84. package/es/progress/progress.js +148 -0
  85. package/es/progress/progress.js.map +1 -0
  86. package/es/query-form/Field/Checkbox.js +1 -1
  87. package/es/query-form/Field/Composition/FieldPopover.js +464 -0
  88. package/es/query-form/Field/Composition/FieldPopover.js.map +1 -0
  89. package/es/query-form/Field/Composition/FieldPopover.less +35 -0
  90. package/es/query-form/Field/Composition/Select.js +260 -0
  91. package/es/query-form/Field/Composition/Select.js.map +1 -0
  92. package/es/query-form/Field/Composition/SelectInput.js +112 -0
  93. package/es/query-form/Field/Composition/SelectInput.js.map +1 -0
  94. package/es/query-form/Field/Composition/ValueTag.js +240 -0
  95. package/es/query-form/Field/Composition/ValueTag.js.map +1 -0
  96. package/es/query-form/Field/Composition/index.js +448 -0
  97. package/es/query-form/Field/Composition/index.js.map +1 -0
  98. package/es/query-form/Field/Composition/index.less +145 -0
  99. package/es/query-form/Field/Composition/utils.js +173 -0
  100. package/es/query-form/Field/Composition/utils.js.map +1 -0
  101. package/es/query-form/Field/Select.js +6 -6
  102. package/es/query-form/Field/SelectInput.js +6 -6
  103. package/es/query-form/Field/fieldsMap.js +1 -1
  104. package/es/query-form/Field/index.js +10 -10
  105. package/es/query-form/createActions.js +1 -1
  106. package/es/query-form/index.js +10 -10
  107. package/es/query-form/useForm.js +1 -1
  108. package/es/query-form-v2/index.less +133 -0
  109. package/es/query-list-scene/List.js +13 -13
  110. package/es/query-list-scene/QueryForm.js +10 -10
  111. package/es/query-list-scene/QueryListScene.js +10 -10
  112. package/es/query-list-scene/Title.js +1 -1
  113. package/es/query-list-scene/Toolbar.js +2 -2
  114. package/es/query-list-scene/createActions.js +1 -1
  115. package/es/query-list-scene/index.js +1 -1
  116. package/es/query-list-scene/useActions.js +1 -1
  117. package/es/radio/index.js +1 -1
  118. package/es/radio/radio-group.js +1 -1
  119. package/es/radio/radio.js +75 -0
  120. package/es/radio/radio.js.map +1 -0
  121. package/es/render-empty/render-empty.js +1 -1
  122. package/es/scroll-bar/Bar.js +169 -0
  123. package/es/scroll-bar/Bar.js.map +1 -0
  124. package/es/scroll-bar/Context.js +17 -0
  125. package/es/scroll-bar/Context.js.map +1 -0
  126. package/es/scroll-bar/ScrollBar.js +132 -0
  127. package/es/scroll-bar/ScrollBar.js.map +1 -0
  128. package/es/scroll-bar/Thumb.js +203 -0
  129. package/es/scroll-bar/Thumb.js.map +1 -0
  130. package/es/scroll-bar/index.js +14 -0
  131. package/es/scroll-bar/index.js.map +1 -0
  132. package/es/scroll-bar/scrollBar.less +59 -0
  133. package/es/scroll-bar/util.js +72 -0
  134. package/es/scroll-bar/util.js.map +1 -0
  135. package/es/segmented/index.js +2 -2
  136. package/es/select/select.js +2 -2
  137. package/es/spin/spin.js +44 -0
  138. package/es/spin/spin.js.map +1 -0
  139. package/es/steps/steps.js +2 -2
  140. package/es/svg-components/index.js +1 -1
  141. package/es/switch/switch.js +1 -1
  142. package/es/table/hooks/use-column-setting.js +4 -4
  143. package/es/table/hooks/use-expand-fixed.js +6 -6
  144. package/es/table/resizableTable/index.js +40 -11
  145. package/es/table/resizableTable/index.js.map +1 -1
  146. package/es/table/resizableTable/index.less +9 -1
  147. package/es/table/table-hoc.js +1 -1
  148. package/es/table/table.js +9 -9
  149. package/es/table/table.stories.js +2 -2
  150. package/es/table/total-shower.js +1 -1
  151. package/es/table/utils.js +1 -1
  152. package/es/table-container/index.js +1 -1
  153. package/es/tabs-container/index.js +1 -1
  154. package/es/tag/tag.js +2 -2
  155. package/es/time-picker/TimePicker.js +55 -0
  156. package/es/time-picker/TimePicker.js.map +1 -0
  157. package/es/title/index.js +1 -1
  158. package/es/tntd-action/Action.js +141 -0
  159. package/es/tntd-action/Action.js.map +1 -0
  160. package/es/tntd-cascader/AntdCascader/component/context.js +1 -1
  161. package/es/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +1 -1
  162. package/es/tntd-cascader/AntdCascader/component/getIcons.js +1 -1
  163. package/es/tntd-cascader/AntdCascader/component/useCompactItemContext.js +2 -2
  164. package/es/tntd-cascader/AntdCascader/config/utils.js +2 -2
  165. package/es/tntd-cascader/AntdCascader/index.js +7 -7
  166. package/es/tntd-cascader/index.js +1 -1
  167. package/es/tntd-cascader/rc-cascader/Cascader.js +8 -8
  168. package/es/tntd-cascader/rc-cascader/OptionList/Checkbox.js +2 -2
  169. package/es/tntd-cascader/rc-cascader/OptionList/Column.js +7 -7
  170. package/es/tntd-cascader/rc-cascader/OptionList/index.js +9 -9
  171. package/es/tntd-cascader/rc-cascader/OptionList/useActive.js +5 -5
  172. package/es/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +8 -8
  173. package/es/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +5 -5
  174. package/es/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +1 -1
  175. package/es/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +6 -6
  176. package/es/tntd-cascader/rc-cascader/index.js +1 -1
  177. package/es/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +4 -4
  178. package/es/tntd-form/ErrorList.js +7 -7
  179. package/es/tntd-form/Form.js +6 -6
  180. package/es/tntd-form/FormItem/ItemHolder.js +6 -6
  181. package/es/tntd-form/FormItem/index.js +8 -8
  182. package/es/tntd-form/FormItemInput.js +1 -1
  183. package/es/tntd-form/FormItemLabel.js +2 -2
  184. package/es/tntd-form/FormList.js +1 -1
  185. package/es/tntd-form/context.js +1 -1
  186. package/es/tntd-form/hooks/useDebounce.js +4 -4
  187. package/es/tntd-form/hooks/useForm.js +5 -5
  188. package/es/tntd-form/hooks/useFormItemStatus.js +1 -1
  189. package/es/tntd-form/hooks/useFrameState.js +5 -5
  190. package/es/tntd-form/index.js +1 -1
  191. package/es/tntd-icon/index.js +1 -1
  192. package/es/tntd-layout/AppList.js +6 -6
  193. package/es/tntd-layout/Application.js +6 -6
  194. package/es/tntd-layout/Avatar.js +2 -2
  195. package/es/tntd-layout/CompatibleLanguage.js +6 -6
  196. package/es/tntd-layout/EnterpriseLayout/Avatar.js +2 -2
  197. package/es/tntd-layout/EnterpriseLayout/Language.js +6 -6
  198. package/es/tntd-layout/EnterpriseLayout/Theme.js +6 -6
  199. package/es/tntd-layout/EnterpriseLayout/index.js +1 -1
  200. package/es/tntd-layout/GlobalNavigation/NavigationPopup.js +6 -6
  201. package/es/tntd-layout/GlobalNavigation/index.js +9 -9
  202. package/es/tntd-layout/Header.js +2 -2
  203. package/es/tntd-layout/HeaderActions.js +2 -2
  204. package/es/tntd-layout/HeaderNavs.js +6 -6
  205. package/es/tntd-layout/HeaderTabs.js +7 -7
  206. package/es/tntd-layout/Iconfont.js +1 -1
  207. package/es/tntd-layout/Language.js +6 -6
  208. package/es/tntd-layout/Layout.js +6 -6
  209. package/es/tntd-layout/Logo.js +2 -2
  210. package/es/tntd-layout/OrgAppList.js +6 -6
  211. package/es/tntd-layout/SideMenu.js +6 -6
  212. package/es/tntd-layout/Theme.js +6 -6
  213. package/es/tntd-layout/createActions.js +1 -1
  214. package/es/tntd-layout/images/index.js +1 -1
  215. package/es/tntd-layout/index.js +1 -1
  216. package/es/tntd-layout/paaslayout/CompactSideMenu.js +6 -6
  217. package/es/tntd-layout/paaslayout/Header.js +2 -2
  218. package/es/tntd-layout/paaslayout/Logo.js +2 -2
  219. package/es/tntd-layout/paaslayout/SideMenu.js +6 -6
  220. package/es/tntd-layout/paaslayout/index.js +6 -6
  221. package/es/tntd-layout/storage.js +1 -1
  222. package/es/tntd-modal/index.js +6 -6
  223. package/es/tntd-rc-select/_util/PurePanel.js +5 -5
  224. package/es/tntd-rc-select/_util/context.js +1 -1
  225. package/es/tntd-rc-select/_util/defaultRenderEmpty.js +1 -1
  226. package/es/tntd-rc-select/_util/getIcons.js +1 -1
  227. package/es/tntd-rc-select/_util/useCompactItemContext.js +2 -2
  228. package/es/tntd-rc-select/index.js +2 -2
  229. package/es/tntd-rc-select/style/index.less +23 -2
  230. package/es/tntd-reference/AHref/index.js +1 -1
  231. package/es/tntd-reference/ReferenceBatchCheck/index.js +1 -1
  232. package/es/tntd-reference/ReferenceBatchDrawer/index.js +5 -5
  233. package/es/tntd-reference/ReferenceCheck/index.js +1 -1
  234. package/es/tntd-reference/ReferenceDrawer/index.js +5 -5
  235. package/es/tntd-reference/ReferenceInfo/index.js +1 -1
  236. package/es/tntd-reference/index.js +1 -1
  237. package/es/tntd-second-page/index.js +1 -1
  238. package/es/tntd-select/DropDownWrap.js +8 -8
  239. package/es/tntd-select/index.js +10 -9
  240. package/es/tntd-virtual-tree/index.js +8 -8
  241. package/es/tntd-virtual-tree/utils.js +28 -28
  242. package/es/tntd-virtual-tree-select/index.js +10 -10
  243. package/es/tntd-virtual-tree-select/utils.js +9 -9
  244. package/es/tooltip/tooltip.js +19 -5
  245. package/es/tooltip/tooltip.js.map +1 -1
  246. package/es/upload/index.js +6 -6
  247. package/es/upload/svg/UploadSVG.js +1 -1
  248. package/es/utils/checkAuth.js +4 -4
  249. package/es/utils/index.js +9 -9
  250. package/es/utils/lang.js +1 -1
  251. package/es/water-mark/index.js +5 -5
  252. package/lib/_util/context.js +3 -3
  253. package/lib/_util/defaultRenderEmpty.js +3 -3
  254. package/lib/_util/hooks/useFlexGapSupport.js +14 -15
  255. package/lib/_util/hooks/useForceUpdate.js +14 -15
  256. package/lib/_util/hooks/useScrollLock.d.ts +9 -0
  257. package/lib/_util/hooks/useScrollLock.d.ts.map +1 -0
  258. package/lib/_util/hooks/useScrollLock.js +106 -0
  259. package/lib/_util/hooks/useScrollLock.js.map +1 -0
  260. package/lib/_util/responsiveObserve.js +7 -13
  261. package/lib/_util/styleChecker.js +3 -3
  262. package/lib/actions/index.js +3 -3
  263. package/lib/alert/alert.d.ts +12 -0
  264. package/lib/alert/alert.d.ts.map +1 -0
  265. package/lib/alert/alert.js +147 -0
  266. package/lib/alert/alert.js.map +1 -0
  267. package/lib/anchor/anchor.d.ts +15 -0
  268. package/lib/anchor/anchor.d.ts.map +1 -0
  269. package/lib/anchor/anchor.js +131 -0
  270. package/lib/anchor/anchor.js.map +1 -0
  271. package/lib/array-input/icon.d.ts +4 -0
  272. package/lib/array-input/icon.d.ts.map +1 -0
  273. package/lib/array-input/icon.js +36 -0
  274. package/lib/array-input/icon.js.map +1 -0
  275. package/lib/array-input/index.js +30 -37
  276. package/lib/cascader/cascader.d.ts +10 -0
  277. package/lib/cascader/cascader.d.ts.map +1 -0
  278. package/lib/cascader/cascader.js +84 -0
  279. package/lib/cascader/cascader.js.map +1 -0
  280. package/lib/check-card/group.js +23 -24
  281. package/lib/check-card/index.js +24 -31
  282. package/lib/checkbox/checkbox-group.js +3 -3
  283. package/lib/checkbox/checkbox.d.ts +16 -0
  284. package/lib/checkbox/checkbox.d.ts.map +1 -0
  285. package/lib/checkbox/checkbox.js +100 -0
  286. package/lib/checkbox/checkbox.js.map +1 -0
  287. package/lib/color-picker/ColorPicker.js +24 -31
  288. package/lib/color-picker/index.js +3 -3
  289. package/lib/columns/index.js +3 -3
  290. package/lib/config-provider/config-provider.js +3 -3
  291. package/lib/date-picker/DatePicker.d.ts +21 -0
  292. package/lib/date-picker/DatePicker.d.ts.map +1 -0
  293. package/lib/date-picker/DatePicker.js +163 -0
  294. package/lib/date-picker/DatePicker.js.map +1 -0
  295. package/lib/descriptions/descriptions.js +13 -19
  296. package/lib/development-login/LoginModal.js +24 -31
  297. package/lib/development-login/index.js +14 -15
  298. package/lib/drawer/drawer.js +10 -16
  299. package/lib/ellipsis/Svg/CopySVG.js +3 -3
  300. package/lib/ellipsis/Svg/TickSVG.js +3 -3
  301. package/lib/ellipsis/index.d.ts.map +1 -1
  302. package/lib/ellipsis/index.js +28 -19
  303. package/lib/ellipsis/index.js.map +1 -1
  304. package/lib/empty/empty.js +10 -16
  305. package/lib/empty/empty.stories.js +6 -9
  306. package/lib/exception/exception.js +3 -3
  307. package/lib/form/form.js +10 -16
  308. package/lib/grid-v4/col.js +10 -16
  309. package/lib/grid-v4/hooks/useBreakpoint.js +3 -3
  310. package/lib/grid-v4/index.js +3 -3
  311. package/lib/grid-v4/row.js +24 -31
  312. package/lib/handle/index.js +3 -3
  313. package/lib/handle-icon/index.js +13 -13
  314. package/lib/icon/IconFont.js +3 -3
  315. package/lib/icon/components/Icon.js +44 -70
  316. package/lib/icon/components/index.js +3 -3
  317. package/lib/icon/components/utils.js +10 -18
  318. package/lib/icon/index.js +26 -33
  319. package/lib/icon/twoTonePrimaryColor.js +3 -3
  320. package/lib/icon/utils.js +3 -3
  321. package/lib/img/Contain.js +3 -3
  322. package/lib/img/Cover.js +17 -18
  323. package/lib/img/index.js +17 -18
  324. package/lib/index.js +3 -3
  325. package/lib/input/input.js +10 -16
  326. package/lib/input-number/index.js +3 -3
  327. package/lib/input-number/inputNumber.d.ts +10 -0
  328. package/lib/input-number/inputNumber.d.ts.map +1 -0
  329. package/lib/input-number/inputNumber.js +89 -0
  330. package/lib/input-number/inputNumber.js.map +1 -0
  331. package/lib/label/index.js +10 -16
  332. package/lib/loading-button/index.js +17 -18
  333. package/lib/locale/default.js +3 -3
  334. package/lib/locale/en_US.js +3 -3
  335. package/lib/locale/zh_CN.js +3 -3
  336. package/lib/modal/modal.js +3 -3
  337. package/lib/notification/assets/index.js +3 -3
  338. package/lib/notification/index.js +3 -3
  339. package/lib/notification/notification.js +3 -3
  340. package/lib/page/Box.js +3 -3
  341. package/lib/page/index.js +26 -33
  342. package/lib/page-container/index.js +3 -3
  343. package/lib/page-loading/index.js +3 -3
  344. package/lib/page-loading/index.less +4 -4
  345. package/lib/page-loading/loading.gif +0 -0
  346. package/lib/page-loading/loading1.gif +0 -0
  347. package/lib/popconfirm/popconfirm.d.ts +8 -0
  348. package/lib/popconfirm/popconfirm.d.ts.map +1 -0
  349. package/lib/popconfirm/popconfirm.js +96 -0
  350. package/lib/popconfirm/popconfirm.js.map +1 -0
  351. package/lib/popover/popover.d.ts +14 -0
  352. package/lib/popover/popover.d.ts.map +1 -0
  353. package/lib/popover/popover.js +90 -0
  354. package/lib/popover/popover.js.map +1 -0
  355. package/lib/preview-text/index.js +9 -9
  356. package/lib/progress/progress.d.ts +12 -0
  357. package/lib/progress/progress.d.ts.map +1 -0
  358. package/lib/progress/progress.js +179 -0
  359. package/lib/progress/progress.js.map +1 -0
  360. package/lib/query-form/Field/Checkbox.js +3 -3
  361. package/lib/query-form/Field/Composition/FieldPopover.d.ts +19 -0
  362. package/lib/query-form/Field/Composition/FieldPopover.d.ts.map +1 -0
  363. package/lib/query-form/Field/Composition/FieldPopover.js +464 -0
  364. package/lib/query-form/Field/Composition/FieldPopover.js.map +1 -0
  365. package/lib/query-form/Field/Composition/FieldPopover.less +35 -0
  366. package/lib/query-form/Field/Composition/Select.d.ts +4 -0
  367. package/lib/query-form/Field/Composition/Select.d.ts.map +1 -0
  368. package/lib/query-form/Field/Composition/Select.js +260 -0
  369. package/lib/query-form/Field/Composition/Select.js.map +1 -0
  370. package/lib/query-form/Field/Composition/SelectInput.d.ts +3 -0
  371. package/lib/query-form/Field/Composition/SelectInput.d.ts.map +1 -0
  372. package/lib/query-form/Field/Composition/SelectInput.js +112 -0
  373. package/lib/query-form/Field/Composition/SelectInput.js.map +1 -0
  374. package/lib/query-form/Field/Composition/ValueTag.d.ts +13 -0
  375. package/lib/query-form/Field/Composition/ValueTag.d.ts.map +1 -0
  376. package/lib/query-form/Field/Composition/ValueTag.js +240 -0
  377. package/lib/query-form/Field/Composition/ValueTag.js.map +1 -0
  378. package/lib/query-form/Field/Composition/index.d.ts +15 -0
  379. package/lib/query-form/Field/Composition/index.d.ts.map +1 -0
  380. package/lib/query-form/Field/Composition/index.js +448 -0
  381. package/lib/query-form/Field/Composition/index.js.map +1 -0
  382. package/lib/query-form/Field/Composition/index.less +145 -0
  383. package/lib/query-form/Field/Composition/utils.d.ts +21 -0
  384. package/lib/query-form/Field/Composition/utils.d.ts.map +1 -0
  385. package/lib/query-form/Field/Composition/utils.js +173 -0
  386. package/lib/query-form/Field/Composition/utils.js.map +1 -0
  387. package/lib/query-form/Field/Select.js +24 -31
  388. package/lib/query-form/Field/SelectInput.js +24 -31
  389. package/lib/query-form/Field/fieldsMap.js +3 -3
  390. package/lib/query-form/Field/index.js +47 -73
  391. package/lib/query-form/createActions.js +3 -3
  392. package/lib/query-form/index.js +44 -70
  393. package/lib/query-form/useForm.js +3 -3
  394. package/lib/query-form-v2/index.less +133 -0
  395. package/lib/query-list-scene/List.js +41 -61
  396. package/lib/query-list-scene/QueryForm.js +44 -70
  397. package/lib/query-list-scene/QueryListScene.js +44 -70
  398. package/lib/query-list-scene/Title.js +3 -3
  399. package/lib/query-list-scene/Toolbar.js +10 -16
  400. package/lib/query-list-scene/createActions.js +3 -3
  401. package/lib/query-list-scene/index.js +3 -3
  402. package/lib/query-list-scene/useActions.js +3 -3
  403. package/lib/radio/index.js +3 -3
  404. package/lib/radio/radio-group.js +3 -3
  405. package/lib/radio/radio.d.ts +17 -0
  406. package/lib/radio/radio.d.ts.map +1 -0
  407. package/lib/radio/radio.js +110 -0
  408. package/lib/radio/radio.js.map +1 -0
  409. package/lib/render-empty/render-empty.js +3 -3
  410. package/lib/scroll-bar/Bar.d.ts +4 -0
  411. package/lib/scroll-bar/Bar.d.ts.map +1 -0
  412. package/lib/scroll-bar/Bar.js +169 -0
  413. package/lib/scroll-bar/Bar.js.map +1 -0
  414. package/lib/scroll-bar/Context.d.ts +7 -0
  415. package/lib/scroll-bar/Context.d.ts.map +1 -0
  416. package/lib/scroll-bar/Context.js +17 -0
  417. package/lib/scroll-bar/Context.js.map +1 -0
  418. package/lib/scroll-bar/ScrollBar.d.ts +4 -0
  419. package/lib/scroll-bar/ScrollBar.d.ts.map +1 -0
  420. package/lib/scroll-bar/ScrollBar.js +132 -0
  421. package/lib/scroll-bar/ScrollBar.js.map +1 -0
  422. package/lib/scroll-bar/Thumb.d.ts +3 -0
  423. package/lib/scroll-bar/Thumb.d.ts.map +1 -0
  424. package/lib/scroll-bar/Thumb.js +203 -0
  425. package/lib/scroll-bar/Thumb.js.map +1 -0
  426. package/lib/scroll-bar/index.d.ts +3 -0
  427. package/lib/scroll-bar/index.d.ts.map +1 -0
  428. package/lib/scroll-bar/index.js +14 -0
  429. package/lib/scroll-bar/index.js.map +1 -0
  430. package/lib/scroll-bar/scrollBar.less +59 -0
  431. package/lib/scroll-bar/util.d.ts +40 -0
  432. package/lib/scroll-bar/util.d.ts.map +1 -0
  433. package/lib/scroll-bar/util.js +72 -0
  434. package/lib/scroll-bar/util.js.map +1 -0
  435. package/lib/segmented/index.d.ts +1 -1
  436. package/lib/segmented/index.js +10 -16
  437. package/lib/select/select.js +10 -16
  438. package/lib/spin/spin.d.ts +9 -0
  439. package/lib/spin/spin.d.ts.map +1 -0
  440. package/lib/spin/spin.js +79 -0
  441. package/lib/spin/spin.js.map +1 -0
  442. package/lib/steps/steps.js +10 -16
  443. package/lib/svg-components/index.js +3 -3
  444. package/lib/switch/switch.js +3 -3
  445. package/lib/table/hooks/use-column-setting.js +14 -15
  446. package/lib/table/hooks/use-expand-fixed.js +30 -36
  447. package/lib/table/resizableTable/index.d.ts +3 -0
  448. package/lib/table/resizableTable/index.d.ts.map +1 -1
  449. package/lib/table/resizableTable/index.js +58 -36
  450. package/lib/table/resizableTable/index.js.map +1 -1
  451. package/lib/table/resizableTable/index.less +9 -1
  452. package/lib/table/table-hoc.js +3 -3
  453. package/lib/table/table.js +27 -34
  454. package/lib/table/table.stories.js +10 -16
  455. package/lib/table/total-shower.js +3 -3
  456. package/lib/table/utils.js +3 -3
  457. package/lib/table-container/index.js +3 -3
  458. package/lib/tabs-container/index.js +3 -3
  459. package/lib/tag/tag.js +10 -16
  460. package/lib/time-picker/TimePicker.d.ts +9 -0
  461. package/lib/time-picker/TimePicker.d.ts.map +1 -0
  462. package/lib/time-picker/TimePicker.js +90 -0
  463. package/lib/time-picker/TimePicker.js.map +1 -0
  464. package/lib/title/index.js +3 -3
  465. package/lib/tntd-action/Action.d.ts +6 -0
  466. package/lib/tntd-action/Action.d.ts.map +1 -0
  467. package/lib/tntd-action/Action.js +218 -0
  468. package/lib/tntd-action/Action.js.map +1 -0
  469. package/lib/tntd-cascader/AntdCascader/component/context.js +3 -3
  470. package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +3 -3
  471. package/lib/tntd-cascader/AntdCascader/component/getIcons.js +3 -3
  472. package/lib/tntd-cascader/AntdCascader/component/useCompactItemContext.js +10 -16
  473. package/lib/tntd-cascader/AntdCascader/config/utils.js +10 -16
  474. package/lib/tntd-cascader/AntdCascader/index.js +26 -33
  475. package/lib/tntd-cascader/index.js +3 -3
  476. package/lib/tntd-cascader/rc-cascader/Cascader.js +23 -24
  477. package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.js +10 -16
  478. package/lib/tntd-cascader/rc-cascader/OptionList/Column.js +26 -33
  479. package/lib/tntd-cascader/rc-cascader/OptionList/index.js +30 -37
  480. package/lib/tntd-cascader/rc-cascader/OptionList/useActive.js +17 -18
  481. package/lib/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +23 -24
  482. package/lib/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +16 -17
  483. package/lib/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +3 -3
  484. package/lib/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +23 -30
  485. package/lib/tntd-cascader/rc-cascader/index.js +3 -3
  486. package/lib/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +6 -6
  487. package/lib/tntd-form/ErrorList.js +26 -33
  488. package/lib/tntd-form/Form.js +24 -31
  489. package/lib/tntd-form/FormItem/ItemHolder.js +24 -31
  490. package/lib/tntd-form/FormItem/index.js +23 -24
  491. package/lib/tntd-form/FormItemInput.js +3 -3
  492. package/lib/tntd-form/FormItemLabel.js +10 -16
  493. package/lib/tntd-form/FormList.js +3 -3
  494. package/lib/tntd-form/context.js +3 -3
  495. package/lib/tntd-form/hooks/useDebounce.js +14 -15
  496. package/lib/tntd-form/hooks/useForm.js +17 -18
  497. package/lib/tntd-form/hooks/useFormItemStatus.js +3 -3
  498. package/lib/tntd-form/hooks/useFrameState.js +17 -18
  499. package/lib/tntd-form/index.js +3 -3
  500. package/lib/tntd-icon/index.js +3 -3
  501. package/lib/tntd-layout/AppList.js +20 -24
  502. package/lib/tntd-layout/Application.js +20 -24
  503. package/lib/tntd-layout/Avatar.js +6 -9
  504. package/lib/tntd-layout/CompatibleLanguage.js +20 -24
  505. package/lib/tntd-layout/EnterpriseLayout/Avatar.js +6 -9
  506. package/lib/tntd-layout/EnterpriseLayout/Language.js +20 -24
  507. package/lib/tntd-layout/EnterpriseLayout/Theme.js +20 -24
  508. package/lib/tntd-layout/EnterpriseLayout/index.js +3 -3
  509. package/lib/tntd-layout/GlobalNavigation/NavigationPopup.js +20 -24
  510. package/lib/tntd-layout/GlobalNavigation/index.js +26 -30
  511. package/lib/tntd-layout/Header.js +6 -9
  512. package/lib/tntd-layout/HeaderActions.js +6 -9
  513. package/lib/tntd-layout/HeaderNavs.js +20 -24
  514. package/lib/tntd-layout/HeaderTabs.js +27 -37
  515. package/lib/tntd-layout/Iconfont.js +3 -3
  516. package/lib/tntd-layout/Language.js +20 -24
  517. package/lib/tntd-layout/Layout.js +20 -24
  518. package/lib/tntd-layout/Logo.js +6 -9
  519. package/lib/tntd-layout/OrgAppList.js +20 -24
  520. package/lib/tntd-layout/SideMenu.js +20 -24
  521. package/lib/tntd-layout/Theme.js +20 -24
  522. package/lib/tntd-layout/createActions.js +3 -3
  523. package/lib/tntd-layout/images/index.js +3 -3
  524. package/lib/tntd-layout/index.js +3 -3
  525. package/lib/tntd-layout/paaslayout/CompactSideMenu.js +20 -24
  526. package/lib/tntd-layout/paaslayout/Header.js +6 -9
  527. package/lib/tntd-layout/paaslayout/Logo.js +6 -9
  528. package/lib/tntd-layout/paaslayout/SideMenu.js +20 -24
  529. package/lib/tntd-layout/paaslayout/index.js +20 -24
  530. package/lib/tntd-layout/storage.js +3 -3
  531. package/lib/tntd-modal/index.js +24 -31
  532. package/lib/tntd-rc-select/_util/PurePanel.js +17 -18
  533. package/lib/tntd-rc-select/_util/context.js +3 -3
  534. package/lib/tntd-rc-select/_util/defaultRenderEmpty.js +3 -3
  535. package/lib/tntd-rc-select/_util/getIcons.js +3 -3
  536. package/lib/tntd-rc-select/_util/useCompactItemContext.js +10 -16
  537. package/lib/tntd-rc-select/index.js +10 -16
  538. package/lib/tntd-rc-select/style/index.less +23 -2
  539. package/lib/tntd-reference/AHref/index.js +3 -3
  540. package/lib/tntd-reference/ReferenceBatchCheck/index.js +3 -3
  541. package/lib/tntd-reference/ReferenceBatchDrawer/index.js +17 -18
  542. package/lib/tntd-reference/ReferenceCheck/index.js +3 -3
  543. package/lib/tntd-reference/ReferenceDrawer/index.js +17 -18
  544. package/lib/tntd-reference/ReferenceInfo/index.js +3 -3
  545. package/lib/tntd-reference/index.js +3 -3
  546. package/lib/tntd-second-page/index.js +3 -3
  547. package/lib/tntd-select/DropDownWrap.js +34 -54
  548. package/lib/tntd-select/index.js +40 -57
  549. package/lib/tntd-virtual-tree/index.js +23 -24
  550. package/lib/tntd-virtual-tree/utils.js +62 -66
  551. package/lib/tntd-virtual-tree-select/index.js +22 -23
  552. package/lib/tntd-virtual-tree-select/utils.js +20 -21
  553. package/lib/tooltip/tooltip.d.ts +1 -0
  554. package/lib/tooltip/tooltip.d.ts.map +1 -1
  555. package/lib/tooltip/tooltip.js +23 -9
  556. package/lib/tooltip/tooltip.js.map +1 -1
  557. package/lib/upload/index.js +41 -45
  558. package/lib/upload/svg/UploadSVG.js +3 -3
  559. package/lib/utils/checkAuth.js +6 -6
  560. package/lib/utils/index.js +20 -21
  561. package/lib/utils/lang.js +3 -3
  562. package/lib/water-mark/index.js +17 -18
  563. package/package.json +1 -1
@@ -40,41 +40,27 @@ function _interopRequireWildcard(e, r) {
40
40
  }
41
41
  return n["default"] = e, t && t.set(e, n), n;
42
42
  }
43
- function _defineProperty(obj, key, value) {
44
- key = _toPropertyKey(key);
45
- if (key in obj) {
46
- Object.defineProperty(obj, key, {
47
- value: value,
48
- enumerable: true,
49
- configurable: true,
50
- writable: true
51
- });
52
- } else {
53
- obj[key] = value;
43
+ function _defineProperty(e, r, t) {
44
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
45
+ value: t,
46
+ enumerable: !0,
47
+ configurable: !0,
48
+ writable: !0
49
+ }) : e[r] = t, e;
50
+ }
51
+ function _classCallCheck(a, n) {
52
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
53
+ }
54
+ function _defineProperties(e, r) {
55
+ for (var t = 0; t < r.length; t++) {
56
+ var o = r[t];
57
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
54
58
  }
55
- return obj;
56
59
  }
57
- function _classCallCheck(instance, Constructor) {
58
- if (!(instance instanceof Constructor)) {
59
- throw new TypeError("Cannot call a class as a function");
60
- }
61
- }
62
- function _defineProperties(target, props) {
63
- for (var i = 0; i < props.length; i++) {
64
- var descriptor = props[i];
65
- descriptor.enumerable = descriptor.enumerable || false;
66
- descriptor.configurable = true;
67
- if ("value" in descriptor) descriptor.writable = true;
68
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
69
- }
70
- }
71
- function _createClass(Constructor, protoProps, staticProps) {
72
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
73
- if (staticProps) _defineProperties(Constructor, staticProps);
74
- Object.defineProperty(Constructor, "prototype", {
75
- writable: false
76
- });
77
- return Constructor;
60
+ function _createClass(e, r, t) {
61
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
62
+ writable: !1
63
+ }), e;
78
64
  }
79
65
  function _toPropertyKey(t) {
80
66
  var i = _toPrimitive(t, "string");
@@ -93,19 +79,14 @@ function _toPrimitive(t, r) {
93
79
  function _callSuper(t, o, e) {
94
80
  return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
95
81
  }
96
- function _possibleConstructorReturn(self, call) {
97
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
98
- return call;
99
- } else if (call !== void 0) {
100
- throw new TypeError("Derived constructors may only return object or undefined");
101
- }
102
- return _assertThisInitialized(self);
82
+ function _possibleConstructorReturn(t, e) {
83
+ if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
84
+ if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
85
+ return _assertThisInitialized(t);
103
86
  }
104
- function _assertThisInitialized(self) {
105
- if (self === void 0) {
106
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
107
- }
108
- return self;
87
+ function _assertThisInitialized(e) {
88
+ if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
89
+ return e;
109
90
  }
110
91
  function _isNativeReflectConstruct() {
111
92
  try {
@@ -115,34 +96,27 @@ function _isNativeReflectConstruct() {
115
96
  return !!t;
116
97
  })();
117
98
  }
118
- function _getPrototypeOf(o) {
119
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
120
- return o.__proto__ || Object.getPrototypeOf(o);
121
- };
122
- return _getPrototypeOf(o);
99
+ function _getPrototypeOf(t) {
100
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
101
+ return t.__proto__ || Object.getPrototypeOf(t);
102
+ }, _getPrototypeOf(t);
123
103
  }
124
- function _inherits(subClass, superClass) {
125
- if (typeof superClass !== "function" && superClass !== null) {
126
- throw new TypeError("Super expression must either be null or a function");
127
- }
128
- subClass.prototype = Object.create(superClass && superClass.prototype, {
104
+ function _inherits(t, e) {
105
+ if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
106
+ t.prototype = Object.create(e && e.prototype, {
129
107
  constructor: {
130
- value: subClass,
131
- writable: true,
132
- configurable: true
108
+ value: t,
109
+ writable: !0,
110
+ configurable: !0
133
111
  }
134
- });
135
- Object.defineProperty(subClass, "prototype", {
136
- writable: false
137
- });
138
- if (superClass) _setPrototypeOf(subClass, superClass);
139
- }
140
- function _setPrototypeOf(o, p) {
141
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
142
- o.__proto__ = p;
143
- return o;
144
- };
145
- return _setPrototypeOf(o, p);
112
+ }), Object.defineProperty(t, "prototype", {
113
+ writable: !1
114
+ }), e && _setPrototypeOf(t, e);
115
+ }
116
+ function _setPrototypeOf(t, e) {
117
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
118
+ return t.__proto__ = e, t;
119
+ }, _setPrototypeOf(t, e);
146
120
  }
147
121
  var __rest = void 0 && (void 0).__rest || function (s, e) {
148
122
  var t = {};
@@ -10,8 +10,8 @@ Object.defineProperty(exports, "default", {
10
10
  }
11
11
  });
12
12
  var _Icon = _interopRequireDefault(require("./Icon"));
13
- function _interopRequireDefault(obj) {
14
- return obj && obj.__esModule ? obj : {
15
- "default": obj
13
+ function _interopRequireDefault(e) {
14
+ return e && e.__esModule ? e : {
15
+ "default": e
16
16
  };
17
17
  }
@@ -37,27 +37,19 @@ function _interopRequireWildcard(e, r) {
37
37
  }
38
38
  return n["default"] = e, t && t.set(e, n), n;
39
39
  }
40
- function _classCallCheck(instance, Constructor) {
41
- if (!(instance instanceof Constructor)) {
42
- throw new TypeError("Cannot call a class as a function");
43
- }
40
+ function _classCallCheck(a, n) {
41
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
44
42
  }
45
- function _defineProperties(target, props) {
46
- for (var i = 0; i < props.length; i++) {
47
- var descriptor = props[i];
48
- descriptor.enumerable = descriptor.enumerable || false;
49
- descriptor.configurable = true;
50
- if ("value" in descriptor) descriptor.writable = true;
51
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
43
+ function _defineProperties(e, r) {
44
+ for (var t = 0; t < r.length; t++) {
45
+ var o = r[t];
46
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
52
47
  }
53
48
  }
54
- function _createClass(Constructor, protoProps, staticProps) {
55
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
56
- if (staticProps) _defineProperties(Constructor, staticProps);
57
- Object.defineProperty(Constructor, "prototype", {
58
- writable: false
59
- });
60
- return Constructor;
49
+ function _createClass(e, r, t) {
50
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
51
+ writable: !1
52
+ }), e;
61
53
  }
62
54
  function _toPropertyKey(t) {
63
55
  var i = _toPrimitive(t, "string");
package/lib/icon/index.js CHANGED
@@ -23,9 +23,9 @@ var _warning = _interopRequireDefault(require("../_util/warning"));
23
23
  var _LocaleReceiver = _interopRequireDefault(require("antd/lib/locale-provider/LocaleReceiver"));
24
24
  var _twoTonePrimaryColor = require("./twoTonePrimaryColor");
25
25
  require("./style");
26
- function _interopRequireDefault(obj) {
27
- return obj && obj.__esModule ? obj : {
28
- "default": obj
26
+ function _interopRequireDefault(e) {
27
+ return e && e.__esModule ? e : {
28
+ "default": e
29
29
  };
30
30
  }
31
31
  function _getRequireWildcardCache(e) {
@@ -53,19 +53,13 @@ function _interopRequireWildcard(e, r) {
53
53
  }
54
54
  return n["default"] = e, t && t.set(e, n), n;
55
55
  }
56
- function _defineProperty(obj, key, value) {
57
- key = _toPropertyKey(key);
58
- if (key in obj) {
59
- Object.defineProperty(obj, key, {
60
- value: value,
61
- enumerable: true,
62
- configurable: true,
63
- writable: true
64
- });
65
- } else {
66
- obj[key] = value;
67
- }
68
- return obj;
56
+ function _defineProperty(e, r, t) {
57
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
58
+ value: t,
59
+ enumerable: !0,
60
+ configurable: !0,
61
+ writable: !0
62
+ }) : e[r] = t, e;
69
63
  }
70
64
  function _toPropertyKey(t) {
71
65
  var i = _toPrimitive(t, "string");
@@ -81,30 +75,29 @@ function _toPrimitive(t, r) {
81
75
  }
82
76
  return ("string" === r ? String : Number)(t);
83
77
  }
84
- function _toConsumableArray(arr) {
85
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
78
+ function _toConsumableArray(r) {
79
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
86
80
  }
87
81
  function _nonIterableSpread() {
88
82
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
89
83
  }
90
- function _unsupportedIterableToArray(o, minLen) {
91
- if (!o) return;
92
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
93
- var n = Object.prototype.toString.call(o).slice(8, -1);
94
- if (n === "Object" && o.constructor) n = o.constructor.name;
95
- if (n === "Map" || n === "Set") return Array.from(o);
96
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
84
+ function _unsupportedIterableToArray(r, a) {
85
+ if (r) {
86
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
87
+ var t = {}.toString.call(r).slice(8, -1);
88
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
89
+ }
97
90
  }
98
- function _iterableToArray(iter) {
99
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
91
+ function _iterableToArray(r) {
92
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
100
93
  }
101
- function _arrayWithoutHoles(arr) {
102
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
94
+ function _arrayWithoutHoles(r) {
95
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
103
96
  }
104
- function _arrayLikeToArray(arr, len) {
105
- if (len == null || len > arr.length) len = arr.length;
106
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
107
- return arr2;
97
+ function _arrayLikeToArray(r, a) {
98
+ (null == a || a > r.length) && (a = r.length);
99
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
100
+ return n;
108
101
  }
109
102
  var __rest = void 0 && (void 0).__rest || function (s, e) {
110
103
  var t = {};
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.getTwoToneColor = getTwoToneColor;
7
7
  exports.setTwoToneColor = setTwoToneColor;
8
8
  var _components = _interopRequireDefault(require("./components"));
9
- function _interopRequireDefault(obj) {
10
- return obj && obj.__esModule ? obj : {
11
- "default": obj
9
+ function _interopRequireDefault(e) {
10
+ return e && e.__esModule ? e : {
11
+ "default": e
12
12
  };
13
13
  }
14
14
  function setTwoToneColor(primaryColor) {
package/lib/icon/utils.js CHANGED
@@ -9,9 +9,9 @@ exports.removeTypeTheme = removeTypeTheme;
9
9
  exports.svgBaseProps = void 0;
10
10
  exports.withThemeSuffix = withThemeSuffix;
11
11
  var _warning = _interopRequireDefault(require("../_util/warning"));
12
- function _interopRequireDefault(obj) {
13
- return obj && obj.__esModule ? obj : {
14
- "default": obj
12
+ function _interopRequireDefault(e) {
13
+ return e && e.__esModule ? e : {
14
+ "default": e
15
15
  };
16
16
  }
17
17
  // These props make sure that the SVG behaviours like general text.
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _classnames = _interopRequireDefault(require("classnames"));
9
- function _interopRequireDefault(obj) {
10
- return obj && obj.__esModule ? obj : {
11
- "default": obj
9
+ function _interopRequireDefault(e) {
10
+ return e && e.__esModule ? e : {
11
+ "default": e
12
12
  };
13
13
  }
14
14
  var __rest = void 0 && (void 0).__rest || function (s, e) {
package/lib/img/Cover.js CHANGED
@@ -15,9 +15,9 @@ Object.defineProperty(exports, "__esModule", {
15
15
  exports["default"] = void 0;
16
16
  var _react = _interopRequireWildcard(require("react"));
17
17
  var _classnames = _interopRequireDefault(require("classnames"));
18
- function _interopRequireDefault(obj) {
19
- return obj && obj.__esModule ? obj : {
20
- "default": obj
18
+ function _interopRequireDefault(e) {
19
+ return e && e.__esModule ? e : {
20
+ "default": e
21
21
  };
22
22
  }
23
23
  function _getRequireWildcardCache(e) {
@@ -45,24 +45,23 @@ function _interopRequireWildcard(e, r) {
45
45
  }
46
46
  return n["default"] = e, t && t.set(e, n), n;
47
47
  }
48
- function _slicedToArray(arr, i) {
49
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
48
+ function _slicedToArray(r, e) {
49
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
50
50
  }
51
51
  function _nonIterableRest() {
52
52
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
53
53
  }
54
- function _unsupportedIterableToArray(o, minLen) {
55
- if (!o) return;
56
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
57
- var n = Object.prototype.toString.call(o).slice(8, -1);
58
- if (n === "Object" && o.constructor) n = o.constructor.name;
59
- if (n === "Map" || n === "Set") return Array.from(o);
60
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
54
+ function _unsupportedIterableToArray(r, a) {
55
+ if (r) {
56
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
57
+ var t = {}.toString.call(r).slice(8, -1);
58
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
59
+ }
61
60
  }
62
- function _arrayLikeToArray(arr, len) {
63
- if (len == null || len > arr.length) len = arr.length;
64
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
65
- return arr2;
61
+ function _arrayLikeToArray(r, a) {
62
+ (null == a || a > r.length) && (a = r.length);
63
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
64
+ return n;
66
65
  }
67
66
  function _iterableToArrayLimit(r, l) {
68
67
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
@@ -91,8 +90,8 @@ function _iterableToArrayLimit(r, l) {
91
90
  return a;
92
91
  }
93
92
  }
94
- function _arrayWithHoles(arr) {
95
- if (Array.isArray(arr)) return arr;
93
+ function _arrayWithHoles(r) {
94
+ if (Array.isArray(r)) return r;
96
95
  }
97
96
  var __rest = void 0 && (void 0).__rest || function (s, e) {
98
97
  var t = {};
package/lib/img/index.js CHANGED
@@ -16,9 +16,9 @@ exports["default"] = void 0;
16
16
  var _react = _interopRequireWildcard(require("react"));
17
17
  var _Cover = _interopRequireDefault(require("./Cover"));
18
18
  var _Contain = _interopRequireDefault(require("./Contain"));
19
- function _interopRequireDefault(obj) {
20
- return obj && obj.__esModule ? obj : {
21
- "default": obj
19
+ function _interopRequireDefault(e) {
20
+ return e && e.__esModule ? e : {
21
+ "default": e
22
22
  };
23
23
  }
24
24
  function _getRequireWildcardCache(e) {
@@ -46,24 +46,23 @@ function _interopRequireWildcard(e, r) {
46
46
  }
47
47
  return n["default"] = e, t && t.set(e, n), n;
48
48
  }
49
- function _slicedToArray(arr, i) {
50
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
49
+ function _slicedToArray(r, e) {
50
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
51
51
  }
52
52
  function _nonIterableRest() {
53
53
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
54
54
  }
55
- function _unsupportedIterableToArray(o, minLen) {
56
- if (!o) return;
57
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
58
- var n = Object.prototype.toString.call(o).slice(8, -1);
59
- if (n === "Object" && o.constructor) n = o.constructor.name;
60
- if (n === "Map" || n === "Set") return Array.from(o);
61
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
55
+ function _unsupportedIterableToArray(r, a) {
56
+ if (r) {
57
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
58
+ var t = {}.toString.call(r).slice(8, -1);
59
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
60
+ }
62
61
  }
63
- function _arrayLikeToArray(arr, len) {
64
- if (len == null || len > arr.length) len = arr.length;
65
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
66
- return arr2;
62
+ function _arrayLikeToArray(r, a) {
63
+ (null == a || a > r.length) && (a = r.length);
64
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
65
+ return n;
67
66
  }
68
67
  function _iterableToArrayLimit(r, l) {
69
68
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
@@ -92,8 +91,8 @@ function _iterableToArrayLimit(r, l) {
92
91
  return a;
93
92
  }
94
93
  }
95
- function _arrayWithHoles(arr) {
96
- if (Array.isArray(arr)) return arr;
94
+ function _arrayWithHoles(r) {
95
+ if (Array.isArray(r)) return r;
97
96
  }
98
97
  var __rest = void 0 && (void 0).__rest || function (s, e) {
99
98
  var t = {};
package/lib/index.js CHANGED
@@ -724,8 +724,8 @@ var _label = _interopRequireDefault(require("./label"));
724
724
  var _tntdVirtualTree = _interopRequireDefault(require("./tntd-virtual-tree"));
725
725
  var _tntdVirtualTreeSelect = _interopRequireDefault(require("./tntd-virtual-tree-select"));
726
726
  require("./index.less");
727
- function _interopRequireDefault(obj) {
728
- return obj && obj.__esModule ? obj : {
729
- "default": obj
727
+ function _interopRequireDefault(e) {
728
+ return e && e.__esModule ? e : {
729
+ "default": e
730
730
  };
731
731
  }
@@ -37,9 +37,9 @@ function _interopRequireWildcard(e, r) {
37
37
  }
38
38
  return n["default"] = e, t && t.set(e, n), n;
39
39
  }
40
- function _interopRequireDefault(obj) {
41
- return obj && obj.__esModule ? obj : {
42
- "default": obj
40
+ function _interopRequireDefault(e) {
41
+ return e && e.__esModule ? e : {
42
+ "default": e
43
43
  };
44
44
  }
45
45
  function _typeof(o) {
@@ -51,19 +51,13 @@ function _typeof(o) {
51
51
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
52
52
  }, _typeof(o);
53
53
  }
54
- function _defineProperty(obj, key, value) {
55
- key = _toPropertyKey(key);
56
- if (key in obj) {
57
- Object.defineProperty(obj, key, {
58
- value: value,
59
- enumerable: true,
60
- configurable: true,
61
- writable: true
62
- });
63
- } else {
64
- obj[key] = value;
65
- }
66
- return obj;
54
+ function _defineProperty(e, r, t) {
55
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
56
+ value: t,
57
+ enumerable: !0,
58
+ configurable: !0,
59
+ writable: !0
60
+ }) : e[r] = t, e;
67
61
  }
68
62
  function _toPropertyKey(t) {
69
63
  var i = _toPrimitive(t, "string");
@@ -34,9 +34,9 @@ var _connect = require("../connect");
34
34
  var _previewText = _interopRequireDefault(require("../preview-text"));
35
35
  var _prevLocale = require("../prev-locale");
36
36
  require("./style");
37
- function _interopRequireDefault(obj) {
38
- return obj && obj.__esModule ? obj : {
39
- "default": obj
37
+ function _interopRequireDefault(e) {
38
+ return e && e.__esModule ? e : {
39
+ "default": e
40
40
  };
41
41
  }
42
42
  function _getRequireWildcardCache(e) {
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { default as AntdInputNumber } from 'antd/lib/input-number';
3
+ import type { InputNumberProps as AntdInputNumberProps } from 'antd/lib/input-number';
4
+ export * from 'antd/lib/input-number';
5
+ export declare type InputNumberProps = AntdInputNumberProps & {
6
+ readonly?: boolean;
7
+ };
8
+ declare const _default: React.ForwardRefExoticComponent<Pick<AntdInputNumberProps & React.RefAttributes<AntdInputNumber>, "key" | keyof AntdInputNumberProps> & React.RefAttributes<unknown>>;
9
+ export default _default;
10
+ //# sourceMappingURL=inputNumber.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inputNumber.d.ts","sourceRoot":"","sources":["../../src/input-number/inputNumber.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,EAAE,gBAAgB,IAAI,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAKpF,cAAc,sBAAsB,CAAA;AAIpC,oBAAY,gBAAgB,GAAG,oBAAoB,GAAG;IACpD,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;;AAuBD,wBAA0E"}
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+
3
+ function _typeof(o) {
4
+ "@babel/helpers - typeof";
5
+
6
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
7
+ return typeof o;
8
+ } : function (o) {
9
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
10
+ }, _typeof(o);
11
+ }
12
+ Object.defineProperty(exports, "__esModule", {
13
+ value: true
14
+ });
15
+ var _exportNames = {};
16
+ exports["default"] = void 0;
17
+ var _react = _interopRequireWildcard(require("react"));
18
+ var _configProvider = require("../config-provider");
19
+ var _inputNumber = _interopRequireWildcard(require("antd/lib/input-number"));
20
+ Object.keys(_inputNumber).forEach(function (key) {
21
+ if (key === "default" || key === "__esModule") return;
22
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
23
+ if (key in exports && exports[key] === _inputNumber[key]) return;
24
+ Object.defineProperty(exports, key, {
25
+ enumerable: true,
26
+ get: function get() {
27
+ return _inputNumber[key];
28
+ }
29
+ });
30
+ });
31
+ var _connect = require("../connect");
32
+ var _previewText = _interopRequireDefault(require("../preview-text"));
33
+ var _classnames = _interopRequireDefault(require("classnames"));
34
+ var _prevLocale = require("../prev-locale");
35
+ function _interopRequireDefault(e) {
36
+ return e && e.__esModule ? e : {
37
+ "default": e
38
+ };
39
+ }
40
+ function _getRequireWildcardCache(e) {
41
+ if ("function" != typeof WeakMap) return null;
42
+ var r = new WeakMap(),
43
+ t = new WeakMap();
44
+ return (_getRequireWildcardCache = function _getRequireWildcardCache(e) {
45
+ return e ? t : r;
46
+ })(e);
47
+ }
48
+ function _interopRequireWildcard(e, r) {
49
+ if (!r && e && e.__esModule) return e;
50
+ if (null === e || "object" != _typeof(e) && "function" != typeof e) return {
51
+ "default": e
52
+ };
53
+ var t = _getRequireWildcardCache(r);
54
+ if (t && t.has(e)) return t.get(e);
55
+ var n = {
56
+ __proto__: null
57
+ },
58
+ a = Object.defineProperty && Object.getOwnPropertyDescriptor;
59
+ for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
60
+ var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
61
+ i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
62
+ }
63
+ return n["default"] = e, t && t.set(e, n), n;
64
+ }
65
+ var __rest = void 0 && (void 0).__rest || function (s, e) {
66
+ var t = {};
67
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
68
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
69
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
70
+ }
71
+ return t;
72
+ };
73
+ var defaultPlaceholder = (0, _prevLocale.getText)('enter', (0, _prevLocale.getLanguage)());
74
+ var tntPrefixCls = 'tnt-input-number';
75
+ var TntInputNumber = (0, _react.forwardRef)(function (_a, ref) {
76
+ var className = _a.className,
77
+ _a$placeholder = _a.placeholder,
78
+ placeholder = _a$placeholder === void 0 ? defaultPlaceholder : _a$placeholder,
79
+ props = __rest(_a, ["className", "placeholder"]);
80
+ return _react["default"].createElement(_configProvider.ConfigConsumer, null, function () {
81
+ return _react["default"].createElement(_inputNumber["default"], Object.assign({
82
+ placeholder: placeholder
83
+ }, props, {
84
+ ref: ref,
85
+ className: (0, _classnames["default"])(className, tntPrefixCls)
86
+ }));
87
+ });
88
+ });
89
+ var _default = exports["default"] = (0, _connect.connectReadonlyComponent)(TntInputNumber, _previewText["default"].Input);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inputNumber.js","sourceRoot":"","sources":["../../src/input-number/inputNumber.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAyC;AACzC,wDAAmD;AACnD,wEAAiE;AAEjE,wCAAqD;AACrD,mEAAyC;AACzC,4DAAmC;AACnC,gDAAqD;AACrD,uDAAoC;AAEpC,MAAM,kBAAkB,GAAG,IAAA,qBAAO,EAAC,OAAO,EAAE,IAAA,yBAAW,GAAE,CAAC,CAAA;AAM1D,MAAM,YAAY,GAAG,kBAAkB,CAAA;AAEvC,MAAM,cAAc,GAAG,IAAA,kBAAU,EAC/B,CAAC,EAAyD,EAAE,GAAG,EAAE,EAAE;QAAlE,EAAE,SAAS,EAAE,WAAW,GAAG,kBAAkB,OAAY,EAAP,KAAK,cAAvD,4BAAyD,CAAF;IACtD,OAAO,CACL,8BAAC,gCAAc,QACZ,GAAG,EAAE;QACJ,OAAO,CACL,8BAAC,sBAAe,kBACd,WAAW,EAAE,WAAW,IACpB,KAAK,IACT,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE,YAAY,CAAC,IAC9C,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CACF,CAAA;AAED,kBAAe,IAAA,kCAAwB,EAAC,cAAc,EAAE,sBAAW,CAAC,KAAK,CAAC,CAAA","sourcesContent":["import React, { forwardRef } from 'react'\nimport { ConfigConsumer } from '../config-provider'\nimport { default as AntdInputNumber } from 'antd/lib/input-number'\nimport type { InputNumberProps as AntdInputNumberProps } from 'antd/lib/input-number'\nimport { connectReadonlyComponent } from '../connect'\nimport PreviewText from '../preview-text'\nimport classNames from 'classnames'\nimport { getLanguage, getText } from '../prev-locale'\nexport * from 'antd/lib/input-number'\n\nconst defaultPlaceholder = getText('enter', getLanguage())\n\nexport type InputNumberProps = AntdInputNumberProps & {\n readonly?: boolean\n}\n\nconst tntPrefixCls = 'tnt-input-number'\n\nconst TntInputNumber = forwardRef<AntdInputNumber, AntdInputNumberProps>(\n ({ className, placeholder = defaultPlaceholder, ...props }, ref) => {\n return (\n <ConfigConsumer>\n {() => {\n return (\n <AntdInputNumber\n placeholder={placeholder}\n {...props}\n ref={ref}\n className={classNames(className, tntPrefixCls)}\n />\n )\n }}\n </ConfigConsumer>\n )\n }\n)\n\nexport default connectReadonlyComponent(TntInputNumber, PreviewText.Input)\n"]}