tntd 3.0.28 → 3.0.29-beta.1

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 (868) hide show
  1. package/es/alert/alert.js +71 -0
  2. package/es/alert/alert.js.map +1 -0
  3. package/es/alert/alert.less +128 -0
  4. package/es/alert/index.js +1 -1
  5. package/es/alert/index.js.map +1 -1
  6. package/es/alert/style/index.less +1 -0
  7. package/es/array-input/index.js +14 -12
  8. package/es/array-input/index.js.map +1 -1
  9. package/es/button/button.js +30 -3
  10. package/es/button/button.js.map +1 -1
  11. package/es/button/button.less +72 -2
  12. package/es/cascader/cascader.js +30 -0
  13. package/es/cascader/cascader.js.map +1 -0
  14. package/es/cascader/cascader.less +16 -0
  15. package/es/cascader/index.js +3 -6
  16. package/es/cascader/index.js.map +1 -1
  17. package/es/checkbox/check.png +0 -0
  18. package/es/checkbox/checkbox.js +48 -0
  19. package/es/checkbox/checkbox.js.map +1 -0
  20. package/es/checkbox/checkbox.less +69 -0
  21. package/es/checkbox/index.js +3 -7
  22. package/es/checkbox/index.js.map +1 -1
  23. package/es/date-picker/DatePicker.js +101 -0
  24. package/es/date-picker/DatePicker.js.map +1 -0
  25. package/es/date-picker/index.js +6 -12
  26. package/es/date-picker/index.js.map +1 -1
  27. package/es/date-picker/index.less +294 -0
  28. package/es/date-picker/style/Calendar.less +1 -1
  29. package/es/descriptions/descriptions.less +1 -0
  30. package/es/descriptions/index.js +2 -2
  31. package/es/descriptions/index.js.map +1 -1
  32. package/es/drawer/drawer.js +5 -5
  33. package/es/drawer/drawer.js.map +1 -1
  34. package/es/drawer/index.less +15 -1
  35. package/es/drawer/style/drawer.less +18 -3
  36. package/es/drawer/style/index.js +2 -1
  37. package/es/drawer/style/index.js.map +1 -1
  38. package/es/form/style/index.less +6 -0
  39. package/es/handle/index.js +9 -6
  40. package/es/handle/index.js.map +1 -1
  41. package/es/handle/index.less +16 -0
  42. package/es/index.js +1 -0
  43. package/es/index.js.map +1 -1
  44. package/es/input/index.js +1 -1
  45. package/es/input/index.js.map +1 -1
  46. package/es/input/input.js +21 -30
  47. package/es/input/input.js.map +1 -1
  48. package/es/input/input.less +123 -20
  49. package/es/input-number/index.js +4 -29
  50. package/es/input-number/index.js.map +1 -1
  51. package/es/input-number/inputNumber.js +34 -0
  52. package/es/input-number/inputNumber.js.map +1 -0
  53. package/es/input-number/inputNumber.less +12 -0
  54. package/es/locale/en_US.js +9 -5
  55. package/es/locale/en_US.js.map +1 -1
  56. package/es/locale/zh_CN.js +7 -3
  57. package/es/locale/zh_CN.js.map +1 -1
  58. package/es/message/message.less +2 -1
  59. package/es/modal/index.js +2 -3
  60. package/es/modal/index.js.map +1 -1
  61. package/es/modal/index.less +36 -0
  62. package/es/modal/modal.js +103 -16
  63. package/es/modal/modal.js.map +1 -1
  64. package/es/modal/style/index.js +2 -1
  65. package/es/modal/style/index.js.map +1 -1
  66. package/es/modal/style/modal.less +15 -3
  67. package/es/notification/notification.less +27 -2
  68. package/es/notification/style/index.less +1 -0
  69. package/es/page-container/index.js +1 -1
  70. package/es/page-container/index.js.map +1 -1
  71. package/es/page-container/index.less +3 -2
  72. package/es/page-loading/index.js +1 -1
  73. package/es/page-loading/index.js.map +1 -1
  74. package/es/popconfirm/index.js +2 -2
  75. package/es/popconfirm/index.js.map +1 -1
  76. package/es/popconfirm/index.less +32 -0
  77. package/es/popconfirm/popconfirm.js +43 -0
  78. package/es/popconfirm/popconfirm.js.map +1 -0
  79. package/es/popconfirm/style/index.js +2 -1
  80. package/es/popconfirm/style/index.js.map +1 -1
  81. package/es/popover/index.js +2 -2
  82. package/es/popover/index.js.map +1 -1
  83. package/es/popover/index.less +57 -0
  84. package/es/popover/popover.js +34 -0
  85. package/es/popover/popover.js.map +1 -0
  86. package/es/popover/style/index.js +1 -0
  87. package/es/popover/style/index.js.map +1 -1
  88. package/es/prev-locale.js +1 -1
  89. package/es/prev-locale.js.map +1 -1
  90. package/es/preview-text/index.js.map +1 -1
  91. package/es/progress/index.js +2 -2
  92. package/es/progress/index.js.map +1 -1
  93. package/es/progress/progress.js +132 -0
  94. package/es/progress/progress.js.map +1 -0
  95. package/es/progress/progress.less +82 -0
  96. package/es/query-form/Field/Checkbox.js +1 -1
  97. package/es/query-form/Field/Checkbox.js.map +1 -1
  98. package/es/query-form/Field/Composition/FieldPopover.js +304 -0
  99. package/es/query-form/Field/Composition/FieldPopover.js.map +1 -0
  100. package/es/query-form/Field/Composition/FieldPopover.less +35 -0
  101. package/es/query-form/Field/Composition/Select.js +122 -0
  102. package/es/query-form/Field/Composition/Select.js.map +1 -0
  103. package/es/query-form/Field/Composition/ValueTag.js +124 -0
  104. package/es/query-form/Field/Composition/ValueTag.js.map +1 -0
  105. package/es/query-form/Field/Composition/index.js +233 -0
  106. package/es/query-form/Field/Composition/index.js.map +1 -0
  107. package/es/query-form/Field/Composition/index.less +120 -0
  108. package/es/query-form/Field/Composition/utils.js +154 -0
  109. package/es/query-form/Field/Composition/utils.js.map +1 -0
  110. package/es/query-form/Field/SelectInput.js +22 -4
  111. package/es/query-form/Field/SelectInput.js.map +1 -1
  112. package/es/query-form/Field/fieldsMap.js +2 -2
  113. package/es/query-form/Field/fieldsMap.js.map +1 -1
  114. package/es/query-form/Field/index.js +1 -0
  115. package/es/query-form/Field/index.js.map +1 -1
  116. package/es/query-form/index.js +170 -335
  117. package/es/query-form/index.js.map +1 -1
  118. package/es/query-form/index.less +26 -60
  119. package/es/query-form-backup/Field/Composition/FieldPopover.less +35 -0
  120. package/es/query-form-backup/Field/Composition/index.less +114 -0
  121. package/es/query-form-backup/index.less +90 -0
  122. package/es/query-form-v2/index.less +133 -0
  123. package/es/query-list-scene/List.js +17 -3
  124. package/es/query-list-scene/List.js.map +1 -1
  125. package/es/query-list-scene/QueryForm.js +37 -14
  126. package/es/query-list-scene/QueryForm.js.map +1 -1
  127. package/es/query-list-scene/index.js +2 -1
  128. package/es/query-list-scene/index.js.map +1 -1
  129. package/es/query-list-scene/index.less +7 -7
  130. package/es/radio/index.js +3 -5
  131. package/es/radio/index.js.map +1 -1
  132. package/es/radio/radio.js +57 -0
  133. package/es/radio/radio.js.map +1 -0
  134. package/es/radio/radio.less +43 -0
  135. package/es/scroll-bar/Bar.js +56 -0
  136. package/es/scroll-bar/Bar.js.map +1 -0
  137. package/es/scroll-bar/Context.js +6 -0
  138. package/es/scroll-bar/Context.js.map +1 -0
  139. package/es/scroll-bar/ScrollBar.js +86 -0
  140. package/es/scroll-bar/ScrollBar.js.map +1 -0
  141. package/es/scroll-bar/Thumb.js +105 -0
  142. package/es/scroll-bar/Thumb.js.map +1 -0
  143. package/es/scroll-bar/index.js +3 -0
  144. package/es/scroll-bar/index.js.map +1 -0
  145. package/es/scroll-bar/scrollBar.less +59 -0
  146. package/es/scroll-bar/util.js +31 -0
  147. package/es/scroll-bar/util.js.map +1 -0
  148. package/es/segmented/index.less +126 -112
  149. package/es/select/index.js +1 -1
  150. package/es/select/index.js.map +1 -1
  151. package/es/select/select.js +5 -6
  152. package/es/select/select.js.map +1 -1
  153. package/es/select/select.less +83 -9
  154. package/es/select/style/index.less +4 -4
  155. package/es/spin/index.js +3 -2
  156. package/es/spin/index.js.map +1 -1
  157. package/es/spin/spin.js +36 -0
  158. package/es/spin/spin.js.map +1 -0
  159. package/es/spin/spin.less +9 -0
  160. package/es/steps/assets/background_left.svg +12 -0
  161. package/es/steps/assets/background_right.svg +12 -0
  162. package/es/steps/assets/horizontal_line.svg +3 -0
  163. package/es/steps/assets/vertical_line.svg +3 -0
  164. package/es/steps/index.js +9 -2
  165. package/es/steps/index.js.map +1 -1
  166. package/es/steps/stepStyle/icon.less +51 -0
  167. package/es/steps/stepStyle/index.less +173 -8
  168. package/es/steps/stepStyle/nav.less +51 -259
  169. package/es/steps/stepStyle/progress-dot.less +10 -0
  170. package/es/steps/stepStyle/variables.less +8 -0
  171. package/es/steps/stepStyle/vertical.less +41 -0
  172. package/es/steps/steps.js +53 -27
  173. package/es/steps/steps.js.map +1 -1
  174. package/es/steps/style/index.js +8 -0
  175. package/es/steps/style/index.js.map +1 -1
  176. package/es/style/themes/default.less +6 -5
  177. package/es/switch/index.less +45 -0
  178. package/es/switch/style/index.js +2 -1
  179. package/es/switch/style/index.js.map +1 -1
  180. package/es/switch/switch.js +40 -2
  181. package/es/switch/switch.js.map +1 -1
  182. package/es/table/hooks/use-expand-fixed.js.map +1 -1
  183. package/es/table/style/index.less +19 -21
  184. package/es/table/style/size.less +11 -12
  185. package/es/table/table.js +68 -40
  186. package/es/table/table.js.map +1 -1
  187. package/es/table/table.less +31 -6
  188. package/es/table/table.stories.js +3 -3
  189. package/es/table/table.stories.js.map +1 -1
  190. package/es/table-container/index.js +5 -2
  191. package/es/table-container/index.js.map +1 -1
  192. package/es/table-container/index.less +4 -1
  193. package/es/tabs/index.js +1 -0
  194. package/es/tabs/index.js.map +1 -1
  195. package/es/tabs/style/index.js.map +1 -1
  196. package/es/tabs/style/index.less +1 -0
  197. package/es/tabs/tabs.js +27 -3
  198. package/es/tabs/tabs.js.map +1 -1
  199. package/es/tabs/tabs.less +125 -0
  200. package/es/tabs-container/index.js +1 -1
  201. package/es/tabs-container/index.js.map +1 -1
  202. package/es/tag/tag.less +4 -3
  203. package/es/time-picker/TimePicker.js +36 -0
  204. package/es/time-picker/TimePicker.js.map +1 -0
  205. package/es/time-picker/index.js +2 -2
  206. package/es/time-picker/index.js.map +1 -1
  207. package/es/time-picker/index.less +38 -0
  208. package/es/title/index.less +47 -45
  209. package/es/tntd-action/Action.js +117 -0
  210. package/es/tntd-action/Action.js.map +1 -0
  211. package/es/tntd-action/index.js +69 -6
  212. package/es/tntd-action/index.js.map +1 -1
  213. package/es/tntd-action/index.less +59 -0
  214. package/es/tntd-cascader/AntdCascader/index.less +35 -29
  215. package/es/tntd-select/index.js +3 -4
  216. package/es/tntd-select/index.js.map +1 -1
  217. package/es/tntd-select/index.less +7 -0
  218. package/es/tntd-virtual-tree/index.less +2 -1
  219. package/es/tntd-virtual-tree-select/index.less +1 -1
  220. package/es/tooltip/index.less +4 -5
  221. package/es/tooltip/style/index.js +2 -1
  222. package/es/tooltip/style/index.js.map +1 -1
  223. package/es/upload/index.js +1 -2
  224. package/es/upload/index.js.map +1 -1
  225. package/es/upload/style/index.less +1 -1
  226. package/es/upload/upload.less +5 -12
  227. package/es/utils/index.js +0 -1
  228. package/es/utils/index.js.map +1 -1
  229. package/es/utils/lang.js +8 -2
  230. package/es/utils/lang.js.map +1 -1
  231. package/lib/_util/context.js +1 -1
  232. package/lib/_util/defaultRenderEmpty.js +1 -1
  233. package/lib/_util/hooks/useFlexGapSupport.js +4 -4
  234. package/lib/_util/hooks/useForceUpdate.js +4 -4
  235. package/lib/_util/responsiveObserve.js +1 -1
  236. package/lib/_util/styleChecker.js +1 -1
  237. package/lib/actions/index.js +1 -1
  238. package/lib/alert/alert.d.ts +12 -0
  239. package/lib/alert/alert.d.ts.map +1 -0
  240. package/lib/alert/alert.js +93 -0
  241. package/lib/alert/alert.js.map +1 -0
  242. package/lib/alert/alert.less +128 -0
  243. package/lib/alert/index.d.ts +1 -1
  244. package/lib/alert/index.d.ts.map +1 -1
  245. package/lib/alert/index.js +7 -8
  246. package/lib/alert/index.js.map +1 -1
  247. package/lib/alert/style/index.less +1 -0
  248. package/lib/array-input/index.d.ts.map +1 -1
  249. package/lib/array-input/index.js +26 -23
  250. package/lib/array-input/index.js.map +1 -1
  251. package/lib/button/button.d.ts +9 -4
  252. package/lib/button/button.d.ts.map +1 -1
  253. package/lib/button/button.js +28 -4
  254. package/lib/button/button.js.map +1 -1
  255. package/lib/button/button.less +72 -2
  256. package/lib/cascader/cascader.d.ts +10 -0
  257. package/lib/cascader/cascader.d.ts.map +1 -0
  258. package/lib/cascader/cascader.js +49 -0
  259. package/lib/cascader/cascader.js.map +1 -0
  260. package/lib/cascader/cascader.less +16 -0
  261. package/lib/cascader/index.d.ts +3 -7
  262. package/lib/cascader/index.d.ts.map +1 -1
  263. package/lib/cascader/index.js +5 -10
  264. package/lib/cascader/index.js.map +1 -1
  265. package/lib/check-card/group.js +8 -8
  266. package/lib/check-card/index.js +6 -6
  267. package/lib/checkbox/check.png +0 -0
  268. package/lib/checkbox/checkbox.d.ts +16 -0
  269. package/lib/checkbox/checkbox.d.ts.map +1 -0
  270. package/lib/checkbox/checkbox.js +65 -0
  271. package/lib/checkbox/checkbox.js.map +1 -0
  272. package/lib/checkbox/checkbox.less +69 -0
  273. package/lib/checkbox/index.d.ts +3 -3
  274. package/lib/checkbox/index.d.ts.map +1 -1
  275. package/lib/checkbox/index.js +2 -17
  276. package/lib/checkbox/index.js.map +1 -1
  277. package/lib/color-picker/ColorPicker.js +6 -6
  278. package/lib/color-picker/index.js +1 -1
  279. package/lib/columns/index.js +1 -1
  280. package/lib/config-provider/config-provider.js +1 -1
  281. package/lib/date-picker/DatePicker.d.ts +21 -0
  282. package/lib/date-picker/DatePicker.d.ts.map +1 -0
  283. package/lib/date-picker/DatePicker.js +128 -0
  284. package/lib/date-picker/DatePicker.js.map +1 -0
  285. package/lib/date-picker/index.d.ts +2 -6
  286. package/lib/date-picker/index.d.ts.map +1 -1
  287. package/lib/date-picker/index.js +6 -37
  288. package/lib/date-picker/index.js.map +1 -1
  289. package/lib/date-picker/index.less +294 -0
  290. package/lib/date-picker/style/Calendar.less +1 -1
  291. package/lib/descriptions/descriptions.js +5 -5
  292. package/lib/descriptions/descriptions.less +1 -0
  293. package/lib/descriptions/index.d.ts +1 -1
  294. package/lib/descriptions/index.d.ts.map +1 -1
  295. package/lib/descriptions/index.js +7 -7
  296. package/lib/descriptions/index.js.map +1 -1
  297. package/lib/development-login/LoginModal.js +6 -6
  298. package/lib/development-login/index.js +4 -4
  299. package/lib/drawer/drawer.d.ts +3 -3
  300. package/lib/drawer/drawer.d.ts.map +1 -1
  301. package/lib/drawer/drawer.js +7 -7
  302. package/lib/drawer/drawer.js.map +1 -1
  303. package/lib/drawer/index.less +15 -1
  304. package/lib/drawer/style/drawer.less +18 -3
  305. package/lib/drawer/style/index.d.ts +1 -0
  306. package/lib/drawer/style/index.d.ts.map +1 -1
  307. package/lib/drawer/style/index.js +2 -1
  308. package/lib/drawer/style/index.js.map +1 -1
  309. package/lib/ellipsis/Svg/CopySVG.js +1 -1
  310. package/lib/ellipsis/Svg/TickSVG.js +1 -1
  311. package/lib/ellipsis/index.js +5 -5
  312. package/lib/empty/empty.js +2 -2
  313. package/lib/empty/empty.stories.js +2 -2
  314. package/lib/exception/exception.js +1 -1
  315. package/lib/form/form.js +2 -2
  316. package/lib/form/style/index.less +6 -0
  317. package/lib/grid-v4/col.js +2 -2
  318. package/lib/grid-v4/hooks/useBreakpoint.js +1 -1
  319. package/lib/grid-v4/index.js +1 -1
  320. package/lib/grid-v4/row.js +6 -6
  321. package/lib/handle/index.d.ts.map +1 -1
  322. package/lib/handle/index.js +16 -11
  323. package/lib/handle/index.js.map +1 -1
  324. package/lib/handle/index.less +16 -0
  325. package/lib/handle-icon/index.js +11 -11
  326. package/lib/icon/IconFont.js +1 -1
  327. package/lib/icon/components/Icon.js +9 -9
  328. package/lib/icon/components/index.js +1 -1
  329. package/lib/icon/components/utils.js +3 -3
  330. package/lib/icon/index.js +7 -7
  331. package/lib/icon/twoTonePrimaryColor.js +1 -1
  332. package/lib/icon/utils.js +1 -1
  333. package/lib/img/Contain.js +1 -1
  334. package/lib/img/Cover.js +5 -5
  335. package/lib/img/index.js +5 -5
  336. package/lib/index.d.ts +1 -0
  337. package/lib/index.d.ts.map +1 -1
  338. package/lib/index.js +8 -1
  339. package/lib/index.js.map +1 -1
  340. package/lib/input/index.d.ts +1 -1
  341. package/lib/input/index.d.ts.map +1 -1
  342. package/lib/input/index.js +7 -7
  343. package/lib/input/index.js.map +1 -1
  344. package/lib/input/input.d.ts +5 -5
  345. package/lib/input/input.d.ts.map +1 -1
  346. package/lib/input/input.js +13 -22
  347. package/lib/input/input.js.map +1 -1
  348. package/lib/input/input.less +123 -20
  349. package/lib/input-number/index.d.ts +4 -10
  350. package/lib/input-number/index.d.ts.map +1 -1
  351. package/lib/input-number/index.js +5 -32
  352. package/lib/input-number/index.js.map +1 -1
  353. package/lib/input-number/inputNumber.d.ts +10 -0
  354. package/lib/input-number/inputNumber.d.ts.map +1 -0
  355. package/lib/input-number/inputNumber.js +54 -0
  356. package/lib/input-number/inputNumber.js.map +1 -0
  357. package/lib/input-number/inputNumber.less +12 -0
  358. package/lib/label/index.js +2 -2
  359. package/lib/loading-button/index.js +5 -5
  360. package/lib/locale/default.d.ts +7 -3
  361. package/lib/locale/default.d.ts.map +1 -1
  362. package/lib/locale/default.js +1 -1
  363. package/lib/locale/en_US.d.ts +7 -3
  364. package/lib/locale/en_US.d.ts.map +1 -1
  365. package/lib/locale/en_US.js +10 -6
  366. package/lib/locale/en_US.js.map +1 -1
  367. package/lib/locale/zh_CN.d.ts +7 -3
  368. package/lib/locale/zh_CN.d.ts.map +1 -1
  369. package/lib/locale/zh_CN.js +8 -4
  370. package/lib/locale/zh_CN.js.map +1 -1
  371. package/lib/message/message.less +2 -1
  372. package/lib/modal/index.d.ts +0 -1
  373. package/lib/modal/index.d.ts.map +1 -1
  374. package/lib/modal/index.js +2 -3
  375. package/lib/modal/index.js.map +1 -1
  376. package/lib/modal/index.less +36 -0
  377. package/lib/modal/modal.d.ts.map +1 -1
  378. package/lib/modal/modal.js +91 -16
  379. package/lib/modal/modal.js.map +1 -1
  380. package/lib/modal/style/index.d.ts +1 -0
  381. package/lib/modal/style/index.d.ts.map +1 -1
  382. package/lib/modal/style/index.js +2 -1
  383. package/lib/modal/style/index.js.map +1 -1
  384. package/lib/modal/style/modal.less +15 -3
  385. package/lib/notification/assets/index.js +1 -1
  386. package/lib/notification/assets/svg-error-tip.d.ts +1 -1
  387. package/lib/notification/assets/svg-success-tip.d.ts +1 -1
  388. package/lib/notification/index.js +1 -1
  389. package/lib/notification/notification.js +1 -1
  390. package/lib/notification/notification.less +27 -2
  391. package/lib/notification/style/index.less +1 -0
  392. package/lib/page/Box.js +1 -1
  393. package/lib/page/index.js +7 -7
  394. package/lib/page-container/index.js +2 -2
  395. package/lib/page-container/index.js.map +1 -1
  396. package/lib/page-container/index.less +3 -2
  397. package/lib/page-loading/index.js +2 -2
  398. package/lib/page-loading/index.js.map +1 -1
  399. package/lib/popconfirm/index.d.ts +2 -2
  400. package/lib/popconfirm/index.d.ts.map +1 -1
  401. package/lib/popconfirm/index.js +1 -1
  402. package/lib/popconfirm/index.js.map +1 -1
  403. package/lib/popconfirm/index.less +32 -0
  404. package/lib/popconfirm/popconfirm.d.ts +8 -0
  405. package/lib/popconfirm/popconfirm.d.ts.map +1 -0
  406. package/lib/popconfirm/popconfirm.js +61 -0
  407. package/lib/popconfirm/popconfirm.js.map +1 -0
  408. package/lib/popconfirm/style/index.d.ts +1 -0
  409. package/lib/popconfirm/style/index.d.ts.map +1 -1
  410. package/lib/popconfirm/style/index.js +2 -1
  411. package/lib/popconfirm/style/index.js.map +1 -1
  412. package/lib/popover/index.d.ts +2 -2
  413. package/lib/popover/index.d.ts.map +1 -1
  414. package/lib/popover/index.js +2 -2
  415. package/lib/popover/index.js.map +1 -1
  416. package/lib/popover/index.less +57 -0
  417. package/lib/popover/popover.d.ts +14 -0
  418. package/lib/popover/popover.d.ts.map +1 -0
  419. package/lib/popover/popover.js +55 -0
  420. package/lib/popover/popover.js.map +1 -0
  421. package/lib/popover/style/index.d.ts +1 -0
  422. package/lib/popover/style/index.d.ts.map +1 -1
  423. package/lib/popover/style/index.js +2 -1
  424. package/lib/popover/style/index.js.map +1 -1
  425. package/lib/prev-locale.d.ts +1 -1
  426. package/lib/prev-locale.d.ts.map +1 -1
  427. package/lib/prev-locale.js +1 -1
  428. package/lib/prev-locale.js.map +1 -1
  429. package/lib/preview-text/index.d.ts +1 -1
  430. package/lib/preview-text/index.d.ts.map +1 -1
  431. package/lib/preview-text/index.js +7 -7
  432. package/lib/preview-text/index.js.map +1 -1
  433. package/lib/progress/index.d.ts +2 -2
  434. package/lib/progress/index.d.ts.map +1 -1
  435. package/lib/progress/index.js +1 -1
  436. package/lib/progress/index.js.map +1 -1
  437. package/lib/progress/progress.d.ts +12 -0
  438. package/lib/progress/progress.d.ts.map +1 -0
  439. package/lib/progress/progress.js +148 -0
  440. package/lib/progress/progress.js.map +1 -0
  441. package/lib/progress/progress.less +82 -0
  442. package/lib/query-form/Field/Checkbox.js +2 -2
  443. package/lib/query-form/Field/Checkbox.js.map +1 -1
  444. package/lib/query-form/Field/Composition/FieldPopover.d.ts +19 -0
  445. package/lib/query-form/Field/Composition/FieldPopover.d.ts.map +1 -0
  446. package/lib/query-form/Field/Composition/FieldPopover.js +338 -0
  447. package/lib/query-form/Field/Composition/FieldPopover.js.map +1 -0
  448. package/lib/query-form/Field/Composition/FieldPopover.less +35 -0
  449. package/lib/query-form/Field/Composition/Select.d.ts +4 -0
  450. package/lib/query-form/Field/Composition/Select.d.ts.map +1 -0
  451. package/lib/query-form/Field/Composition/Select.js +146 -0
  452. package/lib/query-form/Field/Composition/Select.js.map +1 -0
  453. package/lib/query-form/Field/Composition/ValueTag.d.ts +12 -0
  454. package/lib/query-form/Field/Composition/ValueTag.d.ts.map +1 -0
  455. package/lib/query-form/Field/Composition/ValueTag.js +153 -0
  456. package/lib/query-form/Field/Composition/ValueTag.js.map +1 -0
  457. package/lib/query-form/Field/Composition/index.d.ts +12 -0
  458. package/lib/query-form/Field/Composition/index.d.ts.map +1 -0
  459. package/lib/query-form/Field/Composition/index.js +277 -0
  460. package/lib/query-form/Field/Composition/index.js.map +1 -0
  461. package/lib/query-form/Field/Composition/index.less +120 -0
  462. package/lib/query-form/Field/Composition/utils.d.ts +22 -0
  463. package/lib/query-form/Field/Composition/utils.d.ts.map +1 -0
  464. package/lib/query-form/Field/Composition/utils.js +168 -0
  465. package/lib/query-form/Field/Composition/utils.js.map +1 -0
  466. package/lib/query-form/Field/Select.js +6 -6
  467. package/lib/query-form/Field/SelectInput.d.ts.map +1 -1
  468. package/lib/query-form/Field/SelectInput.js +21 -9
  469. package/lib/query-form/Field/SelectInput.js.map +1 -1
  470. package/lib/query-form/Field/fieldsMap.d.ts +6 -3
  471. package/lib/query-form/Field/fieldsMap.js +3 -3
  472. package/lib/query-form/Field/fieldsMap.js.map +1 -1
  473. package/lib/query-form/Field/index.d.ts.map +1 -1
  474. package/lib/query-form/Field/index.js +11 -10
  475. package/lib/query-form/Field/index.js.map +1 -1
  476. package/lib/query-form/createActions.js +1 -1
  477. package/lib/query-form/index.d.ts +19 -27
  478. package/lib/query-form/index.d.ts.map +1 -1
  479. package/lib/query-form/index.js +191 -361
  480. package/lib/query-form/index.js.map +1 -1
  481. package/lib/query-form/index.less +26 -60
  482. package/lib/query-form/useForm.js +1 -1
  483. package/lib/query-form-backup/Field/Composition/FieldPopover.less +35 -0
  484. package/lib/query-form-backup/Field/Composition/index.less +114 -0
  485. package/lib/query-form-backup/index.less +90 -0
  486. package/lib/query-form-v2/Field/Checkbox.d.ts +8 -0
  487. package/lib/query-form-v2/Field/Checkbox.d.ts.map +1 -0
  488. package/lib/query-form-v2/Field/Checkbox.js +28 -0
  489. package/lib/query-form-v2/Field/Checkbox.js.map +1 -0
  490. package/lib/query-form-v2/Field/Select.d.ts +4 -0
  491. package/lib/query-form-v2/Field/Select.d.ts.map +1 -0
  492. package/lib/query-form-v2/Field/Select.js +80 -0
  493. package/lib/query-form-v2/Field/Select.js.map +1 -0
  494. package/lib/query-form-v2/Field/SelectInput.d.ts +4 -0
  495. package/lib/query-form-v2/Field/SelectInput.d.ts.map +1 -0
  496. package/lib/query-form-v2/Field/SelectInput.js +88 -0
  497. package/lib/query-form-v2/Field/SelectInput.js.map +1 -0
  498. package/lib/query-form-v2/Field/fieldsMap.d.ts +24 -0
  499. package/lib/query-form-v2/Field/fieldsMap.d.ts.map +1 -0
  500. package/lib/query-form-v2/Field/fieldsMap.js +35 -0
  501. package/lib/query-form-v2/Field/fieldsMap.js.map +1 -0
  502. package/lib/query-form-v2/Field/index.d.ts +14 -0
  503. package/lib/query-form-v2/Field/index.d.ts.map +1 -0
  504. package/lib/query-form-v2/Field/index.js +146 -0
  505. package/lib/query-form-v2/Field/index.js.map +1 -0
  506. package/lib/query-form-v2/createActions.d.ts +14 -0
  507. package/lib/query-form-v2/createActions.d.ts.map +1 -0
  508. package/lib/query-form-v2/createActions.js +54 -0
  509. package/lib/query-form-v2/createActions.js.map +1 -0
  510. package/lib/query-form-v2/index.d.ts +39 -0
  511. package/lib/query-form-v2/index.d.ts.map +1 -0
  512. package/lib/query-form-v2/index.js +391 -0
  513. package/lib/query-form-v2/index.js.map +1 -0
  514. package/lib/query-form-v2/index.less +133 -0
  515. package/lib/query-form-v2/useForm.d.ts +13 -0
  516. package/lib/query-form-v2/useForm.d.ts.map +1 -0
  517. package/lib/query-form-v2/useForm.js +13 -0
  518. package/lib/query-form-v2/useForm.js.map +1 -0
  519. package/lib/query-form-v3/Field/Checkbox.d.ts +8 -0
  520. package/lib/query-form-v3/Field/Checkbox.d.ts.map +1 -0
  521. package/lib/query-form-v3/Field/Checkbox.js +28 -0
  522. package/lib/query-form-v3/Field/Checkbox.js.map +1 -0
  523. package/lib/query-form-v3/Field/Composition/FieldPopover.d.ts +19 -0
  524. package/lib/query-form-v3/Field/Composition/FieldPopover.d.ts.map +1 -0
  525. package/lib/query-form-v3/Field/Composition/FieldPopover.js +381 -0
  526. package/lib/query-form-v3/Field/Composition/FieldPopover.js.map +1 -0
  527. package/lib/query-form-v3/Field/Composition/FieldPopover.less +35 -0
  528. package/lib/query-form-v3/Field/Composition/Select.d.ts +4 -0
  529. package/lib/query-form-v3/Field/Composition/Select.d.ts.map +1 -0
  530. package/lib/query-form-v3/Field/Composition/Select.js +131 -0
  531. package/lib/query-form-v3/Field/Composition/Select.js.map +1 -0
  532. package/lib/query-form-v3/Field/Composition/index.d.ts +10 -0
  533. package/lib/query-form-v3/Field/Composition/index.d.ts.map +1 -0
  534. package/lib/query-form-v3/Field/Composition/index.js +255 -0
  535. package/lib/query-form-v3/Field/Composition/index.js.map +1 -0
  536. package/lib/query-form-v3/Field/Composition/index.less +118 -0
  537. package/lib/query-form-v3/Field/Composition/utils.d.ts +22 -0
  538. package/lib/query-form-v3/Field/Composition/utils.d.ts.map +1 -0
  539. package/lib/query-form-v3/Field/Composition/utils.js +147 -0
  540. package/lib/query-form-v3/Field/Composition/utils.js.map +1 -0
  541. package/lib/query-form-v3/Field/Select.d.ts +4 -0
  542. package/lib/query-form-v3/Field/Select.d.ts.map +1 -0
  543. package/lib/query-form-v3/Field/Select.js +80 -0
  544. package/lib/query-form-v3/Field/Select.js.map +1 -0
  545. package/lib/query-form-v3/Field/SelectInput.d.ts +4 -0
  546. package/lib/query-form-v3/Field/SelectInput.d.ts.map +1 -0
  547. package/lib/query-form-v3/Field/SelectInput.js +100 -0
  548. package/lib/query-form-v3/Field/SelectInput.js.map +1 -0
  549. package/lib/query-form-v3/Field/fieldsMap.d.ts +27 -0
  550. package/lib/query-form-v3/Field/fieldsMap.d.ts.map +1 -0
  551. package/lib/query-form-v3/Field/fieldsMap.js +35 -0
  552. package/lib/query-form-v3/Field/fieldsMap.js.map +1 -0
  553. package/lib/query-form-v3/Field/index.d.ts +14 -0
  554. package/lib/query-form-v3/Field/index.d.ts.map +1 -0
  555. package/lib/query-form-v3/Field/index.js +147 -0
  556. package/lib/query-form-v3/Field/index.js.map +1 -0
  557. package/lib/query-form-v3/createActions.d.ts +14 -0
  558. package/lib/query-form-v3/createActions.d.ts.map +1 -0
  559. package/lib/query-form-v3/createActions.js +54 -0
  560. package/lib/query-form-v3/createActions.js.map +1 -0
  561. package/lib/query-form-v3/index.d.ts +27 -0
  562. package/lib/query-form-v3/index.d.ts.map +1 -0
  563. package/lib/query-form-v3/index.js +206 -0
  564. package/lib/query-form-v3/index.js.map +1 -0
  565. package/lib/query-form-v3/index.less +91 -0
  566. package/lib/query-form-v3/useForm.d.ts +13 -0
  567. package/lib/query-form-v3/useForm.d.ts.map +1 -0
  568. package/lib/query-form-v3/useForm.js +13 -0
  569. package/lib/query-form-v3/useForm.js.map +1 -0
  570. package/lib/query-list-scene/List.d.ts.map +1 -1
  571. package/lib/query-list-scene/List.js +31 -16
  572. package/lib/query-list-scene/List.js.map +1 -1
  573. package/lib/query-list-scene/QueryForm.d.ts +5 -3
  574. package/lib/query-list-scene/QueryForm.d.ts.map +1 -1
  575. package/lib/query-list-scene/QueryForm.js +48 -23
  576. package/lib/query-list-scene/QueryForm.js.map +1 -1
  577. package/lib/query-list-scene/QueryListScene.js +10 -10
  578. package/lib/query-list-scene/Title.js +1 -1
  579. package/lib/query-list-scene/Toolbar.js +2 -2
  580. package/lib/query-list-scene/createActions.js +1 -1
  581. package/lib/query-list-scene/index.d.ts.map +1 -1
  582. package/lib/query-list-scene/index.js +3 -2
  583. package/lib/query-list-scene/index.js.map +1 -1
  584. package/lib/query-list-scene/index.less +7 -7
  585. package/lib/query-list-scene/useActions.js +1 -1
  586. package/lib/radio/index.d.ts +3 -2
  587. package/lib/radio/index.d.ts.map +1 -1
  588. package/lib/radio/index.js +2 -5
  589. package/lib/radio/index.js.map +1 -1
  590. package/lib/radio/radio.d.ts +17 -0
  591. package/lib/radio/radio.d.ts.map +1 -0
  592. package/lib/radio/radio.js +75 -0
  593. package/lib/radio/radio.js.map +1 -0
  594. package/lib/radio/radio.less +43 -0
  595. package/lib/render-empty/render-empty.js +1 -1
  596. package/lib/scroll-bar/Bar.d.ts +4 -0
  597. package/lib/scroll-bar/Bar.d.ts.map +1 -0
  598. package/lib/scroll-bar/Bar.js +91 -0
  599. package/lib/scroll-bar/Bar.js.map +1 -0
  600. package/lib/scroll-bar/Context.d.ts +7 -0
  601. package/lib/scroll-bar/Context.d.ts.map +1 -0
  602. package/lib/scroll-bar/Context.js +13 -0
  603. package/lib/scroll-bar/Context.js.map +1 -0
  604. package/lib/scroll-bar/ScrollBar.d.ts +4 -0
  605. package/lib/scroll-bar/ScrollBar.d.ts.map +1 -0
  606. package/lib/scroll-bar/ScrollBar.js +97 -0
  607. package/lib/scroll-bar/ScrollBar.js.map +1 -0
  608. package/lib/scroll-bar/Thumb.d.ts +3 -0
  609. package/lib/scroll-bar/Thumb.d.ts.map +1 -0
  610. package/lib/scroll-bar/Thumb.js +125 -0
  611. package/lib/scroll-bar/Thumb.js.map +1 -0
  612. package/lib/scroll-bar/index.d.ts +3 -0
  613. package/lib/scroll-bar/index.d.ts.map +1 -0
  614. package/lib/scroll-bar/index.js +10 -0
  615. package/lib/scroll-bar/index.js.map +1 -0
  616. package/lib/scroll-bar/scrollBar.less +59 -0
  617. package/lib/scroll-bar/util.d.ts +40 -0
  618. package/lib/scroll-bar/util.d.ts.map +1 -0
  619. package/lib/scroll-bar/util.js +39 -0
  620. package/lib/scroll-bar/util.js.map +1 -0
  621. package/lib/segmented/index.d.ts +1 -1
  622. package/lib/segmented/index.js +2 -2
  623. package/lib/segmented/index.less +126 -112
  624. package/lib/select/index.d.ts +1 -1
  625. package/lib/select/index.d.ts.map +1 -1
  626. package/lib/select/index.js +6 -6
  627. package/lib/select/index.js.map +1 -1
  628. package/lib/select/select.d.ts +1 -1
  629. package/lib/select/select.d.ts.map +1 -1
  630. package/lib/select/select.js +5 -6
  631. package/lib/select/select.js.map +1 -1
  632. package/lib/select/select.less +83 -9
  633. package/lib/select/style/index.less +4 -4
  634. package/lib/spin/index.d.ts +3 -2
  635. package/lib/spin/index.d.ts.map +1 -1
  636. package/lib/spin/index.js +4 -6
  637. package/lib/spin/index.js.map +1 -1
  638. package/lib/spin/spin.d.ts +9 -0
  639. package/lib/spin/spin.d.ts.map +1 -0
  640. package/lib/spin/spin.js +44 -0
  641. package/lib/spin/spin.js.map +1 -0
  642. package/lib/spin/spin.less +9 -0
  643. package/lib/steps/assets/background_left.svg +12 -0
  644. package/lib/steps/assets/background_right.svg +12 -0
  645. package/lib/steps/assets/horizontal_line.svg +3 -0
  646. package/lib/steps/assets/vertical_line.svg +3 -0
  647. package/lib/steps/index.d.ts +1 -2
  648. package/lib/steps/index.d.ts.map +1 -1
  649. package/lib/steps/index.js +9 -2
  650. package/lib/steps/index.js.map +1 -1
  651. package/lib/steps/stepStyle/icon.less +51 -0
  652. package/lib/steps/stepStyle/index.less +173 -8
  653. package/lib/steps/stepStyle/nav.less +51 -259
  654. package/lib/steps/stepStyle/progress-dot.less +10 -0
  655. package/lib/steps/stepStyle/variables.less +8 -0
  656. package/lib/steps/stepStyle/vertical.less +41 -0
  657. package/lib/steps/steps.d.ts +10 -2
  658. package/lib/steps/steps.d.ts.map +1 -1
  659. package/lib/steps/steps.js +52 -24
  660. package/lib/steps/steps.js.map +1 -1
  661. package/lib/steps/style/index.d.ts.map +1 -1
  662. package/lib/steps/style/index.js.map +1 -1
  663. package/lib/style/themes/default.less +6 -5
  664. package/lib/svg-components/illustration-403.d.ts +1 -1
  665. package/lib/svg-components/illustration-404.d.ts +1 -1
  666. package/lib/svg-components/illustration-500.d.ts +1 -1
  667. package/lib/svg-components/illustration-empty.d.ts +1 -1
  668. package/lib/svg-components/illustration-failure.d.ts +1 -1
  669. package/lib/svg-components/illustration-no-access.d.ts +1 -1
  670. package/lib/svg-components/illustration-no-chart.d.ts +1 -1
  671. package/lib/svg-components/illustration-no-result.d.ts +1 -1
  672. package/lib/svg-components/illustration-offline.d.ts +1 -1
  673. package/lib/svg-components/illustration-success.d.ts +1 -1
  674. package/lib/svg-components/index.js +1 -1
  675. package/lib/switch/index.less +45 -0
  676. package/lib/switch/style/index.d.ts +1 -0
  677. package/lib/switch/style/index.d.ts.map +1 -1
  678. package/lib/switch/style/index.js +2 -1
  679. package/lib/switch/style/index.js.map +1 -1
  680. package/lib/switch/switch.d.ts +8 -0
  681. package/lib/switch/switch.d.ts.map +1 -1
  682. package/lib/switch/switch.js +40 -5
  683. package/lib/switch/switch.js.map +1 -1
  684. package/lib/table/assets/image-loading-background.d.ts +1 -1
  685. package/lib/table/assets/image-loading.d.ts +1 -1
  686. package/lib/table/hooks/use-column-setting.js +4 -4
  687. package/lib/table/hooks/use-expand-fixed.js +6 -6
  688. package/lib/table/hooks/use-expand-fixed.js.map +1 -1
  689. package/lib/table/resizableTable/index.js +6 -6
  690. package/lib/table/style/index.less +19 -21
  691. package/lib/table/style/size.less +11 -12
  692. package/lib/table/table-hoc.js +1 -1
  693. package/lib/table/table.d.ts +2 -1
  694. package/lib/table/table.d.ts.map +1 -1
  695. package/lib/table/table.js +63 -41
  696. package/lib/table/table.js.map +1 -1
  697. package/lib/table/table.less +31 -6
  698. package/lib/table/table.stories.js +5 -5
  699. package/lib/table/table.stories.js.map +1 -1
  700. package/lib/table/total-shower.js +1 -1
  701. package/lib/table/utils.js +1 -1
  702. package/lib/table-container/index.d.ts.map +1 -1
  703. package/lib/table-container/index.js +7 -3
  704. package/lib/table-container/index.js.map +1 -1
  705. package/lib/table-container/index.less +4 -1
  706. package/lib/tabs/index.d.ts +1 -0
  707. package/lib/tabs/index.d.ts.map +1 -1
  708. package/lib/tabs/index.js +6 -5
  709. package/lib/tabs/index.js.map +1 -1
  710. package/lib/tabs/style/index.js.map +1 -1
  711. package/lib/tabs/style/index.less +1 -0
  712. package/lib/tabs/tabs.d.ts +3 -2
  713. package/lib/tabs/tabs.d.ts.map +1 -1
  714. package/lib/tabs/tabs.js +30 -3
  715. package/lib/tabs/tabs.js.map +1 -1
  716. package/lib/tabs/tabs.less +125 -0
  717. package/lib/tabs-container/index.js +2 -2
  718. package/lib/tabs-container/index.js.map +1 -1
  719. package/lib/tag/tag.js +2 -2
  720. package/lib/tag/tag.less +4 -3
  721. package/lib/time-picker/TimePicker.d.ts +9 -0
  722. package/lib/time-picker/TimePicker.d.ts.map +1 -0
  723. package/lib/time-picker/TimePicker.js +55 -0
  724. package/lib/time-picker/TimePicker.js.map +1 -0
  725. package/lib/time-picker/index.d.ts +7 -6
  726. package/lib/time-picker/index.d.ts.map +1 -1
  727. package/lib/time-picker/index.js +4 -17
  728. package/lib/time-picker/index.js.map +1 -1
  729. package/lib/time-picker/index.less +38 -0
  730. package/lib/title/index.js +1 -1
  731. package/lib/title/index.less +47 -45
  732. package/lib/tntd-action/Action.d.ts +6 -0
  733. package/lib/tntd-action/Action.d.ts.map +1 -0
  734. package/lib/tntd-action/Action.js +141 -0
  735. package/lib/tntd-action/Action.js.map +1 -0
  736. package/lib/tntd-action/index.d.ts +4 -2
  737. package/lib/tntd-action/index.d.ts.map +1 -1
  738. package/lib/tntd-action/index.js +79 -5
  739. package/lib/tntd-action/index.js.map +1 -1
  740. package/lib/tntd-action/index.less +59 -0
  741. package/lib/tntd-cascader/AntdCascader/component/context.js +1 -1
  742. package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +1 -1
  743. package/lib/tntd-cascader/AntdCascader/component/getIcons.js +1 -1
  744. package/lib/tntd-cascader/AntdCascader/component/useCompactItemContext.js +2 -2
  745. package/lib/tntd-cascader/AntdCascader/config/utils.d.ts +1 -1
  746. package/lib/tntd-cascader/AntdCascader/config/utils.js +2 -2
  747. package/lib/tntd-cascader/AntdCascader/index.js +7 -7
  748. package/lib/tntd-cascader/AntdCascader/index.less +35 -29
  749. package/lib/tntd-cascader/index.js +1 -1
  750. package/lib/tntd-cascader/rc-cascader/Cascader.js +8 -8
  751. package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.js +2 -2
  752. package/lib/tntd-cascader/rc-cascader/OptionList/Column.js +7 -7
  753. package/lib/tntd-cascader/rc-cascader/OptionList/index.js +9 -9
  754. package/lib/tntd-cascader/rc-cascader/OptionList/useActive.js +5 -5
  755. package/lib/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +8 -8
  756. package/lib/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +5 -5
  757. package/lib/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +1 -1
  758. package/lib/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +6 -6
  759. package/lib/tntd-cascader/rc-cascader/index.js +1 -1
  760. package/lib/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +4 -4
  761. package/lib/tntd-form/ErrorList.js +7 -7
  762. package/lib/tntd-form/Form.js +6 -6
  763. package/lib/tntd-form/FormItem/ItemHolder.js +6 -6
  764. package/lib/tntd-form/FormItem/index.js +8 -8
  765. package/lib/tntd-form/FormItemInput.js +1 -1
  766. package/lib/tntd-form/FormItemLabel.js +2 -2
  767. package/lib/tntd-form/FormList.js +1 -1
  768. package/lib/tntd-form/context.js +1 -1
  769. package/lib/tntd-form/hooks/useDebounce.js +4 -4
  770. package/lib/tntd-form/hooks/useForm.js +5 -5
  771. package/lib/tntd-form/hooks/useFormItemStatus.js +1 -1
  772. package/lib/tntd-form/hooks/useFrameState.js +5 -5
  773. package/lib/tntd-form/index.js +1 -1
  774. package/lib/tntd-icon/index.js +1 -1
  775. package/lib/tntd-layout/AppList.js +6 -6
  776. package/lib/tntd-layout/Application.js +6 -6
  777. package/lib/tntd-layout/Avatar.js +2 -2
  778. package/lib/tntd-layout/CompatibleLanguage.js +6 -6
  779. package/lib/tntd-layout/EnterpriseLayout/Avatar.js +2 -2
  780. package/lib/tntd-layout/EnterpriseLayout/Language.js +6 -6
  781. package/lib/tntd-layout/EnterpriseLayout/Theme.js +6 -6
  782. package/lib/tntd-layout/EnterpriseLayout/index.js +1 -1
  783. package/lib/tntd-layout/GlobalNavigation/NavigationPopup.js +6 -6
  784. package/lib/tntd-layout/GlobalNavigation/index.js +9 -9
  785. package/lib/tntd-layout/Header.js +2 -2
  786. package/lib/tntd-layout/HeaderActions.js +2 -2
  787. package/lib/tntd-layout/HeaderNavs.js +6 -6
  788. package/lib/tntd-layout/HeaderTabs.js +7 -7
  789. package/lib/tntd-layout/Iconfont.js +1 -1
  790. package/lib/tntd-layout/Language.js +6 -6
  791. package/lib/tntd-layout/Layout.js +6 -6
  792. package/lib/tntd-layout/Logo.js +2 -2
  793. package/lib/tntd-layout/OrgAppList.js +6 -6
  794. package/lib/tntd-layout/SideMenu.js +6 -6
  795. package/lib/tntd-layout/Theme.js +6 -6
  796. package/lib/tntd-layout/createActions.js +1 -1
  797. package/lib/tntd-layout/images/index.js +1 -1
  798. package/lib/tntd-layout/index.js +1 -1
  799. package/lib/tntd-layout/paaslayout/CompactSideMenu.js +6 -6
  800. package/lib/tntd-layout/paaslayout/Header.js +2 -2
  801. package/lib/tntd-layout/paaslayout/Logo.js +2 -2
  802. package/lib/tntd-layout/paaslayout/SideMenu.js +6 -6
  803. package/lib/tntd-layout/paaslayout/index.js +6 -6
  804. package/lib/tntd-layout/storage.js +1 -1
  805. package/lib/tntd-modal/index.js +6 -6
  806. package/lib/tntd-rc-select/_util/PurePanel.js +5 -5
  807. package/lib/tntd-rc-select/_util/context.js +1 -1
  808. package/lib/tntd-rc-select/_util/defaultRenderEmpty.js +1 -1
  809. package/lib/tntd-rc-select/_util/getIcons.js +1 -1
  810. package/lib/tntd-rc-select/_util/useCompactItemContext.js +2 -2
  811. package/lib/tntd-rc-select/index.js +2 -2
  812. package/lib/tntd-reference/AHref/index.js +1 -1
  813. package/lib/tntd-reference/ReferenceBatchCheck/index.js +1 -1
  814. package/lib/tntd-reference/ReferenceBatchDrawer/index.js +5 -5
  815. package/lib/tntd-reference/ReferenceCheck/index.js +1 -1
  816. package/lib/tntd-reference/ReferenceDrawer/index.js +5 -5
  817. package/lib/tntd-reference/ReferenceInfo/index.js +1 -1
  818. package/lib/tntd-reference/index.js +1 -1
  819. package/lib/tntd-second-page/index.js +1 -1
  820. package/lib/tntd-select/DropDownWrap.js +8 -8
  821. package/lib/tntd-select/index.d.ts.map +1 -1
  822. package/lib/tntd-select/index.js +13 -13
  823. package/lib/tntd-select/index.js.map +1 -1
  824. package/lib/tntd-select/index.less +7 -0
  825. package/lib/tntd-virtual-tree/index.js +8 -8
  826. package/lib/tntd-virtual-tree/index.less +2 -1
  827. package/lib/tntd-virtual-tree/utils.js +28 -28
  828. package/lib/tntd-virtual-tree-select/index.js +10 -10
  829. package/lib/tntd-virtual-tree-select/index.less +1 -1
  830. package/lib/tntd-virtual-tree-select/utils.js +9 -9
  831. package/lib/tooltip/index.less +4 -5
  832. package/lib/tooltip/style/index.d.ts +1 -0
  833. package/lib/tooltip/style/index.d.ts.map +1 -1
  834. package/lib/tooltip/style/index.js +2 -1
  835. package/lib/tooltip/style/index.js.map +1 -1
  836. package/lib/tooltip/tooltip.js +1 -1
  837. package/lib/upload/index.d.ts.map +1 -1
  838. package/lib/upload/index.js +7 -8
  839. package/lib/upload/index.js.map +1 -1
  840. package/lib/upload/style/index.less +1 -1
  841. package/lib/upload/svg/UploadSVG.js +1 -1
  842. package/lib/upload/upload.less +5 -12
  843. package/lib/utils/checkAuth.js +4 -4
  844. package/lib/utils/index.d.ts +0 -1
  845. package/lib/utils/index.d.ts.map +1 -1
  846. package/lib/utils/index.js +9 -21
  847. package/lib/utils/index.js.map +1 -1
  848. package/lib/utils/lang.d.ts.map +1 -1
  849. package/lib/utils/lang.js +10 -4
  850. package/lib/utils/lang.js.map +1 -1
  851. package/lib/water-mark/index.js +5 -5
  852. package/package.json +3 -2
  853. package/CHANGELOG.json +0 -1034
  854. package/CHANGELOG.md +0 -605
  855. package/es/checkbox/checkbox-group.js +0 -5
  856. package/es/checkbox/checkbox-group.js.map +0 -1
  857. package/es/radio/radio-group.js +0 -5
  858. package/es/radio/radio-group.js.map +0 -1
  859. package/es/steps/stepStyle/small.less +0 -5
  860. package/lib/checkbox/checkbox-group.d.ts +0 -8
  861. package/lib/checkbox/checkbox-group.d.ts.map +0 -1
  862. package/lib/checkbox/checkbox-group.js +0 -12
  863. package/lib/checkbox/checkbox-group.js.map +0 -1
  864. package/lib/radio/radio-group.d.ts +0 -8
  865. package/lib/radio/radio-group.d.ts.map +0 -1
  866. package/lib/radio/radio-group.js +0 -12
  867. package/lib/radio/radio-group.js.map +0 -1
  868. package/lib/steps/stepStyle/small.less +0 -5
