@para-ui/core 3.0.38 → 3.0.39

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 (144) hide show
  1. package/AutoBox/index.js +1 -1
  2. package/AutoTips/index.js +1 -1
  3. package/Breadcrumbs/index.js +2 -2
  4. package/Button/index.js +1 -1
  5. package/ButtonGroup/index.js +1 -1
  6. package/Cascader/index.js +16 -20
  7. package/Checkbox/index.js +1 -1
  8. package/CheckboxGroup/index.js +1 -1
  9. package/CollapseBox/index.js +1 -1
  10. package/CollapseLayout/index.js +1 -1
  11. package/ComboSelect/index.js +4 -4
  12. package/DatePicker/index.js +2 -2
  13. package/Desktop/index.js +2 -2
  14. package/DragVerify/index.d.ts +50 -0
  15. package/DragVerify/index.js +264 -0
  16. package/DragVerify/lang/en_US.d.ts +5 -0
  17. package/DragVerify/lang/index.d.ts +11 -0
  18. package/DragVerify/lang/zh_CN.d.ts +5 -0
  19. package/Drawer/index.js +4 -2
  20. package/DynamicMultiBox/formItem.d.ts +14 -0
  21. package/DynamicMultiBox/index.d.ts +5 -0
  22. package/DynamicMultiBox/index.js +1312 -0
  23. package/DynamicMultiBox/interface.d.ts +161 -0
  24. package/DynamicMultiBox/rowForm.d.ts +24 -0
  25. package/Form/index.js +5 -5
  26. package/FormItem/index.js +5 -5
  27. package/FunctionModal/index.js +5 -5
  28. package/Help/index.js +1 -1
  29. package/InputLang/index.js +2 -2
  30. package/InputNumber/index.js +1 -1
  31. package/Label/index.js +1 -1
  32. package/Menu/index.js +2 -2
  33. package/Modal/index.js +1 -1
  34. package/MultiBox/index.js +2 -2
  35. package/OperateBtn/index.js +43 -45
  36. package/PageHeader/index.js +2 -2
  37. package/Pagination/index.js +2 -2
  38. package/PopConfirm/index.js +1 -1
  39. package/Popover/index.js +1 -1
  40. package/README.md +7 -0
  41. package/Radio/index.js +1 -1
  42. package/RadioGroup/index.js +1 -1
  43. package/Search/index.js +1 -1
  44. package/Select/index.js +2 -2
  45. package/SelectInput/index.js +2 -2
  46. package/Selector/index.js +290 -306
  47. package/SelectorPicker/index.js +3 -3
  48. package/SingleBox/index.js +2 -2
  49. package/Slider/index.js +1 -1
  50. package/Split/index.js +1 -1
  51. package/Switch/index.js +1 -1
  52. package/Table/index.js +47 -49
  53. package/Tabs/index.js +1 -1
  54. package/Tag/index.js +2 -2
  55. package/TextEditor/index.js +1 -1
  56. package/TextField/index.js +1 -1
  57. package/TimePicker/index.js +2 -2
  58. package/ToggleButton/index.js +1 -1
  59. package/Tooltip/index.js +1 -1
  60. package/Transfer/index.js +3 -3022
  61. package/Tree/index.js +5 -5
  62. package/Upload/index.js +345 -361
  63. package/_verture/{index-06fea29b.js → index-beef914f.js} +3 -9
  64. package/_verture/{index-4f86f8dd.js → index-c2a6ba28.js} +1 -1
  65. package/_verture/{index-257f53f9.js → index-da441266.js} +162 -168
  66. package/_verture/{modalContext-c749e1c6.js → modalContext-44e0b3ea.js} +28 -30
  67. package/_verture/{slicedToArray-77980792.js → slicedToArray-708dbb18.js} +2 -6
  68. package/_verture/sortable.esm-49896035.js +3791 -0
  69. package/_verture/{toConsumableArray-87c7d895.js → toConsumableArray-57dd2e23.js} +1 -1
  70. package/index.d.ts +4 -0
  71. package/index.js +11 -8
  72. package/package.json +3 -2
  73. package/umd/AutoBox.js +43 -0
  74. package/umd/AutoTips.js +15 -0
  75. package/umd/Breadcrumbs.js +42 -0
  76. package/umd/Button.js +43 -0
  77. package/umd/ButtonGroup.js +43 -0
  78. package/umd/Carousel.js +6 -0
  79. package/umd/Cascader.js +43 -0
  80. package/umd/Checkbox.js +42 -0
  81. package/umd/CheckboxGroup.js +42 -0
  82. package/umd/Collapse.js +43 -0
  83. package/umd/CollapseBox.js +1 -0
  84. package/umd/CollapseLayout.js +29 -0
  85. package/umd/ColorPicker.js +1 -0
  86. package/umd/ComboSelect.js +42 -0
  87. package/umd/Container.js +1 -0
  88. package/umd/DatePicker.js +42 -0
  89. package/umd/Desktop.js +42 -0
  90. package/umd/DragVerify.js +29 -0
  91. package/umd/Drawer.js +43 -0
  92. package/umd/Dropdown.js +15 -0
  93. package/umd/DynamicMultiBox.js +54 -0
  94. package/umd/Empty.js +15 -0
  95. package/umd/Form.js +42 -0
  96. package/umd/FormItem.js +42 -0
  97. package/umd/FunctionModal.js +42 -0
  98. package/umd/GlobalContext.js +1 -0
  99. package/umd/Help.js +42 -0
  100. package/umd/HelperText.js +1 -0
  101. package/umd/InputLang.js +42 -0
  102. package/umd/InputNumber.js +42 -0
  103. package/umd/Label.js +42 -0
  104. package/umd/Loading.js +29 -0
  105. package/umd/Menu.js +29 -0
  106. package/umd/Message.js +30 -0
  107. package/umd/Modal.js +42 -0
  108. package/umd/MultiBox.js +42 -0
  109. package/umd/Notification.js +43 -0
  110. package/umd/OperateBtn.js +42 -0
  111. package/umd/PageHeader.js +42 -0
  112. package/umd/Pagination.js +42 -0
  113. package/umd/ParauiProvider.js +15 -0
  114. package/umd/PasswordRules.js +29 -0
  115. package/umd/PopConfirm.js +42 -0
  116. package/umd/Popover.js +15 -0
  117. package/umd/Progress.js +35 -0
  118. package/umd/Querying.js +15 -0
  119. package/umd/Radio.js +42 -0
  120. package/umd/RadioGroup.js +42 -0
  121. package/umd/Search.js +42 -0
  122. package/umd/Select.js +42 -0
  123. package/umd/SelectInput.js +42 -0
  124. package/umd/Selector.js +42 -0
  125. package/umd/SelectorPicker.js +42 -0
  126. package/umd/SingleBox.js +42 -0
  127. package/umd/Slider.js +15 -0
  128. package/umd/Split.js +1 -0
  129. package/umd/Status.js +1 -0
  130. package/umd/Stepper.js +42 -0
  131. package/umd/Switch.js +42 -0
  132. package/umd/Table.js +42 -0
  133. package/umd/Tabs.js +42 -0
  134. package/umd/Tag.js +43 -0
  135. package/umd/TextEditor.js +205 -0
  136. package/umd/TextField.js +42 -0
  137. package/umd/TimePicker.js +42 -0
  138. package/umd/Timeline.js +1 -0
  139. package/umd/Title.js +1 -0
  140. package/umd/ToggleButton.js +43 -0
  141. package/umd/Tooltip.js +15 -0
  142. package/umd/Transfer.js +49 -0
  143. package/umd/Tree.js +42 -0
  144. package/umd/Upload.js +56 -0
