@zat-design/sisyphus-react 3.6.5-beta.10 → 3.6.5-beta.11

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 (151) hide show
  1. package/es/ProAction/index.js +4 -4
  2. package/es/ProDownload/index.d.ts +1 -1
  3. package/es/ProEditTable/components/ActionButton/index.d.ts +1 -1
  4. package/es/ProEditTable/components/RcTable/BaseTable.d.ts +6 -0
  5. package/es/ProEditTable/components/RcTable/BaseTable.js +75 -0
  6. package/es/ProEditTable/components/RcTable/DraggableTable.d.ts +7 -0
  7. package/es/ProEditTable/components/RcTable/DraggableTable.js +90 -0
  8. package/es/ProEditTable/components/RcTable/VirtualTable1.d.ts +6 -0
  9. package/es/ProEditTable/components/RcTable/VirtualTable1.js +86 -0
  10. package/es/ProEditTable/components/RcTable/index.d.ts +6 -0
  11. package/es/ProEditTable/components/RcTable/index.js +6 -0
  12. package/es/ProEditTable/components/RenderField/index.d.ts +1 -1
  13. package/es/ProEditTable/components/RenderField/index.js +26 -18
  14. package/es/ProEditTable/components/RenderToolbar/index.d.ts +3 -2
  15. package/es/ProEditTable/components/RenderToolbar/index.js +2 -2
  16. package/es/ProEditTable/components/Summary/index.d.ts +1 -1
  17. package/es/ProEditTable/index.js +33 -55
  18. package/es/ProEditTable/propsType.d.ts +6 -0
  19. package/es/ProEditTable/utils/config.d.ts +1 -1
  20. package/es/ProEditTable/utils/config.js +2 -2
  21. package/es/ProEditTable/utils/tools.js +3 -3
  22. package/es/ProEnum/components/Group.d.ts +1 -1
  23. package/es/ProEnum/components/Tag.d.ts +1 -1
  24. package/es/ProEnum/index.d.ts +2 -2
  25. package/es/ProEnum/utils/eventCenter.js +1 -2
  26. package/es/ProEnum/utils/getEnumLabel.d.ts +1 -1
  27. package/es/ProForm/components/base/Input/index.d.ts +1 -1
  28. package/es/ProForm/components/combination/ProCascader/index.d.ts +1 -1
  29. package/es/ProForm/components/combination/ProCascader/index.js +7 -7
  30. package/es/ProForm/components/old/InputRange/index.d.ts +1 -1
  31. package/es/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
  32. package/es/ProForm/components/old/ProAddress/index.d.ts +1 -2
  33. package/es/ProForm/components/old/ProRangeBox/index.d.ts +1 -2
  34. package/es/ProForm/utils/index.js +14 -10
  35. package/es/ProIcon/utils/index.js +4 -3
  36. package/es/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +1 -1
  37. package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +3 -3
  38. package/es/ProLayout/components/ProCollapse/index.d.ts +1 -1
  39. package/es/ProLayout/components/ProFooter/index.d.ts +1 -1
  40. package/es/ProLayout/components/ProHeader/components/Copy/index.d.ts +1 -1
  41. package/es/ProLayout/components/ProHeader/index.d.ts +1 -1
  42. package/es/ProLayout/index.d.ts +4 -4
  43. package/es/ProLayout/utils/index.js +9 -9
  44. package/es/ProSelect/components/AdaptiveTooltip.d.ts +1 -1
  45. package/es/ProSelect/index.d.ts +1 -1
  46. package/es/ProStep/components/Anchor/index.d.ts +1 -1
  47. package/es/ProStep/components/Item/index.d.ts +1 -1
  48. package/es/ProStep/components/Step/index.d.ts +1 -1
  49. package/es/ProStep/index.d.ts +2 -2
  50. package/es/ProTable/components/ResizableLine/index.d.ts +1 -1
  51. package/es/ProTable/components/TableResizable/index.d.ts +1 -1
  52. package/es/ProTable/index.d.ts +1 -1
  53. package/es/ProTable/utils.js +3 -3
  54. package/es/ProTabs/components/Card/index.d.ts +1 -1
  55. package/es/ProThemeTools/component/PrdTools/index.d.ts +1 -1
  56. package/es/ProThemeTools/index.d.ts +1 -1
  57. package/es/ProTooltip/index.d.ts +1 -1
  58. package/es/ProTree/components/CloseIcon.d.ts +1 -2
  59. package/es/ProTree/components/List.d.ts +1 -1
  60. package/es/ProTree/components/ProTree.d.ts +1 -1
  61. package/es/ProTree/components/ProTreeSelect/index.d.ts +1 -1
  62. package/es/ProTree/components/ProTreeSelect/index.js +18 -18
  63. package/es/ProTree/components/SearchTitle.d.ts +1 -1
  64. package/es/ProTree/components/Tree.d.ts +1 -1
  65. package/es/ProTree/components/Tree.js +3 -3
  66. package/es/ProTree/index.d.ts +1 -1
  67. package/es/ProTree/utils.js +12 -11
  68. package/es/ProTreeModal/components/Cascader.d.ts +1 -1
  69. package/es/ProTreeModal/components/CloseIcon.d.ts +1 -2
  70. package/es/ProTreeModal/components/SearchTitle.d.ts +1 -1
  71. package/es/ProTreeModal/components/Tree.js +6 -6
  72. package/es/ProTreeModal/components/Trigger.d.ts +1 -1
  73. package/es/ProTreeModal/index.d.ts +1 -1
  74. package/es/ProTreeModal/utils.js +12 -11
  75. package/es/ProUpload/components/DraggableUploadListItem.d.ts +1 -1
  76. package/lib/ProAction/index.js +4 -4
  77. package/lib/ProDownload/index.d.ts +1 -1
  78. package/lib/ProEditTable/components/ActionButton/index.d.ts +1 -1
  79. package/lib/ProEditTable/components/RcTable/BaseTable.d.ts +6 -0
  80. package/lib/ProEditTable/components/RcTable/BaseTable.js +81 -0
  81. package/lib/ProEditTable/components/RcTable/DraggableTable.d.ts +7 -0
  82. package/lib/ProEditTable/components/RcTable/DraggableTable.js +96 -0
  83. package/lib/ProEditTable/components/RcTable/VirtualTable1.d.ts +6 -0
  84. package/lib/ProEditTable/components/RcTable/VirtualTable1.js +93 -0
  85. package/lib/ProEditTable/components/RcTable/index.d.ts +6 -0
  86. package/lib/ProEditTable/components/RcTable/index.js +27 -0
  87. package/lib/ProEditTable/components/RenderField/index.d.ts +1 -1
  88. package/lib/ProEditTable/components/RenderField/index.js +26 -18
  89. package/lib/ProEditTable/components/RenderToolbar/index.d.ts +3 -2
  90. package/lib/ProEditTable/components/RenderToolbar/index.js +3 -2
  91. package/lib/ProEditTable/components/Summary/index.d.ts +1 -1
  92. package/lib/ProEditTable/index.js +32 -52
  93. package/lib/ProEditTable/propsType.d.ts +6 -0
  94. package/lib/ProEditTable/utils/config.d.ts +1 -1
  95. package/lib/ProEditTable/utils/config.js +2 -2
  96. package/lib/ProEditTable/utils/tools.js +3 -3
  97. package/lib/ProEnum/components/Group.d.ts +1 -1
  98. package/lib/ProEnum/components/Tag.d.ts +1 -1
  99. package/lib/ProEnum/index.d.ts +2 -2
  100. package/lib/ProEnum/utils/eventCenter.js +1 -2
  101. package/lib/ProEnum/utils/getEnumLabel.d.ts +1 -1
  102. package/lib/ProForm/components/base/Input/index.d.ts +1 -1
  103. package/lib/ProForm/components/combination/ProCascader/index.d.ts +1 -1
  104. package/lib/ProForm/components/combination/ProCascader/index.js +7 -7
  105. package/lib/ProForm/components/old/InputRange/index.d.ts +1 -1
  106. package/lib/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
  107. package/lib/ProForm/components/old/ProAddress/index.d.ts +1 -2
  108. package/lib/ProForm/components/old/ProRangeBox/index.d.ts +1 -2
  109. package/lib/ProForm/utils/index.js +10 -10
  110. package/lib/ProIcon/utils/index.js +3 -3
  111. package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +1 -1
  112. package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.js +3 -3
  113. package/lib/ProLayout/components/ProCollapse/index.d.ts +1 -1
  114. package/lib/ProLayout/components/ProFooter/index.d.ts +1 -1
  115. package/lib/ProLayout/components/ProHeader/components/Copy/index.d.ts +1 -1
  116. package/lib/ProLayout/components/ProHeader/index.d.ts +1 -1
  117. package/lib/ProLayout/index.d.ts +4 -4
  118. package/lib/ProLayout/utils/index.js +9 -9
  119. package/lib/ProSelect/components/AdaptiveTooltip.d.ts +1 -1
  120. package/lib/ProSelect/index.d.ts +1 -1
  121. package/lib/ProStep/components/Anchor/index.d.ts +1 -1
  122. package/lib/ProStep/components/Item/index.d.ts +1 -1
  123. package/lib/ProStep/components/Step/index.d.ts +1 -1
  124. package/lib/ProStep/index.d.ts +2 -2
  125. package/lib/ProTable/components/ResizableLine/index.d.ts +1 -1
  126. package/lib/ProTable/components/TableResizable/index.d.ts +1 -1
  127. package/lib/ProTable/index.d.ts +1 -1
  128. package/lib/ProTable/utils.js +3 -3
  129. package/lib/ProTabs/components/Card/index.d.ts +1 -1
  130. package/lib/ProThemeTools/component/PrdTools/index.d.ts +1 -1
  131. package/lib/ProThemeTools/index.d.ts +1 -1
  132. package/lib/ProTooltip/index.d.ts +1 -1
  133. package/lib/ProTree/components/CloseIcon.d.ts +1 -2
  134. package/lib/ProTree/components/List.d.ts +1 -1
  135. package/lib/ProTree/components/ProTree.d.ts +1 -1
  136. package/lib/ProTree/components/ProTreeSelect/index.d.ts +1 -1
  137. package/lib/ProTree/components/ProTreeSelect/index.js +18 -18
  138. package/lib/ProTree/components/SearchTitle.d.ts +1 -1
  139. package/lib/ProTree/components/Tree.d.ts +1 -1
  140. package/lib/ProTree/components/Tree.js +3 -3
  141. package/lib/ProTree/index.d.ts +1 -1
  142. package/lib/ProTree/utils.js +11 -11
  143. package/lib/ProTreeModal/components/Cascader.d.ts +1 -1
  144. package/lib/ProTreeModal/components/CloseIcon.d.ts +1 -2
  145. package/lib/ProTreeModal/components/SearchTitle.d.ts +1 -1
  146. package/lib/ProTreeModal/components/Tree.js +6 -6
  147. package/lib/ProTreeModal/components/Trigger.d.ts +1 -1
  148. package/lib/ProTreeModal/index.d.ts +1 -1
  149. package/lib/ProTreeModal/utils.js +11 -11
  150. package/lib/ProUpload/components/DraggableUploadListItem.d.ts +1 -1
  151. package/package.json +2 -1
