@para-ui/core 4.0.0-beta → 4.0.0-rc.1

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 (270) hide show
  1. package/AutoBox/index.d.ts +1 -1
  2. package/AutoBox/index.js +12 -12
  3. package/AutoTips/autoTipsMultiline/index.d.ts +1 -1
  4. package/AutoTips/index.d.ts +2 -2
  5. package/AutoTips/index.js +17 -17
  6. package/Badge/index.d.ts +23 -0
  7. package/Badge/index.js +54 -0
  8. package/Breadcrumbs/index.js +8 -8
  9. package/Button/SplitButton.d.ts +1 -1
  10. package/Button/index.d.ts +1 -1
  11. package/Button/index.js +4 -4
  12. package/Carousel/index.d.ts +6 -6
  13. package/Carousel/index.js +5 -5
  14. package/Cascader/Cascader.d.ts +10 -10
  15. package/Cascader/OptionList/Column.d.ts +3 -3
  16. package/Cascader/OptionList/index.d.ts +2 -2
  17. package/Cascader/index.d.ts +1 -1
  18. package/Cascader/index.js +5 -3
  19. package/Cascader/lang/en_US.d.ts +5 -0
  20. package/Cascader/lang/index.d.ts +11 -0
  21. package/Cascader/lang/zh_CN.d.ts +5 -0
  22. package/Cascader/utils/treeUtil.d.ts +1 -1
  23. package/Checkbox/index.d.ts +1 -1
  24. package/Checkbox/index.js +5 -5
  25. package/CheckboxGroup/index.d.ts +2 -2
  26. package/CheckboxGroup/index.js +3 -3
  27. package/Collapse/index.js +4 -4
  28. package/CollapseBox/index.js +12 -20
  29. package/CollapseLayout/index.js +20 -20
  30. package/ColorPicker/index.js +2 -2
  31. package/ComboSelect/index.js +53 -63
  32. package/ComboSelect/interface.d.ts +3 -3
  33. package/ComboSelect/utils.d.ts +5 -0
  34. package/Container/index.d.ts +3 -3
  35. package/Container/index.js +56 -56
  36. package/CopyText/index.d.ts +2 -2
  37. package/CopyText/index.js +2 -2
  38. package/DatePicker/generatePicker/index.d.ts +22 -22
  39. package/DatePicker/index.js +10 -8
  40. package/DatePicker/util.d.ts +1 -1
  41. package/Desktop/index.d.ts +1 -1
  42. package/Desktop/index.js +19 -14
  43. package/DragVerify/index.d.ts +1 -1
  44. package/DragVerify/index.js +15 -15
  45. package/Drawer/index.d.ts +2 -2
  46. package/Drawer/index.js +118 -17
  47. package/Drawer/interface.d.ts +10 -2
  48. package/Drawer/util.d.ts +6 -0
  49. package/Dropdown/index.d.ts +1 -1
  50. package/DynamicMultiBox/formItem.d.ts +1 -1
  51. package/DynamicMultiBox/index.d.ts +7 -2
  52. package/DynamicMultiBox/index.js +42 -39
  53. package/DynamicMultiBox/interface.d.ts +8 -8
  54. package/DynamicMultiBox/rowForm.d.ts +3 -1
  55. package/Empty/index.d.ts +1 -1
  56. package/Empty/index.js +2 -2
  57. package/Form/index.d.ts +12 -13
  58. package/Form/index.js +14 -12
  59. package/FormItem/compoments/defaultCompoments/index.d.ts +4 -4
  60. package/FormItem/compoments/formCheckboxGroup/index.d.ts +1 -1
  61. package/FormItem/compoments/formFile/index.d.ts +2 -2
  62. package/FormItem/compoments/formRadioGroup/index.d.ts +1 -1
  63. package/FormItem/compoments/formSelect/index.d.ts +7 -7
  64. package/FormItem/errorTips.d.ts +3 -3
  65. package/FormItem/index.d.ts +5 -5
  66. package/FormItem/index.js +7 -6
  67. package/FormItem/lang/en_US.d.ts +10 -0
  68. package/FormItem/lang/index.d.ts +21 -0
  69. package/FormItem/lang/zh_CN.d.ts +10 -0
  70. package/FormItem/validateFunction.d.ts +1 -1
  71. package/FunctionModal/dialog.d.ts +26 -26
  72. package/FunctionModal/index.d.ts +6 -6
  73. package/FunctionModal/index.js +9 -9
  74. package/FunctionModal/modalContext.d.ts +3 -3
  75. package/GlobalContext/componentsProps.d.ts +7 -7
  76. package/GlobalContext/index.d.ts +2 -2
  77. package/GlobalContext/index.js +1 -1
  78. package/GlobalContext/useFormatMessage.d.ts +1 -1
  79. package/Help/index.js +2 -2
  80. package/HelperText/index.js +1 -1
  81. package/InputLang/index.d.ts +2 -2
  82. package/InputLang/index.js +8 -8
  83. package/InputNumber/index.d.ts +2 -2
  84. package/InputNumber/index.js +4 -4
  85. package/Label/index.js +2 -2
  86. package/Loading/index.js +1 -1
  87. package/Menu/index.js +14 -14
  88. package/Menu/interface.d.ts +1 -1
  89. package/Message/index.js +12 -12
  90. package/Modal/Confirm/index.d.ts +3 -3
  91. package/Modal/index.d.ts +1 -1
  92. package/Modal/index.js +7 -7
  93. package/MultiBox/index.d.ts +2 -2
  94. package/MultiBox/index.js +11 -7
  95. package/Notification/index.js +2 -2
  96. package/OperateBtn/index.d.ts +2 -2
  97. package/OperateBtn/index.js +42 -37
  98. package/PageHeader/index.js +31 -31
  99. package/PageHeader/interface.d.ts +1 -1
  100. package/Pagination/index.d.ts +1 -1
  101. package/Pagination/index.js +17 -17
  102. package/ParauiProvider/index.js +1 -1
  103. package/PasswordRules/index.js +8 -8
  104. package/PopConfirm/index.js +4 -4
  105. package/Progress/Line.d.ts +10 -10
  106. package/Progress/Steps.d.ts +2 -2
  107. package/Progress/index.d.ts +12 -12
  108. package/Progress/index.js +40 -40
  109. package/Progress/utils.d.ts +4 -4
  110. package/Querying/index.d.ts +1 -1
  111. package/Querying/index.js +2 -2
  112. package/README.md +3 -0
  113. package/Radio/index.d.ts +1 -1
  114. package/Radio/index.js +5 -5
  115. package/RadioGroup/index.d.ts +2 -2
  116. package/RadioGroup/index.js +3 -3
  117. package/Search/index.js +2 -2
  118. package/Select/index.d.ts +3 -3
  119. package/Select/index.js +43 -43
  120. package/SelectInput/index.js +2 -2
  121. package/Selector/index.js +19 -19
  122. package/Selector/interface.d.ts +6 -6
  123. package/SelectorPicker/index.d.ts +4 -4
  124. package/SelectorPicker/index.js +12 -12
  125. package/SingleBox/index.d.ts +2 -2
  126. package/SingleBox/index.js +3 -3
  127. package/Slider/interface.d.ts +1 -1
  128. package/Status/index.d.ts +6 -4
  129. package/Status/index.js +21 -9
  130. package/Stepper/index.d.ts +5 -5
  131. package/Stepper/index.js +24 -24
  132. package/Styles/scrollbar.scss +66 -66
  133. package/Styles/theme.scss +62 -61
  134. package/Switch/index.d.ts +7 -7
  135. package/Switch/index.js +24 -6
  136. package/Switch/lang/en_US.d.ts +4 -0
  137. package/Switch/lang/index.d.ts +9 -0
  138. package/Switch/lang/zh_CN.d.ts +4 -0
  139. package/Table/index.js +36 -36
  140. package/Table/interface.d.ts +4 -4
  141. package/Table/tableBodyElement/index.d.ts +1 -1
  142. package/Table/tableBodyInterface.d.ts +2 -2
  143. package/Table/tableContainer/index.d.ts +1 -1
  144. package/Table/tableElement/index.d.ts +1 -1
  145. package/Table/tableHeadElement/index.d.ts +1 -1
  146. package/Table/tableHeadInterface.d.ts +1 -1
  147. package/Table/tablePaginationInterface.d.ts +6 -6
  148. package/Table/tdElement/index.d.ts +1 -1
  149. package/Table/thElement/index.d.ts +2 -2
  150. package/Table/trElement/index.d.ts +1 -1
  151. package/Table/util.d.ts +1 -1
  152. package/Tabs/index.d.ts +1 -1
  153. package/Tabs/index.js +26 -18
  154. package/Tag/TagGroup.d.ts +5 -5
  155. package/Tag/index.d.ts +7 -7
  156. package/Tag/index.js +33 -1207
  157. package/TextEditor/index.d.ts +2 -2
  158. package/TextEditor/index.js +45 -27
  159. package/TextEditor/lang/en_US.d.ts +4 -0
  160. package/TextEditor/lang/index.d.ts +9 -0
  161. package/TextEditor/lang/zh_CN.d.ts +4 -0
  162. package/TextField/index.d.ts +1 -1
  163. package/TextField/index.js +13 -13
  164. package/TimePicker/index.d.ts +1 -1
  165. package/TimePicker/index.js +2 -1
  166. package/Timeline/TimelineItem.d.ts +1 -1
  167. package/Timeline/index.d.ts +5 -5
  168. package/Timeline/index.js +14 -14
  169. package/Title/index.d.ts +6 -4
  170. package/Title/index.js +9 -5
  171. package/ToggleButton/ToggleButtonGroup.d.ts +1 -1
  172. package/ToggleButton/index.d.ts +5 -1
  173. package/ToggleButton/index.js +17 -10
  174. package/Tooltip/index.js +1 -1
  175. package/Transfer/box.d.ts +6 -6
  176. package/Transfer/index.js +27 -27
  177. package/Tree/OperateBar/index.d.ts +2 -2
  178. package/Tree/Tree.d.ts +2 -2
  179. package/Tree/index.js +4 -4
  180. package/Tree/interface.d.ts +8 -4
  181. package/Tree/utils/tools.d.ts +1 -1
  182. package/Upload/Dragger/index.d.ts +2 -2
  183. package/Upload/ErroTip/index.d.ts +1 -1
  184. package/Upload/index.d.ts +2 -2
  185. package/Upload/index.js +13 -13
  186. package/Upload/interface.d.ts +1 -1
  187. package/_verture/{index-5c77417d.js → index-0f315bca.js} +4 -4
  188. package/_verture/{index-e2881a53.js → index-19947788.js} +2 -2
  189. package/_verture/{index-d63bd287.js → index-232d890b.js} +1 -1
  190. package/_verture/{index-68db2bc3.js → index-92e406f4.js} +50 -26
  191. package/_verture/{index-7ec72724.js → index-bc461491.js} +45 -38
  192. package/_verture/{index-e6f85fd5.js → index-d251967e.js} +104 -47
  193. package/_verture/{modalContext-c12ca3e8.js → modalContext-9299acc9.js} +26 -26
  194. package/_verture/tinycolor-ece3542d.js +1180 -0
  195. package/_verture/{utils-f0e81540.js → utils-06d86594.js} +3 -6
  196. package/index.d.ts +2 -0
  197. package/index.js +14 -13
  198. package/locale/en-US.d.ts +19 -0
  199. package/locale/index.d.ts +38 -0
  200. package/locale/index.js +41 -3
  201. package/locale/zh-CN.d.ts +19 -0
  202. package/package.json +53 -8
  203. package/umd/AutoBox.js +2 -2
  204. package/umd/AutoTips.js +4 -4
  205. package/umd/Badge.js +1 -0
  206. package/umd/Breadcrumbs.js +2 -2
  207. package/umd/Button.js +2 -2
  208. package/umd/ButtonGroup.js +4 -4
  209. package/umd/Cascader.js +4 -4
  210. package/umd/Checkbox.js +5 -5
  211. package/umd/CheckboxGroup.js +5 -5
  212. package/umd/Collapse.js +1 -1
  213. package/umd/CollapseBox.js +1 -1
  214. package/umd/CollapseLayout.js +4 -4
  215. package/umd/ColorPicker.js +1 -1
  216. package/umd/ComboSelect.js +6 -6
  217. package/umd/CopyText.js +2 -2
  218. package/umd/DatePicker.js +2 -2
  219. package/umd/Desktop.js +2 -2
  220. package/umd/DragVerify.js +4 -4
  221. package/umd/Drawer.js +4 -4
  222. package/umd/DynamicMultiBox.js +4 -4
  223. package/umd/Form.js +4 -4
  224. package/umd/FormItem.js +4 -4
  225. package/umd/FunctionModal.js +2 -2
  226. package/umd/GlobalContext.js +1 -1
  227. package/umd/Help.js +2 -2
  228. package/umd/HelperText.js +1 -1
  229. package/umd/InputLang.js +4 -4
  230. package/umd/InputNumber.js +2 -2
  231. package/umd/Label.js +2 -2
  232. package/umd/Loading.js +1 -1
  233. package/umd/Menu.js +2 -2
  234. package/umd/Message.js +1 -1
  235. package/umd/Modal.js +2 -2
  236. package/umd/MultiBox.js +7 -7
  237. package/umd/Notification.js +2 -2
  238. package/umd/OperateBtn.js +2 -2
  239. package/umd/PageHeader.js +2 -2
  240. package/umd/Pagination.js +4 -4
  241. package/umd/ParauiProvider.js +1 -1
  242. package/umd/PasswordRules.js +3 -3
  243. package/umd/PopConfirm.js +2 -2
  244. package/umd/Popover.js +1 -1
  245. package/umd/Progress.js +1 -1
  246. package/umd/Radio.js +2 -2
  247. package/umd/RadioGroup.js +2 -2
  248. package/umd/Search.js +7 -7
  249. package/umd/Select.js +2 -2
  250. package/umd/SelectInput.js +2 -2
  251. package/umd/Selector.js +2 -2
  252. package/umd/SelectorPicker.js +2 -2
  253. package/umd/SingleBox.js +2 -2
  254. package/umd/Status.js +4 -4
  255. package/umd/Stepper.js +2 -2
  256. package/umd/Switch.js +5 -5
  257. package/umd/Table.js +6 -6
  258. package/umd/Tabs.js +4 -4
  259. package/umd/Tag.js +2 -2
  260. package/umd/TextEditor.js +3 -3
  261. package/umd/TextField.js +7 -7
  262. package/umd/TimePicker.js +2 -2
  263. package/umd/Title.js +2 -2
  264. package/umd/ToggleButton.js +4 -4
  265. package/umd/Tooltip.js +1 -1
  266. package/umd/Transfer.js +5 -5
  267. package/umd/Tree.js +7 -7
  268. package/umd/Upload.js +2 -2
  269. package/umd/locale.js +1 -1
  270. /package/_verture/{typeof-b240b062.js → typeof-c310ee4a.js} +0 -0