@@ -0,0 +1,161 @@
1
+ /**
2
+ * @author luohq
3
+ * @date 2022/11/7 10:32 AM
4
+ * @description 多值框组件接口定义
5
+ */
6
+ import { ReactNode } from "react";
7
+ import { TextFieldProps, SelectProps, SwitchProps, InputNumberProps, InputLangProps, ComboSelectProps, DatePickerProps } from "@para-ui/core";
8
+ /**组件类型:输入框,下拉框,开关,数字输入框,国际化输入框,日期框,时间选择框,组合选择器,自定义组件*/
9
+ export type IInputType = 'TextField' | 'Select' | 'Switch' | 'InputNumber' | 'InputLang' | 'ComboSelect' | 'DatePicker' | 'custom';
10
+ /** 配置项*/
11
+ export type IConfig = {
12
+ /** 字段名,用于匹配*/
13
+ name?: string;
14
+ /** 组件类型*/
15
+ inputType?: IInputType;
16
+ /** 渲染自定义组件*/
17
+ customRender?: (name: string, rowIndex: number, valueList: IValueList[], errors?: IErrors[]) => ReactNode;
18
+ /** 禁用置灰组件*/
19
+ isDisabled?: boolean | ((rowIndex: number, name: string, valueList?: IValueList) => boolean);
20
+ /** 固定字段, 不显示在筛选器中,*/
21
+ isFixed?: boolean;
22
+ /** 用于switch*/
23
+ text?: ReactNode | ((rowIndex: number, name: string, valueList: IValueList[]) => ReactNode);
24
+ /** 是否必填*/
25
+ required?: boolean;
26
+ /** 下拉列表数据,若某一列的每一行的下拉列表数据一致, 则只需传入数组,若需要自定义任意下拉列表数据,则传入函数*/
27
+ list?: ((rowIndex: number, id: string, name: string, valueList: IValueList[]) => any[]) | any[];
28
+ /** 其他*/
29
+ [name: string]: any;
30
+ } & (TextFieldProps | SelectProps | SwitchProps | InputNumberProps | InputLangProps | ComboSelectProps | DatePickerProps);
31
+ /** value集合*/
32
+ export interface IValueList {
33
+ /** id*/
34
+ id: string;
35
+ /** 每行value值集合, name映射configItem中的name*/
36
+ [name: string]: any;
37
+ }
38
+ export interface IErrors {
39
+ /** id*/
40
+ id: string;
41
+ /** 每行错误集合,name映射configItem中的name*/
42
+ [name: string]: any;
43
+ }
44
+ export interface ICurrentItem {
45
+ /** 表单名*/
46
+ name?: string;
47
+ /** 表单所处行id*/
48
+ id: string;
49
+ /** 表单值*/
50
+ value?: any;
51
+ /** 表单所处下标*/
52
+ rowIndex?: number;
53
+ }
54
+ /** 过滤回调出参*/
55
+ export interface IFilterParams {
56
+ /** 当前过滤操作项*/
57
+ name?: string;
58
+ /** 是否选中*/
59
+ checkedVal?: string[];
60
+ /** 更新后的valueList*/
61
+ valueList?: IValueList[];
62
+ /** 更新后的错误寄*/
63
+ errors?: IErrors[];
64
+ }
65
+ /** 主体接口定义*/
66
+ export interface IMultiValueProps {
67
+ /**
68
+ * 组件配置项
69
+ */
70
+ config?: IConfig[];
71
+ /**
72
+ * 筛选配置
73
+ */
74
+ filterConfig?: IConfig[];
75
+ /**
76
+ * @desc 回调
77
+ * @param valueList 整个value值集合
78
+ * @param currentItem 当前操作表单项
79
+ * */
80
+ onChange?: (valueList: IValueList[], currentItem?: ICurrentItem) => void;
81
+ /**
82
+ * @desc 新增, 如需要对新增的该条数据的value值或者其他特殊处理
83
+ * @param valueList 新增前valueList值集合
84
+ * @param addItem 新增项
85
+ * */
86
+ onAdd?: (valueList: IValueList[], errors: IErrors[]) => void;
87
+ /**
88
+ * @desc 删除,
89
+ * @param valueList 删除后整个valueList值集合
90
+ * @param deleteItem 删除项
91
+ */
92
+ onDelete?: (valueList: IValueList[], errors: IErrors[]) => void;
93
+ /**
94
+ * @desc 筛选函数
95
+ * @param name 当前筛选项的name
96
+ * @param checked 是否选中, true选中, false反选
97
+ * @param valueList 筛选后的value
98
+ * */
99
+ onFilter?: (data: IFilterParams) => void;
100
+ /**
101
+ * @desc 排序
102
+ * @param newValueList
103
+ * @param swapIds 交换顺序的两个下标
104
+ * */
105
+ onSort?: (newValueList: IValueList[], swapIds?: number[]) => void;
106
+ /**
107
+ * @desc 筛选值的集合
108
+ * */
109
+ checkedValue?: string[];
110
+ /**
111
+ * 表单value集合
112
+ */
113
+ valueList: IValueList[];
114
+ /**
115
+ * 表单错误集合
116
+ */
117
+ errors?: IErrors[];
118
+ /**
119
+ * 是否需要支持排序,默认不支持
120
+ */
121
+ isSort?: boolean;
122
+ /**
123
+ * 是否支持筛选组件,默认不支持
124
+ */
125
+ isFilter?: boolean;
126
+ /**
127
+ * 标题模式 none 不显示, single 只有第一列才显示, all 每列都显示
128
+ */
129
+ titleMode?: 'none' | 'single' | 'all';
130
+ /**
131
+ * 禁用新增标识
132
+ */
133
+ disabledAdd?: boolean;
134
+ /**
135
+ * 列之间icon
136
+ * */
137
+ icon?: ReactNode;
138
+ /**
139
+ * 隐藏删除icon, string[] 指定某些行隐藏删除按钮, 入参为valueList中的id集合
140
+ * */
141
+ deleteDisable?: string[];
142
+ /**
143
+ * 单个标题名称
144
+ * */
145
+ singleTitle?: {
146
+ label: ReactNode;
147
+ required: boolean;
148
+ };
149
+ /**
150
+ * 自定义类名
151
+ */
152
+ className?: string;
153
+ /**
154
+ * 新增项行表单的默认值
155
+ */
156
+ initValue?: Record<string, any>;
157
+ /**
158
+ * 筛选器弹出框样式
159
+ */
160
+ popoverClassName?: string;
161
+ }
@@ -0,0 +1,24 @@
1
+ import { ReactNode } from "react";
2
+ import { IConfig, IErrors, IValueList } from './interface';
3
+ export interface IRowForm {
4
+ /** 行数据*/
5
+ valueList?: IValueList[];
6
+ /**行错误数据 */
7
+ rowError?: IErrors;
8
+ /**行下标*/
9
+ rowIndex?: number;
10
+ /**列间图标*/
11
+ icon?: ReactNode;
12
+ /**组件配置*/
13
+ config?: IConfig[];
14
+ /**
15
+ * @desc 回调
16
+ * @param value 当前组件value值
17
+ * @param name 当前组件name
18
+ * */
19
+ onFormItemChange?: (name: string, id: string, value: any) => void;
20
+ /**其他*/
21
+ [name: string]: any;
22
+ }
23
+ declare const RowForm: (props: IRowForm) => JSX.Element;
24
+ export default RowForm;
package/Form/index.js CHANGED
@@ -1,9 +1,9 @@
1
- import { _ as _toConsumableArray } from '../_verture/toConsumableArray-87c7d895.js';
2
- import { _ as _slicedToArray } from '../_verture/slicedToArray-77980792.js';
1
+ import { _ as _toConsumableArray } from '../_verture/toConsumableArray-57dd2e23.js';
2
+ import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.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-4f86f8dd.js';
6
+ import { F as FormItem, v as validate } from '../_verture/index-c2a6ba28.js';
7
7
  import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
