@para-ui/core 3.0.55 → 3.0.56

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 (407) hide show
  1. package/AutoBox/index.d.ts +34 -0
  2. package/AutoBox/index.js +277 -0
  3. package/AutoBox/protal.d.ts +17 -0
  4. package/AutoTips/autoTipsMultiline/index.d.ts +18 -0
  5. package/AutoTips/index.d.ts +35 -0
  6. package/AutoTips/index.js +271 -0
  7. package/Breadcrumbs/index.d.ts +53 -0
  8. package/Breadcrumbs/index.js +266 -0
  9. package/Breadcrumbs/lang/en_US.d.ts +4 -0
  10. package/Breadcrumbs/lang/index.d.ts +9 -0
  11. package/Breadcrumbs/lang/zh_CN.d.ts +4 -0
  12. package/Button/SplitButton.d.ts +64 -0
  13. package/Button/index.d.ts +79 -0
  14. package/Button/index.js +376 -0
  15. package/Button/lang/en_US.d.ts +4 -0
  16. package/Button/lang/index.d.ts +9 -0
  17. package/Button/lang/zh_CN.d.ts +4 -0
  18. package/ButtonGroup/index.d.ts +33 -0
  19. package/ButtonGroup/index.js +124 -0
  20. package/Carousel/index.d.ts +38 -0
  21. package/Carousel/index.js +78 -0
  22. package/Cascader/index.d.ts +54 -0
  23. package/Cascader/index.js +159 -0
  24. package/Cascader/lang/en_US.d.ts +4 -0
  25. package/Cascader/lang/index.d.ts +9 -0
  26. package/Cascader/lang/zh_CN.d.ts +4 -0
  27. package/Checkbox/index.d.ts +40 -0
  28. package/Checkbox/index.js +109 -0
  29. package/CheckboxGroup/index.d.ts +45 -0
  30. package/CheckboxGroup/index.js +142 -0
  31. package/Collapse/collapsePanel.d.ts +30 -0
  32. package/Collapse/index.d.ts +57 -0
  33. package/Collapse/index.js +152 -0
  34. package/Collapse/motion.d.ts +5 -0
  35. package/Collapse/util.d.ts +11 -0
  36. package/CollapseBox/index.d.ts +27 -0
  37. package/CollapseBox/index.js +148 -0
  38. package/CollapseBox/util.d.ts +5 -0
  39. package/CollapseLayout/index.d.ts +53 -0
  40. package/CollapseLayout/index.js +176 -0
  41. package/ColorPicker/index.d.ts +4 -0
  42. package/ColorPicker/index.js +4 -0
  43. package/ComboSelect/index.d.ts +6 -0
  44. package/ComboSelect/index.js +1049 -0
  45. package/ComboSelect/interface.d.ts +146 -0
  46. package/ComboSelect/lang/en_US.d.ts +9 -0
  47. package/ComboSelect/lang/index.d.ts +19 -0
  48. package/ComboSelect/lang/zh_CN.d.ts +9 -0
  49. package/ComboSelect/utils.d.ts +9 -0
  50. package/Container/index.d.ts +77 -0
  51. package/Container/index.js +232 -0
  52. package/DatePicker/PickerButton.d.ts +3 -0
  53. package/DatePicker/PickerTag.d.ts +3 -0
  54. package/DatePicker/generatePicker/generateRangePicker.d.ts +4 -0
  55. package/DatePicker/generatePicker/generateSinglePicker.d.ts +11 -0
  56. package/DatePicker/generatePicker/index.d.ts +95 -0
  57. package/DatePicker/index.d.ts +18 -0
  58. package/DatePicker/index.js +633 -0
  59. package/DatePicker/lang/en_US.d.ts +3 -0
  60. package/DatePicker/lang/index.d.ts +7 -0
  61. package/DatePicker/lang/zh_CN.d.ts +3 -0
  62. package/DatePicker/util.d.ts +22 -0
  63. package/Desktop/index.d.ts +57 -0
  64. package/Desktop/index.js +746 -0
  65. package/DragVerify/index.d.ts +36 -0
  66. package/DragVerify/index.js +385 -0
  67. package/DragVerify/lang/en_US.d.ts +5 -0
  68. package/DragVerify/lang/index.d.ts +11 -0
  69. package/DragVerify/lang/zh_CN.d.ts +5 -0
  70. package/Drawer/index.d.ts +11 -0
  71. package/Drawer/index.js +235 -0
  72. package/Drawer/interface.d.ts +92 -0
  73. package/Drawer/lang/en_US.d.ts +5 -0
  74. package/Drawer/lang/index.d.ts +11 -0
  75. package/Drawer/lang/zh_CN.d.ts +5 -0
  76. package/Dropdown/index.d.ts +40 -0
  77. package/Dropdown/index.js +10 -0
  78. package/DynamicMultiBox/formItem.d.ts +14 -0
  79. package/DynamicMultiBox/index.d.ts +5 -0
  80. package/DynamicMultiBox/index.js +1323 -0
  81. package/DynamicMultiBox/interface.d.ts +165 -0
  82. package/DynamicMultiBox/rowForm.d.ts +24 -0
  83. package/Empty/images/index.d.ts +3 -0
  84. package/Empty/index.d.ts +30 -0
  85. package/Empty/index.js +642 -0
  86. package/Empty/lang/en_US.d.ts +6 -0
  87. package/Empty/lang/index.d.ts +13 -0
  88. package/Empty/lang/zh_CN.d.ts +6 -0
  89. package/Form/index.d.ts +187 -0
  90. package/Form/index.js +355 -0
  91. package/FormItem/compoments/defaultCompoments/index.d.ts +19 -0
  92. package/FormItem/compoments/formCheckboxGroup/index.d.ts +8 -0
  93. package/FormItem/compoments/formFile/index.d.ts +38 -0
  94. package/FormItem/compoments/formRadioGroup/index.d.ts +8 -0
  95. package/FormItem/compoments/formSelect/index.d.ts +18 -0
  96. package/FormItem/errorTips.d.ts +12 -0
  97. package/FormItem/index.d.ts +152 -0
  98. package/FormItem/index.js +78 -0
  99. package/FormItem/itemType.d.ts +42 -0
  100. package/FormItem/validateFunction.d.ts +15 -0
  101. package/FunctionModal/dialog.d.ts +58 -0
  102. package/FunctionModal/index.d.ts +8 -0
  103. package/FunctionModal/index.js +43 -0
  104. package/FunctionModal/modalContext.d.ts +15 -0
  105. package/GlobalContext/componentsProps.d.ts +21 -0
  106. package/GlobalContext/confirmLocale.d.ts +7 -0
  107. package/GlobalContext/constant.d.ts +8 -0
  108. package/GlobalContext/index.d.ts +28 -0
  109. package/GlobalContext/index.js +41 -0
  110. package/GlobalContext/intl.d.ts +34 -0
  111. package/GlobalContext/useFormatMessage.d.ts +3 -0
  112. package/GlobalContext/usePopupContainer.d.ts +4 -0
  113. package/Help/index.d.ts +24 -0
  114. package/Help/index.js +41 -0
  115. package/HelperText/index.d.ts +27 -0
  116. package/HelperText/index.js +34 -0
  117. package/Hooks/useGlobalProps.d.ts +1 -0
  118. package/InputLang/index.d.ts +57 -0
  119. package/InputLang/index.js +355 -0
  120. package/InputNumber/index.d.ts +71 -0
  121. package/InputNumber/index.js +277 -0
  122. package/Label/index.d.ts +37 -0
  123. package/Label/index.js +85 -0
  124. package/Loading/index.d.ts +17 -0
  125. package/Loading/index.js +47 -0
  126. package/Menu/footerExpansion.d.ts +9 -0
  127. package/Menu/index.d.ts +10 -0
  128. package/Menu/index.js +1105 -0
  129. package/Menu/interface.d.ts +141 -0
  130. package/Menu/logo.d.ts +9 -0
  131. package/Menu/verticalMenuList.d.ts +14 -0
  132. package/Message/index.d.ts +99 -0
  133. package/Message/index.js +246 -0
  134. package/Modal/Confirm/index.d.ts +65 -0
  135. package/Modal/index.d.ts +99 -0
  136. package/Modal/index.js +421 -0
  137. package/Modal/lang/en_US.d.ts +5 -0
  138. package/Modal/lang/index.d.ts +11 -0
  139. package/Modal/lang/zh_CN.d.ts +5 -0
  140. package/MultiBox/index.d.ts +60 -0
  141. package/MultiBox/index.js +277 -0
  142. package/MultiBox/lang/en_US.d.ts +4 -0
  143. package/MultiBox/lang/index.d.ts +9 -0
  144. package/MultiBox/lang/zh_CN.d.ts +4 -0
  145. package/Notification/index.d.ts +74 -0
  146. package/Notification/index.js +252 -0
  147. package/OperateBtn/index.d.ts +59 -0
  148. package/OperateBtn/index.js +237 -0
  149. package/OperateBtn/lang/en_US.d.ts +4 -0
  150. package/OperateBtn/lang/index.d.ts +9 -0
  151. package/OperateBtn/lang/zh_CN.d.ts +4 -0
  152. package/PageHeader/horizontalMeun.d.ts +9 -0
  153. package/PageHeader/horizontalMeunRight.d.ts +9 -0
  154. package/PageHeader/index.d.ts +10 -0
  155. package/PageHeader/index.js +1050 -0
  156. package/PageHeader/interface.d.ts +169 -0
  157. package/Pagination/index.d.ts +46 -0
  158. package/Pagination/index.js +461 -0
  159. package/Pagination/lang/en_US.d.ts +8 -0
  160. package/Pagination/lang/index.d.ts +17 -0
  161. package/Pagination/lang/zh_CN.d.ts +8 -0
  162. package/ParauiProvider/index.d.ts +8 -0
  163. package/ParauiProvider/index.js +52 -0
  164. package/PasswordRules/index.d.ts +55 -0
  165. package/PasswordRules/index.js +144 -0
  166. package/PopConfirm/index.d.ts +61 -0
  167. package/PopConfirm/index.js +194 -0
  168. package/PopConfirm/lang/en_US.d.ts +5 -0
  169. package/PopConfirm/lang/index.d.ts +11 -0
  170. package/PopConfirm/lang/zh_CN.d.ts +5 -0
  171. package/Popover/index.d.ts +16 -0
  172. package/Popover/index.js +59 -0
  173. package/Progress/Line.d.ts +47 -0
  174. package/Progress/Steps.d.ts +17 -0
  175. package/Progress/index.d.ts +83 -0
  176. package/Progress/index.js +323 -0
  177. package/Progress/utils.d.ts +6 -0
  178. package/Querying/images/index.d.ts +3 -0
  179. package/Querying/index.d.ts +26 -0
  180. package/Querying/index.js +760 -0
  181. package/Querying/lang/en_US.d.ts +4 -0
  182. package/Querying/lang/index.d.ts +9 -0
  183. package/Querying/lang/zh_CN.d.ts +4 -0
  184. package/README.md +6 -0
  185. package/Radio/index.d.ts +38 -0
  186. package/Radio/index.js +97 -0
  187. package/RadioGroup/index.d.ts +46 -0
  188. package/RadioGroup/index.js +134 -0
  189. package/Search/index.d.ts +57 -0
  190. package/Search/index.js +208 -0
  191. package/Select/index.d.ts +93 -0
  192. package/Select/index.js +1146 -0
  193. package/Select/lang/en_US.d.ts +5 -0
  194. package/Select/lang/index.d.ts +11 -0
  195. package/Select/lang/zh_CN.d.ts +5 -0
  196. package/SelectInput/index.d.ts +12 -0
  197. package/SelectInput/index.js +55 -0
  198. package/Selector/index.d.ts +11 -0
  199. package/Selector/index.js +2175 -0
  200. package/Selector/interface.d.ts +432 -0
  201. package/Selector/lang/en_US.d.ts +11 -0
  202. package/Selector/lang/index.d.ts +23 -0
  203. package/Selector/lang/zh_CN.d.ts +11 -0
  204. package/Selector/selectorData/index.d.ts +10 -0
  205. package/Selector/selectorMain/index.d.ts +10 -0
  206. package/Selector/selectorNode/index.d.ts +10 -0
  207. package/Selector/util.d.ts +15 -0
  208. package/SelectorPicker/index.d.ts +53 -0
  209. package/SelectorPicker/index.js +444 -0
  210. package/SelectorPicker/lang/en_US.d.ts +5 -0
  211. package/SelectorPicker/lang/index.d.ts +11 -0
  212. package/SelectorPicker/lang/zh_CN.d.ts +5 -0
  213. package/SingleBox/index.d.ts +44 -0
  214. package/SingleBox/index.js +224 -0
  215. package/SingleBox/lang/en_US.d.ts +4 -0
  216. package/SingleBox/lang/index.d.ts +9 -0
  217. package/SingleBox/lang/zh_CN.d.ts +4 -0
  218. package/Slider/index.d.ts +14 -0
  219. package/Slider/index.js +119 -0
  220. package/Slider/interface.d.ts +102 -0
  221. package/Split/index.d.ts +7 -0
  222. package/Split/index.js +123 -0
  223. package/Status/index.d.ts +21 -0
  224. package/Status/index.js +37 -0
  225. package/Stepper/icons.d.ts +5 -0
  226. package/Stepper/index.d.ts +59 -0
  227. package/Stepper/index.js +97 -0
  228. package/Switch/index.d.ts +78 -0
  229. package/Switch/index.js +71 -0
  230. package/Table/index.d.ts +10 -0
  231. package/Table/index.js +3001 -0
  232. package/Table/interface.d.ts +346 -0
  233. package/Table/lang/en_US.d.ts +8 -0
  234. package/Table/lang/index.d.ts +17 -0
  235. package/Table/lang/zh_CN.d.ts +8 -0
  236. package/Table/tableBody.d.ts +9 -0
  237. package/Table/tableBodyElement/index.d.ts +15 -0
  238. package/Table/tableBodyInterface.d.ts +73 -0
  239. package/Table/tableContainer/index.d.ts +16 -0
  240. package/Table/tableElement/index.d.ts +17 -0
  241. package/Table/tableHead.d.ts +9 -0
  242. package/Table/tableHeadElement/index.d.ts +15 -0
  243. package/Table/tableHeadInterface.d.ts +37 -0
  244. package/Table/tablePagination.d.ts +9 -0
  245. package/Table/tablePaginationInterface.d.ts +27 -0
  246. package/Table/tdElement/index.d.ts +15 -0
  247. package/Table/thElement/index.d.ts +28 -0
  248. package/Table/trElement/index.d.ts +15 -0
  249. package/Table/util.d.ts +34 -0
  250. package/Tabs/index.d.ts +69 -0
  251. package/Tabs/index.js +205 -0
  252. package/Tabs/lang/en_US.d.ts +4 -0
  253. package/Tabs/lang/index.d.ts +9 -0
  254. package/Tabs/lang/zh_CN.d.ts +4 -0
  255. package/Tag/TagGroup.d.ts +66 -0
  256. package/Tag/index.d.ts +34 -0
  257. package/Tag/index.js +259 -0
  258. package/TextEditor/common.d.ts +11 -0
  259. package/TextEditor/index.d.ts +127 -0
  260. package/TextEditor/index.js +286 -0
  261. package/TextField/index.d.ts +90 -0
  262. package/TextField/index.js +611 -0
  263. package/TimePicker/index.d.ts +22 -0
  264. package/TimePicker/index.js +80 -0
  265. package/TimePicker/locale/en_US.d.ts +3 -0
  266. package/TimePicker/locale/zh_CN.d.ts +3 -0
  267. package/TimePicker/style/index.d.ts +1 -0
  268. package/Timeline/TimelineItem.d.ts +30 -0
  269. package/Timeline/index.d.ts +32 -0
  270. package/Timeline/index.js +148 -0
  271. package/Title/index.d.ts +30 -0
  272. package/Title/index.js +50 -0
  273. package/ToggleButton/ToggleButtonGroup.d.ts +49 -0
  274. package/ToggleButton/index.d.ts +49 -0
  275. package/ToggleButton/index.js +193 -0
  276. package/Tooltip/index.d.ts +11 -0
  277. package/Tooltip/index.js +368 -0
  278. package/Tooltip/interface.d.ts +35 -0
  279. package/Tooltip/utils.d.ts +18 -0
  280. package/Transfer/box.d.ts +38 -0
  281. package/Transfer/index.d.ts +32 -0
  282. package/Transfer/index.js +611 -0
  283. package/Transfer/lang/en_US.d.ts +10 -0
  284. package/Transfer/lang/index.d.ts +21 -0
  285. package/Transfer/lang/zh_CN.d.ts +10 -0
  286. package/Transfer/useClick.d.ts +3 -0
  287. package/Tree/OperateBar/index.d.ts +13 -0
  288. package/Tree/Tree.d.ts +4 -0
  289. package/Tree/index.d.ts +5 -0
  290. package/Tree/index.js +38 -0
  291. package/Tree/interface.d.ts +210 -0
  292. package/Tree/lang/en_US.d.ts +8 -0
  293. package/Tree/lang/index.d.ts +17 -0
  294. package/Tree/lang/zh_CN.d.ts +8 -0
  295. package/Tree/utils/closestPolyfill.d.ts +0 -0
  296. package/Tree/utils/tools.d.ts +25 -0
  297. package/Tree/utils/treeUtil.d.ts +15 -0
  298. package/Upload/Dragger/index.d.ts +10 -0
  299. package/Upload/ErroTip/index.d.ts +13 -0
  300. package/Upload/ImageUpload/index.d.ts +16 -0
  301. package/Upload/ImgCrop/EasyCrop.d.ts +17 -0
  302. package/Upload/ImgCrop/constants.d.ts +7 -0
  303. package/Upload/ImgCrop/index.d.ts +6 -0
  304. package/Upload/ImgCrop/interface.d.ts +48 -0
  305. package/Upload/UploadList/index.d.ts +5 -0
  306. package/Upload/index.d.ts +15 -0
  307. package/Upload/index.js +1446 -0
  308. package/Upload/interface.d.ts +136 -0
  309. package/Upload/lang/en_US.d.ts +12 -0
  310. package/Upload/lang/index.d.ts +25 -0
  311. package/Upload/lang/zh_CN.d.ts +12 -0
  312. package/_verture/constant-66aa48a1.js +10 -0
  313. package/_verture/defineProperty-62acccfc.js +34 -0
  314. package/_verture/index-74f820ba.js +1355 -0
  315. package/_verture/index-77f9e0fb.js +236 -0
  316. package/_verture/index-a369ca3f.js +4 -0
  317. package/_verture/index-beef914f.js +340 -0
  318. package/_verture/index-d03136d4.js +711 -0
  319. package/_verture/index-e2881a53.js +16 -0
  320. package/_verture/intl-5cbb940c.js +57 -0
  321. package/_verture/modalContext-92bb0e16.js +201 -0
  322. package/_verture/slicedToArray-76060636.js +43 -0
  323. package/_verture/sortable.esm-49896035.js +3791 -0
  324. package/_verture/style-inject.es-300983ab.js +28 -0
  325. package/_verture/toConsumableArray-81040c9e.js +19 -0
  326. package/_verture/tslib.es6-55ed4bd2.js +38 -0
  327. package/_verture/typeof-498dd2b1.js +11 -0
  328. package/_verture/unsupportedIterableToArray-cb478f24.js +16 -0
  329. package/_verture/useFormatMessage-703f8b20.js +20 -0
  330. package/_verture/useGlobalProps-1b846a65.js +11 -0
  331. package/_verture/usePopupContainer-87febeb9.js +68 -0
  332. package/_verture/util-7e1fb1e2.js +18 -0
  333. package/index.d.ts +144 -0
  334. package/index.js +180 -0
  335. package/package.json +1 -1
  336. package/umd/AutoBox.js +43 -0
  337. package/umd/AutoTips.js +15 -0
  338. package/umd/Breadcrumbs.js +42 -0
  339. package/umd/Button.js +43 -0
  340. package/umd/ButtonGroup.js +43 -0
  341. package/umd/Carousel.js +6 -0
  342. package/umd/Cascader.js +43 -0
  343. package/umd/Checkbox.js +42 -0
  344. package/umd/CheckboxGroup.js +42 -0
  345. package/umd/Collapse.js +43 -0
  346. package/umd/CollapseBox.js +1 -0
  347. package/umd/CollapseLayout.js +29 -0
  348. package/umd/ColorPicker.js +1 -0
  349. package/umd/ComboSelect.js +42 -0
  350. package/umd/Container.js +1 -0
  351. package/umd/DatePicker.js +42 -0
  352. package/umd/Desktop.js +42 -0
  353. package/umd/DragVerify.js +28 -0
  354. package/umd/Drawer.js +43 -0
  355. package/umd/Dropdown.js +15 -0
  356. package/umd/DynamicMultiBox.js +54 -0
  357. package/umd/Empty.js +15 -0
  358. package/umd/Form.js +42 -0
  359. package/umd/FormItem.js +42 -0
  360. package/umd/FunctionModal.js +42 -0
  361. package/umd/GlobalContext.js +1 -0
  362. package/umd/Help.js +42 -0
  363. package/umd/HelperText.js +1 -0
  364. package/umd/InputLang.js +42 -0
  365. package/umd/InputNumber.js +42 -0
  366. package/umd/Label.js +42 -0
  367. package/umd/Loading.js +29 -0
  368. package/umd/Menu.js +29 -0
  369. package/umd/Message.js +30 -0
  370. package/umd/Modal.js +42 -0
  371. package/umd/MultiBox.js +42 -0
  372. package/umd/Notification.js +43 -0
  373. package/umd/OperateBtn.js +42 -0
  374. package/umd/PageHeader.js +42 -0
  375. package/umd/Pagination.js +42 -0
  376. package/umd/ParauiProvider.js +15 -0
  377. package/umd/PasswordRules.js +29 -0
  378. package/umd/PopConfirm.js +42 -0
  379. package/umd/Popover.js +15 -0
  380. package/umd/Progress.js +35 -0
  381. package/umd/Querying.js +15 -0
  382. package/umd/Radio.js +42 -0
  383. package/umd/RadioGroup.js +42 -0
  384. package/umd/Search.js +42 -0
  385. package/umd/Select.js +42 -0
  386. package/umd/SelectInput.js +42 -0
  387. package/umd/Selector.js +42 -0
  388. package/umd/SelectorPicker.js +42 -0
  389. package/umd/SingleBox.js +42 -0
  390. package/umd/Slider.js +15 -0
  391. package/umd/Split.js +1 -0
  392. package/umd/Status.js +1 -0
  393. package/umd/Stepper.js +42 -0
  394. package/umd/Switch.js +42 -0
  395. package/umd/Table.js +42 -0
  396. package/umd/Tabs.js +42 -0
  397. package/umd/Tag.js +43 -0
  398. package/umd/TextEditor.js +205 -0
  399. package/umd/TextField.js +42 -0
  400. package/umd/TimePicker.js +42 -0
  401. package/umd/Timeline.js +1 -0
  402. package/umd/Title.js +1 -0
  403. package/umd/ToggleButton.js +43 -0
  404. package/umd/Tooltip.js +15 -0
  405. package/umd/Transfer.js +49 -0
  406. package/umd/Tree.js +42 -0
  407. package/umd/Upload.js +56 -0
