tntd 2.8.45 → 2.8.47

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 (569) 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/alert/alert.js +147 -0
  10. package/es/alert/alert.js.map +1 -0
  11. package/es/alert/alert.less +128 -0
  12. package/es/anchor/anchor.js +5 -5
  13. package/es/array-input/index.js +9 -9
  14. package/es/cascader/cascader.js +84 -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 +100 -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 +163 -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 +8 -8
  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 +89 -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 +52 -0
  70. package/es/modal/modal.js +6 -4
  71. package/es/modal/modal.js.map +1 -1
  72. package/es/modal/style/modal.less +16 -0
  73. package/es/notification/assets/index.js +1 -1
  74. package/es/notification/index.js +1 -1
  75. package/es/notification/notification.js +1 -1
  76. package/es/page/Box.js +1 -1
  77. package/es/page/index.js +7 -7
  78. package/es/page-container/index.js +1 -1
  79. package/es/page-loading/index.js +1 -1
  80. package/es/popconfirm/index.less +32 -0
  81. package/es/popconfirm/popconfirm.js +96 -0
  82. package/es/popconfirm/popconfirm.js.map +1 -0
  83. package/es/popover/index.less +57 -0
  84. package/es/popover/popover.js +90 -0
  85. package/es/popover/popover.js.map +1 -0
  86. package/es/preview-text/index.js +7 -7
  87. package/es/progress/progress.js +179 -0
  88. package/es/progress/progress.js.map +1 -0
  89. package/es/progress/progress.less +82 -0
  90. package/es/query-form/Field/Checkbox.js +1 -1
  91. package/es/query-form/Field/Composition/FieldPopover.js +466 -0
  92. package/es/query-form/Field/Composition/FieldPopover.js.map +1 -0
  93. package/es/query-form/Field/Composition/FieldPopover.less +41 -0
  94. package/es/query-form/Field/Composition/Select.js +260 -0
  95. package/es/query-form/Field/Composition/Select.js.map +1 -0
  96. package/es/query-form/Field/Composition/SelectInput.js +112 -0
  97. package/es/query-form/Field/Composition/SelectInput.js.map +1 -0
  98. package/es/query-form/Field/Composition/ValueTag.js +241 -0
  99. package/es/query-form/Field/Composition/ValueTag.js.map +1 -0
  100. package/es/query-form/Field/Composition/index.js +448 -0
  101. package/es/query-form/Field/Composition/index.js.map +1 -0
  102. package/es/query-form/Field/Composition/index.less +167 -0
  103. package/es/query-form/Field/Composition/utils.js +173 -0
  104. package/es/query-form/Field/Composition/utils.js.map +1 -0
  105. package/es/query-form/Field/Select.js +6 -6
  106. package/es/query-form/Field/SelectInput.js +6 -6
  107. package/es/query-form/Field/fieldsMap.js +1 -1
  108. package/es/query-form/Field/index.js +10 -10
  109. package/es/query-form/createActions.js +1 -1
  110. package/es/query-form/index.js +10 -10
  111. package/es/query-form/useForm.js +1 -1
  112. package/es/query-form-backup/Field/Composition/FieldPopover.less +35 -0
  113. package/es/query-form-backup/Field/Composition/index.less +114 -0
  114. package/es/query-form-backup/index.less +90 -0
  115. package/es/query-form-v2/index.less +133 -0
  116. package/es/query-list-scene/List.js +13 -13
  117. package/es/query-list-scene/QueryForm.js +10 -10
  118. package/es/query-list-scene/QueryListScene.js +10 -10
  119. package/es/query-list-scene/Title.js +1 -1
  120. package/es/query-list-scene/Toolbar.js +2 -2
  121. package/es/query-list-scene/createActions.js +1 -1
  122. package/es/query-list-scene/index.js +1 -1
  123. package/es/query-list-scene/useActions.js +1 -1
  124. package/es/radio/index.js +1 -1
  125. package/es/radio/radio-group.js +1 -1
  126. package/es/radio/radio.js +110 -0
  127. package/es/radio/radio.js.map +1 -0
  128. package/es/radio/radio.less +43 -0
  129. package/es/render-empty/render-empty.js +1 -1
  130. package/es/scroll-bar/Bar.js +5 -5
  131. package/es/scroll-bar/Context.js +1 -1
  132. package/es/scroll-bar/ScrollBar.js +1 -1
  133. package/es/scroll-bar/Thumb.js +5 -5
  134. package/es/scroll-bar/index.js +1 -1
  135. package/es/scroll-bar/util.js +1 -1
  136. package/es/segmented/index.js +2 -2
  137. package/es/select/select.js +2 -2
  138. package/es/spin/spin.js +79 -0
  139. package/es/spin/spin.js.map +1 -0
  140. package/es/spin/spin.less +9 -0
  141. package/es/steps/assets/background_left.svg +12 -0
  142. package/es/steps/assets/background_right.svg +12 -0
  143. package/es/steps/assets/horizontal_line.svg +3 -0
  144. package/es/steps/assets/vertical_line.svg +3 -0
  145. package/es/steps/stepStyle/icon.less +51 -0
  146. package/es/steps/stepStyle/progress-dot.less +10 -0
  147. package/es/steps/stepStyle/variables.less +8 -0
  148. package/es/steps/stepStyle/vertical.less +41 -0
  149. package/es/steps/steps.js +2 -2
  150. package/es/svg-components/index.js +1 -1
  151. package/es/switch/index.less +45 -0
  152. package/es/switch/switch.js +1 -1
  153. package/es/table/hooks/use-column-setting.js +4 -4
  154. package/es/table/hooks/use-expand-fixed.js +6 -6
  155. package/es/table/resizableTable/index.js +6 -6
  156. package/es/table/table-hoc.js +1 -1
  157. package/es/table/table.js +9 -9
  158. package/es/table/table.stories.js +2 -2
  159. package/es/table/total-shower.js +1 -1
  160. package/es/table/utils.js +1 -1
  161. package/es/table-container/index.js +1 -1
  162. package/es/tabs/tabs.less +125 -0
  163. package/es/tabs-container/index.js +1 -1
  164. package/es/tag/tag.js +2 -2
  165. package/es/time-picker/TimePicker.js +90 -0
  166. package/es/time-picker/TimePicker.js.map +1 -0
  167. package/es/time-picker/index.less +38 -0
  168. package/es/title/index.js +1 -1
  169. package/es/tntd-action/Action.js +218 -0
  170. package/es/tntd-action/Action.js.map +1 -0
  171. package/es/tntd-action/index.less +61 -0
  172. package/es/tntd-cascader/AntdCascader/component/context.js +1 -1
  173. package/es/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +1 -1
  174. package/es/tntd-cascader/AntdCascader/component/getIcons.js +1 -1
  175. package/es/tntd-cascader/AntdCascader/component/useCompactItemContext.js +2 -2
  176. package/es/tntd-cascader/AntdCascader/config/utils.js +2 -2
  177. package/es/tntd-cascader/AntdCascader/index.js +7 -7
  178. package/es/tntd-cascader/index.js +1 -1
  179. package/es/tntd-cascader/rc-cascader/Cascader.js +8 -8
  180. package/es/tntd-cascader/rc-cascader/OptionList/Checkbox.js +2 -2
  181. package/es/tntd-cascader/rc-cascader/OptionList/Column.js +7 -7
  182. package/es/tntd-cascader/rc-cascader/OptionList/index.js +9 -9
  183. package/es/tntd-cascader/rc-cascader/OptionList/useActive.js +5 -5
  184. package/es/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +8 -8
  185. package/es/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +5 -5
  186. package/es/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +1 -1
  187. package/es/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +6 -6
  188. package/es/tntd-cascader/rc-cascader/index.js +1 -1
  189. package/es/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +4 -4
  190. package/es/tntd-form/ErrorList.js +7 -7
  191. package/es/tntd-form/Form.js +6 -6
  192. package/es/tntd-form/FormItem/ItemHolder.js +6 -6
  193. package/es/tntd-form/FormItem/index.js +8 -8
  194. package/es/tntd-form/FormItemInput.js +1 -1
  195. package/es/tntd-form/FormItemLabel.js +2 -2
  196. package/es/tntd-form/FormList.js +1 -1
  197. package/es/tntd-form/context.js +1 -1
  198. package/es/tntd-form/hooks/useDebounce.js +4 -4
  199. package/es/tntd-form/hooks/useForm.js +5 -5
  200. package/es/tntd-form/hooks/useFormItemStatus.js +1 -1
  201. package/es/tntd-form/hooks/useFrameState.js +5 -5
  202. package/es/tntd-form/index.js +1 -1
  203. package/es/tntd-icon/index.js +1 -1
  204. package/es/tntd-layout/AppList.js +6 -6
  205. package/es/tntd-layout/Application.js +6 -6
  206. package/es/tntd-layout/Avatar.js +2 -2
  207. package/es/tntd-layout/CompatibleLanguage.js +6 -6
  208. package/es/tntd-layout/EnterpriseLayout/Avatar.js +2 -2
  209. package/es/tntd-layout/EnterpriseLayout/Language.js +6 -6
  210. package/es/tntd-layout/EnterpriseLayout/Theme.js +6 -6
  211. package/es/tntd-layout/EnterpriseLayout/index.js +1 -1
  212. package/es/tntd-layout/GlobalNavigation/NavigationPopup.js +6 -6
  213. package/es/tntd-layout/GlobalNavigation/index.js +9 -9
  214. package/es/tntd-layout/Header.js +2 -2
  215. package/es/tntd-layout/HeaderActions.js +2 -2
  216. package/es/tntd-layout/HeaderNavs.js +6 -6
  217. package/es/tntd-layout/HeaderTabs.js +7 -7
  218. package/es/tntd-layout/Iconfont.js +1 -1
  219. package/es/tntd-layout/Language.js +6 -6
  220. package/es/tntd-layout/Layout.js +6 -6
  221. package/es/tntd-layout/Logo.js +2 -2
  222. package/es/tntd-layout/OrgAppList.js +6 -6
  223. package/es/tntd-layout/SideMenu.js +6 -6
  224. package/es/tntd-layout/Theme.js +6 -6
  225. package/es/tntd-layout/createActions.js +1 -1
  226. package/es/tntd-layout/images/index.js +1 -1
  227. package/es/tntd-layout/index.js +1 -1
  228. package/es/tntd-layout/paaslayout/CompactSideMenu.js +6 -6
  229. package/es/tntd-layout/paaslayout/Header.js +2 -2
  230. package/es/tntd-layout/paaslayout/Logo.js +2 -2
  231. package/es/tntd-layout/paaslayout/SideMenu.js +6 -6
  232. package/es/tntd-layout/paaslayout/index.js +6 -6
  233. package/es/tntd-layout/storage.js +1 -1
  234. package/es/tntd-modal/index.js +6 -6
  235. package/es/tntd-rc-select/_util/PurePanel.js +5 -5
  236. package/es/tntd-rc-select/_util/context.js +1 -1
  237. package/es/tntd-rc-select/_util/defaultRenderEmpty.js +1 -1
  238. package/es/tntd-rc-select/_util/getIcons.js +1 -1
  239. package/es/tntd-rc-select/_util/useCompactItemContext.js +2 -2
  240. package/es/tntd-rc-select/index.js +2 -2
  241. package/es/tntd-reference/AHref/index.js +1 -1
  242. package/es/tntd-reference/ReferenceBatchCheck/index.js +1 -1
  243. package/es/tntd-reference/ReferenceBatchDrawer/index.js +5 -5
  244. package/es/tntd-reference/ReferenceCheck/index.js +1 -1
  245. package/es/tntd-reference/ReferenceDrawer/index.js +5 -5
  246. package/es/tntd-reference/ReferenceInfo/index.js +1 -1
  247. package/es/tntd-reference/index.js +1 -1
  248. package/es/tntd-second-page/index.js +1 -1
  249. package/es/tntd-select/DropDownWrap.js +8 -8
  250. package/es/tntd-select/index.js +10 -9
  251. package/es/tntd-select/index.less +7 -0
  252. package/es/tntd-virtual-tree/index.js +8 -8
  253. package/es/tntd-virtual-tree/utils.js +28 -28
  254. package/es/tntd-virtual-tree-select/index.js +10 -10
  255. package/es/tntd-virtual-tree-select/utils.js +9 -9
  256. package/es/tooltip/tooltip.js +1 -1
  257. package/es/upload/index.js +6 -6
  258. package/es/upload/svg/UploadSVG.js +1 -1
  259. package/es/utils/checkAuth.js +4 -4
  260. package/es/utils/index.js +9 -9
  261. package/es/utils/lang.js +1 -1
  262. package/es/water-mark/index.js +5 -5
  263. package/lib/_util/context.js +3 -3
  264. package/lib/_util/defaultRenderEmpty.js +3 -3
  265. package/lib/_util/hooks/useFlexGapSupport.js +14 -15
  266. package/lib/_util/hooks/useForceUpdate.js +14 -15
  267. package/lib/_util/hooks/useScrollLock.js +14 -15
  268. package/lib/_util/responsiveObserve.js +7 -13
  269. package/lib/_util/styleChecker.js +3 -3
  270. package/lib/actions/index.js +3 -3
  271. package/lib/alert/alert.d.ts +12 -0
  272. package/lib/alert/alert.d.ts.map +1 -0
  273. package/lib/alert/alert.js +147 -0
  274. package/lib/alert/alert.js.map +1 -0
  275. package/lib/alert/alert.less +128 -0
  276. package/lib/anchor/anchor.js +17 -18
  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 +10 -10
  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 +52 -0
  342. package/lib/modal/modal.d.ts +1 -0
  343. package/lib/modal/modal.d.ts.map +1 -1
  344. package/lib/modal/modal.js +8 -6
  345. package/lib/modal/modal.js.map +1 -1
  346. package/lib/modal/style/modal.less +16 -0
  347. package/lib/notification/assets/index.js +3 -3
  348. package/lib/notification/index.js +3 -3
  349. package/lib/notification/notification.js +3 -3
  350. package/lib/page/Box.js +3 -3
  351. package/lib/page/index.js +26 -33
  352. package/lib/page-container/index.js +3 -3
  353. package/lib/page-loading/index.js +3 -3
  354. package/lib/popconfirm/index.less +32 -0
  355. package/lib/popconfirm/popconfirm.d.ts +8 -0
  356. package/lib/popconfirm/popconfirm.d.ts.map +1 -0
  357. package/lib/popconfirm/popconfirm.js +96 -0
  358. package/lib/popconfirm/popconfirm.js.map +1 -0
  359. package/lib/popover/index.less +57 -0
  360. package/lib/popover/popover.d.ts +14 -0
  361. package/lib/popover/popover.d.ts.map +1 -0
  362. package/lib/popover/popover.js +90 -0
  363. package/lib/popover/popover.js.map +1 -0
  364. package/lib/preview-text/index.js +9 -9
  365. package/lib/progress/progress.d.ts +12 -0
  366. package/lib/progress/progress.d.ts.map +1 -0
  367. package/lib/progress/progress.js +179 -0
  368. package/lib/progress/progress.js.map +1 -0
  369. package/lib/progress/progress.less +82 -0
  370. package/lib/query-form/Field/Checkbox.js +3 -3
  371. package/lib/query-form/Field/Composition/FieldPopover.d.ts +19 -0
  372. package/lib/query-form/Field/Composition/FieldPopover.d.ts.map +1 -0
  373. package/lib/query-form/Field/Composition/FieldPopover.js +466 -0
  374. package/lib/query-form/Field/Composition/FieldPopover.js.map +1 -0
  375. package/lib/query-form/Field/Composition/FieldPopover.less +41 -0
  376. package/lib/query-form/Field/Composition/Select.d.ts +4 -0
  377. package/lib/query-form/Field/Composition/Select.d.ts.map +1 -0
  378. package/lib/query-form/Field/Composition/Select.js +260 -0
  379. package/lib/query-form/Field/Composition/Select.js.map +1 -0
  380. package/lib/query-form/Field/Composition/SelectInput.d.ts +3 -0
  381. package/lib/query-form/Field/Composition/SelectInput.d.ts.map +1 -0
  382. package/lib/query-form/Field/Composition/SelectInput.js +112 -0
  383. package/lib/query-form/Field/Composition/SelectInput.js.map +1 -0
  384. package/lib/query-form/Field/Composition/ValueTag.d.ts +13 -0
  385. package/lib/query-form/Field/Composition/ValueTag.d.ts.map +1 -0
  386. package/lib/query-form/Field/Composition/ValueTag.js +241 -0
  387. package/lib/query-form/Field/Composition/ValueTag.js.map +1 -0
  388. package/lib/query-form/Field/Composition/index.d.ts +15 -0
  389. package/lib/query-form/Field/Composition/index.d.ts.map +1 -0
  390. package/lib/query-form/Field/Composition/index.js +448 -0
  391. package/lib/query-form/Field/Composition/index.js.map +1 -0
  392. package/lib/query-form/Field/Composition/index.less +167 -0
  393. package/lib/query-form/Field/Composition/utils.d.ts +21 -0
  394. package/lib/query-form/Field/Composition/utils.d.ts.map +1 -0
  395. package/lib/query-form/Field/Composition/utils.js +173 -0
  396. package/lib/query-form/Field/Composition/utils.js.map +1 -0
  397. package/lib/query-form/Field/Select.js +24 -31
  398. package/lib/query-form/Field/SelectInput.js +24 -31
  399. package/lib/query-form/Field/fieldsMap.js +3 -3
  400. package/lib/query-form/Field/index.js +47 -73
  401. package/lib/query-form/createActions.js +3 -3
  402. package/lib/query-form/index.js +44 -70
  403. package/lib/query-form/useForm.js +3 -3
  404. package/lib/query-form-backup/Field/Composition/FieldPopover.less +35 -0
  405. package/lib/query-form-backup/Field/Composition/index.less +114 -0
  406. package/lib/query-form-backup/index.less +90 -0
  407. package/lib/query-form-v2/index.less +133 -0
  408. package/lib/query-list-scene/List.js +41 -61
  409. package/lib/query-list-scene/QueryForm.js +44 -70
  410. package/lib/query-list-scene/QueryListScene.js +44 -70
  411. package/lib/query-list-scene/Title.js +3 -3
  412. package/lib/query-list-scene/Toolbar.js +10 -16
  413. package/lib/query-list-scene/createActions.js +3 -3
  414. package/lib/query-list-scene/index.js +3 -3
  415. package/lib/query-list-scene/useActions.js +3 -3
  416. package/lib/radio/index.js +3 -3
  417. package/lib/radio/radio-group.js +3 -3
  418. package/lib/radio/radio.d.ts +17 -0
  419. package/lib/radio/radio.d.ts.map +1 -0
  420. package/lib/radio/radio.js +110 -0
  421. package/lib/radio/radio.js.map +1 -0
  422. package/lib/radio/radio.less +43 -0
  423. package/lib/render-empty/render-empty.js +3 -3
  424. package/lib/scroll-bar/Bar.js +17 -18
  425. package/lib/scroll-bar/Context.js +3 -3
  426. package/lib/scroll-bar/ScrollBar.js +3 -3
  427. package/lib/scroll-bar/Thumb.js +17 -18
  428. package/lib/scroll-bar/index.js +3 -3
  429. package/lib/scroll-bar/util.js +7 -13
  430. package/lib/segmented/index.js +10 -16
  431. package/lib/select/select.js +10 -16
  432. package/lib/spin/spin.d.ts +9 -0
  433. package/lib/spin/spin.d.ts.map +1 -0
  434. package/lib/spin/spin.js +79 -0
  435. package/lib/spin/spin.js.map +1 -0
  436. package/lib/spin/spin.less +9 -0
  437. package/lib/steps/assets/background_left.svg +12 -0
  438. package/lib/steps/assets/background_right.svg +12 -0
  439. package/lib/steps/assets/horizontal_line.svg +3 -0
  440. package/lib/steps/assets/vertical_line.svg +3 -0
  441. package/lib/steps/stepStyle/icon.less +51 -0
  442. package/lib/steps/stepStyle/progress-dot.less +10 -0
  443. package/lib/steps/stepStyle/variables.less +8 -0
  444. package/lib/steps/stepStyle/vertical.less +41 -0
  445. package/lib/steps/steps.js +10 -16
  446. package/lib/svg-components/index.js +3 -3
  447. package/lib/switch/index.less +45 -0
  448. package/lib/switch/switch.js +3 -3
  449. package/lib/table/hooks/use-column-setting.js +14 -15
  450. package/lib/table/hooks/use-expand-fixed.js +30 -36
  451. package/lib/table/resizableTable/index.js +24 -31
  452. package/lib/table/table-hoc.js +3 -3
  453. package/lib/table/table.js +27 -34
  454. package/lib/table/table.stories.js +10 -16
  455. package/lib/table/total-shower.js +3 -3
  456. package/lib/table/utils.js +3 -3
  457. package/lib/table-container/index.js +3 -3
  458. package/lib/tabs/tabs.less +125 -0
  459. package/lib/tabs-container/index.js +3 -3
  460. package/lib/tag/tag.js +10 -16
  461. package/lib/time-picker/TimePicker.d.ts +9 -0
  462. package/lib/time-picker/TimePicker.d.ts.map +1 -0
  463. package/lib/time-picker/TimePicker.js +90 -0
  464. package/lib/time-picker/TimePicker.js.map +1 -0
  465. package/lib/time-picker/index.less +38 -0
  466. package/lib/title/index.js +3 -3
  467. package/lib/tntd-action/Action.d.ts +6 -0
  468. package/lib/tntd-action/Action.d.ts.map +1 -0
  469. package/lib/tntd-action/Action.js +218 -0
  470. package/lib/tntd-action/Action.js.map +1 -0
  471. package/lib/tntd-action/index.less +61 -0
  472. package/lib/tntd-cascader/AntdCascader/component/context.js +3 -3
  473. package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +3 -3
  474. package/lib/tntd-cascader/AntdCascader/component/getIcons.js +3 -3
  475. package/lib/tntd-cascader/AntdCascader/component/useCompactItemContext.js +10 -16
  476. package/lib/tntd-cascader/AntdCascader/config/utils.js +10 -16
  477. package/lib/tntd-cascader/AntdCascader/index.js +26 -33
  478. package/lib/tntd-cascader/index.js +3 -3
  479. package/lib/tntd-cascader/rc-cascader/Cascader.js +23 -24
  480. package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.js +10 -16
  481. package/lib/tntd-cascader/rc-cascader/OptionList/Column.js +26 -33
  482. package/lib/tntd-cascader/rc-cascader/OptionList/index.js +30 -37
  483. package/lib/tntd-cascader/rc-cascader/OptionList/useActive.js +17 -18
  484. package/lib/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +23 -24
  485. package/lib/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +16 -17
  486. package/lib/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +3 -3
  487. package/lib/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +23 -30
  488. package/lib/tntd-cascader/rc-cascader/index.js +3 -3
  489. package/lib/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +6 -6
  490. package/lib/tntd-form/ErrorList.js +26 -33
  491. package/lib/tntd-form/Form.js +24 -31
  492. package/lib/tntd-form/FormItem/ItemHolder.js +24 -31
  493. package/lib/tntd-form/FormItem/index.js +23 -24
  494. package/lib/tntd-form/FormItemInput.js +3 -3
  495. package/lib/tntd-form/FormItemLabel.js +10 -16
  496. package/lib/tntd-form/FormList.js +3 -3
  497. package/lib/tntd-form/context.js +3 -3
  498. package/lib/tntd-form/hooks/useDebounce.js +14 -15
  499. package/lib/tntd-form/hooks/useForm.js +17 -18
  500. package/lib/tntd-form/hooks/useFormItemStatus.js +3 -3
  501. package/lib/tntd-form/hooks/useFrameState.js +17 -18
  502. package/lib/tntd-form/index.js +3 -3
  503. package/lib/tntd-icon/index.js +3 -3
  504. package/lib/tntd-layout/AppList.js +20 -24
  505. package/lib/tntd-layout/Application.js +20 -24
  506. package/lib/tntd-layout/Avatar.js +6 -9
  507. package/lib/tntd-layout/CompatibleLanguage.js +20 -24
  508. package/lib/tntd-layout/EnterpriseLayout/Avatar.js +6 -9
  509. package/lib/tntd-layout/EnterpriseLayout/Language.js +20 -24
  510. package/lib/tntd-layout/EnterpriseLayout/Theme.js +20 -24
  511. package/lib/tntd-layout/EnterpriseLayout/index.js +3 -3
  512. package/lib/tntd-layout/GlobalNavigation/NavigationPopup.js +20 -24
  513. package/lib/tntd-layout/GlobalNavigation/index.js +26 -30
  514. package/lib/tntd-layout/Header.js +6 -9
  515. package/lib/tntd-layout/HeaderActions.js +6 -9
  516. package/lib/tntd-layout/HeaderNavs.js +20 -24
  517. package/lib/tntd-layout/HeaderTabs.js +27 -37
  518. package/lib/tntd-layout/Iconfont.js +3 -3
  519. package/lib/tntd-layout/Language.js +20 -24
  520. package/lib/tntd-layout/Layout.js +20 -24
  521. package/lib/tntd-layout/Logo.js +6 -9
  522. package/lib/tntd-layout/OrgAppList.js +20 -24
  523. package/lib/tntd-layout/SideMenu.js +20 -24
  524. package/lib/tntd-layout/Theme.js +20 -24
  525. package/lib/tntd-layout/createActions.js +3 -3
  526. package/lib/tntd-layout/images/index.js +3 -3
  527. package/lib/tntd-layout/index.js +3 -3
  528. package/lib/tntd-layout/paaslayout/CompactSideMenu.js +20 -24
  529. package/lib/tntd-layout/paaslayout/Header.js +6 -9
  530. package/lib/tntd-layout/paaslayout/Logo.js +6 -9
  531. package/lib/tntd-layout/paaslayout/SideMenu.js +20 -24
  532. package/lib/tntd-layout/paaslayout/index.js +20 -24
  533. package/lib/tntd-layout/storage.js +3 -3
  534. package/lib/tntd-modal/index.js +24 -31
  535. package/lib/tntd-rc-select/_util/PurePanel.js +17 -18
  536. package/lib/tntd-rc-select/_util/context.js +3 -3
  537. package/lib/tntd-rc-select/_util/defaultRenderEmpty.js +3 -3
  538. package/lib/tntd-rc-select/_util/getIcons.js +3 -3
  539. package/lib/tntd-rc-select/_util/useCompactItemContext.js +10 -16
  540. package/lib/tntd-rc-select/index.js +10 -16
  541. package/lib/tntd-reference/AHref/index.js +3 -3
  542. package/lib/tntd-reference/ReferenceBatchCheck/index.js +3 -3
  543. package/lib/tntd-reference/ReferenceBatchDrawer/index.js +17 -18
  544. package/lib/tntd-reference/ReferenceCheck/index.js +3 -3
  545. package/lib/tntd-reference/ReferenceDrawer/index.js +17 -18
  546. package/lib/tntd-reference/ReferenceInfo/index.js +3 -3
  547. package/lib/tntd-reference/index.js +3 -3
  548. package/lib/tntd-second-page/index.js +3 -3
  549. package/lib/tntd-select/DropDownWrap.js +34 -54
  550. package/lib/tntd-select/index.js +40 -57
  551. package/lib/tntd-select/index.less +7 -0
  552. package/lib/tntd-virtual-tree/index.js +23 -24
  553. package/lib/tntd-virtual-tree/utils.js +62 -66
  554. package/lib/tntd-virtual-tree-select/index.js +22 -23
  555. package/lib/tntd-virtual-tree-select/utils.js +20 -21
  556. package/lib/tooltip/tooltip.js +3 -3
  557. package/lib/upload/index.js +41 -45
  558. package/lib/upload/svg/UploadSVG.js +3 -3
  559. package/lib/utils/checkAuth.js +6 -6
  560. package/lib/utils/index.js +20 -21
  561. package/lib/utils/lang.js +3 -3
  562. package/lib/water-mark/index.js +17 -18
  563. package/package.json +2 -2
  564. package/es/array-input/utils.js +0 -414
  565. package/es/array-input/utils.js.map +0 -1
  566. package/lib/array-input/utils.d.ts +0 -2
  567. package/lib/array-input/utils.d.ts.map +0 -1
  568. package/lib/array-input/utils.js +0 -414
  569. package/lib/array-input/utils.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"modal.js","sourceRoot":"","sources":["../../src/modal/modal.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AACvC,cAAc,eAAe,CAAA;AAC7B,OAAO,EAAiC,MAAM,eAAe,CAAA;AAkB7D,MAAM,CAAC,MAAM,KAAK,GAAG,UAAU,CAC7B,CAAC,EAAgE,EAAE,GAAG,EAAE,EAAE;QAAzE,EAAE,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,gBAAgB,OAAW,EAAN,IAAI,cAA9D,6DAAgE,CAAF;IAC7D,OAAO,CACL,oBAAC,cAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,OAAO,CACL,oBAAC,SAAS,kBACR,SAAS,EAAE,UAAU,CAAC,YAAY,EAAE,SAAS,CAAC,IAC1C,IAAI,IACR,KAAK,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,KAAK,EACvE,GAAG,EAAE,GAAG,IACR,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CACgB,CAAA;AAEnB,KAAK,CAAC,IAAI,GAAG,CAAC,KAAK,EAAE,EAAE;IACrB,OAAO,SAAS,CAAC,IAAI,iBACnB,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAC,aAAa,EAAC,KAAK,EAAC,QAAQ,GAAG,IAC7C,KAAK,EACR,CAAA;AACJ,CAAC,CAAA;AAED,KAAK,CAAC,OAAO,GAAG,CAAC,KAAK,EAAE,EAAE;IACxB,OAAO,SAAS,CAAC,OAAO,iBACtB,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAC,cAAc,EAAC,KAAK,EAAC,QAAQ,GAAG,IAC9C,KAAK,EACR,CAAA;AACJ,CAAC,CAAA;AAED,KAAK,CAAC,KAAK,GAAG,CAAC,KAAK,EAAE,EAAE;IACtB,OAAO,SAAS,CAAC,KAAK,iBACpB,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAC,cAAc,EAAC,KAAK,EAAC,QAAQ,GAAG,IAC9C,KAAK,EACR,CAAA;AACJ,CAAC,CAAA;AAED,KAAK,CAAC,OAAO,GAAG,CAAC,KAAK,EAAE,EAAE;IACxB,OAAO,SAAS,CAAC,OAAO,iBACtB,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAC,oBAAoB,EAAC,KAAK,EAAC,QAAQ,GAAG,IACpD,KAAK,EACR,CAAA;AACJ,CAAC,CAAA;AAED,KAAK,CAAC,IAAI,GAAG,CAAC,KAAK,EAAE,EAAE;IACrB,OAAO,SAAS,CAAC,IAAI,iBACnB,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAC,oBAAoB,EAAC,KAAK,EAAC,QAAQ,GAAG,IACpD,KAAK,EACR,CAAA;AACJ,CAAC,CAAA;AAED,KAAK,CAAC,OAAO,GAAG,CAAC,KAAK,EAAE,EAAE;IACxB,OAAO,SAAS,CAAC,OAAO,iBACtB,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAC,iBAAiB,EAAC,KAAK,EAAC,QAAQ,GAAG,IACjD,KAAK,EACR,CAAA;AACJ,CAAC,CAAA;AAED,KAAK,CAAC,UAAU,GAAG,SAAS,CAAC,UAAU,CAAA","sourcesContent":["/*\n * @Author: 周泽飞 zefei.zhou@tongdun.net\n * @Date: 2023-03-08 17:45:01\n * @LastEditors: 郑泳健\n * @LastEditTime: 2024-01-09 15:52:15\n * @FilePath: /tntd/packages/tntd/src/modal/modal.tsx\n * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE\n */\nimport React, { forwardRef } from 'react'\nimport type { ModalProps as AntdModalProps } from 'antd/es/modal'\nimport classNames from 'classnames'\nimport { ConfigConsumer } from '../config-provider'\nimport { default as AntdModal } from 'antd/es/modal'\nimport { default as Icon } from '../icon'\nimport { doUpperTitle } from '../utils'\nexport * from 'antd/es/modal'\nexport { ActionButtonProps, ModalProps } from 'antd/es/modal'\n\nexport interface CurModalProps extends AntdModalProps {\n upperCaseIgnore?: []\n unUpperConverted?: boolean\n}\n\ninterface ModalComponent\n extends React.ForwardRefExoticComponent<CurModalProps & React.RefAttributes<AntdModal>> {\n info: typeof AntdModal.info\n success: typeof AntdModal.success\n error: typeof AntdModal.error\n warning: typeof AntdModal.warning\n warn: typeof AntdModal.warn\n confirm: typeof AntdModal.confirm\n destroyAll: typeof AntdModal.destroyAll\n}\n\nexport const Modal = forwardRef<AntdModal, CurModalProps>(\n ({ title, className, upperCaseIgnore, unUpperConverted, ...rest }, ref) => {\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n return (\n <AntdModal\n className={classNames('tntd-modal', className)}\n {...rest}\n title={!unUpperConverted ? doUpperTitle(title, upperCaseIgnore) : title}\n ref={ref}\n />\n )\n }}\n </ConfigConsumer>\n )\n }\n) as ModalComponent\n\nModal.info = (props) => {\n return AntdModal.info({\n icon: <Icon type=\"info-circle\" theme=\"filled\" />,\n ...props,\n })\n}\n\nModal.success = (props) => {\n return AntdModal.success({\n icon: <Icon type=\"check-circle\" theme=\"filled\" />,\n ...props,\n })\n}\n\nModal.error = (props) => {\n return AntdModal.error({\n icon: <Icon type=\"close-circle\" theme=\"filled\" />,\n ...props,\n })\n}\n\nModal.warning = (props) => {\n return AntdModal.warning({\n icon: <Icon type=\"exclamation-circle\" theme=\"filled\" />,\n ...props,\n })\n}\n\nModal.warn = (props) => {\n return AntdModal.warn({\n icon: <Icon type=\"exclamation-circle\" theme=\"filled\" />,\n ...props,\n })\n}\n\nModal.confirm = (props) => {\n return AntdModal.confirm({\n icon: <Icon type=\"question-circle\" theme=\"filled\" />,\n ...props,\n })\n}\n\nModal.destroyAll = AntdModal.destroyAll\n"]}