8
8
  import '../TextField/index.js';
9
9
  import '../_verture/typeof-498dd2b1.js';
@@ -55,7 +55,7 @@ import '@para-ui/icons/Minus';
55
55
  import '@para-ui/icons/Plus';
56
56
  import '../ComboSelect/index.js';
57
57
  import '../Table/index.js';
58
- import '../_verture/index-06fea29b.js';
58
+ import '../_verture/index-beef914f.js';
59
59
  import '@para-ui/icons/ScreenF';
60
60
  import '@para-ui/icons/UpTriangleF';
61
61
  import '@para-ui/icons/DownTriangleF';
@@ -68,7 +68,7 @@ import '@para-ui/icons/Left';
68
68
  import 'rc-pagination';
69
69
  import '@para-ui/icons/Right';
70
70
  import '@para-ui/icons/DoubleRight';
71
- import '../_verture/index-257f53f9.js';
71
+ import '../_verture/index-da441266.js';
72
72
  import 'rc-tree';
73
73
  import '@para-ui/icons/Document';
74
74
  import 'react-dom';
package/FormItem/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import 'react/jsx-runtime';
2
2
  import 'react';
3
- export { F as default } from '../_verture/index-4f86f8dd.js';
3
+ export { F as default } from '../_verture/index-c2a6ba28.js';
4
4
  import 'clsx';
