tntd 3.0.28 → 3.0.29-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +243 -0
  106. package/es/query-form/Field/Composition/index.js.map +1 -0
  107. package/es/query-form/Field/Composition/index.less +144 -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 +172 -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 +343 -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 +154 -0
  456. package/lib/query-form/Field/Composition/ValueTag.js.map +1 -0
  457. package/lib/query-form/Field/Composition/index.d.ts +13 -0
  458. package/lib/query-form/Field/Composition/index.d.ts.map +1 -0
  459. package/lib/query-form/Field/Composition/index.js +287 -0
  460. package/lib/query-form/Field/Composition/index.js.map +1 -0
  461. package/lib/query-form/Field/Composition/index.less +144 -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 +170 -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 +193 -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,80 @@
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 _react = _interopRequireWildcard(require("react"));
9
+ var _select = _interopRequireDefault(require("../../select"));
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
+ 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); }
12
+ 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; }
13
+ 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; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
+ 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); }
16
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
17
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
18
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); 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; } }
19
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
20
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
21
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
22
+ var __rest = void 0 && (void 0).__rest || function (s, e) {
23
+ var t = {};
24
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
25
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
26
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
27
+ }
28
+ return t;
29
+ };
30
+ var Option = _select["default"].Option;
31
+ var _default = exports["default"] = function _default(props) {
32
+ var options = props.options,
33
+ params = props.params,
34
+ _props$queryKey = props.queryKey,
35
+ queryKey = _props$queryKey === void 0 ? 'name' : _props$queryKey,
36
+ _props$fieldNames = props.fieldNames,
37
+ fieldNames = _props$fieldNames === void 0 ? {
38
+ label: 'label',
39
+ value: 'value'
40
+ } : _props$fieldNames,
41
+ loadData = props.loadData,
42
+ rest = __rest(props, ["options", "params", "queryKey", "fieldNames", "loadData"]);
43
+ var _useState = (0, _react.useState)(options || []),
44
+ _useState2 = _slicedToArray(_useState, 2),
45
+ items = _useState2[0],
46
+ setItems = _useState2[1];
47
+ var _useState3 = (0, _react.useState)(''),
48
+ _useState4 = _slicedToArray(_useState3, 2),
49
+ query = _useState4[0],
50
+ setQuery = _useState4[1];
51
+ var onSearch = function onSearch(val) {
52
+ setQuery(val);
53
+ };
54
+ if (loadData) {
55
+ (0, _react.useEffect)(function () {
56
+ loadData(Object.assign(_defineProperty({}, queryKey, query), params || {})).then(function (items) {
57
+ setItems(items);
58
+ });
59
+ }, [params, query]);
60
+ }
61
+ (0, _react.useEffect)(function () {
62
+ setItems(options || []);
63
+ }, [options]);
64
+ return _react["default"].createElement(_select["default"], Object.assign({
65
+ allowClear: true,
66
+ showSearch: true,
67
+ optionFilterProp: "children",
68
+ onSearch: onSearch
69
+ }, rest), items.map(function (item) {
70
+ var labelKey = (fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.label) || 'label';
71
+ var valueKey = (fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.value) || 'value';
72
+ var value = item instanceof Object ? item[valueKey] : item;
73
+ var label = item instanceof Object ? item[labelKey] : item;
74
+ var optionProps = item instanceof Object ? item : {};
75
+ return _react["default"].createElement(Option, Object.assign({}, optionProps, {
76
+ key: value,
77
+ value: value
78
+ }), label);
79
+ }));
80
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../src/query-form-v3/Field/Select.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAkD;AAElD,0DAAiC;AAEjC,MAAM,EAAE,MAAM,EAAE,GAAG,gBAAM,CAAA;AAEzB,kBAAe,CAAC,KAAK,EAAE,EAAE;IACvB,MAAM,EACJ,OAAO,EACP,MAAM,EACN,QAAQ,GAAG,MAAM,EACjB,UAAU,GAAG;QACX,KA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AAM,KAAK,GAAG,IAAI,YAAY,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;QAC5D,MAAM,KAAK,GAAG,IAAI,YAAY,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;QAC5D,MAAM,WAAW,GAAG,IAAI,YAAY,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAA;QAEtD,OAAO,CACL,8BAAC,MAAM,oBAAK,WAAW,IAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,KAC9C,KAAK,CACC,CACV,CAAA;IACH,CAAC,CAAC,CACK,CACV,CAAA;AACH,CAAC,CAAA","sourcesContent":["import React, { useState, useEffect } from 'react'\n\nimport Select from '../../select'\n\nconst { Option } = Select\n\nexport default (props) => {\n const {\n options,\n params,\n queryKey = 'name',\n fieldNames = {\n label: 'label',\n value: 'value',\n },\n loadData,\n ...rest\n } = props\n const [items, setItems] = useState(options || [])\n const [query, setQuery] = useState('')\n const onSearch = (val) => {\n setQuery(val)\n }\n\n if (loadData) {\n useEffect(() => {\n loadData({\n [queryKey]: query,\n ...(params || {}),\n }).then((items) => {\n setItems(items)\n })\n }, [params, query])\n }\n\n useEffect(() => {\n setItems(options || [])\n }, [options])\n\n return (\n <Select allowClear showSearch optionFilterProp=\"children\" onSearch={onSearch} {...rest}>\n {items.map((item) => {\n const labelKey = fieldNames?.label || 'label'\n const valueKey = fieldNames?.value || 'value'\n const value = item instanceof Object ? item[valueKey] : item\n const label = item instanceof Object ? item[labelKey] : item\n const optionProps = item instanceof Object ? item : {}\n\n return (\n <Option {...optionProps} key={value} value={value}>\n {label}\n </Option>\n )\n })}\n </Select>\n )\n}\n"]}
@@ -0,0 +1,4 @@
1
+ declare function _default(props: any): React.JSX.Element;
2
+ export default _default;
3
+ import React from "react";
4
+ //# sourceMappingURL=SelectInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectInput.d.ts","sourceRoot":"","sources":["../../../src/query-form-v3/Field/SelectInput.js"],"names":[],"mappings":"AAQe,yDA+Dd"}
@@ -0,0 +1,100 @@
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 _get2 = _interopRequireDefault(require("lodash/get"));
9
+ var _react = _interopRequireWildcard(require("react"));
10
+ var _select = _interopRequireDefault(require("../../select"));
11
+ var _input = _interopRequireDefault(require("../../input"));
12
+ 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); }
13
+ 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; }
14
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
15
+ 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; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
+ 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); }
18
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
19
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
20
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); 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; } }
21
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
22
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
23
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
24
+ var __rest = void 0 && (void 0).__rest || function (s, e) {
25
+ var t = {};
26
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
27
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
28
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
29
+ }
30
+ return t;
31
+ };
32
+ var Option = _select["default"].Option;
33
+ var _default = exports["default"] = function _default(props) {
34
+ var _props$options = props.options,
35
+ options = _props$options === void 0 ? [] : _props$options,
36
+ addonBeforeStyle = props.addonBeforeStyle,
37
+ selectProps = props.selectProps,
38
+ form = props.form,
39
+ close = props.close,
40
+ inputProps = __rest(props, ["options", "addonBeforeStyle", "selectProps", "form", "close"]);
41
+ var _useState = (0, _react.useState)(options),
42
+ _useState2 = _slicedToArray(_useState, 2),
43
+ items = _useState2[0],
44
+ setItems = _useState2[1];
45
+ var getInitialKey = function getInitialKey() {
46
+ var key = (0, _get2["default"])(options, '0.value');
47
+ if (inputProps.value) {
48
+ key = (0, _get2["default"])(Object.keys(inputProps.value), '0') || key;
49
+ }
50
+ return key;
51
+ };
52
+ var _useState3 = (0, _react.useState)(getInitialKey()),
53
+ _useState4 = _slicedToArray(_useState3, 2),
54
+ key = _useState4[0],
55
+ setKey = _useState4[1];
56
+ var onKeyChange = function onKeyChange(key) {
57
+ setKey(key);
58
+ props.onChange(_defineProperty({}, key, ''));
59
+ };
60
+ var onChange = function onChange(evt) {
61
+ props.onChange(_defineProperty({}, key, evt.target.value));
62
+ };
63
+ var addonBefore = _react["default"].createElement(_select["default"], Object.assign({
64
+ value: key,
65
+ onChange: onKeyChange,
66
+ style: Object.assign({
67
+ width: '120px'
68
+ }, addonBeforeStyle),
69
+ dropdownMatchSelectWidth: false
70
+ }, selectProps || {}), items.map(function (_ref) {
71
+ var label = _ref.label,
72
+ value = _ref.value;
73
+ return _react["default"].createElement(Option, {
74
+ key: value,
75
+ value: value
76
+ }, label);
77
+ }));
78
+ var getInputValue = function getInputValue() {
79
+ return (0, _get2["default"])(inputProps.value, key);
80
+ };
81
+ (0, _react.useEffect)(function () {
82
+ setItems(options);
83
+ setKey(getInitialKey());
84
+ }, [options, inputProps.value]);
85
+ return _react["default"].createElement(_input["default"].Search, Object.assign({
86
+ addonBefore: addonBefore,
87
+ onPressEnter: function onPressEnter(evt) {
88
+ var _a;
89
+ form.emit('search', _defineProperty(_defineProperty({}, key, (_a = evt === null || evt === void 0 ? void 0 : evt.target) === null || _a === void 0 ? void 0 : _a.value), "current", 1));
90
+ close && close();
91
+ },
92
+ onSearch: function onSearch(value) {
93
+ form.emit('search', _defineProperty(_defineProperty({}, key, value), "current", 1));
94
+ close && close();
95
+ }
96
+ }, inputProps, {
97
+ value: getInputValue(),
98
+ onChange: onChange
99
+ }));
100
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectInput.js","sourceRoot":"","sources":["../../../src/query-form-v3/Field/SelectInput.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAkD;AAClD,mCAA4B;AAE5B,0DAAiC;AACjC,wDAA+B;AAE/B,MAAM,EAAE,MAAM,EAAE,GAAG,gBAAM,CAAA;AAEzB,kBAAe,CAAC,KAAK,EAAE,EAAE;IACvB,MAAM,EAAE,OAAO,GAAG,EAAE,EAAE,gBAAgB,EAAE,WAAW,EAAE,IAAI,EAAE,KAAK,KAAoB,KAAK,EAApB,UAAU,UAAK,KAAK,EAAnF,+DAA2E,CAAQ,CAAA;IACzF,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAC,OAAO,CAAC,CAAA;IAC3C,MAAM,aAAa,GAAG,GAAG,EAAE;QACzB,IAAI,GAAG,GAAG,IAAA,YAAG,EAAC,OAAO,EAAE,SAAS,CAAC,CAAA;QAEjC,IAAI,UAAU,CAAC,KAAK,EAAE;YACpB,GAAG,GAAG,IAAA,YAAG,EAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,IAAI,GAAG,CAAA;SACrD;QAED,OAAO,GAAG,CAAA;IACZ,CAAC,CAAA;IACD,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ACtC,YAAY,EAAE,CAAC,GAAG,EAAE,EAAE;;YACpB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,MAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,MAAM,0CAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAA;YAC9D,KAAK,IAAI,KAAK,EAAE,CAAA;QAClB,CAAC,EACD,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;YAClB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAA;YACjD,KAAK,IAAI,KAAK,EAAE,CAAA;QAClB,CAAC,IACG,UAAU,IAAE,KAAK,EAAE,aAAa,EAAE,EAAE,QAAQ,EAAE,QAAQ,IAAM,CACjE,CAAA;AACH,CAAC,CAAA","sourcesContent":["import React, { useState, useEffect } from 'react'\nimport { get } from 'lodash'\n\nimport Select from '../../select'\nimport Input from '../../input'\n\nconst { Option } = Select\n\nexport default (props) => {\n const { options = [], addonBeforeStyle, selectProps, form, close, ...inputProps } = props\n const [items, setItems] = useState(options)\n const getInitialKey = () => {\n let key = get(options, '0.value')\n\n if (inputProps.value) {\n key = get(Object.keys(inputProps.value), '0') || key\n }\n\n return key\n }\n const [key, setKey] = useState(getInitialKey())\n const onKeyChange = (key) => {\n setKey(key)\n props.onChange({\n [key]: '',\n })\n }\n const onChange = (evt) => {\n props.onChange({\n [key]: evt.target.value,\n })\n }\n const addonBefore = (\n <Select\n value={key}\n onChange={onKeyChange}\n style={{\n width: '120px',\n ...addonBeforeStyle,\n }}\n dropdownMatchSelectWidth={false}\n {...(selectProps||{})}\n >\n {items.map(({ label, value }) => (\n <Option key={value} value={value}>\n {label}\n </Option>\n ))}\n </Select>\n )\n const getInputValue = () => {\n return get(inputProps.value, key)\n }\n\n useEffect(() => {\n setItems(options)\n setKey(getInitialKey())\n }, [options, inputProps.value])\n\n return (\n <Input.Search addonBefore={addonBefore} \n onPressEnter={(evt) => {\n form.emit('search', { [key]: evt?.target?.value, current: 1 })\n close && close()\n }}\n onSearch={(value) => {\n form.emit('search', { [key]: value, current: 1 })\n close && close()\n }}\n {...inputProps} value={getInputValue()} onChange={onChange} />\n )\n}\n"]}
@@ -0,0 +1,27 @@
1
+ export const defaultFieldWidth: "200px";
2
+ export function getFieldWidth(type: any): any;
3
+ declare namespace _default {
4
+ export const string: import("react").ForwardRefExoticComponent<import("../../input").SearchProps & {
5
+ capitalize?: boolean | undefined;
6
+ } & import("react").RefAttributes<import("antd/lib/input/Search").default>>;
7
+ export const input: import("react").ForwardRefExoticComponent<import("../../input").SearchProps & {
8
+ capitalize?: boolean | undefined;
9
+ } & import("react").RefAttributes<import("antd/lib/input/Search").default>>;
10
+ export const search: import("react").ForwardRefExoticComponent<import("../../input").SearchProps & {
11
+ capitalize?: boolean | undefined;
12
+ } & import("react").RefAttributes<import("antd/lib/input/Search").default>>;
13
+ export { InputNumber as inputNumber };
14
+ export { InputNumber as number };
15
+ export { SelectField as select };
16
+ export { CheckboxField as checkbox };
17
+ export { DatePicker as date };
18
+ export const dateRange: import("react").ClassicComponentClass<import("antd/lib/date-picker/interface").RangePickerProps>;
19
+ export { SelectInput as selectInput };
20
+ }
21
+ export default _default;
22
+ import InputNumber from "../../input-number";
23
+ import SelectField from "./Select";
24
+ import CheckboxField from "./Checkbox";
25
+ import DatePicker from "../../date-picker";
26
+ import SelectInput from "./SelectInput";
27
+ //# sourceMappingURL=fieldsMap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fieldsMap.d.ts","sourceRoot":"","sources":["../../../src/query-form-v3/Field/fieldsMap.js"],"names":[],"mappings":"AAOA,wCAAwC;AAEjC,8CAWN"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getFieldWidth = exports.defaultFieldWidth = exports["default"] = void 0;
7
+ var _Checkbox = _interopRequireDefault(require("./Checkbox"));
8
+ var _Select = _interopRequireDefault(require("./Select"));
9
+ var _SelectInput = _interopRequireDefault(require("./SelectInput"));
10
+ var _datePicker = _interopRequireDefault(require("../../date-picker"));
11
+ var _input = _interopRequireDefault(require("../../input"));
12
+ var _inputNumber = _interopRequireDefault(require("../../input-number"));
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
14
+ var defaultFieldWidth = exports.defaultFieldWidth = '200px';
15
+ var getFieldWidth = exports.getFieldWidth = function getFieldWidth(type) {
16
+ if (type === 'dateRange') {
17
+ return '340px';
18
+ }
19
+ return {
20
+ dateRange: '340px',
21
+ selectInput: '320px'
22
+ }[type] || defaultFieldWidth;
23
+ };
24
+ var _default = exports["default"] = {
25
+ string: _input["default"].Search,
26
+ input: _input["default"].Search,
27
+ search: _input["default"].Search,
28
+ inputNumber: _inputNumber["default"],
29
+ number: _inputNumber["default"],
30
+ select: _Select["default"],
31
+ checkbox: _Checkbox["default"],
32
+ date: _datePicker["default"],
33
+ dateRange: _datePicker["default"].RangePicker,
34
+ selectInput: _SelectInput["default"]
35
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fieldsMap.js","sourceRoot":"","sources":["../../../src/query-form-v3/Field/fieldsMap.js"],"names":[],"mappings":";;;;;;AAAA,0DAAsC;AACtC,sDAAkC;AAClC,gEAAuC;AACvC,oEAA0C;AAC1C,wDAA+B;AAC/B,sEAA4C;AAE/B,QAAA,iBAAiB,GAAG,OAAO,CAAA;AAEjC,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,EAAE;IACpC,IAAI,IAAI,KAAK,WAAW,EAAE;QACxB,OAAO,OAAO,CAAA;KACf;IAED,OAAO,CACL;QACE,SAAS,EAAE,OAAO;QAClB,WAAW,EAAE,OAAO;KACrB,CAAC,IAAI,CAAC,IAAI,yBAAiB,CAC7B,CAAA;AACH,CAAC,CAAA;AAXY,QAAA,aAAa,iBAWzB;AAED,kBAAe;IACb,MAAM,EAAE,eAAK,CAAC,MAAM;IACpB,KAAK,EAAE,eAAK,CAAC,MAAM;IACnB,MAAM,EAAE,eAAK,CAAC,MAAM;IACpB,WAAW,EAAE,sBAAW;IACxB,MAAM,EAAE,sBAAW;IACnB,MAAM,EAAE,gBAAW;IACnB,QAAQ,EAAE,kBAAa;IACvB,IAAI,EAAE,qBAAU;IAChB,SAAS,EAAE,qBAAU,CAAC,WAAW;IACjC,WAAW,EAAE,qBAAW;CACzB,CAAA","sourcesContent":["import CheckboxField from './Checkbox'\nimport SelectField from './Select'\nimport SelectInput from './SelectInput'\nimport DatePicker from '../../date-picker'\nimport Input from '../../input'\nimport InputNumber from '../../input-number'\n\nexport const defaultFieldWidth = '200px'\n\nexport const getFieldWidth = (type) => {\n if (type === 'dateRange') {\n return '340px'\n }\n\n return (\n {\n dateRange: '340px',\n selectInput: '320px',\n }[type] || defaultFieldWidth\n )\n}\n\nexport default {\n string: Input.Search,\n input: Input.Search,\n search: Input.Search,\n inputNumber: InputNumber,\n number: InputNumber,\n select: SelectField,\n checkbox: CheckboxField,\n date: DatePicker,\n dateRange: DatePicker.RangePicker,\n selectInput: SelectInput,\n}\n"]}
@@ -0,0 +1,14 @@
1
+ export default class Field extends React.PureComponent<any, any, any> {
2
+ constructor(props: any);
3
+ state: {
4
+ value: any;
5
+ };
6
+ render(): React.JSX.Element;
7
+ updateValue: (name: any, value: any) => void;
8
+ onChange: (...args: any[]) => void;
9
+ onFormChange: (formData: any) => void;
10
+ componentDidMount(): void;
11
+ componentWillUnmount(): void;
12
+ }
13
+ import React from "react";
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/query-form-v3/Field/index.js"],"names":[],"mappings":"AAUA;IACE,wBAMC;IAHC;;MAEC;IAGH,4BAmCC;IAED,6CAKC;IAED,mCAaC;IAED,sCAIC;IAED,0BAKC;IAED,6BAKC;CACF"}
@@ -0,0 +1,147 @@
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 _get2 = _interopRequireDefault(require("lodash/get"));
9
+ var _react = _interopRequireWildcard(require("react"));
10
+ var _fieldsMap = _interopRequireWildcard(require("./fieldsMap"));
11
+ var _form = _interopRequireDefault(require("../../form"));
12
+ 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); }
13
+ 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; }
14
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
15
+ 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; }
16
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
17
+ 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); } }
18
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
19
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
20
+ 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); }
21
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
22
+ 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); }
23
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
24
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
25
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
26
+ 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); }
27
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
28
+ var FormItem = _form["default"].Item;
29
+ var isInput = function isInput(type) {
30
+ return ['input', 'string', 'search', 'aloneSearch'].includes(type);
31
+ };
32
+ var Field = exports["default"] = /*#__PURE__*/function (_PureComponent) {
33
+ function Field(props) {
34
+ var _this;
35
+ _classCallCheck(this, Field);
36
+ _this = _callSuper(this, Field, [props]);
37
+ Object.defineProperty(_this, "updateValue", {
38
+ enumerable: true,
39
+ configurable: true,
40
+ writable: true,
41
+ value: function value(name, _value) {
42
+ if (name === _this.props.name) {
43
+ _this.setState({
44
+ value: _value
45
+ });
46
+ _this.props.onChange(name, _value);
47
+ }
48
+ }
49
+ });
50
+ Object.defineProperty(_this, "onChange", {
51
+ enumerable: true,
52
+ configurable: true,
53
+ writable: true,
54
+ value: function value() {
55
+ var _this$props = _this.props,
56
+ name = _this$props.name,
57
+ _this$props$type = _this$props.type,
58
+ type = _this$props$type === void 0 ? 'input' : _this$props$type,
59
+ component = _this$props.component,
60
+ fieldProps = _this$props.props;
61
+ var _ref = fieldProps || {},
62
+ onChange = _ref.onChange;
63
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
64
+ args[_key] = arguments[_key];
65
+ }
66
+ onChange && onChange.apply(void 0, args);
67
+ // Input onChange第一个参数为Event对象,取值特殊处理
68
+ if (!component && isInput(type)) {
69
+ args[0] = (0, _get2["default"])(args[0], 'target.value');
70
+ }
71
+ _this.setState({
72
+ value: args[0]
73
+ });
74
+ _this.props.onChange(name, args[0]);
75
+ }
76
+ });
77
+ Object.defineProperty(_this, "onFormChange", {
78
+ enumerable: true,
79
+ configurable: true,
80
+ writable: true,
81
+ value: function value(formData) {
82
+ _this.setState({
83
+ value: (0, _get2["default"])(formData, _this.props.name)
84
+ });
85
+ }
86
+ });
87
+ _this.state = {
88
+ value: props.initialValue
89
+ };
90
+ return _this;
91
+ }
92
+ _inherits(Field, _PureComponent);
93
+ return _createClass(Field, [{
94
+ key: "render",
95
+ value: function render() {
96
+ var _a;
97
+ var _this$props2 = this.props,
98
+ _this$props2$type = _this$props2.type,
99
+ type = _this$props2$type === void 0 ? 'input' : _this$props2$type,
100
+ title = _this$props2.title,
101
+ name = _this$props2.name,
102
+ _this$props2$isFieldI = _this$props2.isFieldInDrawer,
103
+ isFieldInDrawer = _this$props2$isFieldI === void 0 ? false : _this$props2$isFieldI,
104
+ _this$props2$classNam = _this$props2.className,
105
+ className = _this$props2$classNam === void 0 ? '' : _this$props2$classNam,
106
+ component = _this$props2.component,
107
+ form = _this$props2.form,
108
+ fieldProps = _this$props2.props;
109
+ var value = this.state.value;
110
+ var _Field = component || _fieldsMap["default"][type];
111
+ return _react["default"].createElement(FormItem, {
112
+ label: title,
113
+ className: className
114
+ }, _react["default"].createElement(_Field, Object.assign({
115
+ form: form,
116
+ value: value
117
+ }, isInput(type) ? {
118
+ onPressEnter: function onPressEnter(evt) {
119
+ var _a;
120
+ return form.emit('search', _defineProperty(_defineProperty({}, name, (_a = evt === null || evt === void 0 ? void 0 : evt.target) === null || _a === void 0 ? void 0 : _a.value), "current", 1));
121
+ },
122
+ onSearch: function onSearch(value) {
123
+ return form.emit('search', _defineProperty(_defineProperty({}, name, value), "current", 1));
124
+ }
125
+ } : {}, fieldProps, {
126
+ style: Object.assign(Object.assign({}, fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.style), {
127
+ width: isFieldInDrawer ? '100%' : ((_a = fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.style) === null || _a === void 0 ? void 0 : _a.width) || (0, _fieldsMap.getFieldWidth)(type)
128
+ }),
129
+ onChange: this.onChange
130
+ })));
131
+ }
132
+ }, {
133
+ key: "componentDidMount",
134
+ value: function componentDidMount() {
135
+ var form = this.props.form;
136
+ form.on('setValue', this.updateValue);
137
+ form.on('setValues', this.onFormChange);
138
+ }
139
+ }, {
140
+ key: "componentWillUnmount",
141
+ value: function componentWillUnmount() {
142
+ var form = this.props.form;
143
+ form.off('setValue', this.updateValue);
144
+ form.off('setValues', this.onFormChange);
145
+ }
146
+ }]);
147
+ }(_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CAAC,EAAE,CAAC,CAAA,EAAA;oBACjE,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;iBACxE;gBACD,CAAC,CAAC,EAAE,CAAC,EACH,UAAU,IACd,KAAK,kCACA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,KACpB,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA,MAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,0CAAE,KAAK,KAAI,IAAA,yBAAa,EAAC,IAAI,CAAC,KAEnF,QAAQ,EAAE,IAAI,CAAC,QAAQ,IACvB,CACO,CACZ,CAAA;IACH,CAAC;IA8BD,iBAAiB;QACf,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,CAAA;QAE3B,IAAI,CAAC,EAAE,CAAC,UAAU,EAAE,IAAI,CAAC,WAAW,CAAC,CAAA;QACrC,IAAI,CAAC,EAAE,CAAC,WAAW,EAAE,IAAI,CAAC,YAAY,CAAC,CAAA;IACzC,CAAC;IAED,oBAAoB;QAClB,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,CAAA;QAE3B,IAAI,CAAC,GAAG,CAAC,UAAU,EAAE,IAAI,CAAC,WAAW,CAAC,CAAA;QACtC,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,IAAI,CAAC,YAAY,CAAC,CAAA;IAC1C,CAAC;CACF;AAvFD,wBAuFC","sourcesContent":["import React, { PureComponent } from 'react'\nimport { get } from 'lodash'\nimport fieldsMap, { getFieldWidth } from './fieldsMap'\n\nimport Form from '../../form'\n\nconst FormItem = Form.Item\n\nconst isInput = (type) => ['input', 'string', 'search', 'aloneSearch'].includes(type)\n\nexport default class Field extends PureComponent {\n constructor(props) {\n super(props)\n\n this.state = {\n value: props.initialValue,\n }\n }\n\n render () {\n const {\n type = 'input',\n title,\n name,\n isFieldInDrawer = false,\n className = '',\n component,\n form,\n props: fieldProps,\n } = this.props\n const { value } = this.state\n const Field = component || fieldsMap[type]\n\n return (\n <FormItem label={title} className={className}>\n <Field\n form={form}\n value={value}\n {...(isInput(type)\n ? {\n onPressEnter: (evt) =>\n form.emit('search', { [name]: evt?.target?.value, current: 1 }),\n onSearch: (value) => form.emit('search', { [name]: value, current: 1 })\n }\n : {})}\n {...fieldProps}\n style={{\n ...fieldProps?.style,\n width: isFieldInDrawer ? '100%' : fieldProps?.style?.width || getFieldWidth(type),\n }}\n onChange={this.onChange}\n />\n </FormItem>\n )\n }\n\n updateValue = (name, value) => {\n if (name === this.props.name) {\n this.setState({ value })\n this.props.onChange(name, value)\n }\n }\n\n onChange = (...args) => {\n const { name, type = 'input', component, props: fieldProps } = this.props\n const { onChange } = fieldProps || {}\n\n onChange && onChange(...args)\n\n // Input onChange第一个参数为Event对象,取值特殊处理\n if (!component && isInput(type)) {\n args[0] = get(args[0], 'target.value')\n }\n\n this.setState({ value: args[0] })\n this.props.onChange(name, args[0])\n }\n\n onFormChange = (formData) => {\n this.setState({\n value: get(formData, this.props.name),\n })\n }\n\n componentDidMount () {\n const { form } = this.props\n\n form.on('setValue', this.updateValue)\n form.on('setValues', this.onFormChange)\n }\n\n componentWillUnmount () {\n const { form } = this.props\n\n form.off('setValue', this.updateValue)\n form.off('setValues', this.onFormChange)\n }\n}\n"]}
@@ -0,0 +1,14 @@
1
+ declare function _default(): {
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
+ export default _default;
14
+ //# sourceMappingURL=createActions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createActions.d.ts","sourceRoot":"","sources":["../../src/query-form-v3/createActions.js"],"names":[],"mappings":"AAGe;;;;;;;;;;;EA+Cd"}
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _set2 = _interopRequireDefault(require("lodash/set"));
8
+ var _get2 = _interopRequireDefault(require("lodash/get"));
9
+ var _eventemitter = _interopRequireDefault(require("eventemitter3"));
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
+ var _default = exports["default"] = function _default() {
12
+ var eventEmitter = new _eventemitter["default"]();
13
+ var data = {
14
+ initialValues: {},
15
+ values: {}
16
+ };
17
+ return {
18
+ setData: function setData(key, value) {
19
+ (0, _set2["default"])(data, key, value);
20
+ },
21
+ getData: function getData(key) {
22
+ (0, _get2["default"])(data, key);
23
+ },
24
+ setValues: function setValues(values) {
25
+ data.values = values;
26
+ eventEmitter.emit('setValues', values);
27
+ },
28
+ getValues: function getValues() {
29
+ return data.values;
30
+ },
31
+ resetValues: function resetValues() {
32
+ data.values = Object.assign({}, data.initialValues);
33
+ eventEmitter.emit('setValues', data.values);
34
+ },
35
+ setValue: function setValue(name, value) {
36
+ data.values = data.values || {};
37
+ data.values[name] = value;
38
+ eventEmitter.emit('setValue', name, value);
39
+ },
40
+ getValue: function getValue(name) {
41
+ var _a;
42
+ return (_a = data.values) === null || _a === void 0 ? void 0 : _a[name];
43
+ },
44
+ on: function on(eventName, callback) {
45
+ eventEmitter.on(eventName, callback);
46
+ },
47
+ emit: function emit() {
48
+ eventEmitter.emit.apply(eventEmitter, arguments);
49
+ },
50
+ off: function off() {
51
+ eventEmitter.removeListener.apply(eventEmitter, arguments);
52
+ }
53
+ };
54
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createActions.js","sourceRoot":"","sources":["../../src/query-form-v3/createActions.js"],"names":[],"mappings":";;;;;AAA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,EAAE,CAAC,GAAG,IAAI,EAAE,EAAE;YAChB,YAAY,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAA;QAC5B,CAAC;QAED,GAAG,EAAE,CAAC,GAAG,IAAI,EAAE,EAAE;YACf,YAAY,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAA;QACtC,CAAC;KACF,CAAA;AACH,CAAC,CAAA","sourcesContent":["import EventEmitter from 'eventemitter3'\nimport { get, set } from 'lodash'\n\nexport default () => {\n const eventEmitter = new EventEmitter()\n const data = {\n initialValues: {},\n values: {},\n }\n\n return {\n setData(key, value) {\n set(data, key, value)\n },\n getData(key) {\n get(data, key)\n },\n\n setValues(values) {\n data.values = values\n eventEmitter.emit('setValues', values)\n },\n getValues() {\n return data.values\n },\n resetValues() {\n data.values = { ...data.initialValues }\n eventEmitter.emit('setValues', data.values)\n },\n setValue(name, value) {\n data.values = data.values || {}\n data.values[name] = value\n eventEmitter.emit('setValue', name, value)\n },\n getValue(name) {\n return data.values?.[name]\n },\n\n on: (eventName, callback) => {\n eventEmitter.on(eventName, callback)\n },\n\n emit: (...args) => {\n eventEmitter.emit(...args)\n },\n\n off: (...args) => {\n eventEmitter.removeListener(...args)\n },\n }\n}\n"]}
@@ -0,0 +1,27 @@
1
+ export default QueryForm;
2
+ declare function QueryForm({ form, className, initialValues: _initialValues, language, onSearch, onReset, onChange, renderActions, extraActions, children, showSearch, showReset, showFieldCount, minGroupCount, }: {
3
+ form: any;
4
+ className?: string | undefined;
5
+ initialValues: any;
6
+ language: any;
7
+ onSearch: any;
8
+ onReset: any;
9
+ onChange: any;
10
+ renderActions: any;
11
+ extraActions: any;
12
+ children: any;
13
+ showSearch?: boolean | undefined;
14
+ showReset?: boolean | undefined;
15
+ showFieldCount?: number | undefined;
16
+ minGroupCount?: number | undefined;
17
+ }): React.JSX.Element;
18
+ declare namespace QueryForm {
19
+ export { Field };
20
+ export { useForm };
21
+ export { createActions as createForm };
22
+ }
23
+ import React from "react";
24
+ import Field from "./Field";
25
+ import useForm from "./useForm";
26
+ import createActions from "./createActions";
27
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/query-form-v3/index.js"],"names":[],"mappings":";AAcA;;;;;;;;;;;;;;;sBAqLC"}