@para-ui/core 3.0.76 → 3.0.78

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 (54) hide show
  1. package/Checkbox/index.js +1 -1
  2. package/CheckboxGroup/index.js +1 -1
  3. package/ComboSelect/index.js +4 -2
  4. package/DynamicMultiBox/index.js +1 -1
  5. package/Form/index.js +2 -2
  6. package/FormItem/index.js +2 -2
  7. package/Label/index.d.ts +1 -0
  8. package/Label/index.js +13 -6
  9. package/README.md +16 -0
  10. package/Radio/index.js +1 -1
  11. package/RadioGroup/index.js +1 -1
  12. package/Select/index.js +1 -1
  13. package/SelectInput/index.js +1 -1
  14. package/SelectorPicker/index.js +1 -1
  15. package/TextEditor/index.js +1 -1
  16. package/Tree/index.js +2 -2
  17. package/index.d.ts +2 -0
  18. package/index.js +3 -2
  19. package/locale/en-US.d.ts +153 -0
  20. package/locale/index.d.ts +307 -0
  21. package/locale/index.js +312 -0
  22. package/locale/zh-CN.d.ts +153 -0
  23. package/package.json +4 -3
  24. package/umd/Checkbox.js +3 -3
  25. package/umd/CheckboxGroup.js +1 -1
  26. package/umd/ComboSelect.js +4 -4
  27. package/umd/DatePicker.js +1 -1
  28. package/umd/Desktop.js +4 -4
  29. package/umd/DynamicMultiBox.js +1 -1
  30. package/umd/Form.js +4 -4
  31. package/umd/FormItem.js +4 -4
  32. package/umd/InputLang.js +1 -1
  33. package/umd/InputNumber.js +4 -4
  34. package/umd/Label.js +4 -4
  35. package/umd/MultiBox.js +6 -6
  36. package/umd/Pagination.js +4 -4
  37. package/umd/Radio.js +3 -3
  38. package/umd/RadioGroup.js +4 -4
  39. package/umd/Search.js +5 -5
  40. package/umd/Select.js +4 -4
  41. package/umd/SelectInput.js +3 -3
  42. package/umd/Selector.js +4 -4
  43. package/umd/SelectorPicker.js +4 -4
  44. package/umd/SingleBox.js +4 -4
  45. package/umd/Switch.js +1 -1
  46. package/umd/Table.js +1 -1
  47. package/umd/TextEditor.js +1 -1
  48. package/umd/TextField.js +1 -1
  49. package/umd/TimePicker.js +1 -1
  50. package/umd/Transfer.js +1 -1
  51. package/umd/Tree.js +4 -4
  52. package/umd/locale.js +1 -0
  53. /package/_verture/{index-22571b89.js → index-5a05b4a8.js} +0 -0
  54. /package/_verture/{index-e7fd3a50.js → index-e56d852b.js} +0 -0
package/Checkbox/index.js CHANGED
@@ -5,8 +5,8 @@ import Label from '../Label/index.js';
5
5
  import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
6
6
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
7
7
  import '../_verture/unsupportedIterableToArray-cb478f24.js';
8
- import '../Help/index.js';
9
8
  import '../_verture/tslib.es6-55ed4bd2.js';
9
+ import '../Help/index.js';
10
10
  import '../Tooltip/index.js';
11
11
  import 'rc-tooltip';
12
12
  import 'rc-tooltip/lib/placements';
@@ -8,8 +8,8 @@ import { DeepClone } from '@paraview/lib';
8
8
  import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
9
9
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
10
10
  import '../_verture/unsupportedIterableToArray-cb478f24.js';
11
- import '../Help/index.js';
12
11
  import '../_verture/tslib.es6-55ed4bd2.js';
12
+ import '../Help/index.js';
13
13
  import '../Tooltip/index.js';
14
14
  import 'rc-tooltip';
15
15
  import 'rc-tooltip/lib/placements';
@@ -10,7 +10,7 @@ import SearchIcon from '@para-ui/icons/Search';
10
10
  import CloseIcon from '@para-ui/icons/Close';
11
11
  import CloseCircle from '@para-ui/icons/CloseCircle';
12
12
  import Table from '../Table/index.js';