5
5
  import '../Label/index.js';
6
6
  import '../_verture/constant-66aa48a1.js';
7
- import '../_verture/slicedToArray-77980792.js';
7
+ import '../_verture/slicedToArray-708dbb18.js';
8
8
  import '../TextField/index.js';
9
9
  import '../_verture/typeof-498dd2b1.js';
10
10
  import '../_verture/tslib.es6-55ed4bd2.js';
@@ -32,7 +32,7 @@ import '../RadioGroup/index.js';
32
32
  import '../Radio/index.js';
33
33
  import '../Select/index.js';
34
34
  import '../_verture/defineProperty-62acccfc.js';
35
- import '../_verture/toConsumableArray-87c7d895.js';
35
+ import '../_verture/toConsumableArray-57dd2e23.js';
36
36
  import '../Empty/index.js';
37
37
  import '../_verture/useFormatMessage-703f8b20.js';
38
38
  import '@para-ui/icons/Close';
@@ -55,7 +55,7 @@ import '@para-ui/icons/Minus';
55
55
  import '@para-ui/icons/Plus';
56
56
  import '../ComboSelect/index.js';
57
57
  import '../Table/index.js';
58
- import '../_verture/index-06fea29b.js';
58
+ import '../_verture/index-beef914f.js';
59
59
  import '@para-ui/icons/ScreenF';