1
+ {"version":3,"file":"modal.js","sourceRoot":"","sources":["../../src/modal/modal.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AACvC,cAAc,eAAe,CAAA;AAC7B,OAAO,EAAiC,MAAM,eAAe,CAAA;AAmB7D,MAAM,CAAC,MAAM,KAAK,GAAG,UAAU,CAC7B,CAAC,EAAqF,EAAE,GAAG,EAAE,EAAE;QAA9F,EAAE,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,gBAAgB,EAAE,WAAW,GAAG,KAAK,OAAW,EAAN,IAAI,cAAnF,4EAAqF,CAAF;IAClF,OAAO,CACL,oBAAC,cAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,OAAO,CACL,oBAAC,SAAS,kBACR,SAAS,EAAE,UAAU,CAAC,YAAY,EAAE,WAAW,IAAI,oBAAoB,EAAE,SAAS,CAAC,IAC/E,IAAI,IACR,KAAK,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,KAAK,EACvE,GAAG,EAAE,GAAG,IACR,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CACgB,CAAA;AAEnB,KAAK,CAAC,IAAI,GAAG,CAAC,KAAK,EAAE,EAAE;IACrB,OAAO,SAAS,CAAC,IAAI,iBACnB,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAC,aAAa,EAAC,KAAK,EAAC,QAAQ,GAAG,IAC7C,KAAK,EACR,CAAA;AACJ,CAAC,CAAA;AAED,KAAK,CAAC,OAAO,GAAG,CAAC,KAAK,EAAE,EAAE;IACxB,OAAO,SAAS,CAAC,OAAO,iBACtB,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAC,cAAc,EAAC,KAAK,EAAC,QAAQ,GAAG,IAC9C,KAAK,EACR,CAAA;AACJ,CAAC,CAAA;AAED,KAAK,CAAC,KAAK,GAAG,CAAC,KAAK,EAAE,EAAE;IACtB,OAAO,SAAS,CAAC,KAAK,iBACpB,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAC,cAAc,EAAC,KAAK,EAAC,QAAQ,GAAG,IAC9C,KAAK,EACR,CAAA;AACJ,CAAC,CAAA;AAED,KAAK,CAAC,OAAO,GAAG,CAAC,KAAK,EAAE,EAAE;IACxB,OAAO,SAAS,CAAC,OAAO,iBACtB,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAC,oBAAoB,EAAC,KAAK,EAAC,QAAQ,GAAG,IACpD,KAAK,EACR,CAAA;AACJ,CAAC,CAAA;AAED,KAAK,CAAC,IAAI,GAAG,CAAC,KAAK,EAAE,EAAE;IACrB,OAAO,SAAS,CAAC,IAAI,iBACnB,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAC,oBAAoB,EAAC,KAAK,EAAC,QAAQ,GAAG,IACpD,KAAK,EACR,CAAA;AACJ,CAAC,CAAA;AAED,KAAK,CAAC,OAAO,GAAG,CAAC,KAAK,EAAE,EAAE;IACxB,OAAO,SAAS,CAAC,OAAO,iBACtB,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAC,iBAAiB,EAAC,KAAK,EAAC,QAAQ,GAAG,IACjD,KAAK,EACR,CAAA;AACJ,CAAC,CAAA;AAED,KAAK,CAAC,UAAU,GAAG,SAAS,CAAC,UAAU,CAAA","sourcesContent":["/*\n * @Author: 周泽飞 zefei.zhou@tongdun.net\n * @Date: 2023-03-08 17:45:01\n * @LastEditors: 郑泳健\n * @LastEditTime: 2025-06-23 19:00:22\n * @FilePath: /tntd/packages/tntd/src/modal/modal.tsx\n * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE\n */\nimport React, { forwardRef } from 'react'\nimport type { ModalProps as AntdModalProps } from 'antd/es/modal'\nimport classNames from 'classnames'\nimport { ConfigConsumer } from '../config-provider'\nimport { default as AntdModal } from 'antd/es/modal'\nimport { default as Icon } from '../icon'\nimport { doUpperTitle } from '../utils'\nexport * from 'antd/es/modal'\nexport { ActionButtonProps, ModalProps } from 'antd/es/modal'\n\nexport interface CurModalProps extends AntdModalProps {\n upperCaseIgnore?: []\n unUpperConverted?: boolean\n innerScroll?: boolean\n}\n\ninterface ModalComponent\n extends React.ForwardRefExoticComponent<CurModalProps & React.RefAttributes<AntdModal>> {\n info: typeof AntdModal.info\n success: typeof AntdModal.success\n error: typeof AntdModal.error\n warning: typeof AntdModal.warning\n warn: typeof AntdModal.warn\n confirm: typeof AntdModal.confirm\n destroyAll: typeof AntdModal.destroyAll\n}\n\nexport const Modal = forwardRef<AntdModal, CurModalProps>(\n ({ title, className, upperCaseIgnore, unUpperConverted, innerScroll = false, ...rest }, ref) => {\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n return (\n <AntdModal\n className={classNames('tntd-modal', innerScroll && 'modal-inner-scroll', className)}\n {...rest}\n title={!unUpperConverted ? doUpperTitle(title, upperCaseIgnore) : title}\n ref={ref}\n />\n )\n }}\n </ConfigConsumer>\n )\n }\n) as ModalComponent\n\nModal.info = (props) => {\n return AntdModal.info({\n icon: <Icon type=\"info-circle\" theme=\"filled\" />,\n ...props,\n })\n}\n\nModal.success = (props) => {\n return AntdModal.success({\n icon: <Icon type=\"check-circle\" theme=\"filled\" />,\n ...props,\n })\n}\n\nModal.error = (props) => {\n return AntdModal.error({\n icon: <Icon type=\"close-circle\" theme=\"filled\" />,\n ...props,\n })\n}\n\nModal.warning = (props) => {\n return AntdModal.warning({\n icon: <Icon type=\"exclamation-circle\" theme=\"filled\" />,\n ...props,\n })\n}\n\nModal.warn = (props) => {\n return AntdModal.warn({\n icon: <Icon type=\"exclamation-circle\" theme=\"filled\" />,\n ...props,\n })\n}\n\nModal.confirm = (props) => {\n return AntdModal.confirm({\n icon: <Icon type=\"question-circle\" theme=\"filled\" />,\n ...props,\n })\n}\n\nModal.destroyAll = AntdModal.destroyAll\n"]}
@@ -169,3 +169,19 @@
169
169
  }
