@zat-design/sisyphus-react 3.6.7-beta.8 → 3.6.8-beta.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 (54) hide show
  1. package/es/ProEditTable/components/RcTable/DraggableTable.d.ts +2 -2
  2. package/es/ProEditTable/components/RcTable/DraggableTable.js +107 -9
  3. package/es/ProEditTable/components/index.d.ts +0 -1
  4. package/es/ProEditTable/components/index.js +0 -1
  5. package/es/ProSelect/index.js +2 -2
  6. package/lib/ProEditTable/components/RcTable/DraggableTable.d.ts +2 -2
  7. package/lib/ProEditTable/components/RcTable/DraggableTable.js +109 -10
  8. package/lib/ProEditTable/components/index.d.ts +0 -1
  9. package/lib/ProEditTable/components/index.js +0 -14
  10. package/lib/ProSelect/index.js +1 -1
  11. package/package.json +1 -1
  12. package/coverage/lcov-report/src/.umi/core/devScripts.ts.html +0 -241
  13. package/coverage/lcov-report/src/.umi/core/history.ts.html +0 -148
  14. package/coverage/lcov-report/src/.umi/core/index.html +0 -206
  15. package/coverage/lcov-report/src/.umi/core/plugin.ts.html +0 -109
  16. package/coverage/lcov-report/src/.umi/core/pluginRegister.ts.html +0 -160
  17. package/coverage/lcov-report/src/.umi/core/polyfill.ts.html +0 -97
  18. package/coverage/lcov-report/src/.umi/core/routes.ts.html +0 -26050
  19. package/coverage/lcov-report/src/.umi/core/umiExports.ts.html +0 -112
  20. package/coverage/lcov-report/src/.umi/dumi/demos/index.html +0 -116
  21. package/coverage/lcov-report/src/.umi/dumi/demos/index.ts.html +0 -6340
  22. package/coverage/lcov-report/src/.umi/dumi/index.html +0 -116
  23. package/coverage/lcov-report/src/.umi/dumi/layout.tsx.html +0 -109
  24. package/coverage/lcov-report/src/.umi/index.html +0 -116
  25. package/coverage/lcov-report/src/.umi/plugin-antd/index.html +0 -116
  26. package/coverage/lcov-report/src/.umi/plugin-antd/runtime.tsx.html +0 -172
  27. package/coverage/lcov-report/src/.umi/plugin-helmet/exports.ts.html +0 -94
  28. package/coverage/lcov-report/src/.umi/plugin-helmet/index.html +0 -116
  29. package/coverage/lcov-report/src/.umi/plugin-initial-state/Provider.tsx.html +0 -196
  30. package/coverage/lcov-report/src/.umi/plugin-initial-state/exports.ts.html +0 -106
  31. package/coverage/lcov-report/src/.umi/plugin-initial-state/index.html +0 -146
  32. package/coverage/lcov-report/src/.umi/plugin-initial-state/models/index.html +0 -116
  33. package/coverage/lcov-report/src/.umi/plugin-initial-state/models/initialState.ts.html +0 -88
  34. package/coverage/lcov-report/src/.umi/plugin-initial-state/runtime.tsx.html +0 -124
  35. package/coverage/lcov-report/src/.umi/plugin-locale/SelectLang.tsx.html +0 -1246
  36. package/coverage/lcov-report/src/.umi/plugin-locale/index.html +0 -161
  37. package/coverage/lcov-report/src/.umi/plugin-locale/locale.tsx.html +0 -268
  38. package/coverage/lcov-report/src/.umi/plugin-locale/localeExports.ts.html +0 -778
  39. package/coverage/lcov-report/src/.umi/plugin-locale/runtime.tsx.html +0 -115
  40. package/coverage/lcov-report/src/.umi/plugin-model/Provider.tsx.html +0 -202
  41. package/coverage/lcov-report/src/.umi/plugin-model/helpers/constant.tsx.html +0 -97
  42. package/coverage/lcov-report/src/.umi/plugin-model/helpers/dispatcher.tsx.html +0 -142
  43. package/coverage/lcov-report/src/.umi/plugin-model/helpers/executor.tsx.html +0 -334
  44. package/coverage/lcov-report/src/.umi/plugin-model/helpers/index.html +0 -146
  45. package/coverage/lcov-report/src/.umi/plugin-model/index.html +0 -146
  46. package/coverage/lcov-report/src/.umi/plugin-model/runtime.tsx.html +0 -121
  47. package/coverage/lcov-report/src/.umi/plugin-model/useModel.tsx.html +0 -298
  48. package/coverage/lcov-report/src/.umi/plugin-request/index.html +0 -116
  49. package/coverage/lcov-report/src/.umi/plugin-request/request.ts.html +0 -919
  50. package/coverage/lcov-report/src/.umi/umi.ts.html +0 -268
  51. package/es/ProEditTable/components/DndWrapper/index.d.ts +0 -17
  52. package/es/ProEditTable/components/DndWrapper/index.js +0 -104
  53. package/lib/ProEditTable/components/DndWrapper/index.d.ts +0 -17
  54. package/lib/ProEditTable/components/DndWrapper/index.js +0 -111
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- declare const _default: import("react").MemoExoticComponent<({ tableProps, draggableProps, ...resetProps }: {
1
+ import React from 'react';
2
+ declare const _default: React.MemoExoticComponent<({ tableProps, draggableProps, ...resetProps }: {
3
3
  [x: string]: any;
4
4
  tableProps: any;
5
5
  draggableProps: any;
@@ -1,16 +1,114 @@
1
- import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
1
  import "antd/es/table/style";
3
2
  import _Table from "antd/es/table";
3
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
5
- var _excluded = ["tableProps", "draggableProps"];
5
+ var _excluded = ["disabled", "children"],
6
+ _excluded2 = ["tableProps", "draggableProps"];
6
7
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
- import { memo } from 'react';
8
- import { DndWrapper, Row } from '../index';
9
- var DraggableTable = function DraggableTable(_ref) {
8
+ import React, { memo } from 'react';
9
+ import { DndContext } from '@dnd-kit/core';
10
+ import { arrayMove, useSortable, SortableContext, verticalListSortingStrategy } from '@dnd-kit/sortable';
11
+ import { CSS } from '@dnd-kit/utilities';
12
+ import ProIcon from '../../../ProIcon';
13
+ var Row = function Row(props) {
14
+ var disabled = props.disabled,
15
+ children = props.children,
16
+ restProps = _objectWithoutProperties(props, _excluded);
17
+ var data = useSortable({
18
+ id: props['data-row-key'],
19
+ disabled: disabled
20
+ });
21
+ var attributes = data.attributes,
22
+ listeners = data.listeners,
23
+ setNodeRef = data.setNodeRef,
24
+ transform = data.transform,
25
+ transition = data.transition,
26
+ isDragging = data.isDragging;
27
+ var style = _objectSpread(_objectSpread({}, props.style), {}, {
28
+ transform: CSS.Transform.toString(transform && _objectSpread(_objectSpread({}, transform), {}, {
29
+ scaleY: 1
30
+ })),
31
+ transition: transition
32
+ }, isDragging ? {
33
+ position: 'relative',
34
+ zIndex: 2
35
+ } : {});
36
+ return _jsx("tr", _objectSpread(_objectSpread(_objectSpread({}, restProps), {}, {
37
+ ref: setNodeRef,
38
+ style: style
39
+ }, attributes), {}, {
40
+ children: React.Children.map(children, function (child) {
41
+ if (child.key === 'RC_TABLE_KEY' && !disabled) {
42
+ var _restProps$dataRowD;
43
+ var _ref = (child === null || child === void 0 ? void 0 : child.props) || {},
44
+ render = _ref.render,
45
+ record = _ref.record,
46
+ renderIndex = _ref.renderIndex;
47
+ var isDrag = restProps['data-row-draggable'] ? (_restProps$dataRowD = restProps['data-row-draggable']) === null || _restProps$dataRowD === void 0 ? void 0 : _restProps$dataRowD.call(restProps, record) : true;
48
+ return /*#__PURE__*/React.cloneElement(child, {
49
+ children: _jsxs("span", {
50
+ className: "drag-wrapper".concat(props['data-hide'] ? ' no-check' : ''),
51
+ children: [isDrag ? _jsx(ProIcon, _objectSpread({
52
+ className: "drag-icon",
53
+ style: {
54
+ touchAction: 'none',
55
+ cursor: disabled ? 'no-drop' : 'move'
56
+ },
57
+ type: "drag",
58
+ size: 20
59
+ }, listeners)) : _jsx(ProIcon, {
60
+ size: 20
61
+ }), props['data-hide'] ? null : render === null || render === void 0 ? void 0 : render(null, record, renderIndex)]
62
+ })
63
+ });
64
+ }
65
+ return child;
66
+ })
67
+ }));
68
+ };
69
+ var DndWrapper = function DndWrapper(_ref2) {
10
70
  var _value$;
11
- var tableProps = _ref.tableProps,
12
- draggableProps = _ref.draggableProps,
13
- resetProps = _objectWithoutProperties(_ref, _excluded);
71
+ var draggable = _ref2.draggable,
72
+ value = _ref2.value,
73
+ onChange = _ref2.onChange,
74
+ onDrag = _ref2.onDrag,
75
+ disabled = _ref2.disabled,
76
+ children = _ref2.children;
77
+ var onDragEnd = function onDragEnd(event) {
78
+ var active = event.active,
79
+ over = event.over;
80
+ if (active.id !== (over === null || over === void 0 ? void 0 : over.id)) {
81
+ if (onDrag) {
82
+ var nextList = onDrag(event, value);
83
+ onChange(nextList);
84
+ return;
85
+ }
86
+ var activeIndex = value.findIndex(function (i) {
87
+ return i.rowKey === active.id;
88
+ });
89
+ var overIndex = value.findIndex(function (i) {
90
+ return i.rowKey === (over === null || over === void 0 ? void 0 : over.id);
91
+ });
92
+ var nextValue = arrayMove(value, activeIndex, overIndex);
93
+ onChange(nextValue);
94
+ }
95
+ };
96
+ return draggable && !disabled ? _jsx(DndContext, {
97
+ onDragEnd: onDragEnd,
98
+ children: _jsx(SortableContext, {
99
+ items: (value === null || value === void 0 ? void 0 : (_value$ = value[0]) === null || _value$ === void 0 ? void 0 : _value$.rowKey) ? value.map(function (i) {
100
+ return i.rowKey;
101
+ }) : [],
102
+ strategy: verticalListSortingStrategy,
103
+ children: children
104
+ })
105
+ }) : children;
106
+ };
107
+ var DraggableTable = function DraggableTable(_ref3) {
108
+ var _value$2;
109
+ var tableProps = _ref3.tableProps,
110
+ draggableProps = _ref3.draggableProps,
111
+ resetProps = _objectWithoutProperties(_ref3, _excluded2);
14
112
  var value = tableProps.value,
15
113
  headerRender = tableProps.headerRender,
16
114
  tableRef = tableProps.tableRef,
@@ -45,7 +143,7 @@ var DraggableTable = function DraggableTable(_ref) {
45
143
  }) : null, _jsx(_Table, _objectSpread(_objectSpread({
46
144
  ref: tableRef,
47
145
  className: className,
48
- dataSource: (value === null || value === void 0 ? void 0 : (_value$ = value[0]) === null || _value$ === void 0 ? void 0 : _value$.rowKey) ? value : undefined,
146
+ dataSource: (value === null || value === void 0 ? void 0 : (_value$2 = value[0]) === null || _value$2 === void 0 ? void 0 : _value$2.rowKey) ? value : undefined,
49
147
  columns: columns,
50
148
  rowSelection: renderRowSelection(),
51
149
  rowClassName: rowClassName,
@@ -1,4 +1,3 @@
1
- export { default as DndWrapper, Row } from './DndWrapper';
2
1
  export { default as RenderField } from './RenderField';
3
2
  export { default as Validator } from './Validator';
4
3
  export { default as Summary } from './Summary';
@@ -1,4 +1,3 @@
1
- export { default as DndWrapper, Row } from './DndWrapper';
2
1
  export { default as RenderField } from './RenderField';
3
2
  export { default as Validator } from './Validator';
4
3
  export { default as Summary } from './Summary';
@@ -13,7 +13,7 @@ var _excluded = ["dataSource", "defaultDisableValue", "useRequest", "fieldNames"
13
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
14
  import { useDeepCompareEffect, useRequest as useRequestFunc } from 'ahooks';
15
15
  import React, { useImperativeHandle, useState, forwardRef, useRef } from 'react';
16
- import { isFunction, isObject, isString, omit, cloneDeep, isNumber } from 'lodash';
16
+ import { isFunction, isObject, isString, omit, isNumber } from 'lodash';
17
17
  import { useProConfig } from '../ProConfigProvider';
18
18
  import Container from '../ProForm/components/Container';
19
19
  import AdaptiveTooltip from './components/AdaptiveTooltip';
@@ -304,7 +304,7 @@ export var ProSelect = function ProSelect(props, ref) {
304
304
  getPopupContainer: function getPopupContainer(trigger) {
305
305
  return scrollFollowParent ? trigger.parentElement : document.body;
306
306
  }
307
- }, omit(cloneDeep(selectProps), ['isView', 'showCodeName', 'form', 'name', 'style', 'onFieldChange'])), {}, {
307
+ }, omit(_objectSpread({}, selectProps), ['isView', 'showCodeName', 'form', 'name', 'style', 'onFieldChange'])), {}, {
308
308
  value: transformValue(),
309
309
  children: Array.isArray(newSelectList) && newSelectList.map(function (item) {
310
310
  return _jsx(Option, {
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- declare const _default: import("react").MemoExoticComponent<({ tableProps, draggableProps, ...resetProps }: {
1
+ import React from 'react';
2
+ declare const _default: React.MemoExoticComponent<({ tableProps, draggableProps, ...resetProps }: {
3
3
  [x: string]: any;
4
4
  tableProps: any;
5
5
  draggableProps: any;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
@@ -9,14 +10,112 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/obje
9
10
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
11
  var _jsxRuntime = require("react/jsx-runtime");
11
12
  var _antd = require("antd");
12
- var _react = require("react");
13
- var _index = require("../index");
14
- var _excluded = ["tableProps", "draggableProps"];
15
- var DraggableTable = function DraggableTable(_ref) {
13
+ var _react = _interopRequireWildcard(require("react"));
14
+ var _core = require("@dnd-kit/core");
15
+ var _sortable = require("@dnd-kit/sortable");
16
+ var _utilities = require("@dnd-kit/utilities");
17
+ var _ProIcon = _interopRequireDefault(require("../../../ProIcon"));
18
+ var _excluded = ["disabled", "children"],
19
+ _excluded2 = ["tableProps", "draggableProps"];
20
+ var Row = function Row(props) {
21
+ var disabled = props.disabled,
22
+ children = props.children,
23
+ restProps = (0, _objectWithoutProperties2.default)(props, _excluded);
24
+ var data = (0, _sortable.useSortable)({
25
+ id: props['data-row-key'],
26
+ disabled: disabled
27
+ });
28
+ var attributes = data.attributes,
29
+ listeners = data.listeners,
30
+ setNodeRef = data.setNodeRef,
31
+ transform = data.transform,
32
+ transition = data.transition,
33
+ isDragging = data.isDragging;
34
+ var style = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props.style), {}, {
35
+ transform: _utilities.CSS.Transform.toString(transform && (0, _objectSpread2.default)((0, _objectSpread2.default)({}, transform), {}, {
36
+ scaleY: 1
37
+ })),
38
+ transition: transition
39
+ }, isDragging ? {
40
+ position: 'relative',
41
+ zIndex: 2
42
+ } : {});
43
+ return (0, _jsxRuntime.jsx)("tr", (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, restProps), {}, {
44
+ ref: setNodeRef,
45
+ style: style
46
+ }, attributes), {}, {
47
+ children: _react.default.Children.map(children, function (child) {
48
+ if (child.key === 'RC_TABLE_KEY' && !disabled) {
49
+ var _restProps$dataRowD;
50
+ var _ref = (child === null || child === void 0 ? void 0 : child.props) || {},
51
+ render = _ref.render,
52
+ record = _ref.record,
53
+ renderIndex = _ref.renderIndex;
54
+ var isDrag = restProps['data-row-draggable'] ? (_restProps$dataRowD = restProps['data-row-draggable']) === null || _restProps$dataRowD === void 0 ? void 0 : _restProps$dataRowD.call(restProps, record) : true;
55
+ return /*#__PURE__*/_react.default.cloneElement(child, {
56
+ children: (0, _jsxRuntime.jsxs)("span", {
57
+ className: "drag-wrapper".concat(props['data-hide'] ? ' no-check' : ''),
58
+ children: [isDrag ? (0, _jsxRuntime.jsx)(_ProIcon.default, (0, _objectSpread2.default)({
59
+ className: "drag-icon",
60
+ style: {
61
+ touchAction: 'none',
62
+ cursor: disabled ? 'no-drop' : 'move'
63
+ },
64
+ type: "drag",
65
+ size: 20
66
+ }, listeners)) : (0, _jsxRuntime.jsx)(_ProIcon.default, {
67
+ size: 20
68
+ }), props['data-hide'] ? null : render === null || render === void 0 ? void 0 : render(null, record, renderIndex)]
69
+ })
70
+ });
71
+ }
72
+ return child;
73
+ })
74
+ }));
75
+ };
76
+ var DndWrapper = function DndWrapper(_ref2) {
16
77
  var _value$;
17
- var tableProps = _ref.tableProps,
18
- draggableProps = _ref.draggableProps,
19
- resetProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
78
+ var draggable = _ref2.draggable,
79
+ value = _ref2.value,
80
+ onChange = _ref2.onChange,
81
+ onDrag = _ref2.onDrag,
82
+ disabled = _ref2.disabled,
83
+ children = _ref2.children;
84
+ var onDragEnd = function onDragEnd(event) {
85
+ var active = event.active,
86
+ over = event.over;
87
+ if (active.id !== (over === null || over === void 0 ? void 0 : over.id)) {
88
+ if (onDrag) {
89
+ var nextList = onDrag(event, value);
90
+ onChange(nextList);
91
+ return;
92
+ }
93
+ var activeIndex = value.findIndex(function (i) {
94
+ return i.rowKey === active.id;
95
+ });
96
+ var overIndex = value.findIndex(function (i) {
97
+ return i.rowKey === (over === null || over === void 0 ? void 0 : over.id);
98
+ });
99
+ var nextValue = (0, _sortable.arrayMove)(value, activeIndex, overIndex);
100
+ onChange(nextValue);
101
+ }
102
+ };
103
+ return draggable && !disabled ? (0, _jsxRuntime.jsx)(_core.DndContext, {
104
+ onDragEnd: onDragEnd,
105
+ children: (0, _jsxRuntime.jsx)(_sortable.SortableContext, {
106
+ items: (value === null || value === void 0 ? void 0 : (_value$ = value[0]) === null || _value$ === void 0 ? void 0 : _value$.rowKey) ? value.map(function (i) {
107
+ return i.rowKey;
108
+ }) : [],
109
+ strategy: _sortable.verticalListSortingStrategy,
110
+ children: children
111
+ })
112
+ }) : children;
113
+ };
114
+ var DraggableTable = function DraggableTable(_ref3) {
115
+ var _value$2;
116
+ var tableProps = _ref3.tableProps,
117
+ draggableProps = _ref3.draggableProps,
118
+ resetProps = (0, _objectWithoutProperties2.default)(_ref3, _excluded2);
20
119
  var value = tableProps.value,
21
120
  headerRender = tableProps.headerRender,
22
121
  tableRef = tableProps.tableRef,
@@ -39,7 +138,7 @@ var DraggableTable = function DraggableTable(_ref) {
39
138
  var onChange = draggableProps.onChange,
40
139
  onDrag = draggableProps.onDrag,
41
140
  draggable = draggableProps.draggable;
42
- return (0, _jsxRuntime.jsxs)(_index.DndWrapper, {
141
+ return (0, _jsxRuntime.jsxs)(DndWrapper, {
43
142
  value: value,
44
143
  onChange: onChange,
45
144
  onDrag: onDrag,
@@ -51,13 +150,13 @@ var DraggableTable = function DraggableTable(_ref) {
51
150
  }) : null, (0, _jsxRuntime.jsx)(_antd.Table, (0, _objectSpread2.default)((0, _objectSpread2.default)({
52
151
  ref: tableRef,
53
152
  className: className,
54
- dataSource: (value === null || value === void 0 ? void 0 : (_value$ = value[0]) === null || _value$ === void 0 ? void 0 : _value$.rowKey) ? value : undefined,
153
+ dataSource: (value === null || value === void 0 ? void 0 : (_value$2 = value[0]) === null || _value$2 === void 0 ? void 0 : _value$2.rowKey) ? value : undefined,
55
154
  columns: columns,
56
155
  rowSelection: renderRowSelection(),
57
156
  rowClassName: rowClassName,
58
157
  components: {
59
158
  body: {
60
- row: _index.Row
159
+ row: Row
61
160
  }
62
161
  },
63
162
  onRow: function onRow() {
@@ -1,4 +1,3 @@
1
- export { default as DndWrapper, Row } from './DndWrapper';
2
1
  export { default as RenderField } from './RenderField';
3
2
  export { default as Validator } from './Validator';
4
3
  export { default as Summary } from './Summary';
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
@@ -11,12 +10,6 @@ Object.defineProperty(exports, "ActionButton", {
11
10
  return _ActionButton.default;
12
11
  }
13
12
  });
14
- Object.defineProperty(exports, "DndWrapper", {
15
- enumerable: true,
16
- get: function get() {
17
- return _DndWrapper.default;
18
- }
19
- });
20
13
  Object.defineProperty(exports, "RenderField", {
21
14
  enumerable: true,
22
15
  get: function get() {
@@ -29,12 +22,6 @@ Object.defineProperty(exports, "RenderToolbar", {
29
22
  return _RenderToolbar.default;
30
23
  }
31
24
  });
32
- Object.defineProperty(exports, "Row", {
33
- enumerable: true,
34
- get: function get() {
35
- return _DndWrapper.Row;
36
- }
37
- });
38
25
  Object.defineProperty(exports, "Summary", {
39
26
  enumerable: true,
40
27
  get: function get() {
@@ -47,7 +34,6 @@ Object.defineProperty(exports, "Validator", {
47
34
  return _Validator.default;
48
35
  }
49
36
  });
50
- var _DndWrapper = _interopRequireWildcard(require("./DndWrapper"));
51
37
  var _RenderField = _interopRequireDefault(require("./RenderField"));
52
38
  var _Validator = _interopRequireDefault(require("./Validator"));
53
39
  var _Summary = _interopRequireDefault(require("./Summary"));
@@ -305,7 +305,7 @@ var ProSelect = exports.ProSelect = function ProSelect(props, ref) {
305
305
  getPopupContainer: function getPopupContainer(trigger) {
306
306
  return scrollFollowParent ? trigger.parentElement : document.body;
307
307
  }
308
- }, (0, _lodash.omit)((0, _lodash.cloneDeep)(selectProps), ['isView', 'showCodeName', 'form', 'name', 'style', 'onFieldChange'])), {}, {
308
+ }, (0, _lodash.omit)((0, _objectSpread2.default)({}, selectProps), ['isView', 'showCodeName', 'form', 'name', 'style', 'onFieldChange'])), {}, {
309
309
  value: transformValue(),
310
310
  children: Array.isArray(newSelectList) && newSelectList.map(function (item) {
311
311
  return (0, _jsxRuntime.jsx)(Option, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.6.7-beta.8",
3
+ "version": "3.6.8-beta.1",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -1,241 +0,0 @@
1
-
2
- <!doctype html>
3
- <html lang="en">
4
-
5
- <head>
6
- <title>Code coverage report for src/.umi/core/devScripts.ts</title>
7
- <meta charset="utf-8" />
8
- <link rel="stylesheet" href="../../../prettify.css" />
9
- <link rel="stylesheet" href="../../../base.css" />
10
- <link rel="shortcut icon" type="image/x-icon" href="../../../favicon.png" />
11
- <meta name="viewport" content="width=device-width, initial-scale=1" />
12
- <style type='text/css'>
13
- .coverage-summary .sorter {
14
- background-image: url(../../../sort-arrow-sprite.png);
15
- }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <div class='wrapper'>
21
- <div class='pad1'>
22
- <h1><a href="../../../index.html">All files</a> / <a href="index.html">src/.umi/core</a> devScripts.ts</h1>
23
- <div class='clearfix'>
24
-
25
- <div class='fl pad1y space-right2'>
26
- <span class="strong">0% </span>
27
- <span class="quiet">Statements</span>
28
- <span class='fraction'>0/18</span>
29
- </div>
30
-
31
-
32
- <div class='fl pad1y space-right2'>
33
- <span class="strong">0% </span>
34
- <span class="quiet">Branches</span>
35
- <span class='fraction'>0/15</span>
36
- </div>
37
-
38
-
39
- <div class='fl pad1y space-right2'>
40
- <span class="strong">0% </span>
41
- <span class="quiet">Functions</span>
42
- <span class='fraction'>0/5</span>
43
- </div>
44
-
45
-
46
- <div class='fl pad1y space-right2'>
47
- <span class="strong">0% </span>
48
- <span class="quiet">Lines</span>
49
- <span class='fraction'>0/18</span>
50
- </div>
51
-
52
-
53
- </div>
54
- <p class="quiet">
55
- Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
56
- </p>
57
- <template id="filterTemplate">
58
- <div class="quiet">
59
- Filter:
60
- <input oninput="onInput()" type="search" id="fileSearch">
61
- </div>
62
- </template>
63
- </div>
64
- <div class='status-line low'></div>
65
- <pre><table class="coverage">
66
- <tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
67
- <a name='L2'></a><a href='#L2'>2</a>
68
- <a name='L3'></a><a href='#L3'>3</a>
69
- <a name='L4'></a><a href='#L4'>4</a>
70
- <a name='L5'></a><a href='#L5'>5</a>
71
- <a name='L6'></a><a href='#L6'>6</a>
72
- <a name='L7'></a><a href='#L7'>7</a>
73
- <a name='L8'></a><a href='#L8'>8</a>
74
- <a name='L9'></a><a href='#L9'>9</a>
75
- <a name='L10'></a><a href='#L10'>10</a>
76
- <a name='L11'></a><a href='#L11'>11</a>
77
- <a name='L12'></a><a href='#L12'>12</a>
78
- <a name='L13'></a><a href='#L13'>13</a>
79
- <a name='L14'></a><a href='#L14'>14</a>
80
- <a name='L15'></a><a href='#L15'>15</a>
81
- <a name='L16'></a><a href='#L16'>16</a>
82
- <a name='L17'></a><a href='#L17'>17</a>
83
- <a name='L18'></a><a href='#L18'>18</a>
84
- <a name='L19'></a><a href='#L19'>19</a>
85
- <a name='L20'></a><a href='#L20'>20</a>
86
- <a name='L21'></a><a href='#L21'>21</a>
87
- <a name='L22'></a><a href='#L22'>22</a>
88
- <a name='L23'></a><a href='#L23'>23</a>
89
- <a name='L24'></a><a href='#L24'>24</a>
90
- <a name='L25'></a><a href='#L25'>25</a>
91
- <a name='L26'></a><a href='#L26'>26</a>
92
- <a name='L27'></a><a href='#L27'>27</a>
93
- <a name='L28'></a><a href='#L28'>28</a>
94
- <a name='L29'></a><a href='#L29'>29</a>
95
- <a name='L30'></a><a href='#L30'>30</a>
96
- <a name='L31'></a><a href='#L31'>31</a>
97
- <a name='L32'></a><a href='#L32'>32</a>
98
- <a name='L33'></a><a href='#L33'>33</a>
99
- <a name='L34'></a><a href='#L34'>34</a>
100
- <a name='L35'></a><a href='#L35'>35</a>
101
- <a name='L36'></a><a href='#L36'>36</a>
102
- <a name='L37'></a><a href='#L37'>37</a>
103
- <a name='L38'></a><a href='#L38'>38</a>
104
- <a name='L39'></a><a href='#L39'>39</a>
105
- <a name='L40'></a><a href='#L40'>40</a>
106
- <a name='L41'></a><a href='#L41'>41</a>
107
- <a name='L42'></a><a href='#L42'>42</a>
108
- <a name='L43'></a><a href='#L43'>43</a>
109
- <a name='L44'></a><a href='#L44'>44</a>
110
- <a name='L45'></a><a href='#L45'>45</a>
111
- <a name='L46'></a><a href='#L46'>46</a>
112
- <a name='L47'></a><a href='#L47'>47</a>
113
- <a name='L48'></a><a href='#L48'>48</a>
114
- <a name='L49'></a><a href='#L49'>49</a>
115
- <a name='L50'></a><a href='#L50'>50</a>
116
- <a name='L51'></a><a href='#L51'>51</a>
117
- <a name='L52'></a><a href='#L52'>52</a>
118
- <a name='L53'></a><a href='#L53'>53</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
119
- <span class="cline-any cline-neutral">&nbsp;</span>
120
- <span class="cline-any cline-no">&nbsp;</span>
121
- <span class="cline-any cline-neutral">&nbsp;</span>
122
- <span class="cline-any cline-neutral">&nbsp;</span>
123
- <span class="cline-any cline-no">&nbsp;</span>
124
- <span class="cline-any cline-no">&nbsp;</span>
125
- <span class="cline-any cline-no">&nbsp;</span>
126
- <span class="cline-any cline-neutral">&nbsp;</span>
127
- <span class="cline-any cline-neutral">&nbsp;</span>
128
- <span class="cline-any cline-neutral">&nbsp;</span>
129
- <span class="cline-any cline-neutral">&nbsp;</span>
130
- <span class="cline-any cline-no">&nbsp;</span>
131
- <span class="cline-any cline-neutral">&nbsp;</span>
132
- <span class="cline-any cline-neutral">&nbsp;</span>
133
- <span class="cline-any cline-neutral">&nbsp;</span>
134
- <span class="cline-any cline-neutral">&nbsp;</span>
135
- <span class="cline-any cline-no">&nbsp;</span>
136
- <span class="cline-any cline-no">&nbsp;</span>
137
- <span class="cline-any cline-neutral">&nbsp;</span>
138
- <span class="cline-any cline-neutral">&nbsp;</span>
139
- <span class="cline-any cline-neutral">&nbsp;</span>
140
- <span class="cline-any cline-no">&nbsp;</span>
141
- <span class="cline-any cline-no">&nbsp;</span>
142
- <span class="cline-any cline-no">&nbsp;</span>
143
- <span class="cline-any cline-neutral">&nbsp;</span>
144
- <span class="cline-any cline-neutral">&nbsp;</span>
145
- <span class="cline-any cline-no">&nbsp;</span>
146
- <span class="cline-any cline-neutral">&nbsp;</span>
147
- <span class="cline-any cline-no">&nbsp;</span>
148
- <span class="cline-any cline-neutral">&nbsp;</span>
149
- <span class="cline-any cline-no">&nbsp;</span>
150
- <span class="cline-any cline-neutral">&nbsp;</span>
151
- <span class="cline-any cline-neutral">&nbsp;</span>
152
- <span class="cline-any cline-neutral">&nbsp;</span>
153
- <span class="cline-any cline-neutral">&nbsp;</span>
154
- <span class="cline-any cline-no">&nbsp;</span>
155
- <span class="cline-any cline-neutral">&nbsp;</span>
156
- <span class="cline-any cline-no">&nbsp;</span>
157
- <span class="cline-any cline-neutral">&nbsp;</span>
158
- <span class="cline-any cline-neutral">&nbsp;</span>
159
- <span class="cline-any cline-no">&nbsp;</span>
160
- <span class="cline-any cline-neutral">&nbsp;</span>
161
- <span class="cline-any cline-neutral">&nbsp;</span>
162
- <span class="cline-any cline-neutral">&nbsp;</span>
163
- <span class="cline-any cline-neutral">&nbsp;</span>
164
- <span class="cline-any cline-no">&nbsp;</span>
165
- <span class="cline-any cline-neutral">&nbsp;</span>
166
- <span class="cline-any cline-neutral">&nbsp;</span>
167
- <span class="cline-any cline-neutral">&nbsp;</span>
168
- <span class="cline-any cline-neutral">&nbsp;</span>
169
- <span class="cline-any cline-no">&nbsp;</span>
170
- <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">// @ts-nocheck
171
- &nbsp;
172
- <span class="cstat-no" title="statement not covered" >if (window.g_initWebpackHotDevClient) {</span>
173
- function <span class="fstat-no" title="function not covered" >tryApplyUpdates(</span>onHotUpdateSuccess?: Function) {
174
- // @ts-ignore
175
- <span class="cstat-no" title="statement not covered" > if (!module.hot) {</span>
176
- <span class="cstat-no" title="statement not covered" > window.location.reload();</span>
177
- <span class="cstat-no" title="statement not covered" > return;</span>
178
- }
179
- &nbsp;
180
- function <span class="fstat-no" title="function not covered" >isUpdateAvailable(</span>) {
181
- // @ts-ignore
182
- <span class="cstat-no" title="statement not covered" > return window.g_getMostRecentCompilationHash() !== __webpack_hash__;</span>
183
- }
184
- &nbsp;
185
- // TODO: is update available?
186
- // @ts-ignore
187
- <span class="cstat-no" title="statement not covered" > if (!isUpdateAvailable() || module.hot.status() !== 'idle') {</span>
188
- <span class="cstat-no" title="statement not covered" > return;</span>
189
- }
190
- &nbsp;
191
- function <span class="fstat-no" title="function not covered" >handleApplyUpdates(</span>err: Error | null, updatedModules: any) {
192
- <span class="cstat-no" title="statement not covered" > if (err || !updatedModules || window.g_getHadRuntimeError()) {</span>
193
- <span class="cstat-no" title="statement not covered" > window.location.reload();</span>
194
- <span class="cstat-no" title="statement not covered" > return;</span>
195
- }
196
- &nbsp;
197
- <span class="cstat-no" title="statement not covered" > onHotUpdateSuccess?.();</span>
198
- &nbsp;
199
- <span class="cstat-no" title="statement not covered" > if (isUpdateAvailable()) {</span>
200
- // While we were updating, there was a new update! Do it again.
201
- <span class="cstat-no" title="statement not covered" > tryApplyUpdates();</span>
202
- }
203
- }
204
- &nbsp;
205
- // @ts-ignore
206
- <span class="cstat-no" title="statement not covered" > module.hot.check(true).then(</span>
207
- <span class="fstat-no" title="function not covered" > fu</span>nction (updatedModules: any) {
208
- <span class="cstat-no" title="statement not covered" > handleApplyUpdates(null, updatedModules);</span>
209
- },
210
- <span class="fstat-no" title="function not covered" > fu</span>nction (err: Error) {
211
- <span class="cstat-no" title="statement not covered" > handleApplyUpdates(err, null);</span>
212
- },
213
- );
214
- }
215
- &nbsp;
216
- <span class="cstat-no" title="statement not covered" > window.g_initWebpackHotDevClient({</span>
217
- tryApplyUpdates,
218
- });
219
- }
220
- &nbsp;
221
- export const __mfsu = <span class="cstat-no" title="statement not covered" >1;</span>
222
- </pre></td></tr></table></pre>
223
-
224
- <div class='push'></div><!-- for sticky footer -->
225
- </div><!-- /wrapper -->
226
- <div class='footer quiet pad2 space-top1 center small'>
227
- Code coverage generated by
228
- <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
229
- at 2024-01-24T02:49:50.075Z
230
- </div>
231
- <script src="../../../prettify.js"></script>
232
- <script>
233
- window.onload = function () {
234
- prettyPrint();
235
- };
236
- </script>
237
- <script src="../../../sorter.js"></script>
238
- <script src="../../../block-navigation.js"></script>
239
- </body>
240
- </html>
241
-