tntd 2.8.29 → 2.8.30

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 (578) hide show
  1. package/CHANGELOG.json +1034 -0
  2. package/CHANGELOG.md +605 -0
  3. package/es/_util/context.js +1 -1
  4. package/es/_util/defaultRenderEmpty.js +1 -1
  5. package/es/_util/hooks/useFlexGapSupport.js +4 -4
  6. package/es/_util/hooks/useForceUpdate.js +4 -4
  7. package/es/_util/responsiveObserve.js +1 -1
  8. package/es/_util/styleChecker.js +1 -1
  9. package/es/actions/index.js +1 -1
  10. package/es/alert/alert.js +93 -0
  11. package/es/alert/alert.js.map +1 -0
  12. package/es/alert/alert.less +128 -0
  13. package/es/array-input/index.js +9 -9
  14. package/es/cascader/cascader.js +49 -0
  15. package/es/cascader/cascader.js.map +1 -0
  16. package/es/cascader/cascader.less +16 -0
  17. package/es/check-card/group.js +8 -8
  18. package/es/check-card/index.js +6 -6
  19. package/es/checkbox/check.png +0 -0
  20. package/es/checkbox/checkbox-group.js +1 -1
  21. package/es/checkbox/checkbox.js +65 -0
  22. package/es/checkbox/checkbox.js.map +1 -0
  23. package/es/checkbox/checkbox.less +69 -0
  24. package/es/color-picker/ColorPicker.js +6 -6
  25. package/es/color-picker/index.js +1 -1
  26. package/es/columns/index.js +1 -1
  27. package/es/config-provider/config-provider.js +1 -1
  28. package/es/date-picker/DatePicker.js +128 -0
  29. package/es/date-picker/DatePicker.js.map +1 -0
  30. package/es/date-picker/index.less +294 -0
  31. package/es/descriptions/descriptions.js +5 -5
  32. package/es/development-login/LoginModal.js +6 -6
  33. package/es/development-login/index.js +4 -4
  34. package/es/drawer/drawer.js +2 -2
  35. package/es/ellipsis/Svg/CopySVG.js +1 -1
  36. package/es/ellipsis/Svg/TickSVG.js +1 -1
  37. package/es/ellipsis/index.js +5 -5
  38. package/es/empty/empty.js +2 -2
  39. package/es/empty/empty.stories.js +2 -2
  40. package/es/exception/exception.js +1 -1
  41. package/es/form/form.js +2 -2
  42. package/es/grid-v4/col.js +2 -2
  43. package/es/grid-v4/hooks/useBreakpoint.js +1 -1
  44. package/es/grid-v4/index.js +1 -1
  45. package/es/grid-v4/row.js +6 -6
  46. package/es/handle/index.js +1 -1
  47. package/es/handle-icon/index.js +11 -11
  48. package/es/icon/IconFont.js +1 -1
  49. package/es/icon/components/Icon.js +9 -9
  50. package/es/icon/components/index.js +1 -1
  51. package/es/icon/components/utils.js +3 -3
  52. package/es/icon/index.js +7 -7
  53. package/es/icon/twoTonePrimaryColor.js +1 -1
  54. package/es/icon/utils.js +1 -1
  55. package/es/img/Contain.js +1 -1
  56. package/es/img/Cover.js +5 -5
  57. package/es/img/index.js +5 -5
  58. package/es/index.js +1 -1
  59. package/es/input/input.js +2 -2
  60. package/es/input-number/index.js +1 -1
  61. package/es/input-number/inputNumber.js +54 -0
  62. package/es/input-number/inputNumber.js.map +1 -0
  63. package/es/input-number/inputNumber.less +12 -0
  64. package/es/label/index.js +2 -2
  65. package/es/loading-button/index.js +5 -5
  66. package/es/locale/default.js +1 -1
  67. package/es/locale/en_US.js +1 -1
  68. package/es/locale/zh_CN.js +1 -1
  69. package/es/modal/index.less +36 -0
  70. package/es/modal/modal.js +1 -1
  71. package/es/notification/assets/index.js +1 -1
  72. package/es/notification/index.js +1 -1
  73. package/es/notification/notification.js +1 -1
  74. package/es/page/Box.js +1 -1
  75. package/es/page/index.js +7 -7
  76. package/es/page-container/index.js +1 -1
  77. package/es/page-loading/index.js +1 -1
  78. package/es/popconfirm/index.less +32 -0
  79. package/es/popconfirm/popconfirm.js +61 -0
  80. package/es/popconfirm/popconfirm.js.map +1 -0
  81. package/es/popover/index.less +57 -0
  82. package/es/popover/popover.js +55 -0
  83. package/es/popover/popover.js.map +1 -0
  84. package/es/preview-text/index.js +7 -7
  85. package/es/progress/progress.js +148 -0
  86. package/es/progress/progress.js.map +1 -0
  87. package/es/progress/progress.less +82 -0
  88. package/es/query-form/Field/Checkbox.js +1 -1
  89. package/es/query-form/Field/Composition/FieldPopover.js +341 -0
  90. package/es/query-form/Field/Composition/FieldPopover.js.map +1 -0
  91. package/es/query-form/Field/Composition/FieldPopover.less +35 -0
  92. package/es/query-form/Field/Composition/Select.js +146 -0
  93. package/es/query-form/Field/Composition/Select.js.map +1 -0
  94. package/es/query-form/Field/Composition/ValueTag.js +158 -0
  95. package/es/query-form/Field/Composition/ValueTag.js.map +1 -0
  96. package/es/query-form/Field/Composition/index.js +321 -0
  97. package/es/query-form/Field/Composition/index.js.map +1 -0
  98. package/es/query-form/Field/Composition/index.less +145 -0
  99. package/es/query-form/Field/Composition/utils.js +168 -0
  100. package/es/query-form/Field/Composition/utils.js.map +1 -0
  101. package/es/query-form/Field/Select.js +6 -6
  102. package/es/query-form/Field/SelectInput.js +6 -6
  103. package/es/query-form/Field/fieldsMap.js +3 -2
  104. package/es/query-form/Field/fieldsMap.js.map +1 -1
  105. package/es/query-form/Field/index.js +10 -10
  106. package/es/query-form/createActions.js +1 -1
  107. package/es/query-form/index.js +10 -10
  108. package/es/query-form/useForm.js +1 -1
  109. package/es/query-form-v2/index.less +133 -0
  110. package/es/query-list-scene/List.js +13 -13
  111. package/es/query-list-scene/QueryForm.js +10 -10
  112. package/es/query-list-scene/QueryListScene.js +10 -10
  113. package/es/query-list-scene/Title.js +1 -1
  114. package/es/query-list-scene/Toolbar.js +2 -2
  115. package/es/query-list-scene/createActions.js +1 -1
  116. package/es/query-list-scene/index.js +1 -1
  117. package/es/query-list-scene/useActions.js +1 -1
  118. package/es/radio/index.js +1 -1
  119. package/es/radio/radio-group.js +1 -1
  120. package/es/radio/radio.js +75 -0
  121. package/es/radio/radio.js.map +1 -0
  122. package/es/radio/radio.less +43 -0
  123. package/es/render-empty/render-empty.js +1 -1
  124. package/es/scroll-bar/Bar.js +91 -0
  125. package/es/scroll-bar/Bar.js.map +1 -0
  126. package/es/scroll-bar/Context.js +13 -0
  127. package/es/scroll-bar/Context.js.map +1 -0
  128. package/es/scroll-bar/ScrollBar.js +97 -0
  129. package/es/scroll-bar/ScrollBar.js.map +1 -0
  130. package/es/scroll-bar/Thumb.js +125 -0
  131. package/es/scroll-bar/Thumb.js.map +1 -0
  132. package/es/scroll-bar/index.js +10 -0
  133. package/es/scroll-bar/index.js.map +1 -0
  134. package/es/scroll-bar/scrollBar.less +59 -0
  135. package/es/scroll-bar/util.js +39 -0
  136. package/es/scroll-bar/util.js.map +1 -0
  137. package/es/segmented/index.js +2 -2
  138. package/es/select/select.js +2 -2
  139. package/es/spin/spin.js +44 -0
  140. package/es/spin/spin.js.map +1 -0
  141. package/es/spin/spin.less +9 -0
  142. package/es/steps/assets/background_left.svg +12 -0
  143. package/es/steps/assets/background_right.svg +12 -0
  144. package/es/steps/assets/horizontal_line.svg +3 -0
  145. package/es/steps/assets/vertical_line.svg +3 -0
  146. package/es/steps/stepStyle/icon.less +51 -0
  147. package/es/steps/stepStyle/progress-dot.less +10 -0
  148. package/es/steps/stepStyle/variables.less +8 -0
  149. package/es/steps/stepStyle/vertical.less +41 -0
  150. package/es/steps/steps.js +2 -2
  151. package/es/svg-components/index.js +1 -1
  152. package/es/switch/index.less +45 -0
  153. package/es/switch/switch.js +1 -1
  154. package/es/table/hooks/use-column-setting.js +4 -4
  155. package/es/table/hooks/use-expand-fixed.js +6 -6
  156. package/es/table/resizableTable/index.js +6 -6
  157. package/es/table/table-hoc.js +1 -1
  158. package/es/table/table.js +9 -9
  159. package/es/table/table.stories.js +2 -2
  160. package/es/table/total-shower.js +1 -1
  161. package/es/table/utils.js +1 -1
  162. package/es/table-container/index.js +1 -1
  163. package/es/tabs/tabs.less +125 -0
  164. package/es/tabs-container/index.js +1 -1
  165. package/es/tag/tag.js +2 -2
  166. package/es/time-picker/TimePicker.js +55 -0
  167. package/es/time-picker/TimePicker.js.map +1 -0
  168. package/es/time-picker/index.less +38 -0
  169. package/es/title/index.js +1 -1
  170. package/es/tntd-action/Action.js +141 -0
  171. package/es/tntd-action/Action.js.map +1 -0
  172. package/es/tntd-action/index.less +61 -0
  173. package/es/tntd-cascader/AntdCascader/component/context.js +1 -1
  174. package/es/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +1 -1
  175. package/es/tntd-cascader/AntdCascader/component/getIcons.js +1 -1
  176. package/es/tntd-cascader/AntdCascader/component/useCompactItemContext.js +2 -2
  177. package/es/tntd-cascader/AntdCascader/config/utils.js +2 -2
  178. package/es/tntd-cascader/AntdCascader/index.js +7 -7
  179. package/es/tntd-cascader/index.js +1 -1
  180. package/es/tntd-cascader/rc-cascader/Cascader.js +8 -8
  181. package/es/tntd-cascader/rc-cascader/OptionList/Checkbox.js +2 -2
  182. package/es/tntd-cascader/rc-cascader/OptionList/Column.js +7 -7
  183. package/es/tntd-cascader/rc-cascader/OptionList/index.js +9 -9
  184. package/es/tntd-cascader/rc-cascader/OptionList/useActive.js +5 -5
  185. package/es/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +8 -8
  186. package/es/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +5 -5
  187. package/es/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +1 -1
  188. package/es/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +6 -6
  189. package/es/tntd-cascader/rc-cascader/index.js +1 -1
  190. package/es/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +4 -4
  191. package/es/tntd-form/ErrorList.js +7 -7
  192. package/es/tntd-form/Form.js +6 -6
  193. package/es/tntd-form/FormItem/ItemHolder.js +6 -6
  194. package/es/tntd-form/FormItem/index.js +8 -8
  195. package/es/tntd-form/FormItemInput.js +1 -1
  196. package/es/tntd-form/FormItemLabel.js +2 -2
  197. package/es/tntd-form/FormList.js +1 -1
  198. package/es/tntd-form/context.js +1 -1
  199. package/es/tntd-form/hooks/useDebounce.js +4 -4
  200. package/es/tntd-form/hooks/useForm.js +5 -5
  201. package/es/tntd-form/hooks/useFormItemStatus.js +1 -1
  202. package/es/tntd-form/hooks/useFrameState.js +5 -5
  203. package/es/tntd-form/index.js +1 -1
  204. package/es/tntd-icon/index.js +1 -1
  205. package/es/tntd-layout/AppList.js +6 -6
  206. package/es/tntd-layout/Application.js +6 -6
  207. package/es/tntd-layout/Avatar.js +2 -2
  208. package/es/tntd-layout/CompatibleLanguage.js +6 -6
  209. package/es/tntd-layout/EnterpriseLayout/Avatar.js +2 -2
  210. package/es/tntd-layout/EnterpriseLayout/Language.js +6 -6
  211. package/es/tntd-layout/EnterpriseLayout/Theme.js +6 -6
  212. package/es/tntd-layout/EnterpriseLayout/index.js +1 -1
  213. package/es/tntd-layout/GlobalNavigation/NavigationPopup.js +6 -6
  214. package/es/tntd-layout/GlobalNavigation/index.js +9 -9
  215. package/es/tntd-layout/Header.js +2 -2
  216. package/es/tntd-layout/HeaderActions.js +2 -2
  217. package/es/tntd-layout/HeaderNavs.js +6 -6
  218. package/es/tntd-layout/HeaderTabs.js +7 -7
  219. package/es/tntd-layout/Iconfont.js +1 -1
  220. package/es/tntd-layout/Language.js +6 -6
  221. package/es/tntd-layout/Layout.js +6 -6
  222. package/es/tntd-layout/Logo.js +2 -2
  223. package/es/tntd-layout/OrgAppList.js +6 -6
  224. package/es/tntd-layout/SideMenu.js +6 -6
  225. package/es/tntd-layout/Theme.js +6 -6
  226. package/es/tntd-layout/createActions.js +1 -1
  227. package/es/tntd-layout/images/index.js +1 -1
  228. package/es/tntd-layout/index.js +1 -1
  229. package/es/tntd-layout/paaslayout/CompactSideMenu.js +6 -6
  230. package/es/tntd-layout/paaslayout/Header.js +2 -2
  231. package/es/tntd-layout/paaslayout/Logo.js +2 -2
  232. package/es/tntd-layout/paaslayout/SideMenu.js +6 -6
  233. package/es/tntd-layout/paaslayout/index.js +6 -6
  234. package/es/tntd-layout/storage.js +1 -1
  235. package/es/tntd-modal/index.js +6 -6
  236. package/es/tntd-rc-select/_util/PurePanel.js +5 -5
  237. package/es/tntd-rc-select/_util/context.js +1 -1
  238. package/es/tntd-rc-select/_util/defaultRenderEmpty.js +1 -1
  239. package/es/tntd-rc-select/_util/getIcons.js +1 -1
  240. package/es/tntd-rc-select/_util/useCompactItemContext.js +2 -2
  241. package/es/tntd-rc-select/index.js +2 -2
  242. package/es/tntd-reference/AHref/index.js +1 -1
  243. package/es/tntd-reference/ReferenceBatchCheck/index.js +1 -1
  244. package/es/tntd-reference/ReferenceBatchDrawer/index.js +5 -5
  245. package/es/tntd-reference/ReferenceCheck/index.js +1 -1
  246. package/es/tntd-reference/ReferenceDrawer/index.js +5 -5
  247. package/es/tntd-reference/ReferenceInfo/index.js +1 -1
  248. package/es/tntd-reference/index.js +1 -1
  249. package/es/tntd-second-page/index.js +1 -1
  250. package/es/tntd-select/DropDownWrap.js +8 -8
  251. package/es/tntd-select/index.js +10 -9
  252. package/es/tntd-select/index.less +7 -0
  253. package/es/tntd-virtual-tree/index.js +8 -8
  254. package/es/tntd-virtual-tree/index.less +1 -1
  255. package/es/tntd-virtual-tree/utils.js +28 -28
  256. package/es/tntd-virtual-tree-select/index.js +10 -10
  257. package/es/tntd-virtual-tree-select/utils.js +9 -9
  258. package/es/tooltip/tooltip.js +1 -1
  259. package/es/upload/index.js +6 -6
  260. package/es/upload/svg/UploadSVG.js +1 -1
  261. package/es/utils/checkAuth.js +4 -4
  262. package/es/utils/index.js +9 -9
  263. package/es/utils/lang.js +1 -1
  264. package/es/water-mark/index.js +5 -5
  265. package/lib/_util/context.js +3 -3
  266. package/lib/_util/defaultRenderEmpty.js +3 -3
  267. package/lib/_util/hooks/useFlexGapSupport.js +14 -15
  268. package/lib/_util/hooks/useForceUpdate.js +14 -15
  269. package/lib/_util/responsiveObserve.js +7 -13
  270. package/lib/_util/styleChecker.js +3 -3
  271. package/lib/actions/index.js +3 -3
  272. package/lib/alert/alert.d.ts +12 -0
  273. package/lib/alert/alert.d.ts.map +1 -0
  274. package/lib/alert/alert.js +147 -0
  275. package/lib/alert/alert.js.map +1 -0
  276. package/lib/alert/alert.less +128 -0
  277. package/lib/array-input/index.js +30 -37
  278. package/lib/cascader/cascader.d.ts +10 -0
  279. package/lib/cascader/cascader.d.ts.map +1 -0
  280. package/lib/cascader/cascader.js +84 -0
  281. package/lib/cascader/cascader.js.map +1 -0
  282. package/lib/cascader/cascader.less +16 -0
  283. package/lib/check-card/group.js +23 -24
  284. package/lib/check-card/index.js +24 -31
  285. package/lib/checkbox/check.png +0 -0
  286. package/lib/checkbox/checkbox-group.js +3 -3
  287. package/lib/checkbox/checkbox.d.ts +16 -0
  288. package/lib/checkbox/checkbox.d.ts.map +1 -0
  289. package/lib/checkbox/checkbox.js +100 -0
  290. package/lib/checkbox/checkbox.js.map +1 -0
  291. package/lib/checkbox/checkbox.less +69 -0
  292. package/lib/color-picker/ColorPicker.js +24 -31
  293. package/lib/color-picker/index.js +3 -3
  294. package/lib/columns/index.js +3 -3
  295. package/lib/config-provider/config-provider.js +3 -3
  296. package/lib/date-picker/DatePicker.d.ts +21 -0
  297. package/lib/date-picker/DatePicker.d.ts.map +1 -0
  298. package/lib/date-picker/DatePicker.js +163 -0
  299. package/lib/date-picker/DatePicker.js.map +1 -0
  300. package/lib/date-picker/index.less +294 -0
  301. package/lib/descriptions/descriptions.js +13 -19
  302. package/lib/development-login/LoginModal.js +24 -31
  303. package/lib/development-login/index.js +14 -15
  304. package/lib/drawer/drawer.js +10 -16
  305. package/lib/ellipsis/Svg/CopySVG.js +3 -3
  306. package/lib/ellipsis/Svg/TickSVG.js +3 -3
  307. package/lib/ellipsis/index.js +17 -18
  308. package/lib/empty/empty.js +10 -16
  309. package/lib/empty/empty.stories.js +6 -9
  310. package/lib/exception/exception.js +3 -3
  311. package/lib/form/form.js +10 -16
  312. package/lib/grid-v4/col.js +10 -16
  313. package/lib/grid-v4/hooks/useBreakpoint.js +3 -3
  314. package/lib/grid-v4/index.js +3 -3
  315. package/lib/grid-v4/row.js +24 -31
  316. package/lib/handle/index.js +3 -3
  317. package/lib/handle-icon/index.js +13 -13
  318. package/lib/icon/IconFont.js +3 -3
  319. package/lib/icon/components/Icon.js +44 -70
  320. package/lib/icon/components/index.js +3 -3
  321. package/lib/icon/components/utils.js +10 -18
  322. package/lib/icon/index.js +26 -33
  323. package/lib/icon/twoTonePrimaryColor.js +3 -3
  324. package/lib/icon/utils.js +3 -3
  325. package/lib/img/Contain.js +3 -3
  326. package/lib/img/Cover.js +17 -18
  327. package/lib/img/index.js +17 -18
  328. package/lib/index.js +3 -3
  329. package/lib/input/input.js +10 -16
  330. package/lib/input-number/index.js +3 -3
  331. package/lib/input-number/inputNumber.d.ts +10 -0
  332. package/lib/input-number/inputNumber.d.ts.map +1 -0
  333. package/lib/input-number/inputNumber.js +89 -0
  334. package/lib/input-number/inputNumber.js.map +1 -0
  335. package/lib/input-number/inputNumber.less +12 -0
  336. package/lib/label/index.js +10 -16
  337. package/lib/loading-button/index.js +17 -18
  338. package/lib/locale/default.js +3 -3
  339. package/lib/locale/en_US.js +3 -3
  340. package/lib/locale/zh_CN.js +3 -3
  341. package/lib/modal/index.less +36 -0
  342. package/lib/modal/modal.js +3 -3
  343. package/lib/notification/assets/index.js +3 -3
  344. package/lib/notification/index.js +3 -3
  345. package/lib/notification/notification.js +3 -3
  346. package/lib/page/Box.js +3 -3
  347. package/lib/page/index.js +26 -33
  348. package/lib/page-container/index.js +3 -3
  349. package/lib/page-loading/index.js +3 -3
  350. package/lib/popconfirm/index.less +32 -0
  351. package/lib/popconfirm/popconfirm.d.ts +8 -0
  352. package/lib/popconfirm/popconfirm.d.ts.map +1 -0
  353. package/lib/popconfirm/popconfirm.js +96 -0
  354. package/lib/popconfirm/popconfirm.js.map +1 -0
  355. package/lib/popover/index.less +57 -0
  356. package/lib/popover/popover.d.ts +14 -0
  357. package/lib/popover/popover.d.ts.map +1 -0
  358. package/lib/popover/popover.js +90 -0
  359. package/lib/popover/popover.js.map +1 -0
  360. package/lib/preview-text/index.js +9 -9
  361. package/lib/progress/progress.d.ts +12 -0
  362. package/lib/progress/progress.d.ts.map +1 -0
  363. package/lib/progress/progress.js +179 -0
  364. package/lib/progress/progress.js.map +1 -0
  365. package/lib/progress/progress.less +82 -0
  366. package/lib/query-form/Field/Checkbox.js +3 -3
  367. package/lib/query-form/Field/Composition/FieldPopover.d.ts +19 -0
  368. package/lib/query-form/Field/Composition/FieldPopover.d.ts.map +1 -0
  369. package/lib/query-form/Field/Composition/FieldPopover.js +418 -0
  370. package/lib/query-form/Field/Composition/FieldPopover.js.map +1 -0
  371. package/lib/query-form/Field/Composition/FieldPopover.less +35 -0
  372. package/lib/query-form/Field/Composition/Select.d.ts +4 -0
  373. package/lib/query-form/Field/Composition/Select.d.ts.map +1 -0
  374. package/lib/query-form/Field/Composition/Select.js +242 -0
  375. package/lib/query-form/Field/Composition/Select.js.map +1 -0
  376. package/lib/query-form/Field/Composition/ValueTag.d.ts +13 -0
  377. package/lib/query-form/Field/Composition/ValueTag.d.ts.map +1 -0
  378. package/lib/query-form/Field/Composition/ValueTag.js +235 -0
  379. package/lib/query-form/Field/Composition/ValueTag.js.map +1 -0
  380. package/lib/query-form/Field/Composition/index.d.ts +13 -0
  381. package/lib/query-form/Field/Composition/index.d.ts.map +1 -0
  382. package/lib/query-form/Field/Composition/index.js +425 -0
  383. package/lib/query-form/Field/Composition/index.js.map +1 -0
  384. package/lib/query-form/Field/Composition/index.less +145 -0
  385. package/lib/query-form/Field/Composition/utils.d.ts +21 -0
  386. package/lib/query-form/Field/Composition/utils.d.ts.map +1 -0
  387. package/lib/query-form/Field/Composition/utils.js +172 -0
  388. package/lib/query-form/Field/Composition/utils.js.map +1 -0
  389. package/lib/query-form/Field/Select.js +24 -31
  390. package/lib/query-form/Field/SelectInput.js +24 -31
  391. package/lib/query-form/Field/fieldsMap.d.ts +4 -3
  392. package/lib/query-form/Field/fieldsMap.d.ts.map +1 -1
  393. package/lib/query-form/Field/fieldsMap.js +5 -4
  394. package/lib/query-form/Field/fieldsMap.js.map +1 -1
  395. package/lib/query-form/Field/index.js +47 -73
  396. package/lib/query-form/createActions.js +3 -3
  397. package/lib/query-form/index.js +44 -70
  398. package/lib/query-form/useForm.js +3 -3
  399. package/lib/query-form-backup/Field/Composition/FieldPopover.less +35 -0
  400. package/lib/query-form-backup/Field/Composition/index.less +114 -0
  401. package/lib/query-form-backup/index.less +90 -0
  402. package/lib/query-form-v2/index.less +133 -0
  403. package/lib/query-list-scene/List.js +41 -61
  404. package/lib/query-list-scene/QueryForm.js +44 -70
  405. package/lib/query-list-scene/QueryListScene.js +44 -70
  406. package/lib/query-list-scene/Title.js +3 -3
  407. package/lib/query-list-scene/Toolbar.js +10 -16
  408. package/lib/query-list-scene/createActions.js +3 -3
  409. package/lib/query-list-scene/index.js +3 -3
  410. package/lib/query-list-scene/useActions.js +3 -3
  411. package/lib/radio/index.js +3 -3
  412. package/lib/radio/radio-group.js +3 -3
  413. package/lib/radio/radio.d.ts +17 -0
  414. package/lib/radio/radio.d.ts.map +1 -0
  415. package/lib/radio/radio.js +110 -0
  416. package/lib/radio/radio.js.map +1 -0
  417. package/lib/radio/radio.less +43 -0
  418. package/lib/render-empty/render-empty.js +3 -3
  419. package/lib/scroll-bar/Bar.d.ts +4 -0
  420. package/lib/scroll-bar/Bar.d.ts.map +1 -0
  421. package/lib/scroll-bar/Bar.js +168 -0
  422. package/lib/scroll-bar/Bar.js.map +1 -0
  423. package/lib/scroll-bar/Context.d.ts +7 -0
  424. package/lib/scroll-bar/Context.d.ts.map +1 -0
  425. package/lib/scroll-bar/Context.js +17 -0
  426. package/lib/scroll-bar/Context.js.map +1 -0
  427. package/lib/scroll-bar/ScrollBar.d.ts +4 -0
  428. package/lib/scroll-bar/ScrollBar.d.ts.map +1 -0
  429. package/lib/scroll-bar/ScrollBar.js +132 -0
  430. package/lib/scroll-bar/ScrollBar.js.map +1 -0
  431. package/lib/scroll-bar/Thumb.d.ts +3 -0
  432. package/lib/scroll-bar/Thumb.d.ts.map +1 -0
  433. package/lib/scroll-bar/Thumb.js +202 -0
  434. package/lib/scroll-bar/Thumb.js.map +1 -0
  435. package/lib/scroll-bar/index.d.ts +3 -0
  436. package/lib/scroll-bar/index.d.ts.map +1 -0
  437. package/lib/scroll-bar/index.js +14 -0
  438. package/lib/scroll-bar/index.js.map +1 -0
  439. package/lib/scroll-bar/scrollBar.less +59 -0
  440. package/lib/scroll-bar/util.d.ts +40 -0
  441. package/lib/scroll-bar/util.d.ts.map +1 -0
  442. package/lib/scroll-bar/util.js +66 -0
  443. package/lib/scroll-bar/util.js.map +1 -0
  444. package/lib/segmented/index.js +10 -16
  445. package/lib/select/select.js +10 -16
  446. package/lib/spin/spin.d.ts +9 -0
  447. package/lib/spin/spin.d.ts.map +1 -0
  448. package/lib/spin/spin.js +79 -0
  449. package/lib/spin/spin.js.map +1 -0
  450. package/lib/spin/spin.less +9 -0
  451. package/lib/steps/assets/background_left.svg +12 -0
  452. package/lib/steps/assets/background_right.svg +12 -0
  453. package/lib/steps/assets/horizontal_line.svg +3 -0
  454. package/lib/steps/assets/vertical_line.svg +3 -0
  455. package/lib/steps/stepStyle/icon.less +51 -0
  456. package/lib/steps/stepStyle/progress-dot.less +10 -0
  457. package/lib/steps/stepStyle/variables.less +8 -0
  458. package/lib/steps/stepStyle/vertical.less +41 -0
  459. package/lib/steps/steps.js +10 -16
  460. package/lib/svg-components/index.js +3 -3
  461. package/lib/switch/index.less +45 -0
  462. package/lib/switch/switch.js +3 -3
  463. package/lib/table/hooks/use-column-setting.js +14 -15
  464. package/lib/table/hooks/use-expand-fixed.js +30 -36
  465. package/lib/table/resizableTable/index.js +24 -31
  466. package/lib/table/table-hoc.js +3 -3
  467. package/lib/table/table.js +27 -34
  468. package/lib/table/table.stories.js +10 -16
  469. package/lib/table/total-shower.js +3 -3
  470. package/lib/table/utils.js +3 -3
  471. package/lib/table-container/index.js +3 -3
  472. package/lib/tabs/tabs.less +125 -0
  473. package/lib/tabs-container/index.js +3 -3
  474. package/lib/tag/tag.js +10 -16
  475. package/lib/time-picker/TimePicker.d.ts +9 -0
  476. package/lib/time-picker/TimePicker.d.ts.map +1 -0
  477. package/lib/time-picker/TimePicker.js +90 -0
  478. package/lib/time-picker/TimePicker.js.map +1 -0
  479. package/lib/time-picker/index.less +38 -0
  480. package/lib/title/index.js +3 -3
  481. package/lib/tntd-action/Action.d.ts +6 -0
  482. package/lib/tntd-action/Action.d.ts.map +1 -0
  483. package/lib/tntd-action/Action.js +218 -0
  484. package/lib/tntd-action/Action.js.map +1 -0
  485. package/lib/tntd-action/index.less +61 -0
  486. package/lib/tntd-cascader/AntdCascader/component/context.js +3 -3
  487. package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +3 -3
  488. package/lib/tntd-cascader/AntdCascader/component/getIcons.js +3 -3
  489. package/lib/tntd-cascader/AntdCascader/component/useCompactItemContext.js +10 -16
  490. package/lib/tntd-cascader/AntdCascader/config/utils.js +10 -16
  491. package/lib/tntd-cascader/AntdCascader/index.js +26 -33
  492. package/lib/tntd-cascader/index.js +3 -3
  493. package/lib/tntd-cascader/rc-cascader/Cascader.js +23 -24
  494. package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.js +10 -16
  495. package/lib/tntd-cascader/rc-cascader/OptionList/Column.js +26 -33
  496. package/lib/tntd-cascader/rc-cascader/OptionList/index.js +30 -37
  497. package/lib/tntd-cascader/rc-cascader/OptionList/useActive.js +17 -18
  498. package/lib/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +23 -24
  499. package/lib/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +16 -17
  500. package/lib/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +3 -3
  501. package/lib/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +23 -30
  502. package/lib/tntd-cascader/rc-cascader/index.js +3 -3
  503. package/lib/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +6 -6
  504. package/lib/tntd-form/ErrorList.js +26 -33
  505. package/lib/tntd-form/Form.js +24 -31
  506. package/lib/tntd-form/FormItem/ItemHolder.js +24 -31
  507. package/lib/tntd-form/FormItem/index.js +23 -24
  508. package/lib/tntd-form/FormItemInput.js +3 -3
  509. package/lib/tntd-form/FormItemLabel.js +10 -16
  510. package/lib/tntd-form/FormList.js +3 -3
  511. package/lib/tntd-form/context.js +3 -3
  512. package/lib/tntd-form/hooks/useDebounce.js +14 -15
  513. package/lib/tntd-form/hooks/useForm.js +17 -18
  514. package/lib/tntd-form/hooks/useFormItemStatus.js +3 -3
  515. package/lib/tntd-form/hooks/useFrameState.js +17 -18
  516. package/lib/tntd-form/index.js +3 -3
  517. package/lib/tntd-icon/index.js +3 -3
  518. package/lib/tntd-layout/AppList.js +20 -24
  519. package/lib/tntd-layout/Application.js +20 -24
  520. package/lib/tntd-layout/Avatar.js +6 -9
  521. package/lib/tntd-layout/CompatibleLanguage.js +20 -24
  522. package/lib/tntd-layout/EnterpriseLayout/Avatar.js +6 -9
  523. package/lib/tntd-layout/EnterpriseLayout/Language.js +20 -24
  524. package/lib/tntd-layout/EnterpriseLayout/Theme.js +20 -24
  525. package/lib/tntd-layout/EnterpriseLayout/index.js +3 -3
  526. package/lib/tntd-layout/GlobalNavigation/NavigationPopup.js +20 -24
  527. package/lib/tntd-layout/GlobalNavigation/index.js +26 -30
  528. package/lib/tntd-layout/Header.js +6 -9
  529. package/lib/tntd-layout/HeaderActions.js +6 -9
  530. package/lib/tntd-layout/HeaderNavs.js +20 -24
  531. package/lib/tntd-layout/HeaderTabs.js +27 -37
  532. package/lib/tntd-layout/Iconfont.js +3 -3
  533. package/lib/tntd-layout/Language.js +20 -24
  534. package/lib/tntd-layout/Layout.js +20 -24
  535. package/lib/tntd-layout/Logo.js +6 -9
  536. package/lib/tntd-layout/OrgAppList.js +20 -24
  537. package/lib/tntd-layout/SideMenu.js +20 -24
  538. package/lib/tntd-layout/Theme.js +20 -24
  539. package/lib/tntd-layout/createActions.js +3 -3
  540. package/lib/tntd-layout/images/index.js +3 -3
  541. package/lib/tntd-layout/index.js +3 -3
  542. package/lib/tntd-layout/paaslayout/CompactSideMenu.js +20 -24
  543. package/lib/tntd-layout/paaslayout/Header.js +6 -9
  544. package/lib/tntd-layout/paaslayout/Logo.js +6 -9
  545. package/lib/tntd-layout/paaslayout/SideMenu.js +20 -24
  546. package/lib/tntd-layout/paaslayout/index.js +20 -24
  547. package/lib/tntd-layout/storage.js +3 -3
  548. package/lib/tntd-modal/index.js +24 -31
  549. package/lib/tntd-rc-select/_util/PurePanel.js +17 -18
  550. package/lib/tntd-rc-select/_util/context.js +3 -3
  551. package/lib/tntd-rc-select/_util/defaultRenderEmpty.js +3 -3
  552. package/lib/tntd-rc-select/_util/getIcons.js +3 -3
  553. package/lib/tntd-rc-select/_util/useCompactItemContext.js +10 -16
  554. package/lib/tntd-rc-select/index.js +10 -16
  555. package/lib/tntd-reference/AHref/index.js +3 -3
  556. package/lib/tntd-reference/ReferenceBatchCheck/index.js +3 -3
  557. package/lib/tntd-reference/ReferenceBatchDrawer/index.js +17 -18
  558. package/lib/tntd-reference/ReferenceCheck/index.js +3 -3
  559. package/lib/tntd-reference/ReferenceDrawer/index.js +17 -18
  560. package/lib/tntd-reference/ReferenceInfo/index.js +3 -3
  561. package/lib/tntd-reference/index.js +3 -3
  562. package/lib/tntd-second-page/index.js +3 -3
  563. package/lib/tntd-select/DropDownWrap.js +34 -54
  564. package/lib/tntd-select/index.js +40 -57
  565. package/lib/tntd-select/index.less +7 -0
  566. package/lib/tntd-virtual-tree/index.js +23 -24
  567. package/lib/tntd-virtual-tree/index.less +1 -1
  568. package/lib/tntd-virtual-tree/utils.js +62 -66
  569. package/lib/tntd-virtual-tree-select/index.js +22 -23
  570. package/lib/tntd-virtual-tree-select/utils.js +20 -21
  571. package/lib/tooltip/tooltip.js +3 -3
  572. package/lib/upload/index.js +41 -45
  573. package/lib/upload/svg/UploadSVG.js +3 -3
  574. package/lib/utils/checkAuth.js +6 -6
  575. package/lib/utils/index.js +20 -21
  576. package/lib/utils/lang.js +3 -3
  577. package/lib/water-mark/index.js +17 -18
  578. package/package.json +2 -2