170
170
  }
171
171
  }
172
+
173
+ .modal-inner-scroll{
174
+ max-height: calc(100vh - 200px);
175
+ padding-bottom: 0;
176
+ overflow: hidden;
177
+
178
+ .ant-modal-body{
179
+ max-height: calc(100vh - 200px - 56px);
180
+ display: flex;
181
+ flex-flow: column;
182
+ }
183
+
184
+ .ant-modal-footer{
185
+ padding: 16px 24px 8px;
186
+ }
187
+ }
@@ -17,4 +17,4 @@ Object.defineProperty(exports, "SvgSuccessTip", {
17
17
  });
18
18
  var _svgSuccessTip = _interopRequireDefault(require("./svg-success-tip"));
19
19
  var _svgErrorTip = _interopRequireDefault(require("./svg-error-tip"));
20
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
20
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
@@ -19,5 +19,5 @@ Object.keys(_notification2).forEach(function (key) {
19
19
  }
20
20
  });
21
21
  });
22
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
22
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
23
23
  var _default = exports["default"] = _notification["default"];
@@ -24,7 +24,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
24
24
  var _assets = require("./assets");
25
25
  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); }
26
26
  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; }
27
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
28
28
  var prefixCls = 'ant-notification-notice';
29
29
  var tntPrefixCls = 'tnt-notification-notice';