13
- import { T as Tree } from '../_verture/index-22571b89.js';
13
+ import { T as Tree } from '../_verture/index-5a05b4a8.js';
14
14
  import { Button } from '../Button/index.js';
15
15
  import { D as Dropdown } from '../_verture/index-77f9e0fb.js';
16
16
  import { Popover } from '../Popover/index.js';
@@ -859,7 +859,9 @@ var ComboSelect = function ComboSelect(props) {
859
859
  checkDefaultValue: checkKeys,
860
860
  radioDefaultValue: checkKeys[0],
861
861
  refresh: refresh !== null && refresh !== void 0 ? refresh : inRefresh,
862
- autoSize: false
862
+ autoSize: false,
863
+ refreshInside: false,
864
+ checkCount: false
863
865
  }))
864
866
  }));
865
867
  }, [checkKeys, refresh, params, inRefresh, open]);
@@ -74,7 +74,7 @@ import '@para-ui/icons/Left';
74
74
  import 'rc-pagination';
75
75
  import '@para-ui/icons/Right';
76
76
  import '@para-ui/icons/DoubleRight';
77
- import '../_verture/index-22571b89.js';
77
+ import '../_verture/index-5a05b4a8.js';
78
78
  import 'rc-tree';
79
79
  import '@para-ui/icons/Document';
80
80
  import 'react-dom';
package/Form/index.js CHANGED
@@ -3,7 +3,7 @@ import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.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-e7fd3a50.js';
6
+ import { F as FormItem, v as validate } from '../_verture/index-e56d852b.js';
7
7
  import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
8
8
  import '../_verture/unsupportedIterableToArray-cb478f24.js';
9
9
  import '../TextField/index.js';
@@ -70,7 +70,7 @@ import '@para-ui/icons/Left';
70
70
  import 'rc-pagination';
71
71
  import '@para-ui/icons/Right';
72
72
  import '@para-ui/icons/DoubleRight';
73
- import '../_verture/index-22571b89.js';
73
+ import '../_verture/index-5a05b4a8.js';
74
74
  import 'rc-tree';
75
75
  import '@para-ui/icons/Document';
76
76
  import 'react-dom';
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-e7fd3a50.js';
3
+ export { F as default } from '../_verture/index-e56d852b.js';
4
4
  import 'clsx';
5
5
  import '../Label/index.js';
6
6
  import '../_verture/constant-66aa48a1.js';
@@ -70,7 +70,7 @@ import '@para-ui/icons/Left';
70
70
  import 'rc-pagination';
71
71
  import '@para-ui/icons/Right';
72
72
  import '@para-ui/icons/DoubleRight';
73
- import '../_verture/index-22571b89.js';
73
+ import '../_verture/index-5a05b4a8.js';
74
74
  import 'rc-tree';
75
75
  import '@para-ui/icons/Document';
76
76
  import 'react-dom';
package/Label/index.d.ts CHANGED
@@ -31,6 +31,7 @@ export interface LabelProps extends LabelTooltipProps {
31
31
  label?: ReactNode;
32
32
  /** 标题提示,可用来自定义 */
33
33
  labelSign?: ReactNode;
34
+ onClick?: (e: React.MouseEvent<HTMLLabelElement>) => void;
34
35
  [name: string]: any;
35
36
  }
36
37
  declare const Label: FunctionComponent<LabelProps>;
package/Label/index.js CHANGED
@@ -1,8 +1,8 @@
1
+ import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
1
2
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
3
  import Help from '../Help/index.js';
3
4
  import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
4
5
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
5
- import '../_verture/tslib.es6-55ed4bd2.js';
6
6
  import '../Tooltip/index.js';
7
7
  import '../_verture/slicedToArray-76060636.js';
8
8
  import '../_verture/unsupportedIterableToArray-cb478f24.js';
