tntd 2.8.48 → 2.8.50

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 (564) hide show
  1. package/es/_util/context.js +1 -1
  2. package/es/_util/defaultRenderEmpty.js +1 -1
  3. package/es/_util/hooks/useFlexGapSupport.js +4 -4
  4. package/es/_util/hooks/useForceUpdate.js +4 -4
  5. package/es/_util/hooks/useScrollLock.js +4 -4
  6. package/es/_util/responsiveObserve.js +1 -1
  7. package/es/_util/styleChecker.js +1 -1
  8. package/es/actions/index.js +1 -1
  9. package/es/anchor/anchor.js +5 -5
  10. package/es/anchor/anchor.less +3 -3
  11. package/es/array-input/index.js +9 -9
  12. package/es/check-card/group.js +8 -8
  13. package/es/check-card/index.js +6 -6
  14. package/es/checkbox/checkbox-group.js +1 -1
  15. package/es/color-picker/ColorPicker.js +6 -6
  16. package/es/color-picker/index.js +1 -1
  17. package/es/columns/index.js +1 -1
  18. package/es/config-provider/config-provider.js +1 -1
  19. package/es/descriptions/descriptions.js +5 -5
  20. package/es/development-login/LoginModal.js +6 -6
  21. package/es/development-login/index.js +4 -4
  22. package/es/drawer/drawer.js +2 -2
  23. package/es/ellipsis/Svg/CopySVG.js +1 -1
  24. package/es/ellipsis/Svg/TickSVG.js +1 -1
  25. package/es/ellipsis/index.js +5 -5
  26. package/es/empty/empty.js +2 -2
  27. package/es/empty/empty.stories.js +2 -2
  28. package/es/exception/exception.js +1 -1
  29. package/es/form/form.js +2 -2
  30. package/es/grid-v4/col.js +2 -2
  31. package/es/grid-v4/hooks/useBreakpoint.js +1 -1
  32. package/es/grid-v4/index.js +1 -1
  33. package/es/grid-v4/row.js +6 -6
  34. package/es/handle/index.js +1 -1
  35. package/es/handle-icon/index.js +8 -8
  36. package/es/icon/IconFont.js +1 -1
  37. package/es/icon/components/Icon.js +9 -9
  38. package/es/icon/components/index.js +1 -1
  39. package/es/icon/components/utils.js +3 -3
  40. package/es/icon/index.js +7 -7
  41. package/es/icon/twoTonePrimaryColor.js +1 -1
  42. package/es/icon/utils.js +1 -1
  43. package/es/img/Contain.js +1 -1
  44. package/es/img/Cover.js +5 -5
  45. package/es/img/index.js +5 -5
  46. package/es/index.js +1 -1
  47. package/es/input/input.js +2 -2
  48. package/es/input-number/index.js +1 -1
  49. package/es/label/index.js +2 -2
  50. package/es/loading-button/index.js +5 -5
  51. package/es/locale/default.js +1 -1
  52. package/es/locale/en_US.js +1 -1
  53. package/es/locale/zh_CN.js +1 -1
  54. package/es/modal/modal.js +3 -3
  55. package/es/modal/modal.js.map +1 -1
  56. package/es/modal/style/modal.less +13 -1
  57. package/es/notification/assets/index.js +1 -1
  58. package/es/notification/index.js +1 -1
  59. package/es/notification/notification.js +1 -1
  60. package/es/page/Box.js +1 -1
  61. package/es/page/index.js +7 -7
  62. package/es/page-container/index.js +1 -1
  63. package/es/page-loading/index.js +1 -1
  64. package/es/preview-text/index.js +7 -7
  65. package/es/query-form/Field/Checkbox.js +1 -1
  66. package/es/query-form/Field/Select.js +6 -6
  67. package/es/query-form/Field/SelectInput.js +6 -6
  68. package/es/query-form/Field/fieldsMap.js +1 -1
  69. package/es/query-form/Field/index.js +10 -10
  70. package/es/query-form/createActions.js +1 -1
  71. package/es/query-form/index.js +10 -10
  72. package/es/query-form/useForm.js +1 -1
  73. package/es/query-list-scene/List.js +13 -13
  74. package/es/query-list-scene/QueryForm.js +10 -10
  75. package/es/query-list-scene/QueryListScene.js +10 -10
  76. package/es/query-list-scene/Title.js +1 -1
  77. package/es/query-list-scene/Toolbar.js +2 -2
  78. package/es/query-list-scene/createActions.js +1 -1
  79. package/es/query-list-scene/index.js +1 -1
  80. package/es/query-list-scene/useActions.js +1 -1
  81. package/es/radio/index.js +1 -1
  82. package/es/radio/radio-group.js +1 -1
  83. package/es/render-empty/render-empty.js +1 -1
  84. package/es/scroll-bar/Bar.js +5 -5
  85. package/es/scroll-bar/Context.js +1 -1
  86. package/es/scroll-bar/ScrollBar.js +1 -1
  87. package/es/scroll-bar/Thumb.js +5 -5
  88. package/es/scroll-bar/index.js +1 -1
  89. package/es/scroll-bar/util.js +1 -1
  90. package/es/segmented/index.js +2 -2
  91. package/es/select/select.js +2 -2
  92. package/es/steps/steps.js +2 -2
  93. package/es/svg-components/index.js +1 -1
  94. package/es/switch/switch.js +1 -1
  95. package/es/table/hooks/use-column-setting.js +4 -4
  96. package/es/table/hooks/use-expand-fixed.js +6 -6
  97. package/es/table/resizableTable/index.js +6 -6
  98. package/es/table/table-hoc.js +1 -1
  99. package/es/table/table.js +9 -9
  100. package/es/table/table.stories.js +2 -2
  101. package/es/table/total-shower.js +1 -1
  102. package/es/table/utils.js +1 -1
  103. package/es/table-container/index.js +1 -1
  104. package/es/tabs-container/index.js +1 -1
  105. package/es/tag/tag.js +2 -2
  106. package/es/title/index.js +1 -1
  107. package/es/tntd-cascader/AntdCascader/component/context.js +1 -1
  108. package/es/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +1 -1
  109. package/es/tntd-cascader/AntdCascader/component/getIcons.js +1 -1
  110. package/es/tntd-cascader/AntdCascader/component/useCompactItemContext.js +2 -2
  111. package/es/tntd-cascader/AntdCascader/config/utils.js +2 -2
  112. package/es/tntd-cascader/AntdCascader/index.js +7 -7
  113. package/es/tntd-cascader/index.js +1 -1
  114. package/es/tntd-cascader/rc-cascader/Cascader.js +8 -8
  115. package/es/tntd-cascader/rc-cascader/OptionList/Checkbox.js +2 -2
  116. package/es/tntd-cascader/rc-cascader/OptionList/Column.js +7 -7
  117. package/es/tntd-cascader/rc-cascader/OptionList/index.js +9 -9
  118. package/es/tntd-cascader/rc-cascader/OptionList/useActive.js +5 -5
  119. package/es/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +8 -8
  120. package/es/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +5 -5
  121. package/es/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +1 -1
  122. package/es/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +6 -6
  123. package/es/tntd-cascader/rc-cascader/index.js +1 -1
  124. package/es/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +4 -4
  125. package/es/tntd-form/ErrorList.js +7 -7
  126. package/es/tntd-form/Form.js +6 -6
  127. package/es/tntd-form/FormItem/ItemHolder.js +6 -6
  128. package/es/tntd-form/FormItem/index.js +8 -8
  129. package/es/tntd-form/FormItemInput.js +1 -1
  130. package/es/tntd-form/FormItemLabel.js +2 -2
  131. package/es/tntd-form/FormList.js +1 -1
  132. package/es/tntd-form/context.js +1 -1
  133. package/es/tntd-form/hooks/useDebounce.js +4 -4
  134. package/es/tntd-form/hooks/useForm.js +5 -5
  135. package/es/tntd-form/hooks/useFormItemStatus.js +1 -1
  136. package/es/tntd-form/hooks/useFrameState.js +5 -5
  137. package/es/tntd-form/index.js +1 -1
  138. package/es/tntd-icon/index.js +1 -1
  139. package/es/tntd-layout/AppList.js +6 -6
  140. package/es/tntd-layout/Application.js +6 -6
  141. package/es/tntd-layout/Avatar.js +2 -2
  142. package/es/tntd-layout/CompatibleLanguage.js +6 -6
  143. package/es/tntd-layout/EnterpriseLayout/Avatar.js +2 -2
  144. package/es/tntd-layout/EnterpriseLayout/Language.js +6 -6
  145. package/es/tntd-layout/EnterpriseLayout/Theme.js +6 -6
  146. package/es/tntd-layout/EnterpriseLayout/index.js +1 -1
  147. package/es/tntd-layout/GlobalNavigation/NavigationPopup.js +6 -6
  148. package/es/tntd-layout/GlobalNavigation/index.js +9 -9
  149. package/es/tntd-layout/Header.js +2 -2
  150. package/es/tntd-layout/HeaderActions.js +2 -2
  151. package/es/tntd-layout/HeaderNavs.js +6 -6
  152. package/es/tntd-layout/HeaderTabs.js +7 -7
  153. package/es/tntd-layout/Iconfont.js +1 -1
  154. package/es/tntd-layout/Language.js +6 -6
  155. package/es/tntd-layout/Layout.js +6 -6
  156. package/es/tntd-layout/Logo.js +2 -2
  157. package/es/tntd-layout/OrgAppList.js +6 -6
  158. package/es/tntd-layout/SideMenu.js +6 -6
  159. package/es/tntd-layout/Theme.js +6 -6
  160. package/es/tntd-layout/createActions.js +1 -1
  161. package/es/tntd-layout/images/index.js +1 -1
  162. package/es/tntd-layout/index.js +1 -1
  163. package/es/tntd-layout/paaslayout/CompactSideMenu.js +6 -6
  164. package/es/tntd-layout/paaslayout/Header.js +2 -2
  165. package/es/tntd-layout/paaslayout/Logo.js +2 -2
  166. package/es/tntd-layout/paaslayout/SideMenu.js +6 -6
  167. package/es/tntd-layout/paaslayout/index.js +6 -6
  168. package/es/tntd-layout/storage.js +1 -1
  169. package/es/tntd-modal/index.js +6 -6
  170. package/es/tntd-rc-select/_util/PurePanel.js +5 -5
  171. package/es/tntd-rc-select/_util/context.js +1 -1
  172. package/es/tntd-rc-select/_util/defaultRenderEmpty.js +1 -1
  173. package/es/tntd-rc-select/_util/getIcons.js +1 -1
  174. package/es/tntd-rc-select/_util/useCompactItemContext.js +2 -2
  175. package/es/tntd-rc-select/index.js +2 -2
  176. package/es/tntd-reference/AHref/index.js +1 -1
  177. package/es/tntd-reference/ReferenceBatchCheck/index.js +1 -1
  178. package/es/tntd-reference/ReferenceBatchDrawer/index.js +5 -5
  179. package/es/tntd-reference/ReferenceCheck/index.js +1 -1
  180. package/es/tntd-reference/ReferenceDrawer/index.js +5 -5
  181. package/es/tntd-reference/ReferenceInfo/index.js +1 -1
  182. package/es/tntd-reference/index.js +1 -1
  183. package/es/tntd-second-page/index.js +1 -1
  184. package/es/tntd-select/DropDownWrap.js +8 -8
  185. package/es/tntd-select/index.js +9 -10
  186. package/es/tntd-virtual-tree/index.js +8 -8
  187. package/es/tntd-virtual-tree/utils.js +28 -28
  188. package/es/tntd-virtual-tree-select/index.js +10 -10
  189. package/es/tntd-virtual-tree-select/utils.js +9 -9
  190. package/es/tooltip/tooltip.js +1 -1
  191. package/es/upload/index.js +6 -6
  192. package/es/upload/svg/UploadSVG.js +1 -1
  193. package/es/utils/checkAuth.js +4 -4
  194. package/es/utils/index.js +9 -9
  195. package/es/utils/lang.js +1 -1
  196. package/es/water-mark/index.js +5 -5
  197. package/lib/_util/context.js +3 -3
  198. package/lib/_util/defaultRenderEmpty.js +3 -3
  199. package/lib/_util/hooks/useFlexGapSupport.js +15 -14
  200. package/lib/_util/hooks/useForceUpdate.js +15 -14
  201. package/lib/_util/hooks/useScrollLock.js +15 -14
  202. package/lib/_util/responsiveObserve.js +13 -7
  203. package/lib/_util/styleChecker.js +3 -3
  204. package/lib/actions/index.js +3 -3
  205. package/lib/anchor/anchor.js +18 -17
  206. package/lib/anchor/anchor.less +3 -3
  207. package/lib/array-input/index.js +37 -30
  208. package/lib/check-card/group.js +24 -23
  209. package/lib/check-card/index.js +31 -24
  210. package/lib/checkbox/checkbox-group.js +3 -3
  211. package/lib/color-picker/ColorPicker.js +31 -24
  212. package/lib/color-picker/index.js +3 -3
  213. package/lib/columns/index.js +3 -3
  214. package/lib/config-provider/config-provider.js +3 -3
  215. package/lib/descriptions/descriptions.js +19 -13
  216. package/lib/development-login/LoginModal.js +31 -24
  217. package/lib/development-login/index.js +15 -14
  218. package/lib/drawer/drawer.js +16 -10
  219. package/lib/ellipsis/Svg/CopySVG.js +3 -3
  220. package/lib/ellipsis/Svg/TickSVG.js +3 -3
  221. package/lib/ellipsis/index.js +18 -17
  222. package/lib/empty/empty.js +16 -10
  223. package/lib/empty/empty.stories.js +9 -6
  224. package/lib/exception/exception.js +3 -3
  225. package/lib/form/form.js +16 -10
  226. package/lib/grid-v4/col.js +16 -10
  227. package/lib/grid-v4/hooks/useBreakpoint.js +3 -3
  228. package/lib/grid-v4/index.js +3 -3
  229. package/lib/grid-v4/row.js +31 -24
  230. package/lib/handle/index.js +3 -3
  231. package/lib/handle-icon/index.js +10 -10
  232. package/lib/icon/IconFont.js +3 -3
  233. package/lib/icon/components/Icon.js +70 -44
  234. package/lib/icon/components/index.js +3 -3
  235. package/lib/icon/components/utils.js +18 -10
  236. package/lib/icon/index.js +33 -26
  237. package/lib/icon/twoTonePrimaryColor.js +3 -3
  238. package/lib/icon/utils.js +3 -3
  239. package/lib/img/Contain.js +3 -3
  240. package/lib/img/Cover.js +18 -17
  241. package/lib/img/index.js +18 -17
  242. package/lib/index.js +3 -3
  243. package/lib/input/input.js +16 -10
  244. package/lib/input-number/index.js +3 -3
  245. package/lib/label/index.js +16 -10
  246. package/lib/loading-button/index.js +18 -17
  247. package/lib/locale/default.js +3 -3
  248. package/lib/locale/en_US.js +3 -3
  249. package/lib/locale/zh_CN.js +3 -3
  250. package/lib/modal/modal.d.ts.map +1 -1
  251. package/lib/modal/modal.js +5 -5
  252. package/lib/modal/modal.js.map +1 -1
  253. package/lib/modal/style/modal.less +13 -1
  254. package/lib/notification/assets/index.js +3 -3
  255. package/lib/notification/index.js +3 -3
  256. package/lib/notification/notification.js +3 -3
  257. package/lib/page/Box.js +3 -3
  258. package/lib/page/index.js +33 -26
  259. package/lib/page-container/index.js +3 -3
  260. package/lib/page-loading/index.js +3 -3
  261. package/lib/preview-text/index.js +9 -9
  262. package/lib/query-form/Field/Checkbox.js +3 -3
  263. package/lib/query-form/Field/Select.js +31 -24
  264. package/lib/query-form/Field/SelectInput.js +31 -24
  265. package/lib/query-form/Field/fieldsMap.js +3 -3
  266. package/lib/query-form/Field/index.js +73 -47
  267. package/lib/query-form/createActions.js +3 -3
  268. package/lib/query-form/index.js +70 -44
  269. package/lib/query-form/useForm.js +3 -3
  270. package/lib/query-list-scene/List.js +61 -41
  271. package/lib/query-list-scene/QueryForm.js +70 -44
  272. package/lib/query-list-scene/QueryListScene.js +70 -44
  273. package/lib/query-list-scene/Title.js +3 -3
  274. package/lib/query-list-scene/Toolbar.js +16 -10
  275. package/lib/query-list-scene/createActions.js +3 -3
  276. package/lib/query-list-scene/index.js +3 -3
  277. package/lib/query-list-scene/useActions.js +3 -3
  278. package/lib/radio/index.js +3 -3
  279. package/lib/radio/radio-group.js +3 -3
  280. package/lib/render-empty/render-empty.js +3 -3
  281. package/lib/scroll-bar/Bar.js +18 -17
  282. package/lib/scroll-bar/Context.js +3 -3
  283. package/lib/scroll-bar/ScrollBar.js +3 -3
  284. package/lib/scroll-bar/Thumb.js +18 -17
  285. package/lib/scroll-bar/index.js +3 -3
  286. package/lib/scroll-bar/util.js +13 -7
  287. package/lib/segmented/index.js +16 -10
  288. package/lib/select/select.js +16 -10
  289. package/lib/steps/steps.js +16 -10
  290. package/lib/svg-components/index.js +3 -3
  291. package/lib/switch/switch.js +3 -3
  292. package/lib/table/hooks/use-column-setting.js +15 -14
  293. package/lib/table/hooks/use-expand-fixed.js +36 -30
  294. package/lib/table/resizableTable/index.js +31 -24
  295. package/lib/table/table-hoc.js +3 -3
  296. package/lib/table/table.js +34 -27
  297. package/lib/table/table.stories.js +16 -10
  298. package/lib/table/total-shower.js +3 -3
  299. package/lib/table/utils.js +3 -3
  300. package/lib/table-container/index.js +3 -3
  301. package/lib/tabs-container/index.js +3 -3
  302. package/lib/tag/tag.js +16 -10
  303. package/lib/title/index.js +3 -3
  304. package/lib/tntd-cascader/AntdCascader/component/context.js +3 -3
  305. package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +3 -3
  306. package/lib/tntd-cascader/AntdCascader/component/getIcons.js +3 -3
  307. package/lib/tntd-cascader/AntdCascader/component/useCompactItemContext.js +16 -10
  308. package/lib/tntd-cascader/AntdCascader/config/utils.js +16 -10
  309. package/lib/tntd-cascader/AntdCascader/index.js +33 -26
  310. package/lib/tntd-cascader/index.js +3 -3
  311. package/lib/tntd-cascader/rc-cascader/Cascader.js +24 -23
  312. package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.js +16 -10
  313. package/lib/tntd-cascader/rc-cascader/OptionList/Column.js +33 -26
  314. package/lib/tntd-cascader/rc-cascader/OptionList/index.js +37 -30
  315. package/lib/tntd-cascader/rc-cascader/OptionList/useActive.js +18 -17
  316. package/lib/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +24 -23
  317. package/lib/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +17 -16
  318. package/lib/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +3 -3
  319. package/lib/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +30 -23
  320. package/lib/tntd-cascader/rc-cascader/index.js +3 -3
  321. package/lib/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +6 -6
  322. package/lib/tntd-form/ErrorList.js +33 -26
  323. package/lib/tntd-form/Form.js +31 -24
  324. package/lib/tntd-form/FormItem/ItemHolder.js +31 -24
  325. package/lib/tntd-form/FormItem/index.js +24 -23
  326. package/lib/tntd-form/FormItemInput.js +3 -3
  327. package/lib/tntd-form/FormItemLabel.js +16 -10
  328. package/lib/tntd-form/FormList.js +3 -3
  329. package/lib/tntd-form/context.js +3 -3
  330. package/lib/tntd-form/hooks/useDebounce.js +15 -14
  331. package/lib/tntd-form/hooks/useForm.js +18 -17
  332. package/lib/tntd-form/hooks/useFormItemStatus.js +3 -3
  333. package/lib/tntd-form/hooks/useFrameState.js +18 -17
  334. package/lib/tntd-form/index.js +3 -3
  335. package/lib/tntd-icon/index.js +3 -3
  336. package/lib/tntd-layout/AppList.js +24 -20
  337. package/lib/tntd-layout/Application.js +24 -20
  338. package/lib/tntd-layout/Avatar.js +9 -6
  339. package/lib/tntd-layout/CompatibleLanguage.js +24 -20
  340. package/lib/tntd-layout/EnterpriseLayout/Avatar.js +9 -6
  341. package/lib/tntd-layout/EnterpriseLayout/Language.js +24 -20
  342. package/lib/tntd-layout/EnterpriseLayout/Theme.js +24 -20
  343. package/lib/tntd-layout/EnterpriseLayout/index.js +3 -3
  344. package/lib/tntd-layout/GlobalNavigation/NavigationPopup.js +24 -20
  345. package/lib/tntd-layout/GlobalNavigation/index.js +30 -26
  346. package/lib/tntd-layout/Header.js +9 -6
  347. package/lib/tntd-layout/HeaderActions.js +9 -6
  348. package/lib/tntd-layout/HeaderNavs.js +24 -20
  349. package/lib/tntd-layout/HeaderTabs.js +37 -27
  350. package/lib/tntd-layout/Iconfont.js +3 -3
  351. package/lib/tntd-layout/Language.js +24 -20
  352. package/lib/tntd-layout/Layout.js +24 -20
  353. package/lib/tntd-layout/Logo.js +9 -6
  354. package/lib/tntd-layout/OrgAppList.js +24 -20
  355. package/lib/tntd-layout/SideMenu.js +24 -20
  356. package/lib/tntd-layout/Theme.js +24 -20
  357. package/lib/tntd-layout/createActions.js +3 -3
  358. package/lib/tntd-layout/images/index.js +3 -3
  359. package/lib/tntd-layout/index.js +3 -3
  360. package/lib/tntd-layout/paaslayout/CompactSideMenu.js +24 -20
  361. package/lib/tntd-layout/paaslayout/Header.js +9 -6
  362. package/lib/tntd-layout/paaslayout/Logo.js +9 -6
  363. package/lib/tntd-layout/paaslayout/SideMenu.js +24 -20
  364. package/lib/tntd-layout/paaslayout/index.js +24 -20
  365. package/lib/tntd-layout/storage.js +3 -3
  366. package/lib/tntd-modal/index.js +31 -24
  367. package/lib/tntd-rc-select/_util/PurePanel.js +18 -17
  368. package/lib/tntd-rc-select/_util/context.js +3 -3
  369. package/lib/tntd-rc-select/_util/defaultRenderEmpty.js +3 -3
  370. package/lib/tntd-rc-select/_util/getIcons.js +3 -3
  371. package/lib/tntd-rc-select/_util/useCompactItemContext.js +16 -10
  372. package/lib/tntd-rc-select/index.js +16 -10
  373. package/lib/tntd-reference/AHref/index.js +3 -3
  374. package/lib/tntd-reference/ReferenceBatchCheck/index.js +3 -3
  375. package/lib/tntd-reference/ReferenceBatchDrawer/index.js +18 -17
  376. package/lib/tntd-reference/ReferenceCheck/index.js +3 -3
  377. package/lib/tntd-reference/ReferenceDrawer/index.js +18 -17
  378. package/lib/tntd-reference/ReferenceInfo/index.js +3 -3
  379. package/lib/tntd-reference/index.js +3 -3
  380. package/lib/tntd-second-page/index.js +3 -3
  381. package/lib/tntd-select/DropDownWrap.js +54 -34
  382. package/lib/tntd-select/index.js +57 -40
  383. package/lib/tntd-virtual-tree/index.js +24 -23
  384. package/lib/tntd-virtual-tree/utils.js +66 -62
  385. package/lib/tntd-virtual-tree-select/index.js +23 -22
  386. package/lib/tntd-virtual-tree-select/utils.js +21 -20
  387. package/lib/tooltip/tooltip.js +3 -3
  388. package/lib/upload/index.js +45 -41
  389. package/lib/upload/svg/UploadSVG.js +3 -3
  390. package/lib/utils/checkAuth.js +6 -6
  391. package/lib/utils/index.js +21 -20
  392. package/lib/utils/lang.js +3 -3
  393. package/lib/water-mark/index.js +18 -17
  394. package/package.json +1 -1
  395. package/es/alert/alert.js +0 -147
  396. package/es/alert/alert.js.map +0 -1
  397. package/es/alert/alert.less +0 -128
  398. package/es/cascader/cascader.js +0 -84
  399. package/es/cascader/cascader.js.map +0 -1
  400. package/es/cascader/cascader.less +0 -16
  401. package/es/checkbox/check.png +0 -0
  402. package/es/checkbox/checkbox.js +0 -100
  403. package/es/checkbox/checkbox.js.map +0 -1
  404. package/es/checkbox/checkbox.less +0 -69
  405. package/es/date-picker/DatePicker.js +0 -163
  406. package/es/date-picker/DatePicker.js.map +0 -1
  407. package/es/date-picker/index.less +0 -294
  408. package/es/input-number/inputNumber.js +0 -89
  409. package/es/input-number/inputNumber.js.map +0 -1
  410. package/es/input-number/inputNumber.less +0 -12
  411. package/es/modal/index.less +0 -52
  412. package/es/popconfirm/index.less +0 -32
  413. package/es/popconfirm/popconfirm.js +0 -96
  414. package/es/popconfirm/popconfirm.js.map +0 -1
  415. package/es/popover/index.less +0 -57
  416. package/es/popover/popover.js +0 -90
  417. package/es/popover/popover.js.map +0 -1
  418. package/es/progress/progress.js +0 -179
  419. package/es/progress/progress.js.map +0 -1
  420. package/es/progress/progress.less +0 -82
  421. package/es/query-form/Field/Composition/FieldPopover.js +0 -466
  422. package/es/query-form/Field/Composition/FieldPopover.js.map +0 -1
  423. package/es/query-form/Field/Composition/FieldPopover.less +0 -41
  424. package/es/query-form/Field/Composition/Select.js +0 -260
  425. package/es/query-form/Field/Composition/Select.js.map +0 -1
  426. package/es/query-form/Field/Composition/SelectInput.js +0 -112
  427. package/es/query-form/Field/Composition/SelectInput.js.map +0 -1
  428. package/es/query-form/Field/Composition/ValueTag.js +0 -241
  429. package/es/query-form/Field/Composition/ValueTag.js.map +0 -1
  430. package/es/query-form/Field/Composition/index.js +0 -448
  431. package/es/query-form/Field/Composition/index.js.map +0 -1
  432. package/es/query-form/Field/Composition/index.less +0 -167
  433. package/es/query-form/Field/Composition/utils.js +0 -173
  434. package/es/query-form/Field/Composition/utils.js.map +0 -1
  435. package/es/query-form-backup/Field/Composition/FieldPopover.less +0 -35
  436. package/es/query-form-backup/Field/Composition/index.less +0 -114
  437. package/es/query-form-backup/index.less +0 -90
  438. package/es/query-form-v2/index.less +0 -133
  439. package/es/radio/radio.js +0 -110
  440. package/es/radio/radio.js.map +0 -1
  441. package/es/radio/radio.less +0 -43
  442. package/es/spin/spin.js +0 -79
  443. package/es/spin/spin.js.map +0 -1
  444. package/es/spin/spin.less +0 -9
  445. package/es/steps/assets/background_left.svg +0 -12
  446. package/es/steps/assets/background_right.svg +0 -12
  447. package/es/steps/assets/horizontal_line.svg +0 -3
  448. package/es/steps/assets/vertical_line.svg +0 -3
  449. package/es/steps/stepStyle/icon.less +0 -51
  450. package/es/steps/stepStyle/progress-dot.less +0 -10
  451. package/es/steps/stepStyle/variables.less +0 -8
  452. package/es/steps/stepStyle/vertical.less +0 -41
  453. package/es/switch/index.less +0 -45
  454. package/es/tabs/tabs.less +0 -125
  455. package/es/time-picker/TimePicker.js +0 -90
  456. package/es/time-picker/TimePicker.js.map +0 -1
  457. package/es/time-picker/index.less +0 -38
  458. package/es/tntd-action/Action.js +0 -218
  459. package/es/tntd-action/Action.js.map +0 -1
  460. package/es/tntd-action/index.less +0 -61
  461. package/es/tntd-select/index.less +0 -7
  462. package/lib/alert/alert.d.ts +0 -12
  463. package/lib/alert/alert.d.ts.map +0 -1
  464. package/lib/alert/alert.js +0 -147
  465. package/lib/alert/alert.js.map +0 -1
  466. package/lib/alert/alert.less +0 -128
  467. package/lib/cascader/cascader.d.ts +0 -10
  468. package/lib/cascader/cascader.d.ts.map +0 -1
  469. package/lib/cascader/cascader.js +0 -84
  470. package/lib/cascader/cascader.js.map +0 -1
  471. package/lib/cascader/cascader.less +0 -16
  472. package/lib/checkbox/check.png +0 -0
  473. package/lib/checkbox/checkbox.d.ts +0 -16
  474. package/lib/checkbox/checkbox.d.ts.map +0 -1
  475. package/lib/checkbox/checkbox.js +0 -100
  476. package/lib/checkbox/checkbox.js.map +0 -1
  477. package/lib/checkbox/checkbox.less +0 -69
  478. package/lib/date-picker/DatePicker.d.ts +0 -21
  479. package/lib/date-picker/DatePicker.d.ts.map +0 -1
  480. package/lib/date-picker/DatePicker.js +0 -163
  481. package/lib/date-picker/DatePicker.js.map +0 -1
  482. package/lib/date-picker/index.less +0 -294
  483. package/lib/input-number/inputNumber.d.ts +0 -10
  484. package/lib/input-number/inputNumber.d.ts.map +0 -1
  485. package/lib/input-number/inputNumber.js +0 -89
  486. package/lib/input-number/inputNumber.js.map +0 -1
  487. package/lib/input-number/inputNumber.less +0 -12
  488. package/lib/modal/index.less +0 -52
  489. package/lib/popconfirm/index.less +0 -32
  490. package/lib/popconfirm/popconfirm.d.ts +0 -8
  491. package/lib/popconfirm/popconfirm.d.ts.map +0 -1
  492. package/lib/popconfirm/popconfirm.js +0 -96
  493. package/lib/popconfirm/popconfirm.js.map +0 -1
  494. package/lib/popover/index.less +0 -57
  495. package/lib/popover/popover.d.ts +0 -14
  496. package/lib/popover/popover.d.ts.map +0 -1
  497. package/lib/popover/popover.js +0 -90
  498. package/lib/popover/popover.js.map +0 -1
  499. package/lib/progress/progress.d.ts +0 -12
  500. package/lib/progress/progress.d.ts.map +0 -1
  501. package/lib/progress/progress.js +0 -179
  502. package/lib/progress/progress.js.map +0 -1
  503. package/lib/progress/progress.less +0 -82
  504. package/lib/query-form/Field/Composition/FieldPopover.d.ts +0 -19
  505. package/lib/query-form/Field/Composition/FieldPopover.d.ts.map +0 -1
  506. package/lib/query-form/Field/Composition/FieldPopover.js +0 -466
  507. package/lib/query-form/Field/Composition/FieldPopover.js.map +0 -1
  508. package/lib/query-form/Field/Composition/FieldPopover.less +0 -41
  509. package/lib/query-form/Field/Composition/Select.d.ts +0 -4
  510. package/lib/query-form/Field/Composition/Select.d.ts.map +0 -1
  511. package/lib/query-form/Field/Composition/Select.js +0 -260
  512. package/lib/query-form/Field/Composition/Select.js.map +0 -1
  513. package/lib/query-form/Field/Composition/SelectInput.d.ts +0 -3
  514. package/lib/query-form/Field/Composition/SelectInput.d.ts.map +0 -1
  515. package/lib/query-form/Field/Composition/SelectInput.js +0 -112
  516. package/lib/query-form/Field/Composition/SelectInput.js.map +0 -1
  517. package/lib/query-form/Field/Composition/ValueTag.d.ts +0 -13
  518. package/lib/query-form/Field/Composition/ValueTag.d.ts.map +0 -1
  519. package/lib/query-form/Field/Composition/ValueTag.js +0 -241
  520. package/lib/query-form/Field/Composition/ValueTag.js.map +0 -1
  521. package/lib/query-form/Field/Composition/index.d.ts +0 -15
  522. package/lib/query-form/Field/Composition/index.d.ts.map +0 -1
  523. package/lib/query-form/Field/Composition/index.js +0 -448
  524. package/lib/query-form/Field/Composition/index.js.map +0 -1
  525. package/lib/query-form/Field/Composition/index.less +0 -167
  526. package/lib/query-form/Field/Composition/utils.d.ts +0 -21
  527. package/lib/query-form/Field/Composition/utils.d.ts.map +0 -1
  528. package/lib/query-form/Field/Composition/utils.js +0 -173
  529. package/lib/query-form/Field/Composition/utils.js.map +0 -1
  530. package/lib/query-form-backup/Field/Composition/FieldPopover.less +0 -35
  531. package/lib/query-form-backup/Field/Composition/index.less +0 -114
  532. package/lib/query-form-backup/index.less +0 -90
  533. package/lib/query-form-v2/index.less +0 -133
  534. package/lib/radio/radio.d.ts +0 -17
  535. package/lib/radio/radio.d.ts.map +0 -1
  536. package/lib/radio/radio.js +0 -110
  537. package/lib/radio/radio.js.map +0 -1
  538. package/lib/radio/radio.less +0 -43
  539. package/lib/spin/spin.d.ts +0 -9
  540. package/lib/spin/spin.d.ts.map +0 -1
  541. package/lib/spin/spin.js +0 -79
  542. package/lib/spin/spin.js.map +0 -1
  543. package/lib/spin/spin.less +0 -9
  544. package/lib/steps/assets/background_left.svg +0 -12
  545. package/lib/steps/assets/background_right.svg +0 -12
  546. package/lib/steps/assets/horizontal_line.svg +0 -3
  547. package/lib/steps/assets/vertical_line.svg +0 -3
  548. package/lib/steps/stepStyle/icon.less +0 -51
  549. package/lib/steps/stepStyle/progress-dot.less +0 -10
  550. package/lib/steps/stepStyle/variables.less +0 -8
  551. package/lib/steps/stepStyle/vertical.less +0 -41
  552. package/lib/switch/index.less +0 -45
  553. package/lib/tabs/tabs.less +0 -125
  554. package/lib/time-picker/TimePicker.d.ts +0 -9
  555. package/lib/time-picker/TimePicker.d.ts.map +0 -1
  556. package/lib/time-picker/TimePicker.js +0 -90
  557. package/lib/time-picker/TimePicker.js.map +0 -1
  558. package/lib/time-picker/index.less +0 -38
  559. package/lib/tntd-action/Action.d.ts +0 -6
  560. package/lib/tntd-action/Action.d.ts.map +0 -1
  561. package/lib/tntd-action/Action.js +0 -218
  562. package/lib/tntd-action/Action.js.map +0 -1
  563. package/lib/tntd-action/index.less +0 -61
  564. package/lib/tntd-select/index.less +0 -7