60
60
  import '@para-ui/icons/UpTriangleF';
61
61
  import '@para-ui/icons/DownTriangleF';
@@ -68,7 +68,7 @@ import '@para-ui/icons/Left';
68
68
  import 'rc-pagination';
69
69
  import '@para-ui/icons/Right';
70
70
  import '@para-ui/icons/DoubleRight';
71
- import '../_verture/index-257f53f9.js';
71
+ import '../_verture/index-da441266.js';
72
72
  import 'rc-tree';
73
73
  import '@para-ui/icons/Document';
74
74
  import 'react-dom';
@@ -1,8 +1,8 @@
1
- import { u as useModal } from '../_verture/modalContext-c749e1c6.js';
2
- export { F as FunctionModalProvider, u as default, a as useClose } from '../_verture/modalContext-c749e1c6.js';
3
- import '../_verture/toConsumableArray-87c7d895.js';
4
- import '../_verture/slicedToArray-77980792.js';
5
- import '../_verture/index-06fea29b.js';
1
+ import { u as useModal } from '../_verture/modalContext-44e0b3ea.js';
2
+ export { F as FunctionModalProvider, u as default, a as useClose } from '../_verture/modalContext-44e0b3ea.js';
3
+ import '../_verture/toConsumableArray-57dd2e23.js';
4
+ import '../_verture/slicedToArray-708dbb18.js';
5
+ import '../_verture/index-beef914f.js';
6
6
  import '../_verture/tslib.es6-55ed4bd2.js';
7
7
  import 'react/jsx-runtime';
8
8
  import 'react';