@@ -1,6 +1,8 @@
1
- import { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
2
  import { IConfig, IErrors, IValueList } from './interface';
3
3
  export interface IRowForm {
4
+ /** 指定每行key */
5
+ rowKey?: string;
4
6
  /** 行数据*/
5
7
  valueList?: IValueList[];
6
8
  /**行错误数据 */
package/Empty/index.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * @date 2022/4/2 上午10:45
4
4
  * @description
5
5
  */
6
- import React, { FC } from "react";
6
+ import React, { FC } from 'react';
7
7
  import './index.scss';
8
8
  export interface EmptyProps {
9
9
  /** cls */
package/Empty/index.js CHANGED
@@ -570,8 +570,8 @@ var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/4/2 上
570
570
  styleInject(css_248z);
571
571
 
572
572
  var imageMap = {
573
- 'large': jsx(LargeNull, {}),
574
- 'small': jsx(SmallNull, {})
573
+ large: jsx(LargeNull, {}),
574
+ small: jsx(SmallNull, {})
575
575
  };
576
576
  //empty空状态
577
577
  var Empty = function Empty(props) {
package/Form/index.d.ts CHANGED
@@ -6,8 +6,7 @@ import { ItemTypeProps } from '../FormItem/itemType';
6
6
  /**
7
7
  * form 表单原始属性
8
8
  */
9
- interface FormHtmlProps extends FormHTMLAttributes<HTMLFormElement> {
10
- }
9
+ type FormHtmlProps = FormHTMLAttributes<HTMLFormElement>;
11
10
  /**
12
11
  * 配置项项类型
13
12
  */
@@ -53,17 +52,17 @@ export interface FormProps {
53
52
  */
54
53
  refData?: RefDataProps;
55
54
  /**
56
- * 获取生效项目的值对象,会过滤掉不显示或是不启用的项目的值,
57
- */
55
+ * 获取生效项目的值对象,会过滤掉不显示或是不启用的项目的值,
56
+ */
58
57
  getValidValues?: Function;
59
58
  /**
60
- * 重置表单
61
- */
59
+ * 重置表单
60
+ */
62
61
  reset?: Function;
63
62
  /**
64
- * 清空表单数据
65
- * 允许清空单个
66
- */
63
+ * 清空表单数据
64
+ * 允许清空单个
65
+ */
67
66
  clear?: (name?: string | string[]) => void;
68
67
  }>;
69
68
  /**
@@ -122,12 +121,12 @@ export interface FormProps {
122
121
  */
123
122
  className?: string;
124
123
  /**
125
- * 标题其他配置
126
- */
124
+ * 标题其他配置
125
+ */
127
126
  labelProps?: LabelProps;
128
127
  /**
129
- * 报错提示其他配置
130
- */
128
+ * 报错提示其他配置
129
+ */
131
130
  helperTextProps?: HelperTextProps;
132
131
  /**
133
132
  * 文字宽度, 只对 type === vertical,状态下生效
package/Form/index.js CHANGED
@@ -3,8 +3,9 @@ import { _ as _slicedToArray } from '../_verture/slicedToArray-a8206399.js';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
  import { DeepClone } from '@paraview/lib';
5
5
  import React__default from 'react';
6
- import { F as FormItem, v as validate } from '../_verture/index-e6f85fd5.js';
6
+ import { F as FormItem, l as localeJson, v as validate } from '../_verture/index-d251967e.js';
7
7
  import { $ as $prefixCls } from '../_verture/constant-0d9802f7.js';
8
+ import { u as useFormatMessage } from '../_verture/useFormatMessage-703f8b20.js';
8
9
  import '../_verture/unsupportedIterableToArray-cb478f24.js';
9
10
  import '../TextField/index.js';
10
11
  import '../_verture/typeof-adeedc13.js';
@@ -36,7 +37,6 @@ import '../Radio/index.js';
36
37
  import '../Select/index.js';
37
38
  import '../_verture/defineProperty-1d116156.js';
38
39
  import '../Empty/index.js';
39
- import '../_verture/useFormatMessage-703f8b20.js';
40
40
  import '@para-ui/icons/Close';
41
41
  import '@para-ui/icons/Down';
42
42
  import '@para-ui/icons/Check';
@@ -49,13 +49,13 @@ import 'rc-switch';
49
49
  import '@para-ui/icons/Delete';
50
50
  import '@para-ui/icons/LinkGroup';
51
51
  import '../Button/index.js';
52
+ import '@para-ui/icons/UploadFile';
52
53
  import '../InputNumber/index.js';
53
54
  import 'rc-input-number';
54
55
  import '@para-ui/icons/Up';
55
56
  import '../ComboSelect/index.js';
56
- import '../_verture/index-d63bd287.js';
57
- import '../_verture/typeof-b240b062.js';
58
- import '@para-ui/icons/CloseCircle';
57
+ import '../_verture/index-232d890b.js';
58
+ import '../_verture/typeof-c310ee4a.js';
59
59
  import '../Table/index.js';
60
60
  import '@para-ui/icons/ScreenF';
61
61
  import '@para-ui/icons/UpTriangleF';
@@ -70,14 +70,15 @@ import 'rc-pagination';
70
70
  import '@para-ui/icons/Right';
71
71
  import '@para-ui/icons/DoubleLeft';
72
72
  import '@para-ui/icons/DoubleRight';
73
- import '../_verture/index-7ec72724.js';
73
+ import '../_verture/index-bc461491.js';
74
74
  import 'rc-tree';
75
75
  import '@para-ui/icons/Document';
76
76
  import 'react-dom';
77
77
  import '@para-ui/icons/EditFile';
78
78
  import '@para-ui/icons/PlusCircle';
79
79
  import '@para-ui/icons/MoreCircle';
80
- import '../_verture/utils-f0e81540.js';
80
+ import '../_verture/utils-06d86594.js';
81
+ import '../Search/index.js';
81
82
 
82
83
  /**
83
84
  * form 表单组件
@@ -90,6 +91,7 @@ import '../_verture/utils-f0e81540.js';
90
91
  * @description 用于根据配置自动生成表单
91
92
  */
92
93
  var Form = function Form(props) {
94
+ var intl = useFormatMessage('FormItem', localeJson);
93
95
  var _props$className = props.className,
94
96
  className = _props$className === void 0 ? '' : _props$className,
95
97
  FormProps = props.FormProps,
@@ -192,7 +194,7 @@ var Form = function Form(props) {
192
194
  errorCount++;
193
195
  continue;
194
196
  }
195
- var msg = validate(tItem, refData.current.allValues[key]);
197
+ var msg = validate(tItem, refData.current.allValues[key], intl);
196
198
  if (msg) {
197
199
  errorCount++;
198
200
  if (typeof msg === 'string') refData.current.itemsCheckMessage[key] = msg;
@@ -202,8 +204,8 @@ var Form = function Form(props) {
202
204
  return !errorCount && refData.current.allValues;
203
205
  };
204
206
  /**
205
- * 过滤有效值
206
- */
207
+ * 过滤有效值
208
+ */
207
209
  var getValidValues = function getValidValues() {
208
210
  var tObj = {};
209
211
  for (var i = 0; i < refData.current.configList.length; i++) {
@@ -215,8 +217,8 @@ var Form = function Form(props) {
215
217
  return tObj;
216
218
  };
217
219
  /**
218
- * 重置表单
219
- */
220
+ * 重置表单
221
+ */
220
222
  var resetForm = function resetForm() {
221
223
  var isClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
222
224
  var name = arguments.length > 1 ? arguments[1] : undefined;
@@ -11,9 +11,9 @@ interface DefaultCompomentsProps {
11
11
  };
12
12
  }
13
13
  /**
14
- * @module src\FormItem\compoments\defaultCompoments\index.tsx
15
- * @author zhanzl
16
- * @date 2022/06/02
17
- */
14
+ * @module src\FormItem\compoments\defaultCompoments\index.tsx
15
+ * @author zhanzl
16
+ * @date 2022/06/02
17
+ */
18
18
  declare const DefaultCompoments: FC<DefaultCompomentsProps>;
19
19
  export default DefaultCompoments;
@@ -1,4 +1,4 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
2
  import { CheckboxGroupProps } from '../../../CheckboxGroup';
3
3
  export interface FormCheckboxGroupProps extends CheckboxGroupProps {
4
4
  defaultValue?: any[];
@@ -1,5 +1,5 @@
1
- import { FC, InputHTMLAttributes } from "react";
2
- import { ButtonProps } from "../../../Button";
1
+ import { FC, InputHTMLAttributes } from 'react';
2
+ import { ButtonProps } from '../../../Button';
3
3
  import './index.scss';
4
4
  export interface FormFileProps {
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
2
  import { RadioGroupProps } from '../../../RadioGroup';
3
3
  export interface FormRadioGroupProps extends RadioGroupProps {
4
4
  defaultValue?: string;
@@ -1,17 +1,17 @@
1
- import { FC } from "react";
1
+ import { FC } from 'react';
2
2
  import { SelectProps } from '../../../Select';
3
3
  export interface FormSelectProps extends SelectProps {
4
4
  /**
5
- * 默认值
6
- */
5
+ * 默认值
6
+ */
7
7
  defaultValue?: string;
8
8
  /**
9
- * 改变方法
10
- */
9
+ * 改变方法
10
+ */
11
11
  change?: (value: any) => any;
12
12
  /**
13
- * 绑定值
14
- */
13
+ * 绑定值
14
+ */
15
15
  value?: string;
16
16
  }
17
17
  declare const FormSelect: FC<FormSelectProps>;
@@ -1,9 +1,9 @@
1
1
  import { HelperTextProps } from '../HelperText';
2
2
  import { FC } from 'react';
3
3
  /**
4
- * 报错信息组件
5
- * @description 为了解决,在主组件设置state,导致输入框中内容刷新,且失去焦点
6
- */
4
+ * 报错信息组件
5
+ * @description 为了解决,在主组件设置state,导致输入框中内容刷新,且失去焦点
6
+ */
7
7
  declare const ErrorTips: FC<{
8
8
  getSetError?: Function;
9
9
  errorMessage?: string;
@@ -21,11 +21,11 @@ export interface ruleType {
21
21
  * @return {boolean | string}, 子定义校验方法时 返回 false 或 字符串 均为校验失败 true为校验通过
22
22
  */
23
23
  validate?: {
24
- 'required'?: boolean | validateFunctionType;
25
- 'maxlength'?: number | validateFunctionType;
26
- 'minLength'?: number | validateFunctionType;
27
- 'pattern'?: RegExp | validateFunctionType;
28
- 'disOnlySpace'?: boolean | validateFunctionType;
24
+ required?: boolean | validateFunctionType;
25
+ maxlength?: number | validateFunctionType;
26
+ minLength?: number | validateFunctionType;
27
+ pattern?: RegExp | validateFunctionType;
28
+ disOnlySpace?: boolean | validateFunctionType;
29
29
  [name: string]: validateFunctionType | boolean | number | RegExp | undefined;
30
30
  };
31
31
  message?: {
package/FormItem/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import 'react/jsx-runtime';
2
2
  import 'react';
3
- export { F as default } from '../_verture/index-e6f85fd5.js';
3
+ export { F as default } from '../_verture/index-d251967e.js';
4
4
  import 'clsx';
5
5
  import '../Label/index.js';
6
6
  import '../_verture/constant-0d9802f7.js';
@@ -49,13 +49,13 @@ import 'rc-switch';
49
49
  import '@para-ui/icons/Delete';
50
50
  import '@para-ui/icons/LinkGroup';
51
51
  import '../Button/index.js';
52
+ import '@para-ui/icons/UploadFile';
52
53
  import '../InputNumber/index.js';
53
54
  import 'rc-input-number';
54
55
  import '@para-ui/icons/Up';
55
56
  import '../ComboSelect/index.js';
56
- import '../_verture/index-d63bd287.js';
57
- import '../_verture/typeof-b240b062.js';
58
- import '@para-ui/icons/CloseCircle';
57
+ import '../_verture/index-232d890b.js';
58
+ import '../_verture/typeof-c310ee4a.js';
59
59
  import '../Table/index.js';
60
60
  import '@para-ui/icons/ScreenF';
61
61
  import '@para-ui/icons/UpTriangleF';
@@ -70,11 +70,12 @@ import 'rc-pagination';
70
70
  import '@para-ui/icons/Right';
71
71
  import '@para-ui/icons/DoubleLeft';
72
72
  import '@para-ui/icons/DoubleRight';
73
- import '../_verture/index-7ec72724.js';
73
+ import '../_verture/index-bc461491.js';
74
74
  import 'rc-tree';
75
75
  import '@para-ui/icons/Document';
76
76
  import 'react-dom';
77
77
  import '@para-ui/icons/EditFile';
78
78
  import '@para-ui/icons/PlusCircle';
79
79
  import '@para-ui/icons/MoreCircle';
80
- import '../_verture/utils-f0e81540.js';
80
+ import '../_verture/utils-06d86594.js';
81
+ import '../Search/index.js';
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ choseFile: string;
3
+ unEmpty: string;
4
+ maxLength: string;
5
+ minLength: string;
6
+ unRule: string;
7
+ minValue: string;
8
+ maxValue: string;
9
+ };
10
+ export default _default;
@@ -0,0 +1,21 @@
1
+ declare const _default: {
2
+ zh: {
3
+ choseFile: string;
4
+ unEmpty: string;
5
+ maxLength: string;
6
+ minLength: string;
7
+ unRule: string;
8
+ minValue: string;
9
+ maxValue: string;
10
+ };
11
+ en: {
12
+ choseFile: string;
13
+ unEmpty: string;
14
+ maxLength: string;
15
+ minLength: string;
16
+ unRule: string;
17
+ minValue: string;
18
+ maxValue: string;
19
+ };
20
+ };
21
+ export default _default;
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ choseFile: string;
3
+ unEmpty: string;
4
+ maxLength: string;
5
+ minLength: string;
6
+ unRule: string;
7
+ minValue: string;
8
+ maxValue: string;
9
+ };
10
+ export default _default;
@@ -6,7 +6,7 @@ import { FormItemProps } from './index';
6
6
  * @param {any} val 校验项的值
7
7
  * @return {boolean | string} 返回校验结果或报错信息
8
8
  */
9
- export type validateFunctionType = (item: FormItemProps, val: any) => boolean | string;
9
+ export type validateFunctionType = (item: FormItemProps, val: any, intl: any) => boolean | string;
10
10
  /**
11
11
  * 表单rules校验方法
12
12
  * @type {validateFunctionType}
@@ -1,57 +1,57 @@
1
- import React, { ReactElement } from "react";
1
+ import React, { ReactElement } from 'react';
2
2
  import { ModalProps } from '../Modal';
3
- import { JsxElement } from "typescript";
3
+ import { JsxElement } from 'typescript';
4
4
  import './index.scss';
5
5
  /**
6
- * 弹窗配置
7
- */
6
+ * 弹窗配置
7
+ */
8
8
  export interface modalOptions extends ModalProps {
9
9
  /**
10
- * 非正常关闭仍然返回true
11
- */
10
+ * 非正常关闭仍然返回true
11
+ */
12
12
  disCatchOnCancel?: boolean;
13
13
  /**
14
- * 模态框大小
15
- */
14
+ * 模态框大小
15
+ */
16
16
  size?: 'sm' | 'md' | 'lg' | 'auto' | 'fullScreen';
17
17
  /**
18
- * 模态框标题
19
- */
18
+ * 模态框标题
19
+ */
20
20
  title?: string;
21
21
  context?: ReactElement | JsxElement;
22
22
  /**
23
- * 内容
24
- */
23
+ * 内容
24
+ */
25
25
  content?: ReactElement | JsxElement;
26
26
  /**
27
- * 检查方法,根据返回值判断是否关闭模态框
28
- */
27
+ * 检查方法,根据返回值判断是否关闭模态框
28
+ */
29
29
  checkFunction?: () => boolean | Promise<boolean>;
30
30
  /**
31
- * 获得关闭模态框方法
32
- */
31
+ * 获得关闭模态框方法
32
+ */
33
33
  getClose?: (close: Function) => void;
34
34
  /**
35
- * 模态框其他配置
36
- */
35
+ * 模态框其他配置
36
+ */
37
37
  ModalProps?: ModalProps;
38
38
  }
39
39
  interface DialogProps extends modalOptions {
40
40
  /**
41
- * 模态框状态
42
- */
41
+ * 模态框状态
42
+ */
43
43
  open: boolean;
44
44
  /**
45
- * 提交方法
46
- */
45
+ * 提交方法
46
+ */
47
47
  onSubmit: (idx: number) => void;
48
48
  /**
49
- * 关闭方法
50
- */
49
+ * 关闭方法
50
+ */
51
51
  onClose: (idx: number) => void;
52
52
  /**
53
- * 模态框组下标
54
- */
53
+ * 模态框组下标
54
+ */
55
55
  listIndex: number;
56
56
  }
57
57
  export declare const FDialog: React.FC<DialogProps>;
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @author zhanzl
3
- * @date 2021/08/13
4
- * @description 函数式弹窗
5
- */
6
- import { useModal, useClose, FunctionModalProvider } from "./modalContext";
2
+ * @author zhanzl
3
+ * @date 2021/08/13
4
+ * @description 函数式弹窗
5
+ */
6
+ import { useModal, useClose, FunctionModalProvider } from './modalContext';
7
7
  export default useModal;
8
- export { useClose, FunctionModalProvider, };
8
+ export { useClose, FunctionModalProvider };
@@ -1,10 +1,10 @@
1
- import { u as useModal } from '../_verture/modalContext-c12ca3e8.js';
2
- export { F as FunctionModalProvider, u as default, a as useClose } from '../_verture/modalContext-c12ca3e8.js';
1
+ import { u as useModal } from '../_verture/modalContext-9299acc9.js';
2
+ export { F as FunctionModalProvider, u as default, a as useClose } from '../_verture/modalContext-9299acc9.js';
3
3
  import '../_verture/toConsumableArray-8f4c9589.js';
4
4
  import '../_verture/unsupportedIterableToArray-cb478f24.js';
5
5
  import '../_verture/slicedToArray-a8206399.js';
6
- import '../_verture/index-d63bd287.js';
7
- import '../_verture/typeof-b240b062.js';
6
+ import '../_verture/index-232d890b.js';
7
+ import '../_verture/typeof-c310ee4a.js';
8
8
  import '../_verture/tslib.es6-55ed4bd2.js';
9
9
  import 'react/jsx-runtime';
10
10
  import 'react';
@@ -31,7 +31,7 @@ import '../_verture/useFormatMessage-703f8b20.js';
31
31
  import '@para-ui/core/GlobalContext';
32
32
  import '../AutoTips/index.js';
33
33
  import '@para-ui/icons/Close';
34
- import '../_verture/index-e2881a53.js';
34
+ import '../_verture/index-19947788.js';
35
35
  import 'react-dom';
36
36
  import '@para-ui/icons/CheckCircleF';
37
37
  import '@para-ui/icons/CloseCircleF';
@@ -39,7 +39,7 @@ import '@para-ui/icons/WarningCircle';
39
39
  import '@para-ui/icons/WarningCircleF';
40
40
 
41
41
  /**
42
- * @author zhanzl
43
- * @date 2021/08/13
44
- * @description 函数式弹窗
45
- */
42
+ * @author zhanzl
43
+ * @date 2021/08/13
44
+ * @description 函数式弹窗
45
+ */
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { modalOptions } from "./dialog";
2
+ import { modalOptions } from './dialog';
3
3
  /**
4
4
  * 弹出框组件
5
5
  * @param context 主体内容
@@ -9,7 +9,7 @@ import { modalOptions } from "./dialog";
9
9
  **/
10
10
  export declare const useModal: () => (options: modalOptions) => Promise<boolean>;
11
11
  /**
12
- * 函数弹窗组件Provider
13
- */
12
+ * 函数弹窗组件Provider
13
+ */
14
14
  export declare const FunctionModalProvider: ({ children }: any) => JSX.Element;
15
15
  export declare const useClose: () => Function;
@@ -3,13 +3,13 @@
3
3
  * @date 2022/5/5 4:08 PM
4
4
  * @description 全局每个组件的props
5
5
  */
6
- import { SelectProps } from "../Select";
7
- import { TextFieldProps } from "../TextField";
8
- import { TableProps } from "../Table/interface";
9
- import { EmptyProps } from "../Empty";
10
- import { QueryingProps } from "../Querying";
11
- import { SelectorProps } from "../Selector/interface";
12
- import { ComboSelectProps } from "../ComboSelect/interface";
6
+ import { SelectProps } from '../Select';
7
+ import { TextFieldProps } from '../TextField';
8
+ import { TableProps } from '../Table/interface';
9
+ import { EmptyProps } from '../Empty';
10
+ import { QueryingProps } from '../Querying';
11
+ import { SelectorProps } from '../Selector/interface';
12
+ import { ComboSelectProps } from '../ComboSelect/interface';
13
13
  interface ComponentsProps {
14
14
  Select?: Partial<SelectProps>;
15
15
  TextField?: Partial<TextFieldProps>;
@@ -1,6 +1,6 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  import { changeConfirmLocale, getConfirmLocale } from './confirmLocale';
3
- import ComponentsProps from "./componentsProps";
3
+ import ComponentsProps from './componentsProps';
4
4
  /** 国际化props */
5
5
  export interface localeProps {
6
6
  /** 语言 */
@@ -1,7 +1,7 @@
1
1
  import React__default from 'react';
2
2
  import { i as i18nIntl } from '../_verture/intl-5c1ec055.js';
3
3
  import { GetLanguage } from '@paraview/lib';
4
- import { d as defaultModalLocale } from '../_verture/index-e2881a53.js';
4
+ import { d as defaultModalLocale } from '../_verture/index-19947788.js';
5
5
  import '../_verture/typeof-adeedc13.js';
6
6
 
7
7
  //confirm 默认中文
@@ -1,3 +1,3 @@
1
- import { I18nData } from "./intl";
1
+ import { I18nData } from './intl';
2
2
  declare const useFormatMessage: (comName: string, defI18nData: I18nData) => any;
3
3
  export default useFormatMessage;
package/Help/index.js CHANGED
@@ -24,7 +24,7 @@ var Help = function Help(props) {
24
24
  arrow = _props$arrow === void 0 ? true : _props$arrow,
25
25
  className = props.className,
26
26
  _props$placement = props.placement,
27
- placement = _props$placement === void 0 ? 'top' : _props$placement,
27
+ placement = _props$placement === void 0 ? 'top-start' : _props$placement,
28
28
  restProps = __rest(props, ["title", "children", "arrow", "className", "placement"]);
29
29
  return jsx(Tooltip, Object.assign({
30
30
  title: title,
@@ -32,7 +32,7 @@ var Help = function Help(props) {
32
32
  placement: placement
33
33
  }, restProps, {
34
34
  children: jsx("span", Object.assign({
35
- className: clsx($prefixCls + '-help', className)
35
+ className: clsx("".concat($prefixCls, "-help"), className)
36
36
  }, {
37
37
  children: children || jsx(HelpIcon, {})
38
38
  }))
@@ -19,7 +19,7 @@ var HelperText = function HelperText(props) {
19
19
  // 处理class
20
20
  var handClass = function handClass() {
21
21
  var str = "".concat($prefixCls, "-helper-text");
22
- if (className) str += ' ' + className;
22
+ if (className) str += " ".concat(className);
23
23
  if (error) str += " ".concat($prefixCls, "-helper-text-error");
24
24
  return str;
25
25
  };
@@ -5,9 +5,9 @@
5
5
  */
6
6
  import React, { FunctionComponent, ReactNode } from 'react';
7
7
  import { HelperTextDetailProps } from '../HelperText';
8
- import { LabelTooltipProps } from "../Label";
8
+ import { LabelTooltipProps } from '../Label';
9
+ import { TooltipProps } from '../Tooltip';
9
10
  import './index.scss';
10
- import { TooltipProps } from "../Tooltip";
11
11
  interface valueProps {
12
12
  [name: string]: string;
13
13
  }