@@ -0,0 +1,17 @@
1
+ declare const _default: {
2
+ zh: {
3
+ total: string;
4
+ linePerPage: string;
5
+ currentPage: string;
6
+ jumpTo: string;
7
+ page: string;
8
+ };
9
+ en: {
10
+ total: string;
11
+ linePerPage: string;
12
+ currentPage: string;
13
+ jumpTo: string;
14
+ page: string;
15
+ };
16
+ };
17
+ export default _default;
@@ -0,0 +1,8 @@
1
+ declare const _default: {
2
+ total: string;
3
+ linePerPage: string;
4
+ currentPage: string;
5
+ jumpTo: string;
6
+ page: string;
7
+ };
8
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ import { GlobalContextProps } from '@para-ui/core/GlobalContext';
3
+ import '../Styles/index.scss';
4
+ interface Props extends GlobalContextProps {
5
+ children?: ReactNode;
6
+ }
7
+ export declare const ParauiProvider: (props: Props) => JSX.Element;
8
+ export default ParauiProvider;
@@ -0,0 +1,52 @@
1
+ import { _ as _defineProperty } from '../_verture/defineProperty-62acccfc.js';
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import React__default from 'react';
4
+ import GlobalContext, { changeConfirmLocale } from '@para-ui/core/GlobalContext';
5
+ import { GetLanguage } from '@paraview/lib';
6
+ import { i as i18nIntl } from '../_verture/intl-5cbb940c.js';
7
+ import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
8
+ import '../_verture/typeof-498dd2b1.js';
9
+
10
+ var css_248z = "@charset \"UTF-8\";\n/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */\n/* Document\n ========================================================================== */\n/**\n * 1. Correct the line height in all browsers.\n * 2. Prevent adjustments of font size after orientation changes in iOS.\n */\nhtml {\n -webkit-text-size-adjust: 100%; /* 2 */\n}\n\n/* Sections\n ========================================================================== */\n/**\n * Remove the margin in all browsers.\n */\nbody {\n margin: 0;\n}\n\n/**\n * Render the `main` element consistently in IE.\n */\nmain {\n display: block;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Firefox, and Safari.\n */\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n ========================================================================== */\n/**\n * 1. Add the correct box sizing in Firefox.\n * 2. Show the overflow in Edge and IE.\n */\nhr {\n box-sizing: content-box; /* 1 */\n height: 0; /* 1 */\n overflow: visible; /* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\npre {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/* Text-level semantics\n ========================================================================== */\n/**\n * Remove the gray background on active links in IE 10.\n */\na {\n background-color: transparent;\n}\n\n/**\n * 1. Remove the bottom border in Chrome 57-\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.\n */\nabbr[title] {\n border-bottom: none; /* 1 */\n text-decoration: underline; /* 2 */\n text-decoration: underline dotted; /* 2 */\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\nb,\nstrong {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\ncode,\nkbd,\nsamp {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\nsmall {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` elements from affecting the line height in\n * all browsers.\n */\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/* Embedded content\n ========================================================================== */\n/**\n * Remove the border on images inside links in IE 10.\n */\nimg {\n border-style: none;\n}\n\n/* Forms\n ========================================================================== */\n/**\n * 1. Change the font styles in all browsers.\n * 2. Remove the margin in Firefox and Safari.\n */\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n line-height: 1.15; /* 1 */\n margin: 0; /* 2 */\n}\n\n/**\n * Show the overflow in IE.\n * 1. Show the overflow in Edge.\n */\nbutton,\ninput { /* 1 */\n overflow: visible;\n}\n\n/**\n * Remove the inheritance of text transform in Edge, Firefox, and IE.\n * 1. Remove the inheritance of text transform in Firefox.\n */\nbutton,\nselect { /* 1 */\n text-transform: none;\n}\n\n/**\n * Correct the inability to style clickable types in iOS and Safari.\n */\nbutton,\n[type=button],\n[type=reset],\n[type=submit] {\n -webkit-appearance: button;\n}\n\n/**\n * Remove the inner border and padding in Firefox.\n */\nbutton::-moz-focus-inner,\n[type=button]::-moz-focus-inner,\n[type=reset]::-moz-focus-inner,\n[type=submit]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n\n/**\n * Restore the focus styles unset by the previous rule.\n */\nbutton:-moz-focusring,\n[type=button]:-moz-focusring,\n[type=reset]:-moz-focusring,\n[type=submit]:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n\n/**\n * Correct the padding in Firefox.\n */\nfieldset {\n padding: 0.35em 0.75em 0.625em;\n}\n\n/**\n * 1. Correct the text wrapping in Edge and IE.\n * 2. Correct the color inheritance from `fieldset` elements in IE.\n * 3. Remove the padding so developers are not caught out when they zero out\n * `fieldset` elements in all browsers.\n */\nlegend {\n box-sizing: border-box; /* 1 */\n color: inherit; /* 2 */\n display: table; /* 1 */\n max-width: 100%; /* 1 */\n padding: 0; /* 3 */\n white-space: normal; /* 1 */\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Firefox, and Opera.\n */\nprogress {\n vertical-align: baseline;\n}\n\n/**\n * Remove the default vertical scrollbar in IE 10+.\n */\ntextarea {\n overflow: auto;\n}\n\n/**\n * 1. Add the correct box sizing in IE 10.\n * 2. Remove the padding in IE 10.\n */\n[type=checkbox],\n[type=radio] {\n box-sizing: border-box; /* 1 */\n padding: 0; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Chrome.\n */\n[type=number]::-webkit-inner-spin-button,\n[type=number]::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * 1. Correct the odd appearance in Chrome and Safari.\n * 2. Correct the outline style in Safari.\n */\n[type=search] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Remove the inner padding in Chrome and Safari on macOS.\n */\n[type=search]::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style clickable types in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n ========================================================================== */\n/*\n * Add the correct display in Edge, IE 10+, and Firefox.\n */\ndetails {\n display: block;\n}\n\n/*\n * Add the correct display in all browsers.\n */\nsummary {\n display: list-item;\n}\n\n/* Misc\n ========================================================================== */\n/**\n * Add the correct display in IE 10+.\n */\ntemplate {\n display: none;\n}\n\n/**\n * Add the correct display in IE 10.\n */\n[hidden] {\n display: none;\n}\n\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n background-color: rgba(171, 176, 185, 0.12);\n}\n\n::-webkit-scrollbar-track {\n border-radius: 6px;\n}\n\n::-webkit-scrollbar-thumb {\n background: rgba(46, 55, 67, 0.4);\n border-radius: 6px;\n}\n\n::-webkit-scrollbar-corner {\n background: rgb(236, 238, 240);\n}\n\n::-webkit-scrollbar-thumb:hover {\n background: rgba(171, 176, 185, 0.4);\n}\n\n::-webkit-scrollbar-thumb:active {\n background: rgba(171, 176, 185, 0.4);\n}\n\n::-webkit-scrollbar-thumb:window-inactive {\n background-color: rgba(46, 55, 67, 0.4);\n}\n\n.paraui-v3-scrollbar-small *::-webkit-scrollbar, .paraui-v3-scrollbar-small::-webkit-scrollbar {\n width: 4px;\n height: 4px;\n}\n.paraui-v3-scrollbar-small *::-webkit-scrollbar-track, .paraui-v3-scrollbar-small::-webkit-scrollbar-track {\n border-radius: 4px;\n}\n.paraui-v3-scrollbar-small *::-webkit-scrollbar-thumb, .paraui-v3-scrollbar-small::-webkit-scrollbar-thumb {\n border-radius: 4px;\n}\n\n.paraui-v3-scrollbar-small-deep * ::-webkit-scrollbar, .paraui-v3-scrollbar-small-deep ::-webkit-scrollbar {\n width: 4px;\n height: 4px;\n background-color: rgba(171, 176, 185, 0.2);\n}\n.paraui-v3-scrollbar-small-deep * ::-webkit-scrollbar-track, .paraui-v3-scrollbar-small-deep ::-webkit-scrollbar-track {\n border-radius: 4px;\n}\n.paraui-v3-scrollbar-small-deep * ::-webkit-scrollbar-thumb, .paraui-v3-scrollbar-small-deep ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background: rgba(248, 249, 251, 0.8);\n}\n.paraui-v3-scrollbar-small-deep * ::-webkit-scrollbar-corner, .paraui-v3-scrollbar-small-deep ::-webkit-scrollbar-corner {\n background: rgb(79, 89, 105);\n}\n.paraui-v3-scrollbar-small-deep * ::-webkit-scrollbar-thumb:hover, .paraui-v3-scrollbar-small-deep ::-webkit-scrollbar-thumb:hover {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-scrollbar-small-deep * ::-webkit-scrollbar-thumb:active, .paraui-v3-scrollbar-small-deep ::-webkit-scrollbar-thumb:active {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-scrollbar-small-deep * ::-webkit-scrollbar-thumb:window-inactive, .paraui-v3-scrollbar-small-deep ::-webkit-scrollbar-thumb:window-inactive {\n background-color: rgba(248, 249, 251, 0.8);\n}\n\n.paraui-v3-scrollbar-medium *::-webkit-scrollbar, .paraui-v3-scrollbar-medium::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n}\n.paraui-v3-scrollbar-medium *::-webkit-scrollbar-track, .paraui-v3-scrollbar-medium::-webkit-scrollbar-track {\n border-radius: 6px;\n}\n.paraui-v3-scrollbar-medium *::-webkit-scrollbar-thumb, .paraui-v3-scrollbar-medium::-webkit-scrollbar-thumb {\n border-radius: 6px;\n}\n\n.paraui-v3-scrollbar-medium-deep * ::-webkit-scrollbar, .paraui-v3-scrollbar-medium-deep ::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n background-color: rgba(171, 176, 185, 0.2);\n}\n.paraui-v3-scrollbar-medium-deep * ::-webkit-scrollbar-track, .paraui-v3-scrollbar-medium-deep ::-webkit-scrollbar-track {\n border-radius: 6px;\n}\n.paraui-v3-scrollbar-medium-deep * ::-webkit-scrollbar-thumb, .paraui-v3-scrollbar-medium-deep ::-webkit-scrollbar-thumb {\n border-radius: 6px;\n background: rgba(248, 249, 251, 0.8);\n}\n.paraui-v3-scrollbar-medium-deep * ::-webkit-scrollbar-corner, .paraui-v3-scrollbar-medium-deep ::-webkit-scrollbar-corner {\n background: rgb(79, 89, 105);\n}\n.paraui-v3-scrollbar-medium-deep * ::-webkit-scrollbar-thumb:hover, .paraui-v3-scrollbar-medium-deep ::-webkit-scrollbar-thumb:hover {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-scrollbar-medium-deep * ::-webkit-scrollbar-thumb:active, .paraui-v3-scrollbar-medium-deep ::-webkit-scrollbar-thumb:active {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-scrollbar-medium-deep * ::-webkit-scrollbar-thumb:window-inactive, .paraui-v3-scrollbar-medium-deep ::-webkit-scrollbar-thumb:window-inactive {\n background-color: rgba(248, 249, 251, 0.8);\n}\n\n.paraui-v3-scrollbar-large *::-webkit-scrollbar, .paraui-v3-scrollbar-large::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n}\n.paraui-v3-scrollbar-large *::-webkit-scrollbar-track, .paraui-v3-scrollbar-large::-webkit-scrollbar-track {\n border-radius: 8px;\n}\n.paraui-v3-scrollbar-large *::-webkit-scrollbar-thumb, .paraui-v3-scrollbar-large::-webkit-scrollbar-thumb {\n border-radius: 8px;\n}\n\n.paraui-v3-scrollbar-large-deep * ::-webkit-scrollbar, .paraui-v3-scrollbar-large-deep ::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n background-color: rgba(171, 176, 185, 0.2);\n}\n.paraui-v3-scrollbar-large-deep * ::-webkit-scrollbar-track, .paraui-v3-scrollbar-large-deep ::-webkit-scrollbar-track {\n border-radius: 8px;\n}\n.paraui-v3-scrollbar-large-deep * ::-webkit-scrollbar-thumb, .paraui-v3-scrollbar-large-deep ::-webkit-scrollbar-thumb {\n border-radius: 8px;\n background: rgba(248, 249, 251, 0.8);\n}\n.paraui-v3-scrollbar-large-deep * ::-webkit-scrollbar-corner, .paraui-v3-scrollbar-large-deep ::-webkit-scrollbar-corner {\n background: rgb(79, 89, 105);\n}\n.paraui-v3-scrollbar-large-deep * ::-webkit-scrollbar-thumb:hover, .paraui-v3-scrollbar-large-deep ::-webkit-scrollbar-thumb:hover {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-scrollbar-large-deep * ::-webkit-scrollbar-thumb:active, .paraui-v3-scrollbar-large-deep ::-webkit-scrollbar-thumb:active {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-scrollbar-large-deep * ::-webkit-scrollbar-thumb:window-inactive, .paraui-v3-scrollbar-large-deep ::-webkit-scrollbar-thumb:window-inactive {\n background-color: rgba(248, 249, 251, 0.8);\n}\n\n.paraui-v3-form .paraui-v3-helper-text {\n min-height: 20px;\n}\n\n* {\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n outline: none;\n -webkit-tap-highlight-color: transparent;\n}\n\nhtml, body {\n width: 100%;\n height: 100%;\n overflow: hidden;\n}\n\nol, ul {\n list-style: none;\n}\n\na,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\ninput,\nselect,\nbutton,\ntextarea {\n outline: none;\n}";
11
+ styleInject(css_248z);
12
+
13
+ var ParauiProvider = function ParauiProvider(props) {
14
+ /**
15
+ * 国际化
16
+ * @param defI18nData 默认组件语言
17
+ * @param comName 组件名称
18
+ * @param id 键值
19
+ * */
20
+ var intlFormat = function intlFormat(comName, defI18nData) {
21
+ return function (ops, params) {
22
+ var lang = props.language || GetLanguage();
23
+ var locale = props.locale || {};
24
+ var i18nData = locale[lang] || {};
25
+ i18nData = _defineProperty({}, lang, i18nData[comName] || {});
26
+ return i18nIntl({
27
+ ops: ops,
28
+ i18nData: i18nData,
29
+ lang: lang,
30
+ params: params,
31
+ defI18nData: defI18nData
32
+ });
33
+ };
34
+ };
35
+ React__default.useEffect(function () {
36
+ // Confirm 国际化
37
+ var lang = props.language || GetLanguage();
38
+ var locale = props.locale || {};
39
+ var i18nData = locale[lang] || {};
40
+ changeConfirmLocale === null || changeConfirmLocale === void 0 ? void 0 : changeConfirmLocale(i18nData);
41
+ }, [props.language, props.locale]);
42
+ return jsx(GlobalContext.Provider, Object.assign({
43
+ value: Object.assign(Object.assign({}, props), {
44
+ language: props.language || GetLanguage(),
45
+ intlFormat: intlFormat
46
+ })
47
+ }, {
48
+ children: props.children
49
+ }));
50
+ };
51
+
52
+ export { ParauiProvider, ParauiProvider as default };
@@ -0,0 +1,55 @@
1
+ /**
2
+ * @author linhd
3
+ * @date 2022/11/29 10:33 AM
4
+ * @description 密码规则
5
+ */
6
+ import React, { FunctionComponent, ReactNode } from 'react';
7
+ import './index.scss';
8
+ export interface PasswordRulesConfigItemProps {
9
+ /** 文案 */
10
+ label?: ReactNode;
11
+ /** 正则 正则表达式 */
12
+ reg?: any;
13
+ /** 自定义校验方法
14
+ * item: 当前项配置
15
+ * value: 校验值
16
+ * 返回值:
17
+ * boolean: 表示是否校验通过,true通过
18
+ * ReactNode: 校验失败,当前显示的文本
19
+ */
20
+ validator?: (item: PasswordRulesConfigItemProps, value: string) => boolean | ReactNode;
21
+ /** 校验结果 */
22
+ result?: boolean | ReactNode;
23
+ [name: string]: any;
24
+ }
25
+ export interface PasswordRulesConfigProps {
26
+ /** 标题 */
27
+ title?: ReactNode;
28
+ /** 渲染类型 图标 / 序列,默认图标 */
29
+ type?: 'icon' | 'order';
30
+ /** 规则列表 */
31
+ list?: PasswordRulesConfigItemProps[];
32
+ [name: string]: any;
33
+ }
34
+ export interface PasswordRulesProps {
35
+ /** 样式class */
36
+ className?: string;
37
+ /** style */
38
+ style?: React.CSSProperties;
39
+ /** 是否带有边框阴影 */
40
+ boxShadow?: boolean;
41
+ /** 需要校验的值 */
42
+ value?: string;
43
+ /** 配置 */
44
+ config?: PasswordRulesConfigProps | PasswordRulesConfigProps[];
45
+ /**
46
+ * 校验结果全部回调
47
+ * true: 全部通过
48
+ * false: 全部未通过
49
+ * undefined: 未全部通过
50
+ * */
51
+ onCheckAll?: (bol: boolean | undefined) => void;
52
+ [name: string]: any;
53
+ }
54
+ declare const PasswordRules: FunctionComponent<PasswordRulesProps>;
55
+ export default PasswordRules;
@@ -0,0 +1,144 @@
1
+ import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.js';
2
+ import { jsx, jsxs } from 'react/jsx-runtime';
3
+ import { useState, useEffect } from 'react';
4
+ import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
5
+ import CheckCircle from '@para-ui/icons/CheckCircle';
6
+ import CompleteIcon from '@para-ui/icons/CheckCircleF';
7
+ import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
8
+ import '../_verture/unsupportedIterableToArray-cb478f24.js';
9
+
10
+ var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2021/11/1 20:28\n* @description 文字隐藏...\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-password-rules {\n padding: 14px 16px;\n line-height: 1.43;\n}\n.paraui-v3-password-rules > .password-rules-item:first-child > .password-rules-item-title {\n margin-top: 0px;\n}\n.paraui-v3-password-rules > .password-rules-item > .password-rules-item-title {\n font-size: 14px;\n color: rgb(46, 55, 67);\n font-weight: 700;\n margin-bottom: 6px;\n margin-top: 10px;\n}\n.paraui-v3-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail {\n display: flex;\n margin-bottom: 6px;\n}\n.paraui-v3-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail:last-child {\n margin-bottom: 0;\n}\n.paraui-v3-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail > .item-flag {\n min-width: 24px;\n}\n.paraui-v3-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail > .item-label {\n flex: 1;\n font-size: 14px;\n color: rgb(46, 55, 67);\n}\n.paraui-v3-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail.rules-item-detail-icon > .item-flag {\n margin-top: 0px;\n line-height: 1;\n}\n.paraui-v3-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail.rules-item-detail-icon > .item-flag svg {\n font-size: 16px;\n color: rgba(46, 55, 67, 0.7);\n margin-top: 2px;\n}\n.paraui-v3-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail.rules-item-detail-order > .item-flag {\n margin-top: -1px;\n}\n.paraui-v3-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail.rules-item-detail-success.rules-item-detail-icon > .item-flag svg {\n color: rgb(83, 195, 27);\n}\n.paraui-v3-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail.rules-item-detail-error.rules-item-detail-order > .item-flag {\n color: rgb(235, 96, 84);\n}\n.paraui-v3-password-rules > .password-rules-item > .password-rules-item-content > .rules-item-detail.rules-item-detail-error.rules-item-detail-order > .item-label {\n color: rgb(235, 96, 84);\n}\n.paraui-v3-password-rules.paraui-v3-password-rules-box-shadow {\n box-shadow: 0px 2px 8px 0px rgba(171, 176, 185, 0.4);\n border-radius: 4px;\n}";
11
+ styleInject(css_248z);
12
+
13
+ var PasswordRules = function PasswordRules(props) {
14
+ var className = props.className,
15
+ style = props.style,
16
+ _props$boxShadow = props.boxShadow,
17
+ boxShadow = _props$boxShadow === void 0 ? false : _props$boxShadow,
18
+ value = props.value,
19
+ config = props.config,
20
+ onCheckAll = props.onCheckAll;
21
+ var _useState = useState([]),
22
+ _useState2 = _slicedToArray(_useState, 2),
23
+ configCom = _useState2[0],
24
+ setConfigCom = _useState2[1];
25
+ useEffect(function () {
26
+ var bol = undefined;
27
+ var obj = {};
28
+ var configHand = handConfig();
29
+ configHand.forEach(function (item) {
30
+ var list = item.list || [];
31
+ list.forEach(function (listItem) {
32
+ // 判断校验
33
+ var result;
34
+ if (value !== undefined) {
35
+ // 正则
36
+ if (listItem.reg) {
37
+ try {
38
+ result = listItem.reg.test(value);
39
+ } catch (e) {
40
+ console.log(e);
41
+ }
42
+ }
43
+ if (listItem.validator) {
44
+ result = listItem.validator(listItem, value);
45
+ }
46
+ }
47
+ listItem.result = result;
48
+ if (result !== undefined) {
49
+ obj[listItem.result === true ? 'success' : 'error'] = true;
50
+ }
51
+ });
52
+ });
53
+ setConfigCom(configHand);
54
+ if (obj.error && !obj.success) {
55
+ bol = false;
56
+ }
57
+ if (obj.success && !obj.error) {
58
+ bol = true;
59
+ }
60
+ onCheckAll && onCheckAll(bol);
61
+ }, [value, config, onCheckAll]);
62
+ var handConfig = function handConfig() {
63
+ if (!config) return [];
64
+ return config instanceof Array ? config : [config];
65
+ };
66
+ /** 处理每一项 */
67
+ var handContentItem = function handContentItem(item) {
68
+ var list = item.list || [];
69
+ var type = item.type || 'icon';
70
+ var handRuleItem = function handRuleItem(listItem, inx) {
71
+ // 判断校验
72
+ var result = listItem.result;
73
+ // 处理标志
74
+ var handFlag = function handFlag() {
75
+ if (type === 'order') {
76
+ return inx + 1 + '、';
77
+ }
78
+ if (result === true) return jsx(CompleteIcon, {}); // 成功
79
+ return jsx(CheckCircle, {});
80
+ };
81
+ // 处理内容
82
+ var handLabel = function handLabel() {
83
+ if (typeof result !== "boolean" && result) return result;
84
+ return listItem.label;
85
+ };
86
+ // 处理样式
87
+ var handClassRulesItem = function handClassRulesItem() {
88
+ var str = 'rules-item-detail';
89
+ str += ' rules-item-detail-' + type;
90
+ if (typeof result === "boolean" && result) {
91
+ str += ' rules-item-detail-success';
92
+ } else {
93
+ if (result !== undefined) str += ' rules-item-detail-error';
94
+ }
95
+ return str;
96
+ };
97
+ return jsxs("div", Object.assign({
98
+ className: handClassRulesItem()
99
+ }, {
100
+ children: [jsx("span", Object.assign({
101
+ className: "item-flag"
102
+ }, {
103
+ children: handFlag()
104
+ })), jsx("span", Object.assign({
105
+ className: "item-label"
106
+ }, {
107
+ children: handLabel()
108
+ }))]
109
+ }), inx);
110
+ };
111
+ return jsx("div", Object.assign({
112
+ className: "password-rules-item-content"
113
+ }, {
114
+ children: list.map(function (listItem, index) {
115
+ return handRuleItem(listItem, index);
116
+ })
117
+ }));
118
+ };
119
+ /** 处理className */
120
+ var handClass = function handClass() {
121
+ var str = $prefixCls + '-password-rules';
122
+ if (className) str += ' ' + className;
123
+ if (boxShadow) str += ' ' + $prefixCls + '-password-rules-box-shadow';
124
+ return str;
125
+ };
126
+ return jsx("div", Object.assign({
127
+ className: handClass(),
128
+ style: style
129
+ }, {
130
+ children: configCom.map(function (item, index) {
131
+ return jsxs("div", Object.assign({
132
+ className: 'password-rules-item'
133
+ }, {
134
+ children: [jsx("div", Object.assign({
135
+ className: "password-rules-item-title"
136
+ }, {
137
+ children: item.title
138
+ })), handContentItem(item)]
139
+ }), index);
140
+ })
141
+ }));
142
+ };
143
+
144
+ export { PasswordRules as default };
@@ -0,0 +1,61 @@
1
+ /**
2
+ * @author Hanz
3
+ * @date 2021/8/9 下午3:45
4
+ * @description popConfirm
5
+ */
6
+ import React, { FunctionComponent, ReactNode } from 'react';
7
+ import { ButtonProps } from "../Button";
8
+ import { TooltipProps } from "../Tooltip";
9
+ import './index.scss';
10
+ type ConfirmType = "success" | "info" | "error" | "warning";
11
+ export interface PopConfirmProps {
12
+ /**触发方式*/
13
+ trigger?: 'click' | 'hover';
14
+ /** 是否显示弹框,controllable为true时可用 */
15
+ open?: boolean;
16
+ /** 是否可控组件 */
17
+ controllable?: boolean;
18
+ /**图标类型*/
19
+ type?: ConfirmType;
20
+ /**标题*/
21
+ title?: ReactNode;
22
+ /**内容*/
23
+ content?: ReactNode;
24
+ /**自定义图标*/
25
+ icon?: ReactNode;
26
+ /**ok 文本*/
27
+ okText?: string;
28
+ /**cancel 文本*/
29
+ cancelText?: string;
30
+ /** 确定回调*/
31
+ onOk?: Function;
32
+ /** 取消回调*/
33
+ onCancel?: Function;
34
+ /** 确定按钮属性*/
35
+ okButtonProps?: ButtonProps;
36
+ /** 取消按钮属性*/
37
+ cancelButtonProps?: ButtonProps;
38
+ /** 位置*/
39
+ placement?: TooltipProps['placement'];
40
+ /** cls*/
41
+ className?: string;
42
+ /** overlayClassName */
43
+ overlayClassName?: string;
44
+ /** 自定义样式*/
45
+ style?: React.CSSProperties;
46
+ /** 子节点*/
47
+ children?: ReactNode;
48
+ /**显示取消按钮*/
49
+ showCancel?: boolean;
50
+ /** 支持冒泡*/
51
+ bubble?: boolean;
52
+ /**底部按钮*/
53
+ actions?: ReactNode;
54
+ /** 关闭回调*/
55
+ onClose?: () => void;
56
+ /** 浮层渲染容器,默认body */
57
+ getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
58
+ [name: string]: any;
59
+ }
60
+ export declare const PopConfirm: FunctionComponent<PopConfirmProps>;
61
+ export default PopConfirm;
@@ -0,0 +1,194 @@
1
+ import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.js';
2
+ import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
3
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
4
+ import React__default, { useState, useEffect } from 'react';
5
+ import CompleteIcon from '@para-ui/icons/CheckCircleF';
6
+ import InfoOutlined from '@para-ui/icons/WarningCircle';
7
+ import CloseCircleFilled from '@para-ui/icons/CloseCircleF';
8
+ import WarningCircleF from '@para-ui/icons/WarningCircleF';
9
+ import { Button } from '../Button/index.js';
10
+ import { Tooltip } from '../Tooltip/index.js';
11
+ import clsx from 'clsx';
12
+ import { u as useFormatMessage } from '../_verture/useFormatMessage-703f8b20.js';
13
+ import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
14
+ import { u as usePopupContainer } from '../_verture/usePopupContainer-87febeb9.js';
15
+ import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
16
+ import '../_verture/unsupportedIterableToArray-cb478f24.js';
17
+ import '../_verture/typeof-498dd2b1.js';
18
+ import '@para-ui/icons/LoadingF';
19
+ import '@para-ui/icons/Forbid';
20
+ import '@para-ui/icons/Down';
21
+ import '../_verture/index-77f9e0fb.js';
22
+ import 'rc-dropdown';
23
+ import 'dayjs';
24
+ import '@paraview/lib';
25
+ import 'rc-tooltip';
26
+ import 'rc-tooltip/lib/placements';
27
+ import '@para-ui/core/GlobalContext';
28
+
29
+ var en = {
30
+ cancel: 'Cancel',
31
+ ok: 'Ok'
32
+ };
33
+
34
+ var zh = {
35
+ cancel: '取消',
36
+ ok: '确定'
37
+ };
38
+
39
+ var localeJson = {
40
+ zh: zh,
41
+ en: en
42
+ };
43
+
44
+ var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/2 下午1:44\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-popconfirm.paraui-v3-tooltip {\n position: absolute;\n max-width: 600px;\n padding: 0;\n font-size: 14px;\n color: initial;\n background-color: rgb(255, 255, 255);\n box-shadow: 0px 2px 8px 0px rgba(171, 176, 185, 0.4);\n border-radius: 4px;\n}\n.paraui-v3-popconfirm.paraui-v3-tooltip .component-tooltip-inner {\n min-width: auto;\n min-height: auto;\n padding: 0;\n color: initial;\n background-color: transparent;\n}\n.paraui-v3-popconfirm .popconfirm-wrapper {\n min-width: 350px;\n padding: 24px;\n}\n.paraui-v3-popconfirm .popconfirm-wrapper .popconfirm-message {\n position: relative;\n}\n.paraui-v3-popconfirm .popconfirm-wrapper .popconfirm-message-icon {\n position: absolute;\n top: 2px;\n color: rgb(255, 161, 80);\n line-height: 0;\n font-size: 16px;\n}\n.paraui-v3-popconfirm .popconfirm-wrapper .popconfirm-message-icon svg {\n color: inherit;\n font-size: inherit;\n}\n.paraui-v3-popconfirm .popconfirm-wrapper .popconfirm-message-body {\n padding-left: 24px;\n line-height: 20px;\n font-size: 14px;\n color: rgb(46, 55, 67);\n}\n.paraui-v3-popconfirm .popconfirm-wrapper .popconfirm-message-title {\n font-weight: 700;\n}\n.paraui-v3-popconfirm .popconfirm-wrapper .popconfirm-message-content {\n font-weight: 400;\n margin-top: 13px;\n}\n.paraui-v3-popconfirm .popconfirm-wrapper .popconfirm-btns {\n margin-top: 32px;\n text-align: right;\n}\n.paraui-v3-popconfirm .popconfirm-wrapper .popconfirm-btns > button + button {\n margin-left: 16px;\n}";
45
+ styleInject(css_248z);
46
+
47
+ //图标
48
+ var iconMapping = {
49
+ "success": jsx(CompleteIcon, {}),
50
+ "warning": jsx(WarningCircleF, {}),
51
+ "error": jsx(CloseCircleFilled, {}),
52
+ "info": jsx(InfoOutlined, {})
53
+ };
54
+ //popConfirm
55
+ var PopConfirm = function PopConfirm(props) {
56
+ var _props$trigger = props.trigger,
57
+ trigger = _props$trigger === void 0 ? 'click' : _props$trigger,
58
+ _props$type = props.type,
59
+ type = _props$type === void 0 ? 'warning' : _props$type,
60
+ title = props.title,
61
+ content = props.content,
62
+ icon = props.icon,
63
+ okText = props.okText,
64
+ cancelText = props.cancelText,
65
+ onOk = props.onOk,
66
+ onCancel = props.onCancel,
67
+ okButtonProps = props.okButtonProps,
68
+ cancelButtonProps = props.cancelButtonProps,
69
+ _props$placement = props.placement,
70
+ placement = _props$placement === void 0 ? 'bottom' : _props$placement,
71
+ className = props.className,
72
+ overlayClassName = props.overlayClassName,
73
+ style = props.style,
74
+ children = props.children,
75
+ _props$open = props.open,
76
+ open = _props$open === void 0 ? false : _props$open,
77
+ _props$controllable = props.controllable,
78
+ controllable = _props$controllable === void 0 ? false : _props$controllable,
79
+ _props$showCancel = props.showCancel,
80
+ showCancel = _props$showCancel === void 0 ? true : _props$showCancel,
81
+ _props$bubble = props.bubble,
82
+ bubble = _props$bubble === void 0 ? true : _props$bubble,
83
+ actions = props.actions,
84
+ onClose = props.onClose,
85
+ customizeContainer = props.getPopupContainer,
86
+ restProps = __rest(props, ["trigger", "type", "title", "content", "icon", "okText", "cancelText", "onOk", "onCancel", "okButtonProps", "cancelButtonProps", "placement", "className", "overlayClassName", "style", "children", "open", "controllable", "showCancel", "bubble", "actions", "onClose", "getPopupContainer"]);
87
+ var intl = useFormatMessage('PopConfirm', localeJson);
88
+ var wrapRef = React__default.useRef();
89
+ var getPopupContainer = usePopupContainer(wrapRef, customizeContainer);
90
+ //打开
91
+ var _useState = useState(false),
92
+ _useState2 = _slicedToArray(_useState, 2),
93
+ inOpen = _useState2[0],
94
+ setInOpen = _useState2[1];
95
+ //取消
96
+ var handleCancel = function handleCancel() {
97
+ onCancel === null || onCancel === void 0 ? void 0 : onCancel();
98
+ handleClose();
99
+ };
100
+ //确认
101
+ var handleOk = function handleOk() {
102
+ onOk === null || onOk === void 0 ? void 0 : onOk();
103
+ handleClose();
104
+ };
105
+ //关闭
106
+ var handleClose = function handleClose() {
107
+ if (!controllable) {
108
+ setInOpen(false);
109
+ onClose === null || onClose === void 0 ? void 0 : onClose();
110
+ }
111
+ };
112
+ //tooltip vis
113
+ var onVisibleChange = function onVisibleChange(vis) {
114
+ if (!controllable) {
115
+ setInOpen(vis);
116
+ if (!vis) onClose === null || onClose === void 0 ? void 0 : onClose();
117
+ } else {
118
+ if (open) onClose === null || onClose === void 0 ? void 0 : onClose();
119
+ }
120
+ };
121
+ useEffect(function () {
122
+ if (controllable) setInOpen(open);
123
+ }, [open]);
124
+ //渲染内容
125
+ var renderOverlay = function renderOverlay() {
126
+ var btns = jsxs(Fragment, {
127
+ children: [showCancel && jsx(Button, Object.assign({
128
+ onClick: handleCancel,
129
+ variant: 'outlined',
130
+ size: 'small'
131
+ }, cancelButtonProps, {
132
+ children: cancelText !== null && cancelText !== void 0 ? cancelText : intl({
133
+ id: 'cancel'
134
+ })
135
+ })), jsx(Button, Object.assign({
136
+ onClick: handleOk,
137
+ variant: 'contained',
138
+ size: 'small'
139
+ }, okButtonProps, {
140
+ children: okText !== null && okText !== void 0 ? okText : intl({
141
+ id: 'ok'
142
+ })
143
+ }))]
144
+ });
145
+ return jsxs("div", Object.assign({
146
+ className: clsx('popconfirm-wrapper'),
147
+ style: style,
148
+ onClick: function onClick(evt) {
149
+ if (!bubble) evt.stopPropagation();
150
+ }
151
+ }, {
152
+ children: [jsxs("div", Object.assign({
153
+ className: 'popconfirm-message'
154
+ }, {
155
+ children: [jsx("span", Object.assign({
156
+ className: 'popconfirm-message-icon'
157
+ }, {
158
+ children: icon || iconMapping[type]
159
+ })), jsxs("div", Object.assign({
160
+ className: 'popconfirm-message-body'
161
+ }, {
162
+ children: [title && jsx("div", Object.assign({
163
+ className: 'popconfirm-message-title'
164
+ }, {
165
+ children: title
166
+ })), jsx("div", Object.assign({
167
+ className: 'popconfirm-message-content'
168
+ }, {
169
+ children: content
170
+ }))]
171
+ }))]
172
+ })), jsx("div", Object.assign({
173
+ className: 'popconfirm-btns'
174
+ }, {
175
+ children: actions !== null && actions !== void 0 ? actions : btns
176
+ }))]
177
+ }));
178
+ };
179
+ return jsx(Tooltip, Object.assign({}, restProps, {
180
+ ref: wrapRef,
181
+ trigger: trigger,
182
+ open: inOpen,
183
+ arrow: false,
184
+ placement: placement,
185
+ title: renderOverlay(),
186
+ onVisibleChange: onVisibleChange,
187
+ overlayClassName: clsx("".concat($prefixCls, "-popconfirm"), overlayClassName, className),
188
+ getPopupContainer: getPopupContainer
189
+ }, {
190
+ children: children
191
+ }));
192
+ };
193
+
194
+ export { PopConfirm, PopConfirm as default };
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ cancel: string;
3
+ ok: string;
4
+ };
5
+ export default _default;
@@ -0,0 +1,11 @@
1
+ declare const _default: {
2
+ zh: {
3
+ cancel: string;
4
+ ok: string;
5
+ };
6
+ en: {
7
+ cancel: string;
8
+ ok: string;
9
+ };
10
+ };
11
+ export default _default;
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ cancel: string;
3
+ ok: string;
4
+ };
5
+ export default _default;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @author Hanz
3
+ * @date 2022/6/7 上午10:54
4
+ * @description popover
5
+ */
6
+ import React, { FC } from 'react';
7
+ import { TooltipProps } from '../Tooltip/interface';
8
+ import './index.scss';
9
+ export interface PopoverProps extends TooltipProps {
10
+ /** 标题 */
11
+ title?: React.ReactNode;
12
+ /** 内容 */
13
+ content?: React.ReactNode;
14
+ }
15
+ export declare const Popover: FC<PopoverProps>;
16
+ export default Popover;