package/Help/index.js CHANGED
@@ -5,7 +5,7 @@ import HelpIcon from '@para-ui/icons/Help';
5
5
  import clsx from 'clsx';
6
6
  import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
7
7
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
8
- import '../_verture/slicedToArray-77980792.js';
8
+ import '../_verture/slicedToArray-708dbb18.js';
9
9
  import 'react';
10
10
  import 'rc-tooltip';
11
11
  import 'rc-tooltip/lib/placements';
@@ -1,5 +1,5 @@
1
- import { _ as _toConsumableArray } from '../_verture/toConsumableArray-87c7d895.js';
2
- import { _ as _slicedToArray } from '../_verture/slicedToArray-77980792.js';
1
+ import { _ as _toConsumableArray } from '../_verture/toConsumableArray-57dd2e23.js';
2
+ import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
3
3
  import { jsx, jsxs } from 'react/jsx-runtime';
4
4
  import { useState, useEffect, useMemo } from 'react';
5
5
  import { TextField } from '../TextField/index.js';
@@ -1,4 +1,4 @@
1
- import { _ as _slicedToArray } from '../_verture/slicedToArray-77980792.js';
1
+ import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
2
2
  import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
3
3
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
4
4
  import { useState, useRef, useEffect, useMemo } from 'react';
package/Label/index.js CHANGED
@@ -4,7 +4,7 @@ import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
4
4
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
5
5
  import '../_verture/tslib.es6-55ed4bd2.js';
6
6
  import '../Tooltip/index.js';
7
- import '../_verture/slicedToArray-77980792.js';
7
+ import '../_verture/slicedToArray-708dbb18.js';
8
8
  import 'react';
9
9
  import 'rc-tooltip';
10
10
  import 'rc-tooltip/lib/placements';
package/Menu/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { _ as _slicedToArray } from '../_verture/slicedToArray-77980792.js';
1
+ import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
2
2
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
3
3
  import React__default, { useState, useEffect, useMemo, createElement, useRef } from 'react';
4
- import { _ as _toConsumableArray } from '../_verture/toConsumableArray-87c7d895.js';
4
+ import { _ as _toConsumableArray } from '../_verture/toConsumableArray-57dd2e23.js';
5
5
  import { createPortal } from 'react-dom';
6
6
  import CollapseBox from '../CollapseBox/index.js';
7
7
  import Down from '@para-ui/icons/Down';
package/Modal/index.js CHANGED
@@ -18,7 +18,7 @@ import WarningCircleF from '@para-ui/icons/WarningCircleF';
18
18
  import { UUID } from '@paraview/lib';
19
19
  import { getConfirmLocale } from '@para-ui/core/GlobalContext';
20
20
  import '../_verture/typeof-498dd2b1.js';
21
- import '../_verture/slicedToArray-77980792.js';
21
+ import '../_verture/slicedToArray-708dbb18.js';
22
22
  import '@para-ui/icons/LoadingF';
23
23
  import '@para-ui/icons/Forbid';
24
24
  import '../Tooltip/index.js';
package/MultiBox/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { _ as _typeof } from '../_verture/typeof-498dd2b1.js';
2
- import { _ as _toConsumableArray } from '../_verture/toConsumableArray-87c7d895.js';
3
- import { _ as _slicedToArray } from '../_verture/slicedToArray-77980792.js';
2
+ import { _ as _toConsumableArray } from '../_verture/toConsumableArray-57dd2e23.js';
3
+ import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
4
4
  import { jsxs, jsx } from 'react/jsx-runtime';
5
5
  import { useState, useEffect } from 'react';
6
6
  import { TextField } from '../TextField/index.js';
@@ -1,5 +1,5 @@
1
- import { _ as _slicedToArray } from '../_verture/slicedToArray-77980792.js';
2
- import { r as regenerator } from '../_verture/index-06fea29b.js';
1
+ import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
2
+ import { r as regenerator } from '../_verture/index-beef914f.js';
3
3
  import { a as __awaiter } from '../_verture/tslib.es6-55ed4bd2.js';
4
4
  import { jsxs, jsx, Fragment as Fragment$1 } from 'react/jsx-runtime';