30
30
  var api = Object.assign(Object.assign({}, _notification["default"]), {
package/es/page/Box.js CHANGED
@@ -7,7 +7,7 @@ exports["default"] = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _utils = require("./utils");
9
9
  var _card = _interopRequireDefault(require("../card"));
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 __rest = void 0 && (void 0).__rest || function (s, e) {
12
12
  var t = {};
13
13
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
package/es/page/index.js CHANGED
@@ -10,16 +10,16 @@ var _tntdIcon = _interopRequireDefault(require("../tntd-icon"));
10
10
  var _Box = _interopRequireDefault(require("./Box"));
11
11
  var _utils = require("./utils");
12
12
  require("./index.less");
13
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
14
- 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 _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
14
+ 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; }
15
15
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
16
16
  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); }
17
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
17
+ function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
18
18
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
19
- 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); }
20
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
21
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
22
- 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; }
19
+ 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; } }
20
+ function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
21
+ function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
22
+ 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; }
23
23
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
24
24
  var __rest = void 0 && (void 0).__rest || function (s, e) {
25
25
  var t = {};
@@ -7,7 +7,7 @@ exports["default"] = void 0;
7
7
  var _classnames = _interopRequireDefault(require("classnames"));
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  require("./index.less");
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(WrappedComponent) {
12
12
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
13
13
  var version = options.version,
@@ -8,7 +8,7 @@ var _react = _interopRequireDefault(require("react"));
8
8
  var _classnames = _interopRequireDefault(require("classnames"));
9
9
  var _LocaleReceiver = _interopRequireDefault(require("antd/es/locale-provider/LocaleReceiver"));
10
10
  require("./index.less");
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
12
12
  var __rest = void 0 && (void 0).__rest || function (s, e) {
13
13
  var t = {};
14
14
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
@@ -0,0 +1,32 @@
1
+ @popover-prefix-cls: ~'@{ant-prefix}-popover';
2
+
3
+ .@{popover-prefix-cls} {
4
+ &-inner-content {
5
+ padding: @padding-base;
6
+ }
7
+
8
+ &-message {
9
+ padding: 0 0 @padding-xs;
10
+
11
+ &>.anticon {
12
+ font-size: @font-size-lg;
13
+ top: 7px;
14
+ }
15
+ }
16
+
17
+ &-message-title {
18
+ padding-top: @padding-xxs;
19
+ padding-bottom: @padding-xxs;
20
+ line-height: @line-height-base;
21
+ }
22
+
23
+ &-buttons {
24
+ margin-bottom: 0;
25
+ }
26
+ }
27
+
28
+ .@{popover-prefix-cls}-arrow-hidden {
29
+ .@{popover-prefix-cls}-arrow {
30
+ display: none;
31
+ }
32
+ }
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+
3
+ function _typeof(o) {
4
+ "@babel/helpers - typeof";
5
+
6
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
7
+ return typeof o;
8
+ } : function (o) {
9
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
10
+ }, _typeof(o);
11
+ }
12
+ Object.defineProperty(exports, "__esModule", {
13
+ value: true
14
+ });
15
+ var _exportNames = {};
16
+ exports["default"] = void 0;
17
+ var _react = _interopRequireDefault(require("react"));
18
+ var _configProvider = require("antd/es/config-provider");
19
+ var _popconfirm = _interopRequireWildcard(require("antd/es/popconfirm"));
20
+ Object.keys(_popconfirm).forEach(function (key) {
21
+ if (key === "default" || key === "__esModule") return;
22
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
23
+ if (key in exports && exports[key] === _popconfirm[key]) return;
24
+ Object.defineProperty(exports, key, {
25
+ enumerable: true,
26
+ get: function get() {
27
+ return _popconfirm[key];
28
+ }
29
+ });
30
+ });
31
+ var _classnames = _interopRequireDefault(require("classnames"));
32
+ function _getRequireWildcardCache(e) {
33
+ if ("function" != typeof WeakMap) return null;
34
+ var r = new WeakMap(),
35
+ t = new WeakMap();
36
+ return (_getRequireWildcardCache = function _getRequireWildcardCache(e) {
37
+ return e ? t : r;
38
+ })(e);
39
+ }
40
+ function _interopRequireWildcard(e, r) {
41
+ if (!r && e && e.__esModule) return e;
42
+ if (null === e || "object" != _typeof(e) && "function" != typeof e) return {
43
+ "default": e
44
+ };
45
+ var t = _getRequireWildcardCache(r);
46
+ if (t && t.has(e)) return t.get(e);
47
+ var n = {
48
+ __proto__: null
49
+ },
50
+ a = Object.defineProperty && Object.getOwnPropertyDescriptor;
51
+ for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
52
+ var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
53
+ i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
54
+ }
55
+ return n["default"] = e, t && t.set(e, n), n;
56
+ }
57
+ function _interopRequireDefault(e) {
58
+ return e && e.__esModule ? e : {
59
+ "default": e
60
+ };
61
+ }
62
+ var __rest = void 0 && (void 0).__rest || function (s, e) {
63
+ var t = {};
64
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
65
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
66
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
67
+ }
68
+ return t;
69
+ };
70
+ var Popconfirm = function Popconfirm(_a) {
71
+ var cancelButtonProps = _a.cancelButtonProps,
72
+ okButtonProps = _a.okButtonProps,
73
+ hiddenArrow = _a.hiddenArrow,
74
+ props = __rest(_a, ["cancelButtonProps", "okButtonProps", "hiddenArrow"]);
75
+ return _react["default"].createElement(_configProvider.ConfigConsumer, null, function (_ref) {
76
+ var getPrefixCls = _ref.getPrefixCls;
77
+ var prefixCls = getPrefixCls('popover');
78
+ return _react["default"].createElement(_popconfirm["default"], Object.assign({
79
+ cancelButtonProps: Object.assign({
80
+ type: 'tertiary',
81
+ className: (0, _classnames["default"])('tnt-btn', {
82
+ 'tnt-btn-tertiary': (cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.type) === 'tertiary' || !(cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.type),
83
+ 'tnt-btn-mini': (cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.size) === 'mini'
84
+ })
85
+ }, cancelButtonProps),
86
+ okButtonProps: Object.assign({
87
+ className: (0, _classnames["default"])('tnt-btn', {
88
+ 'tnt-btn-tertiary': (okButtonProps === null || okButtonProps === void 0 ? void 0 : okButtonProps.type) === 'tertiary',
89
+ 'tnt-btn-mini': (okButtonProps === null || okButtonProps === void 0 ? void 0 : okButtonProps.size) === 'mini'
90
+ })
91
+ }, okButtonProps),
92
+ overlayClassName: (0, _classnames["default"])(hiddenArrow ? prefixCls + '-arrow-hidden' : '')
93
+ }, props));
94
+ });
95
+ };
96
+ var _default = exports["default"] = Popconfirm;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popconfirm.js","sourceRoot":"","sources":["../../src/popconfirm/popconfirm.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,cAAc,MAAM,oBAAoB,CAAA;AAC/C,OAAO,UAAU,MAAM,YAAY,CAAA;AAEnC,cAAc,oBAAoB,CAAA;AAElC,MAAM,UAAU,GAA0D,CAAC,EAK1E,EAAE,EAAE;QALsE,EACzE,iBAAiB,EACjB,aAAa,EACb,WAAW,OAEZ,EADI,KAAK,cAJiE,qDAK1E,CADS;IAER,OAAO,CACL,oBAAC,cAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,MAAM,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC,CAAA;QACzC,OAAO,CACL,oBAAC,cAAc,kBACb,iBAAiB,EACf,gBACE,IAAI,EAAE,UAAU,EAChB,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE;oBAC/B,kBAAkB,EAChB,CAAC,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,IAAe,MAAK,UAAU,IAAI,CAAC,CAAA,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,IAAI,CAAA;oBAChF,cAAc,EAAE,CAAC,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,IAAe,MAAK,MAAM;iBAC/D,CAAC,IACC,iBAAiB,CACA,EAExB,aAAa,kBACX,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE;oBAC/B,kBAAkB,EAAE,CAAC,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,IAAe,MAAK,UAAU;oBAClE,cAAc,EAAE,CAAC,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,IAAe,MAAK,MAAM;iBAC3D,CAAC,IACC,aAAa,GAElB,gBAAgB,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,GAAG,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,IACxE,KAAK,EACT,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CAAA;AAED,eAAe,UAAU,CAAA","sourcesContent":["import React from 'react'\nimport type { PopconfirmProps } from 'antd/es/popconfirm'\nimport type { NativeButtonProps } from 'antd/es/button/button'\nimport { ConfigConsumer } from 'antd/es/config-provider'\nimport AntdPopconfirm from 'antd/es/popconfirm'\nimport classNames from 'classnames'\n\nexport * from 'antd/es/popconfirm'\n\nconst Popconfirm: React.FC<PopconfirmProps & { hiddenArrow?: boolean }> = ({\n cancelButtonProps,\n okButtonProps,\n hiddenArrow,\n ...props\n}) => {\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('popover')\n return (\n <AntdPopconfirm\n cancelButtonProps={\n {\n type: 'tertiary',\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary':\n (cancelButtonProps?.type as string) === 'tertiary' || !cancelButtonProps?.type,\n 'tnt-btn-mini': (cancelButtonProps?.size as string) === 'mini',\n }),\n ...cancelButtonProps,\n } as NativeButtonProps\n }\n okButtonProps={{\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary': (okButtonProps?.type as string) === 'tertiary',\n 'tnt-btn-mini': (okButtonProps?.size as string) === 'mini',\n }),\n ...okButtonProps,\n }}\n overlayClassName={classNames(hiddenArrow ? prefixCls + '-arrow-hidden' : '')}\n {...props}\n />\n )\n }}\n </ConfigConsumer>\n )\n}\n\nexport default Popconfirm\n"]}
@@ -0,0 +1,57 @@
1
+ @popover-prefix-cls: ~'@{ant-prefix}-popover';
2
+
3
+ // Base class
4
+ .tnt-popover.@{popover-prefix-cls} {
5
+
6
+ &-dark,
7
+ &-light {
8
+ .@{popover-prefix-cls}-title {
9
+ border-bottom: 0px !important;
10
+ padding: 10px 12px 4px !important;
11
+ border-bottom: 0px !important;
12
+
13
+ }
14
+
15
+ .@{popover-prefix-cls}-inner {
16
+ &-content {
17
+ padding: 0px 12px 12px 12px;
18
+ }
19
+ }
20
+ }
21
+
22
+ &-dark {
23
+ .@{popover-prefix-cls}-title {
24
+ color: @popover-color-dark;
25
+ }
26
+
27
+ .@{popover-prefix-cls}-inner {
28
+ background-color: @popover-bg-dark;
29
+
30
+ &-content {
31
+ color: @popover-color-dark;
32
+ }
33
+ }
34
+
35
+ .@{popover-prefix-cls}-arrow {
36
+ border-color: @popover-arrow-color-dark !important;
37
+
38
+ &::before {
39
+ background-color: @popover-bg-dark;
40
+
41
+ }
42
+ }
43
+ }
44
+
45
+
46
+ // Arrows
47
+ &-arrow {
48
+ border-radius: 1px;
49
+ }
50
+ }
51
+
52
+
53
+ .@{popover-prefix-cls}-arrow-hidden {
54
+ .@{popover-prefix-cls}-arrow {
55
+ display: none;
56
+ }
57
+ }
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+
3
+ function _typeof(o) {
4
+ "@babel/helpers - typeof";
5
+
6
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
7
+ return typeof o;
8
+ } : function (o) {
9
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
10
+ }, _typeof(o);
11
+ }
12
+ Object.defineProperty(exports, "__esModule", {
13
+ value: true
14
+ });
15
+ var _exportNames = {};
16
+ exports["default"] = void 0;
17
+ var _react = _interopRequireDefault(require("react"));
18
+ var _configProvider = require("antd/es/config-provider");
19
+ var _popover = _interopRequireWildcard(require("antd/es/popover"));
20
+ Object.keys(_popover).forEach(function (key) {
21
+ if (key === "default" || key === "__esModule") return;
22
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
23
+ if (key in exports && exports[key] === _popover[key]) return;
24
+ Object.defineProperty(exports, key, {
25
+ enumerable: true,
26
+ get: function get() {
27
+ return _popover[key];
28
+ }
29
+ });
30
+ });
31
+ var _classnames = _interopRequireDefault(require("classnames"));
32
+ function _getRequireWildcardCache(e) {
33
+ if ("function" != typeof WeakMap) return null;
34
+ var r = new WeakMap(),
35
+ t = new WeakMap();
36
+ return (_getRequireWildcardCache = function _getRequireWildcardCache(e) {
37
+ return e ? t : r;
38
+ })(e);
39
+ }
40
+ function _interopRequireWildcard(e, r) {
41
+ if (!r && e && e.__esModule) return e;
42
+ if (null === e || "object" != _typeof(e) && "function" != typeof e) return {
43
+ "default": e
44
+ };
45
+ var t = _getRequireWildcardCache(r);
46
+ if (t && t.has(e)) return t.get(e);
47
+ var n = {
48
+ __proto__: null
49
+ },
50
+ a = Object.defineProperty && Object.getOwnPropertyDescriptor;
51
+ for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
52
+ var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
53
+ i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
54
+ }
55
+ return n["default"] = e, t && t.set(e, n), n;
56
+ }
57
+ function _interopRequireDefault(e) {
58
+ return e && e.__esModule ? e : {
59
+ "default": e
60
+ };
61
+ }
62
+ var __rest = void 0 && (void 0).__rest || function (s, e) {
63
+ var t = {};
64
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
65
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
66
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
67
+ }
68
+ return t;
69
+ };
70
+ var themeMap = function themeMap(prefixCls, themeColor) {
71
+ return "".concat(prefixCls, "-").concat(themeColor);
72
+ };
73
+ var Popover = function Popover(props) {
74
+ var overlayClassName = props.overlayClassName,
75
+ _props$theme = props.theme,
76
+ theme = _props$theme === void 0 ? '' : _props$theme,
77
+ _props$titleDivider = props.titleDivider,
78
+ titleDivider = _props$titleDivider === void 0 ? false : _props$titleDivider,
79
+ _props$hiddenArrow = props.hiddenArrow,
80
+ hiddenArrow = _props$hiddenArrow === void 0 ? false : _props$hiddenArrow,
81
+ restProps = __rest(props, ["overlayClassName", "theme", "titleDivider", "hiddenArrow"]);
82
+ return _react["default"].createElement(_configProvider.ConfigConsumer, null, function (_ref) {
83
+ var getPrefixCls = _ref.getPrefixCls;
84
+ var prefixCls = getPrefixCls('popover');
85
+ return _react["default"].createElement(_popover["default"], Object.assign({
86
+ overlayClassName: (0, _classnames["default"])(prefixCls, 'tnt-popover', themeMap(prefixCls, theme), hiddenArrow ? prefixCls + '-arrow-hidden' : '', overlayClassName)
87
+ }, restProps));
88
+ });
89
+ };
90
+ var _default = exports["default"] = Popover;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popover.js","sourceRoot":"","sources":["../../src/popover/popover.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,WAAW,MAAM,iBAAiB,CAAA;AACzC,OAAO,UAAU,MAAM,YAAY,CAAA;AAEnC,cAAc,iBAAiB,CAAA;AAC/B,MAAM,QAAQ,GAAG,CAAC,SAAiB,EAAE,UAAmB,EAAE,EAAE;IAC1D,OAAO,GAAG,SAAS,IAAI,UAAU,EAAE,CAAA;AACrC,CAAC,CAAA;AAMD,MAAM,OAAO,GAET,CAAC,KAAK,EAAE,EAAE;IACZ,MAAM,EACJ,gBAAgB,EAChB,KAAK,GAAG,EAAE,EACV,YAAY,GAAG,KAAK,EACpB,WAAW,GAAG,KAAK,KAEjB,KAAK,EADJ,SAAS,UACV,KAAK,EANH,4DAML,CAAQ,CAAA;IAET,OAAO,CACL,oBAAC,cAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,MAAM,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC,CAAA;QAEzC,OAAO,CACL,oBAAC,WAAW,kBACV,gBAAgB,EAAE,UAAU,CAC1B,SAAS,EACT,aAAa,EACb,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC,EAC1B,WAAW,CAAC,CAAC,CAAC,SAAS,GAAG,eAAe,CAAC,CAAC,CAAC,EAAE,EAC9C,gBAAgB,CACjB,IACG,SAAS,EACb,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CAAA;AAED,eAAe,OAAO,CAAA","sourcesContent":["import React from 'react'\nimport type { PopoverProps } from 'antd/es/popover'\nimport { ConfigConsumer } from 'antd/es/config-provider'\nimport AntdPopover from 'antd/es/popover'\nimport classNames from 'classnames'\n\nexport * from 'antd/es/popover'\nconst themeMap = (prefixCls: string, themeColor?: string) => {\n return `${prefixCls}-${themeColor}`\n}\ninterface CurProps extends PopoverProps {\n theme?: string\n titleDivider?: boolean\n}\n\nconst Popover: React.FC<\n CurProps & { theme?: string; titleDivider?: boolean; hiddenArrow?: boolean }\n> = (props) => {\n const {\n overlayClassName,\n theme = '',\n titleDivider = false,\n hiddenArrow = false,\n ...restProps\n } = props\n\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('popover')\n\n return (\n <AntdPopover\n overlayClassName={classNames(\n prefixCls,\n 'tnt-popover',\n themeMap(prefixCls, theme),\n hiddenArrow ? prefixCls + '-arrow-hidden' : '',\n overlayClassName\n )}\n {...restProps}\n />\n )\n }}\n </ConfigConsumer>\n )\n}\n\nexport default Popover\n"]}
@@ -15,7 +15,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
15
15
  var _context = require("../tntd-form/context");