@@ -0,0 +1,145 @@
1
+ @import '../../../style/themes/index';
2
+ @import '../../../style/mixins/index';
3
+ @import '../../../input/style/mixin';
4
+
5
+ .tnt-queryform-composition-input {
6
+ // width: 100%;
7
+ max-height: 162px;
8
+ overflow-x: hidden;
9
+ cursor: text;
10
+ padding: 2px @padding-xl;
11
+ position: relative;
12
+ box-sizing: border-box;
13
+ background-color: @select-background;
14
+ border: @border-width-base @border-style-base @select-border-color;
15
+ border-top-width: calc(@border-width-base + 0.02px);
16
+ border-radius: @border-radius-base;
17
+ outline: none;
18
+ transition: all 0.3s @ease-in-out;
19
+ user-select: none;
20
+ margin-bottom: @margin-sm;
21
+
22
+ &-prefix {
23
+ position: absolute;
24
+ left: @padding-sm;
25
+ top: 50%;
26
+ transform: translateY(-50%);
27
+ i.anticon {
28
+ color: #8B919E;
29
+ }
30
+ }
31
+
32
+ &-width {
33
+ height: 0;
34
+ opacity: 0;
35
+ width: auto;
36
+ position: absolute;
37
+ max-width: 100%;
38
+ }
39
+
40
+ &-items {
41
+ display: flex;
42
+ flex-wrap: wrap;
43
+ padding: 0;
44
+ list-style: none;
45
+ margin: 0;
46
+ width: 100%;
47
+ &-item {
48
+ padding: 3px 0;
49
+ }
50
+ li {
51
+ line-height: 1;
52
+ }
53
+ &-input {
54
+ flex: 1;
55
+ min-width: 160px;
56
+ .inputClass {
57
+ background: none;
58
+ border: none !important;
59
+ outline: none;
60
+ box-shadow: none !important;
61
+ width: 100% !important;
62
+ height: 26px;
63
+ line-height: 26px;
64
+ padding: 0;
65
+ input {
66
+ border: none !important;
67
+ outline: none !important;
68
+ box-shadow: none !important;
69
+ height: 26px;
70
+ line-height: 26px;
71
+ padding: 0;
72
+ }
73
+ textarea {
74
+ padding: 0;
75
+ }
76
+ }
77
+ .inputClass-with-placeholder {
78
+ min-width: 398px !important;
79
+ }
80
+ }
81
+ }
82
+ &-clear {
83
+ position: absolute;
84
+ // right: @margin-sm;
85
+ right: calc(@margin-sm + 30px);
86
+ top: 50%;
87
+ transform: translateY(-50%);
88
+ display: none;
89
+ i.anticon {
90
+ color: tint(@bg-color-spotilight, 50%);
91
+ }
92
+ &:hover {
93
+ .anticon {
94
+ color: @text-color-secondary !important;
95
+ }
96
+ }
97
+ }
98
+ &-search {
99
+ position: absolute;
100
+ right: 0;
101
+ top: 0;
102
+ height: 100%;
103
+ border-left: @border-width-base @border-style-base @select-border-color;
104
+ background-color: @fill-color-quaternary;
105
+ display: flex;
106
+ width: 30px;
107
+ justify-content: center;
108
+ align-items: center;
109
+ transition: border-color 0.3s @ease-in-out;
110
+ cursor: pointer;
111
+ &:hover {
112
+ background-color: #E6F4FF;
113
+ i.anticon {
114
+ color: @primary-color;
115
+ }
116
+ }
117
+ }
118
+ &:hover,
119
+ &:focus,
120
+ &:active {
121
+ border-color: @primary-color;
122
+ box-shadow: 0px 0px 4px 0px rgba(18, 107, 251, 0.10), 0px 0px 5px 0px rgba(18, 107, 251, 0.30);
123
+ outline: 0;
124
+ .tnt-queryform-composition-input-prefix {
125
+ i.anticon {
126
+ color: @text-color;
127
+ }
128
+ }
129
+ .tnt-queryform-composition-input-clear {
130
+ display: block;
131
+ }
132
+ .tnt-queryform-composition-input-search {
133
+ border-color: @primary-color;
134
+ }
135
+ }
136
+ .ant-tag {
137
+ padding: 0 @padding-xs;
138
+ border: none;
139
+ background: @fill-color-tertiary;
140
+ height: 20px;
141
+ .ant-tag-addon-wrap {
142
+ margin-top: -2px;
143
+ }
144
+ }
145
+ }
@@ -0,0 +1,168 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.formatLabel = formatLabel;
7
+ exports.getLabel = getLabel;
8
+ exports.getLabelByValue = getLabelByValue;
9
+ exports.highlightSubstring = highlightSubstring;
10
+ exports.isInput = void 0;
11
+ exports.parseArrayToObject = parseArrayToObject;
12
+ exports.parseObjectToArray = parseObjectToArray;
13
+ var _flatten2 = _interopRequireDefault(require("lodash/flatten"));
14
+ var _isString2 = _interopRequireDefault(require("lodash/isString"));
15
+ var _isArray2 = _interopRequireDefault(require("lodash/isArray"));
16
+ var _react = _interopRequireDefault(require("react"));
17
+ var _moment = _interopRequireDefault(require("moment"));
18
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
19
+ function highlightSubstring(str, substring) {
20
+ var highlighted = "<span class=\"tnt-highlight\">".concat(substring, "</span>");
21
+ return str.replace(new RegExp(substring, 'g'), highlighted);
22
+ }
23
+ function getLabelByValue(_ref) {
24
+ var value = _ref.value,
25
+ options = _ref.options,
26
+ _ref$fieldNames = _ref.fieldNames,
27
+ fieldNames = _ref$fieldNames === void 0 ? {
28
+ label: 'label',
29
+ value: 'value'
30
+ } : _ref$fieldNames;
31
+ var getLabel = function getLabel(value) {
32
+ var target = options === null || options === void 0 ? void 0 : options.find(function (item) {
33
+ var valueKey = fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.value;
34
+ var itemValue = item instanceof Object ? item[valueKey] : item;
35
+ return itemValue === value;
36
+ });
37
+ if (target) {
38
+ return target instanceof Object ? target === null || target === void 0 ? void 0 : target[fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.label] : target;
39
+ } else {
40
+ return value;
41
+ }
42
+ };
43
+ if ((0, _isArray2["default"])(value)) {
44
+ return value.map(getLabel).join(' | ');
45
+ } else {
46
+ return getLabel(value);
47
+ }
48
+ }
49
+ function formatLabel(reactDom) {
50
+ return (0, _flatten2["default"])(_react["default"].Children.map(reactDom.props.children, function (child) {
51
+ if (_react["default"].isValidElement(child)) {
52
+ return formatLabel(child);
53
+ } else if ((0, _isString2["default"])(child)) {
54
+ return child;
55
+ }
56
+ return '';
57
+ })).join('');
58
+ }
59
+ function parseObjectToArray(value, data) {
60
+ var _a, _b;
61
+ return (_b = (_a = Object.keys(value || {})) === null || _a === void 0 ? void 0 : _a.map(function (key) {
62
+ var _a;
63
+ var target = data === null || data === void 0 ? void 0 : data.find(function (item) {
64
+ var _a;
65
+ return ((_a = item.props) === null || _a === void 0 ? void 0 : _a.name) === key;
66
+ });
67
+ if (!target) return null;
68
+ var dataItem = (target === null || target === void 0 ? void 0 : target.props) || {};
69
+ var _ref2 = dataItem || {},
70
+ _ref2$type = _ref2.type,
71
+ type = _ref2$type === void 0 ? 'input' : _ref2$type,
72
+ component = _ref2.component,
73
+ setLabel = _ref2.setLabel,
74
+ fieldProps = _ref2.props;
75
+ var _ref3 = fieldProps || {},
76
+ options = _ref3.options;
77
+ if (!type && component) {
78
+ if (!setLabel) {
79
+ console.error('自定义组件需要传入setLabel()方法');
80
+ }
81
+ } else if (options) {
82
+ if (type === 'selectInput') {
83
+ var selectKey = (_a = Object.keys(value[key] || {})) === null || _a === void 0 ? void 0 : _a[0];
84
+ if (!selectKey) {
85
+ // 17. inputSelect组件,初始值{},展示undefined:undefined
86
+ return false;
87
+ }
88
+ return {
89
+ key: key,
90
+ value: value[key]
91
+ };
92
+ }
93
+ }
94
+ return {
95
+ key: key,
96
+ value: value[key]
97
+ };
98
+ })) === null || _b === void 0 ? void 0 : _b.filter(function (item) {
99
+ return !!item;
100
+ });
101
+ }
102
+ function parseArrayToObject(value) {
103
+ return value === null || value === void 0 ? void 0 : value.reduce(function (acc, v) {
104
+ acc[v.key] = v.value;
105
+ return acc;
106
+ }, {});
107
+ }
108
+ function getLabel(_ref4, data, locale) {
109
+ var key = _ref4.key,
110
+ value = _ref4.value;
111
+ var _a, _b, _c;
112
+ var target = data === null || data === void 0 ? void 0 : data.find(function (item) {
113
+ var _a;
114
+ return ((_a = item.props) === null || _a === void 0 ? void 0 : _a.name) === key;
115
+ });
116
+ if (!target) return null;
117
+ var dataItem = (target === null || target === void 0 ? void 0 : target.props) || {};
118
+ var _ref5 = dataItem || {},
119
+ _ref5$type = _ref5.type,
120
+ type = _ref5$type === void 0 ? 'input' : _ref5$type,
121
+ setLabel = _ref5.setLabel,
122
+ fieldProps = _ref5.props,
123
+ propsTitle = _ref5.propsTitle,
124
+ title = _ref5.title,
125
+ name = _ref5.name;
126
+ var _propsTitle = propsTitle || title || name;
127
+ var _ref6 = fieldProps || {},
128
+ options = _ref6.options,
129
+ format = _ref6.format;
130
+ var labelValue = value;
131
+ if (setLabel) {
132
+ // setLabel: 对于自定义组件,无法控制label的显示,可以通过setLabel方法控制
133
+ labelValue = setLabel(value);
134
+ } else if (options) {
135
+ if (type === 'selectInput') {
136
+ var selectKey = (_a = Object.keys(value || {})) === null || _a === void 0 ? void 0 : _a[0];
137
+ if (!selectKey) {
138
+ // 17. inputSelect组件,初始值{},展示undefined:undefined
139
+ return false;
140
+ }
141
+ var inputValue = value[selectKey];
142
+ var selectLabel = (_b = options === null || options === void 0 ? void 0 : options.find(function (v) {
143
+ return v.value === selectKey;
144
+ })) === null || _b === void 0 ? void 0 : _b.label;
145
+ return selectLabel + ':' + inputValue;
146
+ }
147
+ labelValue = getLabelByValue({
148
+ value: value,
149
+ options: options,
150
+ fieldNames: ((_c = dataItem === null || dataItem === void 0 ? void 0 : dataItem.props) === null || _c === void 0 ? void 0 : _c.fieldNames) || {
151
+ label: 'label',
152
+ value: 'value'
153
+ }
154
+ });
155
+ } else if (type === 'checkbox') {
156
+ labelValue = value ? locale.yes : locale.no;
157
+ } else if (type === 'dateRange' && format) {
158
+ if (value === null || value === void 0 ? void 0 : value.length) {
159
+ labelValue = [(0, _moment["default"])(value === null || value === void 0 ? void 0 : value[0]).format(format), (0, _moment["default"])(value === null || value === void 0 ? void 0 : value[1]).format(format)].join('~');
160
+ }
161
+ } else if (type === 'date' && format) {
162
+ labelValue = value ? (0, _moment["default"])(value).format(format) : undefined;
163
+ }
164
+ return _propsTitle + ':' + (labelValue === undefined ? '' : labelValue);
165
+ }
166
+ var isInput = exports.isInput = function isInput(type) {
167
+ return ['input', 'string', 'search', 'aloneSearch', 'number', 'inputNumber'].includes(type);
168
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/query-form/Field/Composition/utils.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,OAAO,EAAE,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EAAE;QAC9B,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAA;KAC5C;SAAM,IAAI,IAAI,KAAK,WAAW,IAAI,MAAM,EAAE;QACzC,IAAI,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,EAAE;YACjB,UAAU,GAAG,CAAC,MAAM,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;SAC9F;KACF;SAAM,IAAI,IAAI,KAAK,MAAM,IAAI,MAAM,EAAE;QACpC,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;KAC9D;IACD,OAAO,WAAW,GAAG,GAAG,GAAG,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAA;AACzE,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,IAAI,EAAE,EAAE,CAC9B,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA","sourcesContent":["import React from 'react'\nimport { isArray, isString, flatten } from 'lodash'\nimport moment from 'moment'\n\nexport function highlightSubstring(str, substring) {\n const highlighted = `<span class=\"tnt-highlight\">${substring}</span>`\n return str.replace(new RegExp(substring, 'g'), highlighted)\n}\n\nexport function getLabelByValue({\n value,\n options,\n fieldNames = {\n label: 'label',\n value: 'value',\n },\n}) {\n const getLabel = (value) => {\n const target = options?.find((item) => {\n const valueKey = fieldNames?.value\n const itemValue = item instanceof Object ? item[valueKey] : item\n return itemValue === value\n })\n if (target) {\n return target instanceof Object ? target?.[fieldNames?.label] : target\n } else {\n return value\n }\n }\n if (isArray(value)) {\n return value.map(getLabel).join(' | ')\n } else {\n return getLabel(value)\n }\n}\n\nexport function formatLabel(reactDom) {\n return flatten(\n React.Children.map(reactDom.props.children, (child) => {\n if (React.isValidElement(child)) {\n return formatLabel(child)\n } else if (isString(child)) {\n return child\n }\n return ''\n })\n ).join('')\n}\n\nexport function parseObjectToArray(value, data) {\n return Object.keys(value || {})\n ?.map((key) => {\n const target = data?.find((item) => item.props?.name === key)\n if (!target) return null\n const dataItem = target?.props || {}\n const { type = 'input', component, setLabel, props: fieldProps } = dataItem || {}\n const { options } = fieldProps || {}\n\n if (!type && component) {\n if (!setLabel) {\n console.error('自定义组件需要传入setLabel()方法')\n }\n } else if (options) {\n if (type === 'selectInput') {\n const selectKey = Object.keys(value[key] || {})?.[0]\n if (!selectKey) {\n // 17. inputSelect组件,初始值{},展示undefined:undefined\n return false\n }\n return {\n key,\n value: value[key],\n }\n }\n }\n return {\n key,\n value: value[key],\n }\n })\n ?.filter((item) => !!item)\n}\n\nexport function parseArrayToObject(value) {\n return value?.reduce((acc, v) => {\n acc[v.key] = v.value\n return acc\n }, {})\n}\n\nexport function getLabel({ key, value }, data, locale) {\n const target = data?.find((item) => item.props?.name === key)\n if (!target) return null\n const dataItem = target?.props || {}\n const { type = 'input', setLabel, props: fieldProps, propsTitle, title, name } = dataItem || {}\n const _propsTitle = propsTitle || title || name\n const { options, format } = fieldProps || {}\n let labelValue = value\n if (setLabel) {\n // setLabel: 对于自定义组件,无法控制label的显示,可以通过setLabel方法控制\n labelValue = setLabel(value)\n } else if (options) {\n if (type === 'selectInput') {\n const selectKey = Object.keys(value || {})?.[0]\n if (!selectKey) {\n // 17. inputSelect组件,初始值{},展示undefined:undefined\n return false\n }\n const inputValue = value[selectKey]\n const selectLabel = options?.find((v) => v.value === selectKey)?.label\n return selectLabel + ':' + inputValue\n }\n labelValue = getLabelByValue({\n value,\n options,\n fieldNames: dataItem?.props?.fieldNames || {\n label: 'label',\n value: 'value',\n },\n })\n } else if (type === 'checkbox') {\n labelValue = value ? locale.yes : locale.no\n } else if (type === 'dateRange' && format) {\n if (value?.length) {\n labelValue = [moment(value?.[0]).format(format), moment(value?.[1]).format(format)].join('~')\n }\n } else if (type === 'date' && format) {\n labelValue = value ? moment(value).format(format) : undefined\n }\n return _propsTitle + ':' + (labelValue === undefined ? '' : labelValue)\n}\n\nexport const isInput = (type) =>\n ['input', 'string', 'search', 'aloneSearch', 'number', 'inputNumber'].includes(type)\n"]}
@@ -7,18 +7,18 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports["default"] = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var _select = _interopRequireDefault(require("../../select"));
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
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
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(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
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
14
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
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(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
16
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
17
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(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
19
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
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
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(arr) { if (Array.isArray(arr)) return arr; }
21
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
22
22
  var __rest = void 0 && (void 0).__rest || function (s, e) {
23
23
  var t = {};
24
24
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
@@ -11,16 +11,16 @@ var _select = _interopRequireDefault(require("../../select"));
11
11
  var _input = _interopRequireDefault(require("../../input"));
12
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
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(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
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
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
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(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
18
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
19
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(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
21
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
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
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(arr) { if (Array.isArray(arr)) return arr; }
23
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
24
24
  var __rest = void 0 && (void 0).__rest || function (s, e) {
25
25
  var t = {};
26
26
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
@@ -4,13 +4,14 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.getFieldWidth = exports.defaultFieldWidth = exports["default"] = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
7
8
  var _Checkbox = _interopRequireDefault(require("./Checkbox"));
8
9
  var _Select = _interopRequireDefault(require("./Select"));
9
10
  var _SelectInput = _interopRequireDefault(require("./SelectInput"));
10
11
  var _datePicker = _interopRequireDefault(require("../../date-picker"));
11
12
  var _input = _interopRequireDefault(require("../../input"));
12
13
  var _inputNumber = _interopRequireDefault(require("../../input-number"));
13
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
14
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
14
15
  var __rest = void 0 && (void 0).__rest || function (s, e) {
15
16
  var t = {};
16
17
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
@@ -33,7 +34,7 @@ function DataRange(_a) {
33
34
  var onChange = _a.onChange,
34
35
  check = _a.check,
35
36
  otherProps = __rest(_a, ["onChange", "check"]);
36
- return React.createElement(_datePicker["default"].RangePicker, Object.assign({}, otherProps, {
37
+ return _react["default"].createElement(_datePicker["default"].RangePicker, Object.assign({}, otherProps, {
37
38
  onChange: check ? function (dates, dateStrings) {
38
39
  if (check(dates, dateStrings)) {
39
40
  onChange(dates, dateStrings);
@@ -1 +1 @@
1
- {"version":3,"file":"fieldsMap.js","sourceRoot":"","sources":["../../../src/query-form/Field/fieldsMap.js"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,aAAa,MAAM,YAAY,CAAA;AACtC,OAAO,WAAW,MAAM,UAAU,CAAA;AAClC,OAAO,WAAW,MAAM,eAAe,CAAA;AACvC,OAAO,UAAU,MAAM,mBAAmB,CAAA;AAC1C,OAAO,KAAK,MAAM,aAAa,CAAA;AAC/B,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAE5C,MAAM,CAAC,MAAM,iBAAiB,GAAG,OAAO,CAAA;AAExC,MAAM,CAAC,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,iBAAiB,CAC7B,CAAA;AACH,CAAC,CAAA;AAED,SAAS,SAAS,CAAC,EAAkC;QAAlC,EAAE,QAAQ,EAAE,KAAK,OAAiB,EAAZ,UAAU,cAAhC,qBAAkC,CAAF;IACjD,OAAO,CACL,oBAAC,UAAU,CAAC,WAAW,oBACjB,UAAU,IACd,QAAQ,EACN,KAAK;YACH,CAAC,CAAC,CAAC,KAAK,EAAE,WAAW,EAAE,EAAE;gBACrB,IAAI,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,EAAE;oBAC7B,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC,CAAA;iBAC7B;YACH,CAAC;YACH,CAAC,CAAC,QAAQ,IAEd,CACH,CAAA;AACH,CAAC;AAED,eAAe;IACb,MAAM,EAAE,KAAK;IACb,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,KAAK,CAAC,MAAM;IACpB,WAAW,EAAE,WAAW;IACxB,MAAM,EAAE,WAAW;IACnB,MAAM,EAAE,WAAW;IACnB,QAAQ,EAAE,aAAa;IACvB,IAAI,EAAE,UAAU;IAChB,SAAS,EAAE,SAAS;IACpB,WAAW,EAAE,WAAW;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\nfunction DataRange({ onChange, check, ...otherProps }) {\n return (\n <DatePicker.RangePicker\n {...otherProps}\n onChange={\n check\n ? (dates, dateStrings) => {\n if (check(dates, dateStrings)) {\n onChange(dates, dateStrings)\n }\n }\n : onChange\n }\n />\n )\n}\n\nexport default {\n string: Input,\n input: Input,\n search: Input.Search,\n inputNumber: InputNumber,\n number: InputNumber,\n select: SelectField,\n checkbox: CheckboxField,\n date: DatePicker,\n dateRange: DataRange,\n selectInput: SelectInput,\n}\n"]}
1
+ {"version":3,"file":"fieldsMap.js","sourceRoot":"","sources":["../../../src/query-form/Field/fieldsMap.js"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACz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react'\nimport 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\nfunction DataRange({ onChange, check, ...otherProps }) {\n return (\n <DatePicker.RangePicker\n {...otherProps}\n onChange={\n check\n ? (dates, dateStrings) => {\n if (check(dates, dateStrings)) {\n onChange(dates, dateStrings)\n }\n }\n : onChange\n }\n />\n )\n}\n\nexport default {\n string: Input,\n input: Input,\n search: Input.Search,\n inputNumber: InputNumber,\n number: InputNumber,\n select: SelectField,\n checkbox: CheckboxField,\n date: DatePicker,\n dateRange: DataRange,\n selectInput: SelectInput,\n}\n"]}
@@ -11,20 +11,20 @@ var _fieldsMap = _interopRequireWildcard(require("./fieldsMap"));
11
11
  var _form = _interopRequireDefault(require("../../form"));
12
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
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(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
16
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
17
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
18
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
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
19
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
20
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
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(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
23
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
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
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(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
26
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
27
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
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
28
  var FormItem = _form["default"].Item;
29
29
  var isInput = function isInput(type) {
30
30
  return ['input', 'string', 'search', 'aloneSearch'].includes(type);
@@ -7,7 +7,7 @@ exports["default"] = void 0;
7
7
  var _set2 = _interopRequireDefault(require("lodash/set"));
8
8
  var _get2 = _interopRequireDefault(require("lodash/get"));
9
9
  var _eventemitter = _interopRequireDefault(require("eventemitter3"));
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
11
  var _default = exports["default"] = function _default() {
12
12
  var eventEmitter = new _eventemitter["default"]();
13
13
  var data = {
@@ -20,20 +20,20 @@ var _tntdIcon = _interopRequireDefault(require("../tntd-icon"));
20
20
  require("./index.less");
21
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
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(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
24
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
25
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
26
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
27
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
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
28
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
29
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
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(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
32
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
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
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(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
35
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
36
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
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
37
  var clsPrefix = 'tnt-queryform';
38
38
  var QueryForm = /*#__PURE__*/function (_React$PureComponent) {
39
39
  function QueryForm(props) {
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = useForm;
7
7
  var _react = require("react");
8
8
  var _createActions = _interopRequireDefault(require("./createActions"));
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
10
  function useForm() {
11
11
  var form = (0, _react.useRef)((0, _createActions["default"])());
12
12
  return [form.current];