5
5
  import { useState, Fragment } from 'react';
@@ -60,51 +60,49 @@ var OperateBtn = function OperateBtn(props) {
60
60
  return __awaiter(void 0, void 0, void 0, /*#__PURE__*/regenerator.mark(function _callee() {
61
61
  var handKey, loading, result;
62
62
  return regenerator.wrap(function _callee$(_context) {
63
- while (1) {
64
- switch (_context.prev = _context.next) {
65
- case 0:
66
- if (!(item.disabled || handLoadStatus(item, index))) {
67
- _context.next = 2;
68
- break;
69
- }
70
- return _context.abrupt("return");
71
- case 2:
72
- if (clickCloseMore) closeMore();
73
- handKey = item[key];
74
- loading = loadingMapping && loadingMapping[handKey]; // 不存在外部loading
75
- if (loading === undefined) {
76
- loadingInside[index] = true;
77
- setLoadingInside(Object.assign({}, loadingInside));
78
- }
79
- if (!item.onClick) {
80
- _context.next = 12;
81
- break;
82
- }
83
- _context.next = 9;
84
- return item.onClick(item, e);
85
- case 9:
86
- result = _context.sent;
63
+ while (1) switch (_context.prev = _context.next) {
64
+ case 0:
65
+ if (!(item.disabled || handLoadStatus(item, index))) {
66
+ _context.next = 2;
67
+ break;
68
+ }
69
+ return _context.abrupt("return");
70
+ case 2:
71
+ if (clickCloseMore) closeMore();
72
+ handKey = item[key];
73
+ loading = loadingMapping && loadingMapping[handKey]; // 不存在外部loading
74
+ if (loading === undefined) {
75
+ loadingInside[index] = true;
76
+ setLoadingInside(Object.assign({}, loadingInside));
77
+ }
78
+ if (!item.onClick) {
79
+ _context.next = 12;
80
+ break;
81
+ }
82
+ _context.next = 9;
83
+ return item.onClick(item, e);
84
+ case 9:
85
+ result = _context.sent;
86
+ _context.next = 16;
87
+ break;
88
+ case 12:
89
+ if (!onClick) {
87
90
  _context.next = 16;
88
91
  break;
89
- case 12:
90
- if (!onClick) {
91
- _context.next = 16;
92
- break;
93
- }
94
- _context.next = 15;
95
- return onClick(item, e);
96
- case 15:
97
- result = _context.sent;
98
- case 16:
99
- // 不存在外部loading
100
- if (loading === undefined) {
101
- loadingInside[index] = result;
102
- setLoadingInside(Object.assign({}, loadingInside));
103
- }
104
- case 17:
105
- case "end":
106
- return _context.stop();
107
- }
92
+ }
93
+ _context.next = 15;
94
+ return onClick(item, e);
95
+ case 15:
96
+ result = _context.sent;
97
+ case 16:
98
+ // 不存在外部loading
99
+ if (loading === undefined) {
100
+ loadingInside[index] = result;
101
+ setLoadingInside(Object.assign({}, loadingInside));
102
+ }
103
+ case 17:
104
+ case "end":
105
+ return _context.stop();
108
106
  }
109
107
  }, _callee);
110
108
  }));
@@ -1,7 +1,7 @@
1
1
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
2
2
  import { useState, useEffect, useMemo, useCallback, useRef } from 'react';
3
- import { _ as _toConsumableArray } from '../_verture/toConsumableArray-87c7d895.js';
4
- import { _ as _slicedToArray } from '../_verture/slicedToArray-77980792.js';
3
+ import { _ as _toConsumableArray } from '../_verture/toConsumableArray-57dd2e23.js';
4
+ import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
5
5
  import { Popover } from '../Popover/index.js';
6
6
  import Down from '@para-ui/icons/Down';
7
7
  import * as iconList from '@para-ui/icons';
@@ -1,4 +1,4 @@
1
- import { _ as _slicedToArray } from '../_verture/slicedToArray-77980792.js';
1
+ import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
2
2
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
3
3
  import React__default, { useState, useRef, useEffect, useMemo } from 'react';
4
4
  import GlobalContext from '@para-ui/core/GlobalContext';
@@ -35,7 +35,7 @@ import 'rc-dropdown';
35
35
  import '../_verture/usePopupContainer-87febeb9.js';
36
36
  import 'dayjs';
37
37
  import '../_verture/defineProperty-62acccfc.js';
38
- import '../_verture/toConsumableArray-87c7d895.js';
38
+ import '../_verture/toConsumableArray-57dd2e23.js';
39
39
  import '../Empty/index.js';
40
40
  import '@para-ui/icons/Close';
41
41
  import '@para-ui/icons/Down';
@@ -1,4 +1,4 @@
1
- import { _ as _slicedToArray } from '../_verture/slicedToArray-77980792.js';
1
+ import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
2
2
  import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
3
3
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
4
4
  import React__default, { useState, useEffect } from 'react';
package/Popover/index.js CHANGED
@@ -6,7 +6,7 @@ import { $ as $prefixCls, a as $rcPrefixCls } from '../_verture/constant-66aa48a
6
6
  import { u as usePopupContainer } from '../_verture/usePopupContainer-87febeb9.js';
7
7
  import clsx from 'clsx';
8
8
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
9
- import '../_verture/slicedToArray-77980792.js';
9
+ import '../_verture/slicedToArray-708dbb18.js';
10
10
  import 'rc-tooltip';
11
11
  import 'rc-tooltip/lib/placements';
12
12
 
package/README.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 版本: 3.0.39
2
+
3
+ para-ui/core@3.0.39 发布
4
+ 【动态多值框-DynamicMultiBox】新增
5
+ 【滑块验证-DragVerify】新增滑块验证组件
6
+ 【抽屉-Drawer】组件重新渲染,导致事件执行阻塞修复
7
+
1
8
  ## 版本: 3.0.38
2
9
 
3
10
  para-ui/core@3.0.38 发布
package/Radio/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as _slicedToArray } from '../_verture/slicedToArray-77980792.js';
1
+ import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { useState, useEffect } from 'react';
4
4
  import Label from '../Label/index.js';
@@ -1,4 +1,4 @@
1
- import { _ as _slicedToArray } from '../_verture/slicedToArray-77980792.js';
1
+ import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
2
2
  import { useState, useEffect, createElement } from 'react';
3
3
  import { jsxs, jsx } from 'react/jsx-runtime';
4
4
  import { Radio } from '../Radio/index.js';
package/Search/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as _slicedToArray } from '../_verture/slicedToArray-77980792.js';
1
+ import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { useState, useEffect } from 'react';
4
4
  import { TextField } from '../TextField/index.js';
package/Select/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { _ as _defineProperty } from '../_verture/defineProperty-62acccfc.js';
2
- import { _ as _toConsumableArray } from '../_verture/toConsumableArray-87c7d895.js';
2
+ import { _ as _toConsumableArray } from '../_verture/toConsumableArray-57dd2e23.js';
3
3
  import { _ as _typeof } from '../_verture/typeof-498dd2b1.js';
4
- import { _ as _slicedToArray } from '../_verture/slicedToArray-77980792.js';
4
+ import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
5
5
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
6
6
  import React__default, { useRef, useState, useEffect, useMemo } from 'react';
7
7
  import Empty from '../Empty/index.js';
@@ -3,8 +3,8 @@ import Select from '../Select/index.js';
3
3
  import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
4
4
  import '../_verture/defineProperty-62acccfc.js';
5
5
  import '../_verture/typeof-498dd2b1.js';
6
- import '../_verture/toConsumableArray-87c7d895.js';
7
- import '../_verture/slicedToArray-77980792.js';
6
+ import '../_verture/toConsumableArray-57dd2e23.js';
7
+ import '../_verture/slicedToArray-708dbb18.js';
8
8
  import 'react';
9
9
  import '../Empty/index.js';
10
10
  import 'clsx';