@@ -28,7 +28,9 @@ var Label = function Label(props) {
28
28
  tooltipType = _props$tooltipType === void 0 ? 'icon' : _props$tooltipType,
29
29
  placement = props.placement,
30
30
  arrow = props.arrow,
31
- tooltipIcon = props.tooltipIcon;
31
+ tooltipIcon = props.tooltipIcon,
32
+ onClick = props.onClick,
33
+ othersProps = __rest(props, ["className", "helpClassName", "style", "label", "labelSign", "required", "tooltip", "tooltipType", "placement", "arrow", "tooltipIcon", "onClick"]);
32
34
  // 处理class
33
35
  var handClass = function handClass() {
34
36
  var str = $prefixCls + '-label';
@@ -37,10 +39,14 @@ var Label = function Label(props) {
37
39
  if (className) str += ' ' + className;
38
40
  return str;
39
41
  };
42
+ var onClickCom = function onClickCom(e) {
43
+ onClick && onClick(e);
44
+ };
40
45
  return jsxs(Fragment, {
41
46
  children: [tooltipType === 'icon' && jsxs("label", Object.assign({
42
47
  className: handClass(),
43
- style: style
48
+ style: style,
49
+ onClick: onClickCom
44
50
  }, {
45
51
  children: [jsx(Fragment, {
46
52
  children: label
@@ -55,7 +61,7 @@ var Label = function Label(props) {
55
61
  placement: placement,
56
62
  arrow: arrow,
57
63
  className: helpClassName
58
- }, {
64
+ }, othersProps, {
59
65
  children: tooltipIcon
60
66
  }))]
61
67
  })), tooltipType === 'line' && jsx(Help, Object.assign({
@@ -63,10 +69,11 @@ var Label = function Label(props) {
63
69
  placement: placement,
64
70
  arrow: arrow,
65
71
  className: helpClassName
66
- }, {
72
+ }, othersProps, {
67
73
  children: jsxs("label", Object.assign({
68
74
  className: handClass(),
69
- style: style
75
+ style: style,
76
+ onClick: onClickCom
70
77
  }, {
71
78
  children: [jsx(Fragment, {
72
79
  children: label
package/README.md CHANGED
@@ -1,7 +1,23 @@
1
+ ## 版本: 3.0.78
2
+
3
+ para-ui/core@3.0.78 发布
4
+ 【标题-Label】继承tooltip参数
5
+ 【分体式按钮-SplitButton】更新placement参数类型
6
+ 【组合选择器-ComboSelect】禁用表格刷新和已选条数
7
+ 【文档】tooltip 添加FAQ、tooltip 和 popConfirm 添加依赖 badge
8
+
9
+ ## 版本: 3.0.77
10
+
11
+ para-ui/core@3.0.77 发布
12
+ 【文档】更新表格,多值框,单值框文档
13
+ 【国际化】国际化文档更新
14
+ 【para-ui/icons】添加 @para-ui/icons 依赖到 peerDependencies
15
+
1
16
  ## 版本: 3.0.76
2
17
 
3
18
  para-ui/core@3.0.76 发布
4
19
  【表单-form】修复form下只有一个input元素时回车会触发页面reload的问题
20
+
5
21
  ## 版本: 3.0.75
6
22
 
7
23
  para-ui/core@3.0.75 发布
package/Radio/index.js CHANGED
@@ -5,8 +5,8 @@ import Label from '../Label/index.js';
5
5
  import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
6
6
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
7
7
  import '../_verture/unsupportedIterableToArray-cb478f24.js';
8
- import '../Help/index.js';
9
8
  import '../_verture/tslib.es6-55ed4bd2.js';
9
+ import '../Help/index.js';
10
10
  import '../Tooltip/index.js';
11
11
  import 'rc-tooltip';
12
12
  import 'rc-tooltip/lib/placements';
@@ -7,8 +7,8 @@ import HelperText from '../HelperText/index.js';
7
7
  import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
8
8
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
9
9
  import '../_verture/unsupportedIterableToArray-cb478f24.js';
10
- import '../Help/index.js';
11
10
  import '../_verture/tslib.es6-55ed4bd2.js';
11
+ import '../Help/index.js';
12
12
  import '../Tooltip/index.js';
13
13
  import 'rc-tooltip';
14
14
  import 'rc-tooltip/lib/placements';
package/Select/index.js CHANGED
@@ -24,8 +24,8 @@ import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
24
24
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
25
25
  import '../_verture/unsupportedIterableToArray-cb478f24.js';
26
26
  import 'clsx';
27
- import '../Help/index.js';
28
27
  import '../_verture/tslib.es6-55ed4bd2.js';
28
+ import '../Help/index.js';
29
29
  import '../Tooltip/index.js';
30
30
  import 'rc-tooltip';
31
31
  import 'rc-tooltip/lib/placements';
@@ -14,8 +14,8 @@ import '@para-ui/core/GlobalContext';
14
14
  import '../_verture/useGlobalProps-1b846a65.js';
15
15
  import '../_verture/style-inject.es-300983ab.js';
16
16
  import '../Label/index.js';
17
- import '../Help/index.js';
18
17
  import '../_verture/tslib.es6-55ed4bd2.js';
18
+ import '../Help/index.js';
19
19
  import '../Tooltip/index.js';
20
20
  import 'rc-tooltip';
21
21
  import 'rc-tooltip/lib/placements';
@@ -18,8 +18,8 @@ import { u as useFormatMessage } from '../_verture/useFormatMessage-703f8b20.js'
18
18
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
19
19
  import '../_verture/typeof-498dd2b1.js';
20
20
  import '../_verture/unsupportedIterableToArray-cb478f24.js';
21
- import '../Help/index.js';
22
21
  import '../_verture/tslib.es6-55ed4bd2.js';
22
+ import '../Help/index.js';
23
23
  import '../Tooltip/index.js';
24
24
  import 'rc-tooltip';
25
25
  import 'rc-tooltip/lib/placements';
@@ -9,8 +9,8 @@ import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
9
9
  import { UUID } from '@paraview/lib';
10
10
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
11
11
  import '../_verture/unsupportedIterableToArray-cb478f24.js';
12
- import '../Help/index.js';
13
12
  import '../_verture/tslib.es6-55ed4bd2.js';
13
+ import '../Help/index.js';
14
14
  import '../Tooltip/index.js';
15
15
  import 'rc-tooltip';
16
16
  import 'rc-tooltip/lib/placements';
package/Tree/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { T as Tree } from '../_verture/index-22571b89.js';
2
- export { T as default } from '../_verture/index-22571b89.js';
1
+ import { T as Tree } from '../_verture/index-5a05b4a8.js';
2
+ export { T as default } from '../_verture/index-5a05b4a8.js';
3
3
  import '../_verture/toConsumableArray-81040c9e.js';
4
4
  import '../_verture/unsupportedIterableToArray-cb478f24.js';
5
5
  import '../_verture/defineProperty-62acccfc.js';
package/index.d.ts CHANGED
@@ -142,3 +142,5 @@ export { default as Tree } from './Tree';
142
142
  export * from './Tree';
143
143
  export { default as Upload } from './Upload';
144
144
  export * from './Upload';
145
+ export { default as locale } from './locale';
146
+ export * from './locale';
package/index.js CHANGED
@@ -22,7 +22,7 @@ export { D as Dropdown } from './_verture/index-77f9e0fb.js';
22
22
  export { default as DynamicMultiBox } from './DynamicMultiBox/index.js';
23
23
  export { default as Empty } from './Empty/index.js';
24
24
  export { default as Form } from './Form/index.js';
25
- export { F as FormItem } from './_verture/index-e7fd3a50.js';
25
+ export { F as FormItem } from './_verture/index-e56d852b.js';
26
26
  export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-20780c9a.js';
27
27
  export { default as GlobalContext, changeConfirmLocale, getConfirmLocale } from './GlobalContext/index.js';
28
28
  export { default as Help } from './Help/index.js';
@@ -69,8 +69,9 @@ export { Title } from './Title/index.js';
69
69
  export { ToggleButton, ToggleButtonGroup } from './ToggleButton/index.js';
70
70
  export { Tooltip } from './Tooltip/index.js';
71
71
  export { SSortablejs, Transfer } from './Transfer/index.js';
72
- export { T as Tree } from './_verture/index-22571b89.js';
72
+ export { T as Tree } from './_verture/index-5a05b4a8.js';
73
73
  export { default as Upload } from './Upload/index.js';
74
+ export { default as locale } from './locale/index.js';
74
75
  import './_verture/slicedToArray-76060636.js';
75
76
  import './_verture/unsupportedIterableToArray-cb478f24.js';
76
77
  import 'react/jsx-runtime';
@@ -0,0 +1,153 @@
1
+ declare const _default: {
2
+ Breadcrumbs: {
3
+ back: string;
4
+ };
5
+ Button: {
6
+ moreActions: string;
7
+ };
8
+ Cascader: {
9
+ placeholder: string;
10
+ };
11
+ ComboSelect: {
12
+ searchPlaceholder: string;
13
+ cancel: string;
14
+ ok: string;
15
+ fullPath: string;
16
+ pleaseSelect: string;
17
+ selected: string;
18
+ };
19
+ DatePicker: {
20
+ lang: {
21
+ placeholder: string;
22
+ yearPlaceholder: string;
23
+ quarterPlaceholder: string;
24
+ monthPlaceholder: string;
25
+ weekPlaceholder: string;
26
+ rangePlaceholder: string;
27
+ rangeYearPlaceholder: string;
28
+ rangeMonthPlaceholder: string;
29
+ rangeWeekPlaceholder: string;
30
+ today: string;
31
+ now: string;
32
+ ok: string;
33
+ };
34
+ timePickerLocale: {};
35
+ placeholder: string;
36
+ yearPlaceholder: string;
37
+ quarterPlaceholder: string;
38
+ monthPlaceholder: string;
39
+ weekPlaceholder: string;
40
+ rangePlaceholder: string;
41
+ rangeYearPlaceholder: string;
42
+ rangeMonthPlaceholder: string;
43
+ rangeWeekPlaceholder: string;
44
+ today: string;
45
+ now: string;
46
+ ok: string;
47
+ };
48
+ DragVerify: {
49
+ tryAgain: string;
50
+ swipe: string;
51
+ };
52
+ Drawer: {
53
+ cancel: string;
54
+ ok: string;
55
+ };
56
+ DynamicMultiBox: {
57
+ add: string;
58
+ titleForm: string;
59
+ default: string;
60
+ noData: string;
61
+ };
62
+ Empty: {
63
+ noData: string;
64
+ click: string;
65
+ refresh: string;
66
+ };
67
+ Modal: {
68
+ cancel: string;
69
+ ok: string;
70
+ };
71
+ MultiBox: {
72
+ add: string;
73
+ };
74
+ OperateBtn: {
75
+ more: string;
76
+ };
77
+ Pagination: {
78
+ total: string;
79
+ linePerPage: string;
80
+ currentPage: string;
81
+ jumpTo: string;
82
+ page: string;
83
+ };
84
+ PopConfirm: {
85
+ cancel: string;
86
+ ok: string;
87
+ };
88
+ Querying: {
89
+ querying: string;
90
+ };
91
+ Select: {
92
+ searchPlaceholder: string;
93
+ selected: string;
94
+ };
95
+ Selector: {
96
+ root: string;
97
+ selectAll: string;
98
+ seeMore: string;
99
+ selected: string;
100
+ pleaseEnter: string;
101
+ searchResult: string;
102
+ detail: string;
103
+ child: string;
104
+ };
105
+ SelectorPicker: {
106
+ selected: string;
107
+ select: string;
108
+ };
109
+ SingleBox: {
110
+ add: string;
111
+ };
112
+ Table: {
113
+ empty: string;
114
+ determine: string;
115
+ restoreDefault: string;
116
+ serial: string;
117
+ loadMore: string;
118
+ refresh: string;
119
+ selectNum: string;
120
+ selectAll: string;
121
+ };
122
+ Tabs: {
123
+ confirmDelete: string;
124
+ };
125
+ Transfer: {
126
+ left: string;
127
+ right: string;
128
+ allCheck: string;
129
+ inVertCheck: string;
130
+ searchPlaceholder: string;
131
+ leftBtnTips: string;
132
+ rightBtnTips: string;
133
+ };
134
+ Tree: {
135
+ loadMore: string;
136
+ add: string;
137
+ edit: string;
138
+ disabled: string;
139
+ delete: string;
140
+ };
141
+ Upload: {
142
+ uploadError: string;
143
+ uploading: string;
144
+ clickUploadFile: string;
145
+ dragFileUpload: string;
146
+ add: string;
147
+ edit: string;
148
+ disabled: string;
149
+ delete: string;
150
+ editImage: string;
151
+ };
152
+ };
153
+ export default _default;