@@ -0,0 +1,391 @@
1
+ "use strict";
2
+
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var _debounce2 = _interopRequireDefault(require("lodash/debounce"));
9
+ var _classnames3 = _interopRequireDefault(require("classnames"));
10
+ var _react = _interopRequireWildcard(require("react"));
11
+ var _createActions = _interopRequireDefault(require("./createActions"));
12
+ var _Field = _interopRequireDefault(require("./Field"));
13
+ var _useForm = _interopRequireDefault(require("./useForm"));
14
+ var _badge = _interopRequireDefault(require("../badge"));
15
+ var _button = _interopRequireDefault(require("../button"));
16
+ var _drawer = _interopRequireDefault(require("../drawer"));
17
+ var _form = _interopRequireDefault(require("../form"));
18
+ var _prevLocale = require("../prev-locale");
19
+ var _tntdIcon = _interopRequireDefault(require("../tntd-icon"));
20
+ require("./index.less");
21
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
22
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
23
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
24
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
25
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
26
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
27
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
28
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
29
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
30
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
31
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
32
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
33
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
34
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
35
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
36
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
37
+ var clsPrefix = 'tnt-queryform';
38
+ var QueryForm = /*#__PURE__*/function (_React$PureComponent) {
39
+ function QueryForm(props) {
40
+ var _this;
41
+ _classCallCheck(this, QueryForm);
42
+ _this = _callSuper(this, QueryForm, [props]);
43
+ Object.defineProperty(_this, "onWindowResize", {
44
+ enumerable: true,
45
+ configurable: true,
46
+ writable: true,
47
+ value: (0, _debounce2["default"])(function () {
48
+ var current = _this.fieldsRef.current;
49
+ if (current) {
50
+ setTimeout(function () {
51
+ _this.setState({
52
+ showMore: _this.isFieldsWidthOverflow()
53
+ });
54
+ }, 25);
55
+ }
56
+ }, 50)
57
+ });
58
+ Object.defineProperty(_this, "search", {
59
+ enumerable: true,
60
+ configurable: true,
61
+ writable: true,
62
+ value: function value(params) {
63
+ _this.props.onSearch(Object.assign(Object.assign({}, _this.form.getValues()), params));
64
+ }
65
+ });
66
+ Object.defineProperty(_this, "onSearch", {
67
+ enumerable: true,
68
+ configurable: true,
69
+ writable: true,
70
+ value: function value() {
71
+ var _a, _b;
72
+ (_b = (_a = _this.props).onSearch) === null || _b === void 0 ? void 0 : _b.call(_a, _this.form.getValues());
73
+ }
74
+ });
75
+ Object.defineProperty(_this, "onReset", {
76
+ enumerable: true,
77
+ configurable: true,
78
+ writable: true,
79
+ value: function value() {
80
+ var _this$props = _this.props,
81
+ initialValues = _this$props.initialValues,
82
+ onReset = _this$props.onReset;
83
+ _this.form.setValues(Object.assign({}, initialValues));
84
+ _this.updateDrawerFieldsValueCount();
85
+ onReset === null || onReset === void 0 ? void 0 : onReset(initialValues);
86
+ }
87
+ });
88
+ Object.defineProperty(_this, "onToggleExpand", {
89
+ enumerable: true,
90
+ configurable: true,
91
+ writable: true,
92
+ value: function value() {
93
+ var _a, _b;
94
+ _this.setState({
95
+ expanded: !_this.state.expanded
96
+ });
97
+ (_b = (_a = _this.props).onToggleExpand) === null || _b === void 0 ? void 0 : _b.call(_a, !_this.state.expanded);
98
+ }
99
+ });
100
+ Object.defineProperty(_this, "onShowDrawer", {
101
+ enumerable: true,
102
+ configurable: true,
103
+ writable: true,
104
+ value: function value() {
105
+ _this.setState({
106
+ drawerVisible: true
107
+ });
108
+ }
109
+ });
110
+ Object.defineProperty(_this, "onFieldChange", {
111
+ enumerable: true,
112
+ configurable: true,
113
+ writable: true,
114
+ value: function value(name, _value) {
115
+ var values = _this.form.getValues();
116
+ var newValues = Object.assign(Object.assign({}, values), _defineProperty({}, name, _value));
117
+ var changedInfo = {
118
+ name: name,
119
+ value: _value,
120
+ preValue: values === null || values === void 0 ? void 0 : values[name]
121
+ };
122
+ var onChange = _this.props.onChange;
123
+ _this.form.setData('values', newValues);
124
+ for (var _len = arguments.length, rest = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
125
+ rest[_key - 2] = arguments[_key];
126
+ }
127
+ onChange && onChange.apply(void 0, [newValues, changedInfo].concat(rest));
128
+ _this.updateDrawerFieldsValueCount(newValues);
129
+ }
130
+ });
131
+ Object.defineProperty(_this, "updateDrawerFieldsValueCount", {
132
+ enumerable: true,
133
+ configurable: true,
134
+ writable: true,
135
+ value: function value() {
136
+ var values = _this.form.getValues();
137
+ var _this$props2 = _this.props,
138
+ showFieldCount = _this$props2.showFieldCount,
139
+ children = _this$props2.children;
140
+ if (showFieldCount) {
141
+ var drawerFieldsValueCount = children.reduce(function (acc, cur, index) {
142
+ var _a;
143
+ if (index >= showFieldCount && (values === null || values === void 0 ? void 0 : values[(_a = cur === null || cur === void 0 ? void 0 : cur.props) === null || _a === void 0 ? void 0 : _a.name])) {
144
+ acc++;
145
+ }
146
+ return acc;
147
+ }, 0);
148
+ if (drawerFieldsValueCount !== _this.state.drawerFieldsValueCount) {
149
+ _this.setState({
150
+ drawerFieldsValueCount: drawerFieldsValueCount
151
+ });
152
+ }
153
+ }
154
+ }
155
+ });
156
+ Object.defineProperty(_this, "addResizeListener", {
157
+ enumerable: true,
158
+ configurable: true,
159
+ writable: true,
160
+ value: function value() {
161
+ if ('ResizeObserver' in window) {
162
+ var current = _this.fieldsRef.current;
163
+ if (current) {
164
+ var observer = new ResizeObserver(_this.onWindowResize);
165
+ observer.observe(current);
166
+ return function () {
167
+ return observer.disconnect();
168
+ };
169
+ }
170
+ } else {
171
+ window.addEventListener('resize', _this.onWindowResize);
172
+ return function () {
173
+ return window.removeEventListener('resize', _this.onWindowResize);
174
+ };
175
+ }
176
+ }
177
+ });
178
+ var form = props.form,
179
+ initialValues = props.initialValues,
180
+ _props$showExpand = props.showExpand,
181
+ showExpand = _props$showExpand === void 0 ? true : _props$showExpand,
182
+ renderActions = props.renderActions,
183
+ defaultExpanded = props.defaultExpanded;
184
+ _this.state = {
185
+ showMore: false,
186
+ expanded: defaultExpanded || !showExpand || renderActions ? true : false,
187
+ drawerVisible: false,
188
+ drawerFieldsValueCount: 0
189
+ };
190
+ _this.fieldsRef = (0, _react.createRef)();
191
+ _this.formBoxRef = (0, _react.createRef)();
192
+ _this.form = form || (0, _createActions["default"])();
193
+ _this.form.setData('initialValues', initialValues);
194
+ _this.form.setData('values', Object.assign({}, initialValues));
195
+ return _this;
196
+ }
197
+ _inherits(QueryForm, _React$PureComponent);
198
+ return _createClass(QueryForm, [{
199
+ key: "render",
200
+ value: function render() {
201
+ var _this2 = this;
202
+ var _this$props3 = this.props,
203
+ children = _this$props3.children,
204
+ _this$props3$classNam = _this$props3.className,
205
+ className = _this$props3$classNam === void 0 ? '' : _this$props3$classNam,
206
+ _this$props3$initialV = _this$props3.initialValues,
207
+ initialValues = _this$props3$initialV === void 0 ? {} : _this$props3$initialV,
208
+ renderActions = _this$props3.renderActions,
209
+ _this$props3$showSear = _this$props3.showSearch,
210
+ showSearch = _this$props3$showSear === void 0 ? true : _this$props3$showSear,
211
+ _this$props3$showRese = _this$props3.showReset,
212
+ showReset = _this$props3$showRese === void 0 ? true : _this$props3$showRese,
213
+ showFieldCount = _this$props3.showFieldCount,
214
+ _this$props3$drawerPr = _this$props3.drawerProps,
215
+ drawerProps = _this$props3$drawerPr === void 0 ? {} : _this$props3$drawerPr,
216
+ size = _this$props3.size;
217
+ var extraActions = this.props.extraActions;
218
+ var _this$state = this.state,
219
+ expanded = _this$state.expanded,
220
+ showMore = _this$state.showMore,
221
+ drawerVisible = _this$state.drawerVisible,
222
+ drawerFieldsValueCount = _this$state.drawerFieldsValueCount;
223
+ var renderFormActions = renderActions || function () {
224
+ return _react["default"].createElement(_react["default"].Fragment, null, showFieldCount && _react["default"].createElement(_badge["default"], {
225
+ count: drawerFieldsValueCount
226
+ }, _react["default"].createElement(_button["default"], {
227
+ onClick: _this2.onShowDrawer
228
+ }, _react["default"].createElement(_tntdIcon["default"], {
229
+ type: "filter"
230
+ }), _this2.getText('moreFiltering'))), showSearch && _react["default"].createElement(_button["default"], {
231
+ type: "primary",
232
+ onClick: _this2.onSearch
233
+ }, _this2.getText('search')), showReset && _react["default"].createElement(_button["default"], {
234
+ onClick: _this2.onReset
235
+ }, _this2.getText('reset')), showMore && !showFieldCount && _react["default"].createElement(_button["default"], {
236
+ className: "expand-link",
237
+ type: "link",
238
+ onClick: _this2.onToggleExpand
239
+ }, _this2.getText(expanded ? 'collapse' : 'expand')), _react["default"].Children.map(children, function (child) {
240
+ var _a;
241
+ return child && ((_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.align) === 'right' && _react["default"].cloneElement(child);
242
+ }));
243
+ };
244
+ return _react["default"].createElement("div", {
245
+ ref: this.formBoxRef,
246
+ className: (0, _classnames3["default"])(clsPrefix, _defineProperty({}, className, className))
247
+ }, _react["default"].createElement(_form["default"], {
248
+ layout: "inline",
249
+ className: (0, _classnames3["default"])({
250
+ expanded: !showMore || expanded,
251
+ showMore: showMore
252
+ })
253
+ }, _react["default"].createElement("div", {
254
+ ref: this.fieldsRef
255
+ }, _react["default"].Children.map(children, function (child, index) {
256
+ var _a, _b;
257
+ return child && ((_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.align) !== 'right' && (!showFieldCount || showFieldCount > index) && _react["default"].cloneElement(child, {
258
+ form: _this2.form,
259
+ initialValue: initialValues === null || initialValues === void 0 ? void 0 : initialValues[(_b = child.props) === null || _b === void 0 ? void 0 : _b.name],
260
+ onChange: _this2.onFieldChange
261
+ });
262
+ })), _react["default"].createElement("div", {
263
+ className: "".concat(clsPrefix, "-actions")
264
+ }, renderFormActions()), showFieldCount && _react["default"].createElement(_drawer["default"], Object.assign({
265
+ title: this.getText('moreFiltering'),
266
+ visible: drawerVisible,
267
+ onClose: function onClose() {
268
+ return _this2.setState({
269
+ drawerVisible: false
270
+ });
271
+ },
272
+ width: 300,
273
+ size: size,
274
+ getContainer: false
275
+ }, drawerProps, {
276
+ className: (0, _classnames3["default"])("".concat(clsPrefix, "-drawer"), _defineProperty({
277
+ 'large-size': size === 'large'
278
+ }, className, className))
279
+ }), _react["default"].Children.map(children, function (child, index) {
280
+ return child && index >= showFieldCount && _react["default"].cloneElement(child, {
281
+ form: _this2.form,
282
+ isFieldInDrawer: true,
283
+ initialValue: initialValues === null || initialValues === void 0 ? void 0 : initialValues[child.props.name],
284
+ onChange: _this2.onFieldChange,
285
+ onSearch: _this2.onSearch
286
+ });
287
+ }), _react["default"].createElement(_button["default"], {
288
+ type: "primary",
289
+ onClick: this.onSearch
290
+ }, this.getText('search')), _react["default"].createElement(_button["default"], {
291
+ onClick: this.onReset
292
+ }, this.getText('reset')))), extraActions && _react["default"].createElement("div", {
293
+ className: "".concat(clsPrefix, "-extra")
294
+ }, extraActions));
295
+ }
296
+ }, {
297
+ key: "getText",
298
+ value: function getText(key) {
299
+ return (0, _prevLocale.getText)(key, this.props.language || (0, _prevLocale.getLanguage)());
300
+ }
301
+ }, {
302
+ key: "isFieldsWidthOverflow",
303
+ value: function isFieldsWidthOverflow() {
304
+ var current = this.fieldsRef.current;
305
+ if (current) {
306
+ return parseFloat(window.getComputedStyle(current).width, 10) < [].reduce.call(current.children, function (acc, cur) {
307
+ var _window$getComputedSt = window.getComputedStyle(cur),
308
+ margin = _window$getComputedSt.margin,
309
+ width = _window$getComputedSt.width;
310
+ var marginArray = margin.split(' ').map(function (str) {
311
+ return parseFloat(str, 10);
312
+ });
313
+ acc += parseFloat(width, 10) + marginArray[1];
314
+ return acc;
315
+ }, 0);
316
+ }
317
+ return false;
318
+ }
319
+ }, {
320
+ key: "updateFieldHeight",
321
+ value: function updateFieldHeight() {
322
+ var _a, _b, _c;
323
+ var formBoxRef = this.formBoxRef,
324
+ fieldsRef = this.fieldsRef;
325
+ var getFieldHeight = function getFieldHeight() {
326
+ var _a;
327
+ var current = fieldsRef.current;
328
+ var height = '32px';
329
+ if (current && ((_a = current.children) === null || _a === void 0 ? void 0 : _a[0])) {
330
+ height = window.getComputedStyle(current.children[0]).height;
331
+ }
332
+ return height;
333
+ };
334
+ var queryFormActionsDom = (_a = formBoxRef === null || formBoxRef === void 0 ? void 0 : formBoxRef.current) === null || _a === void 0 ? void 0 : _a.querySelector(".".concat(clsPrefix, "-actions"));
335
+ var queryFormExtraDom = (_b = formBoxRef === null || formBoxRef === void 0 ? void 0 : formBoxRef.current) === null || _b === void 0 ? void 0 : _b.querySelector(".".concat(clsPrefix, "-extra"));
336
+ var formItemsDomList = (_c = fieldsRef === null || fieldsRef === void 0 ? void 0 : fieldsRef.current) === null || _c === void 0 ? void 0 : _c.querySelectorAll('.ant-form-item-control');
337
+ var fieldHeight = getFieldHeight();
338
+ fieldsRef.current.style.height = fieldHeight;
339
+ [queryFormActionsDom, queryFormExtraDom].forEach(function (item) {
340
+ item && Object.assign(item.style, {
341
+ height: fieldHeight,
342
+ lineHeight: fieldHeight
343
+ });
344
+ });
345
+ [].forEach.call(formItemsDomList, function (item) {
346
+ item.style.lineHeight = fieldHeight;
347
+ });
348
+ }
349
+ }, {
350
+ key: "componentDidMount",
351
+ value: function componentDidMount() {
352
+ var current = this.fieldsRef.current;
353
+ var _this$props4 = this.props,
354
+ showFieldCount = _this$props4.showFieldCount,
355
+ _this$props4$showExpa = _this$props4.showExpand,
356
+ showExpand = _this$props4$showExpa === void 0 ? true : _this$props4$showExpa;
357
+ this.updateFieldHeight();
358
+ this.form.on('search', this.search);
359
+ // 未设置第一行显示数量且禁止了展开操作 或 自定义了操作区域,则不需要处理展开计算逻辑
360
+ // || renderActions
361
+ if (!showFieldCount && !showExpand) {
362
+ return;
363
+ }
364
+ if (!showFieldCount) {
365
+ if (current && this.isFieldsWidthOverflow()) {
366
+ this.setState({
367
+ showMore: true
368
+ });
369
+ }
370
+ this.removeResizeListener = this.addResizeListener();
371
+ } else {
372
+ this.updateDrawerFieldsValueCount();
373
+ this.form.on('setValues', this.updateDrawerFieldsValueCount);
374
+ this.form.on('setValue', this.updateDrawerFieldsValueCount);
375
+ }
376
+ }
377
+ }, {
378
+ key: "componentWillUnmount",
379
+ value: function componentWillUnmount() {
380
+ var _a;
381
+ (_a = this.removeResizeListener) === null || _a === void 0 ? void 0 : _a.call(this);
382
+ this.form.off('setValues', this.updateDrawerFieldsValueCount);
383
+ this.form.off('setValue', this.updateDrawerFieldsValueCount);
384
+ this.form.off('search', this.search);
385
+ }
386
+ }]);
387
+ }(_react["default"].PureComponent);
388
+ QueryForm.Field = _Field["default"];
389
+ QueryForm.useForm = _useForm["default"];
390
+ QueryForm.createForm = _createActions["default"];
391
+ var _default = exports["default"] = QueryForm;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/query-form-v2/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4DAAmC;AACnC,mCAAiC;AACjC,+CAAwC;AACxC,oEAA2C;AAC3C,oDAA2B;AAC3B,wDAA+B;AAE/B,qDAA4B;AAC5B,uDAA8B;AAC9B,uDAA8B;AAC9B,mDAA0B;AAC1B,gDAAqD;AACrD,6DAA+B;AAE/B,wBAAqB;AAErB,MAAM,SAAS,GAAG,eAAe,CAAA;AAEjC,MAAM,SAAU,SA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iBAAO,CAAA;AAC3B,SAAS,CAAC,UAAU,GAAG,uBAAa,CAAA;AAEpC,kBAAe,SAAS,CAAA","sourcesContent":["import classnames from 'classnames'\nimport { debounce } from 'lodash'\nimport React, { createRef } from 'react'\nimport createActions from './createActions'\nimport Field from './Field'\nimport useForm from './useForm'\n\nimport Badge from '../badge'\nimport Button from '../button'\nimport Drawer from '../drawer'\nimport Form from '../form'\nimport { getLanguage, getText } from '../prev-locale'\nimport Icon from '../tntd-icon'\n\nimport './index.less'\n\nconst clsPrefix = 'tnt-queryform'\n\nclass QueryForm extends React.PureComponent {\n constructor(props) {\n super(props)\n const { form, initialValues, showExpand = true, renderActions, defaultExpanded } = props\n this.state = {\n showMore: false,\n expanded: defaultExpanded || !showExpand || renderActions ? true : false,\n drawerVisible: false,\n drawerFieldsValueCount: 0,\n }\n this.fieldsRef = createRef()\n this.formBoxRef = createRef()\n\n this.form = form || createActions()\n this.form.setData('initialValues', initialValues)\n this.form.setData('values', { ...initialValues })\n }\n\n render() {\n const {\n children,\n className = '',\n initialValues = {},\n renderActions,\n showSearch = true,\n showReset = true,\n showFieldCount,\n drawerProps = {},\n size,\n } = this.props\n const extraActions = this.props.extraActions\n const { expanded, showMore, drawerVisible, drawerFieldsValueCount } = this.state\n const renderFormActions =\n renderActions ||\n (() => (\n <>\n {showFieldCount && (\n <Badge count={drawerFieldsValueCount}>\n <Button onClick={this.onShowDrawer}>\n <Icon type=\"filter\" />\n {this.getText('moreFiltering')}\n </Button>\n </Badge>\n )}\n {showSearch && (\n <Button type=\"primary\" onClick={this.onSearch}>\n {this.getText('search')}\n </Button>\n )}\n {showReset && <Button onClick={this.onReset}>{this.getText('reset')}</Button>}\n {showMore && !showFieldCount && (\n <Button className=\"expand-link\" type=\"link\" onClick={this.onToggleExpand}>\n {this.getText(expanded ? 'collapse' : 'expand')}\n </Button>\n )}\n {React.Children.map(\n children,\n (child) => child && child?.props?.align === 'right' && React.cloneElement(child)\n )}\n </>\n ))\n\n return (\n <div ref={this.formBoxRef} className={classnames(clsPrefix, { [className]: className })}>\n <Form layout=\"inline\" className={classnames({ expanded: !showMore || expanded, showMore })}>\n <div ref={this.fieldsRef}>\n {React.Children.map(\n children,\n (child, index) =>\n child &&\n child?.props?.align !== 'right' &&\n (!showFieldCount || showFieldCount > index) &&\n React.cloneElement(child, {\n form: this.form,\n initialValue: initialValues?.[child.props?.name],\n onChange: this.onFieldChange,\n })\n )}\n </div>\n <div className={`${clsPrefix}-actions`}>{renderFormActions()}</div>\n {showFieldCount && (\n <Drawer\n title={this.getText('moreFiltering')}\n visible={drawerVisible}\n onClose={() => this.setState({ drawerVisible: false })}\n width={300}\n size={size}\n getContainer={false}\n {...drawerProps}\n className={classnames(`${clsPrefix}-drawer`, {\n 'large-size': size === 'large',\n [className]: className,\n })}\n >\n {React.Children.map(\n children,\n (child, index) =>\n child &&\n index >= showFieldCount &&\n React.cloneElement(child, {\n form: this.form,\n isFieldInDrawer: true,\n initialValue: initialValues?.[child.props.name],\n onChange: this.onFieldChange,\n onSearch: this.onSearch,\n })\n )}\n <Button type=\"primary\" onClick={this.onSearch}>\n {this.getText('search')}\n </Button>\n <Button onClick={this.onReset}>{this.getText('reset')}</Button>\n </Drawer>\n )}\n </Form>\n {extraActions && <div className={`${clsPrefix}-extra`}>{extraActions}</div>}\n </div>\n )\n }\n\n getText(key) {\n return getText(key, this.props.language || getLanguage())\n }\n\n isFieldsWidthOverflow() {\n const { current } = this.fieldsRef\n\n if (current) {\n return (\n parseFloat(window.getComputedStyle(current).width, 10) <\n [].reduce.call(\n current.children,\n (acc, cur) => {\n const { margin, width } = window.getComputedStyle(cur)\n const marginArray = margin.split(' ').map((str) => parseFloat(str, 10))\n acc += parseFloat(width, 10) + marginArray[1]\n return acc\n },\n 0\n )\n )\n }\n\n return false\n }\n\n updateFieldHeight() {\n const { formBoxRef, fieldsRef } = this\n const getFieldHeight = () => {\n const { current } = fieldsRef\n let height = '32px'\n\n if (current && current.children?.[0]) {\n height = window.getComputedStyle(current.children[0]).height\n }\n\n return height\n }\n const queryFormActionsDom = formBoxRef?.current?.querySelector(`.${clsPrefix}-actions`)\n const queryFormExtraDom = formBoxRef?.current?.querySelector(`.${clsPrefix}-extra`)\n const formItemsDomList = fieldsRef?.current?.querySelectorAll('.ant-form-item-control')\n const fieldHeight = getFieldHeight()\n\n fieldsRef.current.style.height = fieldHeight\n ;[queryFormActionsDom, queryFormExtraDom].forEach((item) => {\n item &&\n Object.assign(item.style, {\n height: fieldHeight,\n lineHeight: fieldHeight,\n })\n })\n ;[].forEach.call(formItemsDomList, (item) => {\n item.style.lineHeight = fieldHeight\n })\n }\n\n onWindowResize = debounce(() => {\n const { current } = this.fieldsRef\n\n if (current) {\n setTimeout(() => {\n this.setState({\n showMore: this.isFieldsWidthOverflow(),\n })\n }, 25)\n }\n }, 50)\n\n search = (params) => {\n this.props.onSearch({\n ...this.form.getValues(),\n ...params,\n })\n }\n\n onSearch = () => {\n this.props.onSearch?.(this.form.getValues())\n }\n\n onReset = () => {\n const { initialValues, onReset } = this.props\n\n this.form.setValues({ ...initialValues })\n this.updateDrawerFieldsValueCount()\n onReset?.(initialValues)\n }\n\n onToggleExpand = () => {\n this.setState({\n expanded: !this.state.expanded,\n })\n this.props.onToggleExpand?.(!this.state.expanded)\n }\n\n onShowDrawer = () => {\n this.setState({ drawerVisible: true })\n }\n\n onFieldChange = (name, value, ...rest) => {\n const values = this.form.getValues()\n const newValues = {\n ...values,\n [name]: value,\n }\n const changedInfo = { name, value, preValue: values?.[name] }\n const { onChange } = this.props\n\n this.form.setData('values', newValues)\n\n onChange && onChange(newValues, changedInfo, ...rest)\n this.updateDrawerFieldsValueCount(newValues)\n }\n\n updateDrawerFieldsValueCount = () => {\n const values = this.form.getValues()\n const { showFieldCount, children } = this.props\n\n if (showFieldCount) {\n const drawerFieldsValueCount = children.reduce((acc, cur, index) => {\n if (index >= showFieldCount && values?.[cur?.props?.name]) {\n acc++\n }\n return acc\n }, 0)\n\n if (drawerFieldsValueCount !== this.state.drawerFieldsValueCount) {\n this.setState({\n drawerFieldsValueCount,\n })\n }\n }\n }\n\n addResizeListener = () => {\n if ('ResizeObserver' in window) {\n const { current } = this.fieldsRef;\n if (current) {\n const observer = new ResizeObserver(this.onWindowResize);\n\n observer.observe(current)\n\n return () => observer.disconnect()\n }\n } else {\n window.addEventListener('resize', this.onWindowResize)\n return () => window.removeEventListener('resize', this.onWindowResize)\n }\n }\n\n componentDidMount() {\n const { current } = this.fieldsRef\n const { showFieldCount, showExpand = true } = this.props\n\n this.updateFieldHeight()\n\n this.form.on('search', this.search)\n\n // 未设置第一行显示数量且禁止了展开操作 或 自定义了操作区域,则不需要处理展开计算逻辑\n // || renderActions\n if (!showFieldCount && !showExpand) {\n return\n }\n\n if (!showFieldCount) {\n if (current && this.isFieldsWidthOverflow()) {\n this.setState({\n showMore: true,\n })\n }\n\n this.removeResizeListener = this.addResizeListener()\n } else {\n this.updateDrawerFieldsValueCount()\n this.form.on('setValues', this.updateDrawerFieldsValueCount)\n this.form.on('setValue', this.updateDrawerFieldsValueCount)\n }\n }\n\n componentWillUnmount() {\n this.removeResizeListener?.()\n this.form.off('setValues', this.updateDrawerFieldsValueCount)\n this.form.off('setValue', this.updateDrawerFieldsValueCount)\n this.form.off('search', this.search)\n }\n}\n\nQueryForm.Field = Field\nQueryForm.useForm = useForm\nQueryForm.createForm = createActions\n\nexport default QueryForm\n"]}
@@ -0,0 +1,133 @@
1
+ .tnt-queryform {
2
+ display: flex;
3
+
4
+ &-extra {
5
+ line-height: 32px;
6
+ margin-left: 12px;
7
+ & > * {
8
+ margin-left: 8px;
9
+ }
10
+ }
11
+
12
+ &-actions {
13
+ align-items: center;
14
+ display: inline-block;
15
+ height: 32px;
16
+ line-height: 32px;
17
+
18
+ & > *:not(.expand-link) {
19
+ margin-right: 10px;
20
+ }
21
+ & > .expand-link {
22
+ padding: 0;
23
+ margin-right: 0;
24
+ }
25
+ & > .ant-badge {
26
+ .tnt-icon {
27
+ margin-right: 8px;
28
+ }
29
+ }
30
+ }
31
+
32
+ .ant-form {
33
+ display: inline-block;
34
+ margin-bottom: 12px;
35
+ display: flex;
36
+ flex: 1;
37
+ &.ant-form-inline {
38
+ flex-wrap: unset;
39
+ }
40
+
41
+ & > div:nth-child(1) {
42
+ height: 32px;
43
+ overflow: hidden;
44
+ .ant-form-item-label {
45
+ label {
46
+ // bottom: 4px;
47
+ }
48
+ }
49
+ }
50
+
51
+ &.expanded {
52
+ & > div:nth-child(1) {
53
+ height: auto !important;
54
+ }
55
+ }
56
+
57
+ &.showMore {
58
+ & > div:nth-child(1) {
59
+ .ant-form-item {
60
+ margin-bottom: 12px;
61
+ }
62
+ }
63
+ }
64
+
65
+ & > div:nth-child(2) {
66
+ display: flex;
67
+ }
68
+
69
+ &.ant-form-inline .ant-form-item {
70
+ margin-right: 10px;
71
+ display: inline-block;
72
+ }
73
+
74
+ .ant-form-item-control {
75
+ // min-width: 160px;
76
+ line-height: unset;
77
+ .ant-calendar-picker-input {
78
+ padding: 0 11px;
79
+ }
80
+ .ant-form-item-children {
81
+ & > .ant-input,
82
+ & > .ant-input-affix-wrapper {
83
+ width: 160px;
84
+ // width: 200px;
85
+ }
86
+ }
87
+ }
88
+ }
89
+
90
+ &-drawer {
91
+ margin-top: 50px;
92
+ &.large-size {
93
+ margin-top: 60px;
94
+ }
95
+
96
+ &.ant-drawer.ant-drawer-open {
97
+ .ant-drawer-mask {
98
+ opacity: 0;
99
+ background: unset;
100
+ }
101
+ }
102
+ .ant-drawer-body {
103
+ .ant-form-item {
104
+ display: block;
105
+ margin-right: 0;
106
+ margin-bottom: 20px;
107
+ width: 100%;
108
+ }
109
+ .ant-form-item-label {
110
+ display: block;
111
+ text-align: left;
112
+ line-height: 22px;
113
+ margin-bottom: 10px;
114
+ }
115
+ .ant-form-item-control-wrapper,
116
+ .ant-form-item-control,
117
+ .ant-calendar-picker,
118
+ .ant-input {
119
+ min-width: 100%;
120
+ width: 100%;
121
+ }
122
+
123
+ & > .ant-btn {
124
+ display: block;
125
+ width: 100%;
126
+ margin-bottom: 10px;
127
+ &.ant-btn-primary {
128
+ margin-top: 20px;
129
+ }
130
+ }
131
+ }
132
+ }
133
+ }
@@ -0,0 +1,13 @@
1
+ export default function useForm(): {
2
+ setData(key: any, value: any): void;
3
+ getData(key: any): void;
4
+ setValues(values: any): void;
5
+ getValues(): {};
6
+ resetValues(): void;
7
+ setValue(name: any, value: any): void;
8
+ getValue(name: any): any;
9
+ on: (eventName: any, callback: any) => void;
10
+ emit: (...args: any[]) => void;
11
+ off: (...args: any[]) => void;
12
+ }[];
13
+ //# sourceMappingURL=useForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useForm.d.ts","sourceRoot":"","sources":["../../src/query-form-v2/useForm.js"],"names":[],"mappings":"AAGA;;;;;;;;;;;IAIC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = useForm;
7
+ var _react = require("react");
8
+ var _createActions = _interopRequireDefault(require("./createActions"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
+ function useForm() {
11
+ var form = (0, _react.useRef)((0, _createActions["default"])());
12
+ return [form.current];
13
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useForm.js","sourceRoot":"","sources":["../../src/query-form-v2/useForm.js"],"names":[],"mappings":";;;;;AAAA,iCAA8B;AAC9B,oEAA2C;AAE3C,SAAwB,OAAO;IAC7B,MAAM,IAAI,GAAG,IAAA,cAAM,EAAC,IAAA,uBAAa,GAAE,CAAC,CAAA;IAEpC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;AACvB,CAAC;AAJD,0BAIC","sourcesContent":["import { useRef } from 'react'\nimport createActions from './createActions'\n\nexport default function useForm() {\n const form = useRef(createActions())\n\n return [form.current]\n}\n"]}
@@ -0,0 +1,8 @@
1
+ declare function _default({ value, onChange, ...props }: {
2
+ [x: string]: any;
3
+ value: any;
4
+ onChange: any;
5
+ }): React.JSX.Element;
6
+ export default _default;
7
+ import React from "react";
8
+ //# sourceMappingURL=Checkbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/query-form-v3/Field/Checkbox.js"],"names":[],"mappings":"AAIe;;;;sBAQd"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _checkbox = _interopRequireDefault(require("../../checkbox"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
+ var __rest = void 0 && (void 0).__rest || function (s, e) {
11
+ var t = {};
12
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
13
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
14
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
15
+ }
16
+ return t;
17
+ };
18
+ var _default = exports["default"] = function _default(_a) {
19
+ var value = _a.value,
20
+ _onChange = _a.onChange,
21
+ props = __rest(_a, ["value", "onChange"]);
22
+ return _react["default"].createElement(_checkbox["default"], Object.assign({}, props, {
23
+ checked: !!value,
24
+ onChange: function onChange(evt) {
25
+ _onChange === null || _onChange === void 0 ? void 0 : _onChange(evt.target.checked);
26
+ }
27
+ }));
28
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../../src/query-form-v3/Field/Checkbox.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAyB;AAEzB,8DAAqC;AAErC,kBAAe,CAAC,EAA6B,EAAE,EAAE;QAAjC,EAAE,KAAK,EAAE,QAAQ,OAAY,EAAP,KAAK,cAA3B,qBAA6B,CAAF;IAAO,OAAA,CAChD,8BAAC,kBAAQ,oBACH,KAAK,IACT,OAAO,EAAE,CAAC,CAAC,KAAK,EAChB,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE;YAChB,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;QAChC,CAAC,IACD,CACH,CAAA;CAAA,CAAA","sourcesContent":["import React from 'react'\n\nimport Checkbox from '../../checkbox'\n\nexport default ({ value, onChange, ...props }) => (\n <Checkbox\n {...props}\n checked={!!value}\n onChange={(evt) => {\n onChange?.(evt.target.checked)\n }}\n />\n)\n"]}