16
16
  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); }
17
17
  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; }
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
18
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
19
19
  var prefixCls = 'tnt-preview-text';
20
20
  var isValid = function isValid(value) {
21
21
  return !(0, _isUndefined2["default"])(value) && !(0, _isNull2["default"])(value) && value !== '';
@@ -116,13 +116,13 @@ var TreeSelect = function TreeSelect(_ref3) {
116
116
  }
117
117
  }
118
118
  };
119
- var findLabel = function findLabel(value, dataSource) {
119
+ var _findLabel = function findLabel(value, dataSource) {
120
120
  for (var i = 0; i < (dataSource === null || dataSource === void 0 ? void 0 : dataSource.length); i++) {
121
121
  var item = dataSource[i];
122
122
  if ((item === null || item === void 0 ? void 0 : item.value) === value || (item === null || item === void 0 ? void 0 : item.key) === value) {
123
123
  return item === null || item === void 0 ? void 0 : item.title;
124
124
  } else {
125
- var childLabel = findLabel(value, item === null || item === void 0 ? void 0 : item.children);
125
+ var childLabel = _findLabel(value, item === null || item === void 0 ? void 0 : item.children);
126
126
  if (childLabel) return childLabel;
127
127
  }
128
128
  }
@@ -135,7 +135,7 @@ var TreeSelect = function TreeSelect(_ref3) {
135
135
  label = _ref4.label;
136
136
  return _react["default"].createElement(_react["default"].Fragment, null, multiple ? _react["default"].createElement(_tag["default"], {
137
137
  key: key
138
- }, findLabel(value, dataSource) || label || placeholder) : findLabel(value, dataSource) || label || placeholder);
138
+ }, _findLabel(value, dataSource) || label || placeholder) : _findLabel(value, dataSource) || label || placeholder);
139
139
  });