@@ -167,7 +167,7 @@ export var actions = {
167
167
  },
168
168
  add: function () {
169
169
  var _add = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref5) {
170
- var _tableRef$current$que, _tableRef$current$que2;
170
+ var _tableRef$current, _tableRef$current$chi, _tableRef$current$chi2;
171
171
  var result, insertType, editingKeys, setState, form, name, virtualName, virtualKey, onlyOneLineMsg, tableRef, _ref5$prefixCls, prefixCls, nextData, rowKey, addData, nextEditingKeys;
172
172
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
173
173
  while (1) switch (_context2.prev = _context2.next) {
@@ -200,7 +200,7 @@ export var actions = {
200
200
  });
201
201
  }
202
202
  form.setFieldValue(name, nextData);
203
- (_tableRef$current$que = tableRef.current.querySelector(".".concat(prefixCls, "-table-body"))) === null || _tableRef$current$que === void 0 ? void 0 : (_tableRef$current$que2 = _tableRef$current$que.scrollTo) === null || _tableRef$current$que2 === void 0 ? void 0 : _tableRef$current$que2.call(_tableRef$current$que, {
203
+ (_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 ? void 0 : (_tableRef$current$chi = _tableRef$current.children) === null || _tableRef$current$chi === void 0 ? void 0 : (_tableRef$current$chi2 = _tableRef$current$chi.scrollTo) === null || _tableRef$current$chi2 === void 0 ? void 0 : _tableRef$current$chi2.call(_tableRef$current$chi, {
204
204
  top: insertType === 'before' ? -10000 : 10000,
205
205
  behavior: 'smooth'
206
206
  });
@@ -5,14 +5,14 @@ export var getRandom = function getRandom() {
5
5
  };
6
6
  // 深层次对比两个对象且取出来差异值
7
7
  export var difference = function difference(object, base) {
8
- var changes = function changes(object, base) {
8
+ var _changes = function changes(object, base) {
9
9
  return transform(object, function (result, value, key) {
10
10
  if (!isEqual(value, base[key])) {
11
- result[key] = isObject(value) && isObject(base[key]) ? changes(value, base[key]) : value;
11
+ result[key] = isObject(value) && isObject(base[key]) ? _changes(value, base[key]) : value;
12
12
  }
13
13
  });
14
14
  };
15
- return changes(object, base);
15
+ return _changes(object, base);
16
16
  };
17
17
  // 数组字段循环校验,解决validateFields无法批量校验的问题
18
18
  export var customValidate = function customValidate(validateKeys, form, rowName) {
@@ -6,5 +6,5 @@ interface Props extends Pick<ProEnum, 'id' | 'value' | 'onChange' | 'dataSource'
6
6
  allowClear?: boolean;
7
7
  button?: boolean;
8
8
  }
9
- declare const Group: (props: Props) => JSX.Element;
9
+ declare const Group: (props: Props) => import("react/jsx-runtime").JSX.Element;
10
10
  export default Group;
@@ -3,5 +3,5 @@ interface Props extends Pick<ProEnum, 'id' | 'value' | 'onChange' | 'dataSource'
3
3
  fieldValue: string;
4
4
  fieldLabel: string;
5
5
  }
6
- declare const ProEnumTag: (props: Props) => JSX.Element;
6
+ declare const ProEnumTag: (props: Props) => import("react/jsx-runtime").JSX.Element;
7
7
  export default ProEnumTag;
@@ -2,8 +2,8 @@ import useEnum from './hooks/useEnum';
2
2
  import { ProEnumProps } from './propsType';
3
3
  import './style/index.less';
4
4
  declare const ProEnum: {
5
- (props: ProEnumProps): JSX.Element;
6
- getEnumLabel: (code: string | string[], value: any, compose?: boolean, fieldNameLabel?: string, fieldNameValue?: string) => JSX.Element;
5
+ (props: ProEnumProps): import("react/jsx-runtime").JSX.Element;
6
+ getEnumLabel: (code: string | string[], value: any, compose?: boolean, fieldNameLabel?: string, fieldNameValue?: string) => import("react/jsx-runtime").JSX.Element;
7
7
  useEnum: typeof useEnum;
8
8
  };
9
9
  export default ProEnum;
@@ -7,7 +7,7 @@ var SimpleEventCenter = /*#__PURE__*/function () {
7
7
  this.events = void 0;
8
8
  this.events = new Map();
9
9
  }
10
- _createClass(SimpleEventCenter, [{
10
+ return _createClass(SimpleEventCenter, [{
11
11
  key: "subscribe",
12
12
  value: function subscribe(eventName, callback) {
13
13
  if (!this.events.has(eventName)) {
@@ -34,6 +34,5 @@ var SimpleEventCenter = /*#__PURE__*/function () {
34
34
  }
35
35
  }
36
36
  }]);
37
- return SimpleEventCenter;
38
37
  }(); // 将 eventCenter 实例添加到 window 对象上
39
38
  window.eventCenter = new SimpleEventCenter();
@@ -1,2 +1,2 @@
1
- declare const getEnumLabel: (code: string | string[], value: any, compose?: boolean, fieldNameLabel?: string, fieldNameValue?: string) => JSX.Element;
1
+ declare const getEnumLabel: (code: string | string[], value: any, compose?: boolean, fieldNameLabel?: string, fieldNameValue?: string) => import("react/jsx-runtime").JSX.Element;
2
2
  export default getEnumLabel;
@@ -1,3 +1,3 @@
1
1
  import { IProps } from './propsType';
2
- declare const Input: (props: IProps) => JSX.Element;
2
+ declare const Input: (props: IProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Input;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { ProCascaderProps } from './propsType';
3
- declare const _default: import("react").MemoExoticComponent<(props: ProCascaderProps) => JSX.Element>;
3
+ declare const _default: import("react").MemoExoticComponent<(props: ProCascaderProps) => import("react/jsx-runtime").JSX.Element>;
4
4
  export default _default;
@@ -28,9 +28,9 @@ var defaultFieldNames = {
28
28
  value: 'code',
29
29
  children: 'children'
30
30
  };
31
- var filterDataSource = function filterDataSource(dataSource, level, fieldNames) {
31
+ var _filterDataSource = function filterDataSource(dataSource, level, fieldNames) {
32
32
  return dataSource === null || dataSource === void 0 ? void 0 : dataSource.map(function (item) {
33
- return _objectSpread(_objectSpread({}, item), {}, _defineProperty({}, (fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children) || 'children', level === 1 ? [] : filterDataSource(item === null || item === void 0 ? void 0 : item[(fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children) || 'children'], level - 1, fieldNames)));
33
+ return _objectSpread(_objectSpread({}, item), {}, _defineProperty({}, (fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children) || 'children', level === 1 ? [] : _filterDataSource(item === null || item === void 0 ? void 0 : item[(fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children) || 'children'], level - 1, fieldNames)));
34
34
  });
35
35
  };
36
36
  var getViewLabel = function getViewLabel(_ref) {
@@ -94,7 +94,7 @@ var ProCascader = function ProCascader(props) {
94
94
  enumDataSource = _ref5$ === void 0 ? [] : _ref5$;
95
95
  var realDataSource = useMemo(function () {
96
96
  var innerDataSource = dataSource || (addressCode ? enumDataSource : []);
97
- var result = isAddressMode && realLevel === 2 ? filterDataSource(innerDataSource, level, fieldNames) : innerDataSource;
97
+ var result = isAddressMode && realLevel === 2 ? _filterDataSource(innerDataSource, level, fieldNames) : innerDataSource;
98
98
  return transformDataName(result, fieldNames);
99
99
  }, [isAddressMode, addressCode, realLevel, dataSource, enumDataSource === null || enumDataSource === void 0 ? void 0 : enumDataSource.length]);
100
100
  var _useRequest = _objectSpread({}, useRequest),
@@ -129,7 +129,7 @@ var ProCascader = function ProCascader(props) {
129
129
  value: fieldNames.value,
130
130
  children: (fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children) || 'children'
131
131
  });
132
- serviceData = isAddressMode && realLevel === 2 ? filterDataSource(transFormData, level, fieldNames) : transFormData;
132
+ serviceData = isAddressMode && realLevel === 2 ? _filterDataSource(transFormData, level, fieldNames) : transFormData;
133
133
  setServiceData(serviceData);
134
134
  case 9:
135
135
  case "end":
@@ -194,7 +194,7 @@ var ProCascader = function ProCascader(props) {
194
194
  })) === null || _ref7$filter === void 0 ? void 0 : _ref7$filter.join(separator)) || '-' : (defaultLabel === null || defaultLabel === void 0 ? void 0 : (_defaultLabel$filter = defaultLabel.filter(function (item) {
195
195
  return !!item;
196
196
  })) === null || _defaultLabel$filter === void 0 ? void 0 : _defaultLabel$filter.join(separator)) || '-';
197
- var findSelectedOptions = function findSelectedOptions(options, value) {
197
+ var _findSelectedOptions = function findSelectedOptions(options, value) {
198
198
  var path = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
199
199
  var _value = value !== null && value !== void 0 ? value : [];
200
200
  // 基准情况:如果 value 数组为空,且 path 不为空,说明找到了完整的路径
@@ -213,7 +213,7 @@ var ProCascader = function ProCascader(props) {
213
213
  if (foundOption) {
214
214
  // 如果找到了匹配的选项,并且还有更多的 value 需要匹配,递归地在子选项中查找
215
215
  if (_value.length > 1 && foundOption.children) {
216
- return findSelectedOptions(foundOption.children, _value.slice(1), [].concat(_toConsumableArray(path), [foundOption]));
216
+ return _findSelectedOptions(foundOption.children, _value.slice(1), [].concat(_toConsumableArray(path), [foundOption]));
217
217
  }
218
218
  // 如果没有更多的 value 需要匹配,返回当前选项(以及之前的路径)
219
219
  return [].concat(_toConsumableArray(path), [foundOption]);
@@ -221,7 +221,7 @@ var ProCascader = function ProCascader(props) {
221
221
  // 如果没有在当前层级的选项中找到匹配的 value,返回 null
222
222
  return null;
223
223
  };
224
- var _selectedOptions = findSelectedOptions(service ? serviceData : realDataSource, addressValue);
224
+ var _selectedOptions = _findSelectedOptions(service ? serviceData : realDataSource, addressValue);
225
225
  var handleAddressChange = function handleAddressChange(e) {
226
226
  var cascaderValue = value === null || value === void 0 ? void 0 : value.slice(0, realLevel);
227
227
  if (onChange) {
@@ -12,5 +12,5 @@ export interface InputRangeProps {
12
12
  isPositiveInteger?: boolean;
13
13
  precision?: number;
14
14
  }
15
- declare const InputRange: ({ value, onChange, min, max, group, disabled, precision, isPositiveInteger, }: InputRangeProps) => JSX.Element;
15
+ declare const InputRange: ({ value, onChange, min, max, group, disabled, precision, isPositiveInteger, }: InputRangeProps) => import("react/jsx-runtime").JSX.Element;
16
16
  export default InputRange;
@@ -1,3 +1,3 @@
1
1
  import { comPropsType } from './propsTypes';
2
- declare const InputWithSuffix: (props: comPropsType) => JSX.Element;
2
+ declare const InputWithSuffix: (props: comPropsType) => import("react/jsx-runtime").JSX.Element;
3
3
  export default InputWithSuffix;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProAddressPropsType } from './propsTypes';
3
2
  export declare const transferAddressInfoToRegion: () => {
4
3
  normalize: (value: any) => {
@@ -24,5 +23,5 @@ export declare const transferAddressInfoToRegion: () => {
24
23
  };
25
24
  };
26
25
  };
27
- export declare function ProAddress({ ...props }: ProAddressPropsType): JSX.Element;
26
+ export declare function ProAddress({ ...props }: ProAddressPropsType): import("react/jsx-runtime").JSX.Element;
28
27
  export default ProAddress;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { ProRangeBoxPropsType } from './propsType';
3
- export default function ProRangeBox({ configOption }: ProRangeBoxPropsType): JSX.Element;
2
+ export default function ProRangeBox({ configOption }: ProRangeBoxPropsType): import("react/jsx-runtime").JSX.Element;
@@ -121,7 +121,7 @@ export var splitNameStr = function splitNameStr(name) {
121
121
  });
122
122
  };
123
123
  // 过滤掉字段名中包含 '-' 的字段
124
- export var filterInternalFields = function filterInternalFields(values, optimize) {
124
+ var _filterInternalFields = function filterInternalFields(values, optimize) {
125
125
  if (optimize) {
126
126
  return values;
127
127
  }
@@ -135,20 +135,21 @@ export var filterInternalFields = function filterInternalFields(values, optimize
135
135
  }
136
136
  if (Array.isArray(nextValues)) {
137
137
  return nextValues.map(function (item) {
138
- return filterInternalFields(item);
138
+ return _filterInternalFields(item);
139
139
  });
140
140
  }
141
141
  if (isObject(nextValues)) {
142
142
  var result = {};
143
143
  Object.keys(nextValues).forEach(function (key) {
144
144
  if (key.includes('-')) return;
145
- result[key] = filterInternalFields(nextValues[key]);
145
+ result[key] = _filterInternalFields(nextValues[key]);
146
146
  });
147
147
  return result;
148
148
  }
149
149
  return nextValues;
150
150
  };
151
- export var getAllNamePath = function getAllNamePath(object) {
151
+ export { _filterInternalFields as filterInternalFields };
152
+ var _getAllNamePath = function getAllNamePath(object) {
152
153
  var currentPath = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
153
154
  var keys = Object.keys(object);
154
155
  var resultKeys = [];
@@ -162,13 +163,14 @@ export var getAllNamePath = function getAllNamePath(object) {
162
163
  }
163
164
  // 深度获取对象key
164
165
  if (isObject(value)) {
165
- resultKeys.concat(getAllNamePath(value, [].concat(_toConsumableArray(currentPath), [key])));
166
+ resultKeys.concat(_getAllNamePath(value, [].concat(_toConsumableArray(currentPath), [key])));
166
167
  }
167
168
  resultKeys.push([].concat(_toConsumableArray(currentPath), [key]));
168
169
  });
169
170
  return resultKeys;
170
171
  };
171
172
  // 判断一个字段值是否算空
173
+ export { _getAllNamePath as getAllNamePath };
172
174
  var nullList = [undefined, 'null', '""', '[]'];
173
175
  export var isNullValue = function isNullValue(value) {
174
176
  return nullList.includes(JSON.stringify(value));
@@ -353,7 +355,7 @@ export var customEqualForFun = function customEqualForFun(value, other) {
353
355
  /**
354
356
  * 查询数据中是否包含rowKey
355
357
  */
356
- export var hasRowKey = function hasRowKey(obj) {
358
+ var _hasRowKey = function hasRowKey(obj) {
357
359
  if (_typeof(obj) !== 'object' || obj === null) {
358
360
  return false;
359
361
  }
@@ -363,12 +365,13 @@ export var hasRowKey = function hasRowKey(obj) {
363
365
  return true;
364
366
  }
365
367
  return keys.some(function (key) {
366
- return hasRowKey(obj[key]);
368
+ return _hasRowKey(obj[key]);
367
369
  });
368
370
  };
369
371
  /**
370
372
  * 查询数据中是否包含rowKey
371
373
  */
374
+ export { _hasRowKey as hasRowKey };
372
375
  export var view = function view(obj) {
373
376
  if (_typeof(obj) !== 'object' || obj === null) {
374
377
  return false;
@@ -379,7 +382,7 @@ export var view = function view(obj) {
379
382
  return true;
380
383
  }
381
384
  return keys.some(function (key) {
382
- return hasRowKey(obj[key]);
385
+ return _hasRowKey(obj[key]);
383
386
  });
384
387
  };
385
388
  /**
@@ -415,7 +418,7 @@ export var deleteForPath = function deleteForPath(values, namePath) {
415
418
  * @param value 选中值
416
419
  * @returns {}
417
420
  */
418
- export var findOptionByValue = function findOptionByValue(treeData, value, fieldNames) {
421
+ var _findOptionByValue = function findOptionByValue(treeData, value, fieldNames) {
419
422
  if (isObject(value)) {
420
423
  return value;
421
424
  }
@@ -425,7 +428,7 @@ export var findOptionByValue = function findOptionByValue(treeData, value, field
425
428
  return omit(node, ['children', fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children]);
426
429
  }
427
430
  if (node.children) {
428
- var foundNode = findOptionByValue(node[(fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children) || 'children'], value, fieldNames);
431
+ var foundNode = _findOptionByValue(node[(fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children) || 'children'], value, fieldNames);
429
432
  if (foundNode) {
430
433
  return omit(foundNode, ['children', fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children]);
431
434
  }
@@ -435,6 +438,7 @@ export var findOptionByValue = function findOptionByValue(treeData, value, field
435
438
  /**
436
439
  * 对比依赖列表中的 值是否变更
437
440
  */
441
+ export { _findOptionByValue as findOptionByValue };
438
442
  export var equalDependencies = function equalDependencies(dependencies, prevValues, currentValues) {
439
443
  if (dependencies === null || dependencies === void 0 ? void 0 : dependencies.length) {
440
444
  return dependencies.some(function (namePath) {
@@ -1,6 +1,6 @@
1
1
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
2
  import { themeMap, themeFillMap } from '../config';
3
- export var recurseGetNodes = function recurseGetNodes(type, node, queue) {
3
+ var _recurseGetNodes = function recurseGetNodes(type, node, queue) {
4
4
  switch (type) {
5
5
  // 渐变
6
6
  case 'gradation':
@@ -19,10 +19,11 @@ export var recurseGetNodes = function recurseGetNodes(type, node, queue) {
19
19
  }
20
20
  if (node.childNodes) {
21
21
  for (var i = 0; i < node.childNodes.length; i++) {
22
- recurseGetNodes(type, node.childNodes[i], queue);
22
+ _recurseGetNodes(type, node.childNodes[i], queue);
23
23
  }
24
24
  }
25
25
  };
26
+ export { _recurseGetNodes as recurseGetNodes };
26
27
  export var onBeforeInjection = function onBeforeInjection(_ref) {
27
28
  var svg = _ref.svg,
28
29
  actionMap = _ref.actionMap,
@@ -49,7 +50,7 @@ export var onBeforeInjection = function onBeforeInjection(_ref) {
49
50
  // 目前只支持处理渐变及fill填充
50
51
  var types = Reflect.ownKeys(nodeMap !== null && nodeMap !== void 0 ? nodeMap : {});
51
52
  types.forEach(function (typeKey) {
52
- recurseGetNodes(typeKey, svg, nodeMap[typeKey]);
53
+ _recurseGetNodes(typeKey, svg, nodeMap[typeKey]);
53
54
  });
54
55
  if ((gradList === null || gradList === void 0 ? void 0 : gradList.length) > 0) {
55
56
  nodeMap.gradation.forEach(function (item, index) {
@@ -1,3 +1,3 @@
1
1
  import type { OpenMenuPropsType } from './propsType';
2
- declare const OpenMenu: (props: OpenMenuPropsType) => JSX.Element;
2
+ declare const OpenMenu: (props: OpenMenuPropsType) => import("react/jsx-runtime").JSX.Element;
3
3
  export default OpenMenu;
@@ -50,7 +50,7 @@ var OpenMenu = function OpenMenu(props) {
50
50
  if (!Array.isArray(result) || !result.length) {
51
51
  return [];
52
52
  }
53
- var menuDeep = function menuDeep(data) {
53
+ var _menuDeep = function menuDeep(data) {
54
54
  data.forEach(function (item) {
55
55
  var _item$keyIdPath, _item$keyIdPath2, _item$children;
56
56
  // 是否是第一级菜单,展开模式一级菜单有icon, 收起模式二级菜单有icon
@@ -91,7 +91,7 @@ var OpenMenu = function OpenMenu(props) {
91
91
  if ((_item === null || _item === void 0 ? void 0 : _item.hideInMenu) || ['TAB', 'QUERY', 'BUTTON'].includes(_item === null || _item === void 0 ? void 0 : _item.type)) {
92
92
  delete item.children;
93
93
  } else {
94
- menuDeep(item.children);
94
+ _menuDeep(item.children);
95
95
  }
96
96
  } else {
97
97
  delete item.children;
@@ -99,7 +99,7 @@ var OpenMenu = function OpenMenu(props) {
99
99
  });
100
100
  return data;
101
101
  };
102
- menuDeep(result);
102
+ _menuDeep(result);
103
103
  return result;
104
104
  }, [dataSource]);
105
105
  useDeepCompareEffect(function () {
@@ -1,3 +1,3 @@
1
1
  import { ProCollapseProps } from './PropTypes';
2
- declare const ProCollapse: (props: ProCollapseProps) => JSX.Element;
2
+ declare const ProCollapse: (props: ProCollapseProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default ProCollapse;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { ProFooterProps } from './PropTypes';
3
- declare const _default: import("react").MemoExoticComponent<(props: ProFooterProps) => JSX.Element>;
3
+ declare const _default: import("react").MemoExoticComponent<(props: ProFooterProps) => import("react/jsx-runtime").JSX.Element>;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
1
  declare const Copy: ({ text }: {
2
2
  text: any;
3
- }) => JSX.Element;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
4
  export default Copy;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import type { ProHeaderProps } from './PropTypes';
3
- declare const _default: React.MemoExoticComponent<(props: ProHeaderProps) => JSX.Element>;
3
+ declare const _default: React.MemoExoticComponent<(props: ProHeaderProps) => import("react/jsx-runtime").JSX.Element>;
4
4
  export default _default;
@@ -5,7 +5,7 @@ export declare const LayoutContext: import("react").Context<{
5
5
  onSelected: (params: any) => void;
6
6
  }>;
7
7
  declare const ProLayout: {
8
- (props: ProLayoutProps): JSX.Element;
8
+ (props: ProLayoutProps): import("react/jsx-runtime").JSX.Element;
9
9
  defaultProps: {
10
10
  menus: any[];
11
11
  iconfontUrl: string;
@@ -17,8 +17,8 @@ declare const ProLayout: {
17
17
  headerHeight: number;
18
18
  contentStyle: {};
19
19
  };
20
- ProCollapse: (props: import("./components/ProCollapse/PropTypes").ProCollapseProps) => JSX.Element;
21
- ProFooter: import("react").MemoExoticComponent<(props: import("./components/ProFooter/PropTypes").ProFooterProps) => JSX.Element>;
22
- ProHeader: import("react").MemoExoticComponent<(props: import("./components/ProHeader/PropTypes").ProHeaderProps) => JSX.Element>;
20
+ ProCollapse: (props: import("./components/ProCollapse/PropTypes").ProCollapseProps) => import("react/jsx-runtime").JSX.Element;
21
+ ProFooter: import("react").MemoExoticComponent<(props: import("./components/ProFooter/PropTypes").ProFooterProps) => import("react/jsx-runtime").JSX.Element>;
22
+ ProHeader: import("react").MemoExoticComponent<(props: import("./components/ProHeader/PropTypes").ProHeaderProps) => import("react/jsx-runtime").JSX.Element>;
23
23
  };
24
24
  export default ProLayout;
@@ -15,7 +15,7 @@ export var getIdsByPathName = function getIdsByPathName(menus, activeMenu) {
15
15
  _pathName = activeMenu;
16
16
  }
17
17
  var result;
18
- var menuDeep = function menuDeep(menuDeepItem) {
18
+ var _menuDeep = function menuDeep(menuDeepItem) {
19
19
  for (var i = 0; i <= menuDeepItem.length - 1; i++) {
20
20
  var item = menuDeepItem[i];
21
21
  // 只包含一级菜单时,解决URL:/endorsement/demo/123无法选中问题
@@ -24,7 +24,7 @@ export var getIdsByPathName = function getIdsByPathName(menus, activeMenu) {
24
24
  break;
25
25
  }
26
26
  if (Array.isArray(item.children) && item.children.length) {
27
- menuDeep(item.children);
27
+ _menuDeep(item.children);
28
28
  } else if (((item === null || item === void 0 ? void 0 : item.url) && _pathName.includes(item.url.split('?')[0]) || (item === null || item === void 0 ? void 0 : item.redirectUrl) && _pathName.includes(item.redirectUrl.split('?')[0])) && !result) {
29
29
  // 当循环到最后一层时判断URL是否包含最后一层的URL,解决URL在URL中不存在的场景
30
30
  result = item.keyIdPath;
@@ -32,7 +32,7 @@ export var getIdsByPathName = function getIdsByPathName(menus, activeMenu) {
32
32
  }
33
33
  }
34
34
  };
35
- menuDeep(menus);
35
+ _menuDeep(menus);
36
36
  return result || [];
37
37
  };
38
38
  /**
@@ -42,7 +42,7 @@ export var getIdsByPathName = function getIdsByPathName(menus, activeMenu) {
42
42
  */
43
43
  export var transformMenu = function transformMenu(menuData, pathPrefix) {
44
44
  var data = _toConsumableArray(menuData);
45
- var menuDeep = function menuDeep(menuDeepItem) {
45
+ var _menuDeep2 = function menuDeep(menuDeepItem) {
46
46
  if (!Array.isArray(menuDeepItem) || !menuDeepItem.length) {
47
47
  return [];
48
48
  }
@@ -75,11 +75,11 @@ export var transformMenu = function transformMenu(menuData, pathPrefix) {
75
75
  childrenItem.keyUrlPath = _toConsumableArray(item.keyUrlPath);
76
76
  childrenItem.keyIdPath = _toConsumableArray(item.keyIdPath);
77
77
  });
78
- menuDeep(item.children);
78
+ _menuDeep2(item.children);
79
79
  }
80
80
  });
81
81
  };
82
- menuDeep(data);
82
+ _menuDeep2(data);
83
83
  return data;
84
84
  };
85
85
  /**
@@ -134,7 +134,7 @@ export var getPathNameKey = function getPathNameKey(_ref) {
134
134
  var menus = _ref.menus,
135
135
  pathName = _ref.pathName;
136
136
  var result;
137
- var menuDeep = function menuDeep(menuDeepItem) {
137
+ var _menuDeep3 = function menuDeep(menuDeepItem) {
138
138
  if (!Array.isArray(menuDeepItem) || !menuDeepItem.length) {
139
139
  return [];
140
140
  }
@@ -148,7 +148,7 @@ export var getPathNameKey = function getPathNameKey(_ref) {
148
148
  break;
149
149
  }
150
150
  if (Array.isArray(item.children) && item.children.length) {
151
- menuDeep(item.children);
151
+ _menuDeep3(item.children);
152
152
  } else if (((item === null || item === void 0 ? void 0 : item.url) && pathName.includes(item.url.split('?')[0]) || (item === null || item === void 0 ? void 0 : item.redirectUrl) && pathName.includes(item.redirectUrl.split('?')[0])) && !result) {
153
153
  // URL未匹配时,循环到最后一层时判断URL是否包含最后一层的URL,解决URL在URL中不存在的场景
154
154
  result = item.keyIdPath;
@@ -156,6 +156,6 @@ export var getPathNameKey = function getPathNameKey(_ref) {
156
156
  }
157
157
  }
158
158
  };
159
- menuDeep(menus);
159
+ _menuDeep3(menus);
160
160
  return result;
161
161
  };
@@ -1,4 +1,4 @@
1
1
  declare const AdaptiveTooltip: ({ children }: {
2
2
  children: any;
3
- }) => JSX.Element;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
4
  export default AdaptiveTooltip;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { PropSelectProps, ProSelectAction } from './propsType';
3
3
  import './index.less';
4
- export declare const ProSelect: (props: PropSelectProps, ref: React.Ref<ProSelectAction> | undefined) => JSX.Element;
4
+ export declare const ProSelect: (props: PropSelectProps, ref: React.Ref<ProSelectAction> | undefined) => import("react/jsx-runtime").JSX.Element;
5
5
  declare const _default: React.ForwardRefExoticComponent<PropSelectProps & React.RefAttributes<ProSelectAction>>;
6
6
  export default _default;
@@ -1,2 +1,2 @@
1
- export declare const MenuItem: (props: any) => JSX.Element;
1
+ export declare const MenuItem: (props: any) => import("react/jsx-runtime").JSX.Element;
2
2
  export default MenuItem;
@@ -1,3 +1,3 @@
1
1
  import { ProStepItem } from '../../propsType';
2
- declare const _default: ({ id, title, collapse: collapseItem, children, ...restProps }: ProStepItem) => JSX.Element;
2
+ declare const _default: ({ id, title, collapse: collapseItem, children, ...restProps }: ProStepItem) => import("react/jsx-runtime").JSX.Element;
3
3
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { ProStepPropsType } from '../../propsType';
2
2
  export declare const Step: ({ fixedTop, dataSource, activeKey, errorCollection, style, targetOffset, scrollToError, }: ProStepPropsType & {
3
3
  errorCollection: object;
4
- }) => JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
5
  export default Step;
@@ -4,9 +4,9 @@ import './style/index.less';
4
4
  export declare const ProStepContext: import("react").Context<any>;
5
5
  export declare const useStep: () => any;
6
6
  declare const ProStep: {
7
- ({ children, ...resetProps }: ProStepPropsType): JSX.Element;
7
+ ({ children, ...resetProps }: ProStepPropsType): import("react/jsx-runtime").JSX.Element;
8
8
  useStep: () => any;
9
- Item: ({ id, title, collapse: collapseItem, children, ...restProps }: import("./propsType").ProStepItem) => JSX.Element;
9
+ Item: ({ id, title, collapse: collapseItem, children, ...restProps }: import("./propsType").ProStepItem) => import("react/jsx-runtime").JSX.Element;
10
10
  Listener: ({ children, delayTime, ...props }: any) => import("react").DetailedReactHTMLElement<any, HTMLElement>;
11
11
  };
12
12
  export default ProStep;
@@ -1,2 +1,2 @@
1
- declare const ResizableLine: () => JSX.Element;
1
+ declare const ResizableLine: () => import("react/jsx-runtime").JSX.Element;
2
2
  export default ResizableLine;
@@ -6,7 +6,7 @@ declare const _default: {
6
6
  onDrag: any;
7
7
  width: number;
8
8
  minwidth?: number;
9
- }) => JSX.Element;
9
+ }) => import("react/jsx-runtime").JSX.Element;
10
10
  };
11
11
  };
12
12
  };
@@ -5,7 +5,7 @@ export declare const defaultPage: {
5
5
  pageNum: number;
6
6
  pageSize: number;
7
7
  };
8
- declare function ProTable(props: ProTableProps): JSX.Element;
8
+ declare function ProTable(props: ProTableProps): import("react/jsx-runtime").JSX.Element;
9
9
  declare namespace ProTable {
10
10
  var defaultProps: {
11
11
  quickConfig: boolean;
@@ -382,15 +382,15 @@ export var getParentElement = function getParentElement(element, name) {
382
382
  if (!element || !name) {
383
383
  return result;
384
384
  }
385
- var searchDom = function searchDom(element, name) {
385
+ var _searchDom = function searchDom(element, name) {
386
386
  var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'className';
387
387
  if (element.parentElement[type] === name) {
388
388
  result = element.parentElement;
389
389
  return false;
390
390
  }
391
- searchDom(element.parentElement, name, type = 'className');
391
+ _searchDom(element.parentElement, name, type = 'className');
392
392
  };
393
- searchDom(element, name, type = 'className');
393
+ _searchDom(element, name, type = 'className');
394
394
  return result;
395
395
  };
396
396
  /**
@@ -1,3 +1,3 @@
1
1
  import { CardProps } from '../../propType';
2
- declare const Card: (props: CardProps) => JSX.Element;
2
+ declare const Card: (props: CardProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Card;
@@ -1,3 +1,3 @@
1
1
  import type { DevToolsPropsType } from '../../propsType';
2
- declare const PrdTools: ({ onReset, onClose, setState, open, state, tableBorder, tableStripe, }: DevToolsPropsType) => JSX.Element;
2
+ declare const PrdTools: ({ onReset, onClose, setState, open, state, tableBorder, tableStripe, }: DevToolsPropsType) => import("react/jsx-runtime").JSX.Element;
3
3
  export default PrdTools;
@@ -1,6 +1,6 @@
1
1
  import type { ProThemeToolsProps } from './propsType';
2
2
  declare const ProThemeTools: {
3
- ({ size, className, cacheTime, color, mode, iconFollowTheme, prefixCls, tableBorder, tableStripe, theme, onChange, ...props }: ProThemeToolsProps): JSX.Element;
3
+ ({ size, className, cacheTime, color, mode, iconFollowTheme, prefixCls, tableBorder, tableStripe, theme, onChange, ...props }: ProThemeToolsProps): import("react/jsx-runtime").JSX.Element;
4
4
  defaultProps: {
5
5
  size: number;
6
6
  mode: string;
@@ -1,4 +1,4 @@
1
1
  import { ProTooltipPropsType } from './propsType';
2
2
  import './style/index.less';
3
- declare const ProTooltip: (props: ProTooltipPropsType) => JSX.Element;
3
+ declare const ProTooltip: (props: ProTooltipPropsType) => import("react/jsx-runtime").JSX.Element;
4
4
  export default ProTooltip;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
- declare function CloseIcon(props: any): JSX.Element;
1
+ declare function CloseIcon(props: any): import("react/jsx-runtime").JSX.Element;
3
2
  export default CloseIcon;
@@ -12,6 +12,6 @@ interface ListProps {
12
12
  handleFilterClose?: (code: string) => void;
13
13
  optionRender?: (item: any, searchStr?: string) => string | ReactNode;
14
14
  }
15
- declare function List(props: ListProps): JSX.Element;
15
+ declare function List(props: ListProps): import("react/jsx-runtime").JSX.Element;
16
16
  declare const _default: import("react").MemoExoticComponent<typeof List>;
17
17
  export default _default;