@@ -1,167 +0,0 @@
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: 1px @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-base;
21
-
22
- &-prefix {
23
- position: absolute;
24
- left: @padding-sm;
25
- top: 50%;
26
- transform: translateY(-50%);
27
-
28
- i.anticon {
29
- color: #8b919e;
30
- }
31
- }
32
-
33
- &-width {
34
- height: 0;
35
- opacity: 0;
36
- width: auto;
37
- position: absolute;
38
- max-width: 100%;
39
- }
40
-
41
- &-items {
42
- display: flex;
43
- flex-wrap: wrap;
44
- padding: 0;
45
- list-style: none;
46
- margin: 0;
47
- width: 100%;
48
-
49
- &-item {
50
- // padding: 3px 0;
51
- margin: 2px 0 !important;
52
- }
53
-
54
- li {
55
- line-height: 1;
56
- }
57
-
58
- &-input {
59
- flex: 1;
60
- min-width: 160px;
61
-
62
- .inputClass {
63
- background: none;
64
- border: none !important;
65
- outline: none;
66
- box-shadow: none !important;
67
- width: 100% !important;
68
- height: 28px;
69
- line-height: 28px;
70
- padding: 0;
71
-
72
- input {
73
- border: none !important;
74
- outline: none !important;
75
- box-shadow: none !important;
76
- height: 26px;
77
- line-height: 26px;
78
- padding: 0;
79
- }
80
-
81
- textarea {
82
- padding: 0;
83
- }
84
- }
85
-
86
- .inputClass-with-placeholder {
87
- min-width: 398px !important;
88
- }
89
- }
90
- }
91
-
92
- &-clear {
93
- position: absolute;
94
- // right: @margin-sm;
95
- right: calc(@margin-sm + 30px);
96
- top: 50%;
97
- transform: translateY(-50%);
98
- display: none;
99
-
100
- i.anticon {
101
- color: tint(@bg-color-spotilight, 50%);
102
- }
103
-
104
- &:hover {
105
- .anticon {
106
- color: @text-color-secondary !important;
107
- }
108
- }
109
- }
110
-
111
- &-search {
112
- position: absolute;
113
- right: 0;
114
- top: 0;
115
- height: 100%;
116
- border-left: @border-width-base @border-style-base @select-border-color;
117
- background-color: @fill-color-quaternary;
118
- display: flex;
119
- width: 30px;
120
- justify-content: center;
121
- align-items: center;
122
- transition: border-color 0.3s @ease-in-out;
123
- cursor: pointer;
124
-
125
- &:hover {
126
- background-color: #e6f4ff;
127
-
128
- i.anticon {
129
- color: @primary-color;
130
- }
131
- }
132
- }
133
-
134
- &:hover,
135
- &:focus,
136
- &:active {
137
- border-color: @primary-color;
138
- box-shadow: 0px 0px 4px 0px rgba(18, 107, 251, 0.1), 0px 0px 5px 0px rgba(18, 107, 251, 0.3);
139
- outline: 0;
140
-
141
- .tnt-queryform-composition-input-prefix {
142
- i.anticon {
143
- color: @text-color;
144
- }
145
- }
146
-
147
- .tnt-queryform-composition-input-clear {
148
- display: block;
149
- }
150
-
151
- .tnt-queryform-composition-input-search {
152
- border-color: @primary-color;
153
- }
154
- }
155
-
156
- .ant-tag {
157
-
158
- // padding: 0 @padding-xs;
159
- // border: none;
160
- // background: @fill-color-tertiary;
161
- // height: 20px;
162
- .ant-tag-addon-wrap {
163
- margin-top: 0px;
164
- vertical-align: top;
165
- }
166
- }
167
- }
@@ -1,21 +0,0 @@
1
- export function highlightSubstring(str: any, substring: any): any;
2
- export function getLabelByValue({ value, options, fieldNames, }: {
3
- value: any;
4
- options: any;
5
- fieldNames?: {
6
- label: string;
7
- value: string;
8
- } | undefined;
9
- }): any;
10
- export function formatLabel(reactDom: any): any;
11
- export function parseObjectToArray(value: any, data: any): ({
12
- key: string;
13
- value: any;
14
- } | null)[];
15
- export function parseArrayToObject(value: any): any;
16
- export function getLabel({ key, value }: {
17
- key: any;
18
- value: any;
19
- }, data: any, locale: any): string | false | null;
20
- export function isInput(type: any): boolean;
21
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/query-form/Field/Composition/utils.js"],"names":[],"mappings":"AAIA,kEAGC;AAED;;;;;;;QAyBC;AAED,gDAWC;AAED;;;YAgBC;AAED,oDAKC;AAED;;;kDAyDC;AAEM,4CAC6F"}
@@ -1,173 +0,0 @@
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(obj) {
19
- return obj && obj.__esModule ? obj : {
20
- "default": obj
21
- };
22
- }
23
- function highlightSubstring(str, substring) {
24
- var highlighted = "<span class=\"tnt-highlight\">".concat(substring, "</span>");
25
- return str.replace(new RegExp(substring, 'g'), highlighted);
26
- }
27
- function getLabelByValue(_ref) {
28
- var value = _ref.value,
29
- options = _ref.options,
30
- _ref$fieldNames = _ref.fieldNames,
31
- fieldNames = _ref$fieldNames === void 0 ? {
32
- label: 'label',
33
- value: 'value'
34
- } : _ref$fieldNames;
35
- var getLabel = function getLabel(value) {
36
- var target = options === null || options === void 0 ? void 0 : options.find(function (item) {
37
- var valueKey = fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.value;
38
- var itemValue = item instanceof Object ? item[valueKey] : item;
39
- return itemValue === value;
40
- });
41
- if (target) {
42
- return target instanceof Object ? target === null || target === void 0 ? void 0 : target[fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.label] : target;
43
- } else {
44
- return value;
45
- }
46
- };
47
- if ((0, _isArray2["default"])(value)) {
48
- return value.map(getLabel).join(' | ');
49
- } else {
50
- return getLabel(value);
51
- }
52
- }
53
- function formatLabel(reactDom) {
54
- return (0, _flatten2["default"])(_react["default"].Children.map(reactDom.props.children, function (child) {
55
- if (_react["default"].isValidElement(child)) {
56
- return formatLabel(child);
57
- } else if ((0, _isString2["default"])(child)) {
58
- return child;
59
- }
60
- return '';
61
- })).join('');
62
- }
63
- function parseObjectToArray(value, data) {
64
- var _a, _b;
65
- return (_b = (_a = Object.keys(value || {})) === null || _a === void 0 ? void 0 : _a.map(function (key) {
66
- var target = data === null || data === void 0 ? void 0 : data.find(function (item) {
67
- var _a, _b;
68
- return ((_a = item.props) === null || _a === void 0 ? void 0 : _a.name) === key || ((_b = item.props) === null || _b === void 0 ? void 0 : _b.pName) === key;
69
- });
70
- if (!target) return null;
71
- var dataItem = (target === null || target === void 0 ? void 0 : target.props) || {};
72
- var _ref2 = dataItem || {},
73
- _ref2$type = _ref2.type,
74
- type = _ref2$type === void 0 ? 'input' : _ref2$type,
75
- component = _ref2.component,
76
- setLabel = _ref2.setLabel;
77
- if (!type && component && !setLabel) {
78
- console.error('自定义组件需要传入setLabel()方法');
79
- }
80
- return {
81
- key: key,
82
- value: value[key]
83
- };
84
- })) === null || _b === void 0 ? void 0 : _b.filter(function (item) {
85
- return !!item;
86
- });
87
- }
88
- function parseArrayToObject(value) {
89
- return value === null || value === void 0 ? void 0 : value.reduce(function (acc, v) {
90
- acc[v.key] = v.value;
91
- return acc;
92
- }, {});
93
- }
94
- function getLabel(_ref3, data, locale) {
95
- var key = _ref3.key,
96
- value = _ref3.value;
97
- var _a, _b, _c, _d;
98
- var otherTarget = data === null || data === void 0 ? void 0 : data.find(function (item) {
99
- var _a;
100
- return ((_a = item.props) === null || _a === void 0 ? void 0 : _a.pName) === key;
101
- });
102
- if (otherTarget) {
103
- // otherInput
104
- var selectKey = (_a = Object.keys(value || {})) === null || _a === void 0 ? void 0 : _a[0];
105
- if (!selectKey) {
106
- // 17. inputSelect组件,初始值{},展示undefined:undefined
107
- return false;
108
- }
109
- var otherTargetObj = data.find(function (item) {
110
- return item.props.pName === key && item.props.cName === selectKey;
111
- });
112
- if (!otherTargetObj) {
113
- return false;
114
- }
115
- return otherTargetObj.props.title + ':' + (value[selectKey] || '');
116
- }
117
- var target = data === null || data === void 0 ? void 0 : data.find(function (item) {
118
- var _a;
119
- return ((_a = item.props) === null || _a === void 0 ? void 0 : _a.name) === key;
120
- });
121
- if (!target) return null;
122
- var dataItem = (target === null || target === void 0 ? void 0 : target.props) || {};
123
- var _ref4 = dataItem || {},
124
- _ref4$type = _ref4.type,
125
- type = _ref4$type === void 0 ? 'input' : _ref4$type,
126
- setLabel = _ref4.setLabel,
127
- fieldProps = _ref4.props,
128
- propsTitle = _ref4.propsTitle,
129
- title = _ref4.title,
130
- name = _ref4.name;
131
- var _propsTitle = propsTitle || title || name;
132
- var _ref5 = fieldProps || {},
133
- options = _ref5.options,
134
- format = _ref5.format;
135
- var labelValue = value;
136
- if (setLabel) {
137
- // setLabel: 对于自定义组件,无法控制label的显示,可以通过setLabel方法控制
138
- labelValue = setLabel(value);
139
- } else if (options) {
140
- if (type === 'selectInput') {
141
- var _selectKey = (_b = Object.keys(value || {})) === null || _b === void 0 ? void 0 : _b[0];
142
- if (!_selectKey) {
143
- // 17. inputSelect组件,初始值{},展示undefined:undefined
144
- return false;
145
- }
146
- var inputValue = value[_selectKey];
147
- var selectLabel = (_c = options === null || options === void 0 ? void 0 : options.find(function (v) {
148
- return v.value === _selectKey;
149
- })) === null || _c === void 0 ? void 0 : _c.label;
150
- return selectLabel + ':' + inputValue;
151
- }
152
- labelValue = getLabelByValue({
153
- value: value,
154
- options: options,
155
- fieldNames: ((_d = dataItem === null || dataItem === void 0 ? void 0 : dataItem.props) === null || _d === void 0 ? void 0 : _d.fieldNames) || {
156
- label: 'label',
157
- value: 'value'
158
- }
159
- });
160
- } else if (type === 'checkbox') {
161
- labelValue = value ? locale.yes : locale.no;
162
- } else if (type === 'dateRange' && format) {
163
- if (value === null || value === void 0 ? void 0 : value.length) {
164
- 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('~');
165
- }
166
- } else if (type === 'date' && format) {
167
- labelValue = value ? (0, _moment["default"])(value).format(format) : undefined;
168
- }
169
- return _propsTitle + ':' + (labelValue === undefined ? '' : labelValue);
170
- }
171
- var isInput = exports.isInput = function isInput(type) {
172
- return ['input', 'string', 'search', 'aloneSearch', 'number', 'inputNumber', 'otherInput'].includes(type);
173
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/query-form/Field/Composition/utils.js"],"names":[],"mappings":";;;;;;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AzDD,4BAyDC;AAEM,MAAM,OAAO,GAAG,CAAC,IAAI,EAAE,EAAE,CAC9B,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;AADvF,QAAA,OAAO,WACgF","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 || item.props?.pName === key)\n if (!target) return null\n const dataItem = target?.props || {}\n const { type = 'input', component, setLabel } = dataItem || {}\n if (!type && component && !setLabel) {\n console.error('自定义组件需要传入setLabel()方法')\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 otherTarget = data?.find((item) => item.props?.pName === key)\n if (otherTarget) {\n // otherInput\n const selectKey = Object.keys(value || {})?.[0]\n if (!selectKey) {\n // 17. inputSelect组件,初始值{},展示undefined:undefined\n return false\n }\n const otherTargetObj = data.find(\n (item) => item.props.pName === key && item.props.cName === selectKey\n )\n if (!otherTargetObj) {\n return false\n }\n return otherTargetObj.props.title + ':' + (value[selectKey] || '')\n }\n\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', 'otherInput'].includes(type)\n"]}
@@ -1,35 +0,0 @@
1
- .tnt-queryform-field-popover {
2
- min-width: 280px;
3
- .ant-popover-inner-content {
4
- padding: @padding-sm 0;
5
- }
6
- .ant-calendar-picker {
7
- margin: @margin-xxs 0;
8
- }
9
- label {
10
- color: tint(@text-color, 50%);
11
- margin-bottom: @margin-xs;
12
- display: block;
13
- padding: 0 @padding-sm;
14
- }
15
- .ant-select-dropdown-menu {
16
- &-item {
17
- padding: @padding-xxs @padding-sm;
18
- &:hover {
19
- background-color: @bg-color-quaternary;
20
- }
21
- }
22
- }
23
- &-content {
24
- padding: @padding-xxs @padding-sm;
25
- }
26
- .ant-select-selected-icon {
27
- position: absolute;
28
- right: @margin-base;
29
- top: @margin-xs;
30
- color: @blue-6;
31
- }
32
- .tnt-highlight {
33
- color: @blue-6;
34
- }
35
- }
@@ -1,114 +0,0 @@
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: tint(@bg-color-spotilight, 50%);
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
- float: left;
42
- padding: 0;
43
- list-style: none;
44
- margin: 0;
45
- width: 100%;
46
- &-item {
47
- padding: 3px 0;
48
- }
49
- li {
50
- float: left;
51
- line-height: 1;
52
- }
53
- &-input {
54
- .inputClass {
55
- background: none;
56
- border: none !important;
57
- outline: none;
58
- box-shadow: none !important;
59
- width: 150px !important;
60
- height: 26px;
61
- line-height: 26px;
62
- padding: 0;
63
- input {
64
- border: none !important;
65
- outline: none !important;
66
- box-shadow: none !important;
67
- height: 26px;
68
- line-height: 26px;
69
- padding: 0;
70
- }
71
- textarea {
72
- padding: 0;
73
- }
74
- }
75
- .inputClass-with-placeholder {
76
- min-width: 398px !important;
77
- }
78
- }
79
- }
80
- &-clear {
81
- position: absolute;
82
- right: @margin-sm;
83
- top: 50%;
84
- transform: translateY(-50%);
85
- display: none;
86
- i.anticon {
87
- color: tint(@bg-color-spotilight, 50%);
88
- }
89
- &:hover {
90
- .anticon {
91
- color: @text-color-secondary !important;
92
- }
93
- }
94
- }
95
- &:hover {
96
- border-color: @blue-6;
97
- outline: 0;
98
- .tnt-queryform-composition-input-clear {
99
- display: block;
100
- }
101
- // box-shadow: 0 0 0 2px rgb(18 107 251 / 20%);
102
- }
103
- &:focus,
104
- &:active {
105
- border-color: @blue-5;
106
- outline: 0;
107
- // box-shadow: 0 0 0 2px rgb(18 107 251 / 20%);
108
- }
109
- .ant-tag {
110
- padding: 0 @padding-xs;
111
- border: none;
112
- background: @fill-color-tertiary;
113
- }
114
- }
@@ -1,90 +0,0 @@
1
- .tnt-queryform {
2
- &-top {
3
- display: flex;
4
- &-body {
5
- flex: 1;
6
- .ant-btn {
7
- margin-right: 10px;
8
- }
9
- }
10
- }
11
-
12
- &-extra {
13
- & > * {
14
- margin-left: 10px;
15
- }
16
- }
17
-
18
- .ant-form {
19
- // margin-bottom: @margin-sm;
20
- &.ant-form-inline {
21
- flex-wrap: unset;
22
- position: relative;
23
- }
24
-
25
- &.ant-form-inline .ant-form-item {
26
- margin-right: 10px;
27
- margin-bottom: @margin-sm;
28
- display: inline-block;
29
- }
30
-
31
- .ant-form-item-control {
32
- // min-width: 160px;
33
- line-height: unset;
34
- .ant-calendar-picker-input {
35
- padding: 0 @padding-sm;
36
- }
37
- .ant-form-item-children {
38
- & > .ant-input,
39
- & > .ant-input-affix-wrapper {
40
- width: 160px;
41
- // width: 200px;
42
- }
43
- }
44
- }
45
- }
46
-
47
- &-drawer {
48
- margin-top: @margin-xxl;
49
- &.large-size {
50
- margin-top: 60px;
51
- }
52
-
53
- &.ant-drawer.ant-drawer-open {
54
- .ant-drawer-mask {
55
- opacity: 0;
56
- background: unset;
57
- }
58
- }
59
- .ant-drawer-body {
60
- .ant-form-item {
61
- display: block;
62
- margin-right: 0;
63
- margin-bottom: @margin-md;
64
- width: 100%;
65
- }
66
- .ant-form-item-label {
67
- display: block;
68
- text-align: left;
69
- line-height: 22px;
70
- margin-bottom: 10px;
71
- }
72
- .ant-form-item-control-wrapper,
73
- .ant-form-item-control,
74
- .ant-calendar-picker,
75
- .ant-input {
76
- min-width: 100%;
77
- width: 100%;
78
- }
79
-
80
- & > .ant-btn {
81
- display: block;
82
- width: 100%;
83
- margin-bottom: 10px;
84
- &.ant-btn-primary {
85
- margin-top: @margin-md;
86
- }
87
- }
88
- }
89
- }
90
- }