140
140
  };
141
141
  return _react["default"].createElement("div", {
@@ -153,13 +153,13 @@ var Cascader = function Cascader(_ref5) {
153
153
  var getSelected = function getSelected() {
154
154
  return (0, _isArray2["default"])(value) ? value : [];
155
155
  };
156
- var findLabel = function findLabel(value, dataSource) {
156
+ var _findLabel2 = function findLabel(value, dataSource) {
157
157
  for (var i = 0; i < (dataSource === null || dataSource === void 0 ? void 0 : dataSource.length); i++) {
158
158
  var item = dataSource[i];
159
159
  if ((item === null || item === void 0 ? void 0 : item.value) === value) {
160
160
  return item === null || item === void 0 ? void 0 : item.label;
161
161
  } else {
162
- var childLabel = findLabel(value, item === null || item === void 0 ? void 0 : item.children);
162
+ var childLabel = _findLabel2(value, item === null || item === void 0 ? void 0 : item.children);
163
163
  if (childLabel) return childLabel;
164
164
  }
165
165
  }
@@ -170,7 +170,7 @@ var Cascader = function Cascader(_ref5) {
170
170
  return placeholder;
171
171
  }
172
172
  return selected.map(function (value) {
173
- return findLabel(value, dataSource) || placeholder;
173
+ return _findLabel2(value, dataSource) || placeholder;
174
174
  }).join('/');
175
175
  };
176
176
  return _react["default"].createElement("div", {