@zat-design/sisyphus-react 3.8.3-beta.4 → 3.8.3-beta.6

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 (58) hide show
  1. package/es/ProEditTable/components/RenderField/ListChangedWrapper.js +1 -1
  2. package/es/ProForm/components/combination/FormList/components/BlockFields.d.ts +2 -0
  3. package/es/ProForm/components/combination/FormList/components/BlockFields.js +4 -2
  4. package/es/ProForm/components/combination/FormList/components/LineFields.d.ts +2 -0
  5. package/es/ProForm/components/combination/FormList/components/LineFields.js +4 -2
  6. package/es/ProForm/components/combination/FormList/index.js +14 -3
  7. package/es/ProForm/components/render/ChangedWrapper.js +3 -1
  8. package/es/ProForm/components/render/RenderFields.js +2 -1
  9. package/es/ProForm/propsType.d.ts +1 -0
  10. package/lib/ProEditTable/components/RenderField/ListChangedWrapper.js +1 -1
  11. package/lib/ProForm/components/combination/FormList/components/BlockFields.d.ts +2 -0
  12. package/lib/ProForm/components/combination/FormList/components/BlockFields.js +4 -2
  13. package/lib/ProForm/components/combination/FormList/components/LineFields.d.ts +2 -0
  14. package/lib/ProForm/components/combination/FormList/components/LineFields.js +4 -2
  15. package/lib/ProForm/components/combination/FormList/index.js +14 -3
  16. package/lib/ProForm/components/render/ChangedWrapper.js +3 -1
  17. package/lib/ProForm/components/render/RenderFields.js +2 -1
  18. package/lib/ProForm/propsType.d.ts +1 -0
  19. package/package.json +1 -1
  20. package/coverage/lcov-report/src/.umi/core/devScripts.ts.html +0 -241
  21. package/coverage/lcov-report/src/.umi/core/history.ts.html +0 -148
  22. package/coverage/lcov-report/src/.umi/core/index.html +0 -206
  23. package/coverage/lcov-report/src/.umi/core/plugin.ts.html +0 -109
  24. package/coverage/lcov-report/src/.umi/core/pluginRegister.ts.html +0 -160
  25. package/coverage/lcov-report/src/.umi/core/polyfill.ts.html +0 -97
  26. package/coverage/lcov-report/src/.umi/core/routes.ts.html +0 -26050
  27. package/coverage/lcov-report/src/.umi/core/umiExports.ts.html +0 -112
  28. package/coverage/lcov-report/src/.umi/dumi/demos/index.html +0 -116
  29. package/coverage/lcov-report/src/.umi/dumi/demos/index.ts.html +0 -6340
  30. package/coverage/lcov-report/src/.umi/dumi/index.html +0 -116
  31. package/coverage/lcov-report/src/.umi/dumi/layout.tsx.html +0 -109
  32. package/coverage/lcov-report/src/.umi/index.html +0 -116
  33. package/coverage/lcov-report/src/.umi/plugin-antd/index.html +0 -116
  34. package/coverage/lcov-report/src/.umi/plugin-antd/runtime.tsx.html +0 -172
  35. package/coverage/lcov-report/src/.umi/plugin-helmet/exports.ts.html +0 -94
  36. package/coverage/lcov-report/src/.umi/plugin-helmet/index.html +0 -116
  37. package/coverage/lcov-report/src/.umi/plugin-initial-state/Provider.tsx.html +0 -196
  38. package/coverage/lcov-report/src/.umi/plugin-initial-state/exports.ts.html +0 -106
  39. package/coverage/lcov-report/src/.umi/plugin-initial-state/index.html +0 -146
  40. package/coverage/lcov-report/src/.umi/plugin-initial-state/models/index.html +0 -116
  41. package/coverage/lcov-report/src/.umi/plugin-initial-state/models/initialState.ts.html +0 -88
  42. package/coverage/lcov-report/src/.umi/plugin-initial-state/runtime.tsx.html +0 -124
  43. package/coverage/lcov-report/src/.umi/plugin-locale/SelectLang.tsx.html +0 -1246
  44. package/coverage/lcov-report/src/.umi/plugin-locale/index.html +0 -161
  45. package/coverage/lcov-report/src/.umi/plugin-locale/locale.tsx.html +0 -268
  46. package/coverage/lcov-report/src/.umi/plugin-locale/localeExports.ts.html +0 -778
  47. package/coverage/lcov-report/src/.umi/plugin-locale/runtime.tsx.html +0 -115
  48. package/coverage/lcov-report/src/.umi/plugin-model/Provider.tsx.html +0 -202
  49. package/coverage/lcov-report/src/.umi/plugin-model/helpers/constant.tsx.html +0 -97
  50. package/coverage/lcov-report/src/.umi/plugin-model/helpers/dispatcher.tsx.html +0 -142
  51. package/coverage/lcov-report/src/.umi/plugin-model/helpers/executor.tsx.html +0 -334
  52. package/coverage/lcov-report/src/.umi/plugin-model/helpers/index.html +0 -146
  53. package/coverage/lcov-report/src/.umi/plugin-model/index.html +0 -146
  54. package/coverage/lcov-report/src/.umi/plugin-model/runtime.tsx.html +0 -121
  55. package/coverage/lcov-report/src/.umi/plugin-model/useModel.tsx.html +0 -298
  56. package/coverage/lcov-report/src/.umi/plugin-request/index.html +0 -116
  57. package/coverage/lcov-report/src/.umi/plugin-request/request.ts.html +0 -919
  58. package/coverage/lcov-report/src/.umi/umi.ts.html +0 -268
@@ -130,7 +130,7 @@ var ListChangedWrapper = function ListChangedWrapper(props) {
130
130
  children: ["\u521D\u59CB\u503C\uFF1A", /*#__PURE__*/React.isValidElement(children) ? /*#__PURE__*/React.cloneElement(children, _objectSpread(_objectSpread({}, children), {}, _defineProperty(_defineProperty({
131
131
  // @ts-ignore
132
132
  isView: true
133
- }, valuePropName, getValueProps ? (_getValueProps = getValueProps(originalValue)) === null || _getValueProps === void 0 ? void 0 : _getValueProps[valuePropName] : props[valuePropName]), "checked", type === 'Switch' ? originalValue : undefined))) : undefined]
133
+ }, valuePropName, getValueProps ? (_getValueProps = getValueProps(originalValue)) === null || _getValueProps === void 0 ? void 0 : _getValueProps[valuePropName] : originalValue), "checked", type === 'Switch' ? originalValue : undefined))) : undefined]
134
134
  }),
135
135
  children: _jsx("div", {
136
136
  className: diffClassName,
@@ -3,6 +3,7 @@ import React from 'react';
3
3
  import { InternalNamePath } from 'antd/es/form/interface';
4
4
  import type { levelType } from '../../../../../ProLayout/components/ProCollapse/PropTypes';
5
5
  import type { FormListProps } from '../propsType';
6
+ import { DiffConfigProps } from '../../../../propsType';
6
7
  interface Props extends Omit<FormListProps, 'toolbarProps'> {
7
8
  index: number;
8
9
  namePath: InternalNamePath;
@@ -14,6 +15,7 @@ interface Props extends Omit<FormListProps, 'toolbarProps'> {
14
15
  };
15
16
  level?: levelType;
16
17
  towCollapse?: boolean;
18
+ diffConfig?: DiffConfigProps;
17
19
  }
18
20
  declare const BlockFields: React.FC<Props>;
19
21
  export default BlockFields;
@@ -31,7 +31,8 @@ var BlockFields = function BlockFields(props) {
31
31
  _props$level = props.level,
32
32
  level = _props$level === void 0 ? '2' : _props$level,
33
33
  towCollapse = props.towCollapse,
34
- id = props.id;
34
+ id = props.id,
35
+ diffConfig = props.diffConfig;
35
36
  var _title = useMemo(function () {
36
37
  if (isFunction(title)) {
37
38
  var record = form.getFieldValue(namePath);
@@ -73,7 +74,8 @@ var BlockFields = function BlockFields(props) {
73
74
  form: form,
74
75
  colProps: colProps,
75
76
  disabled: disabled,
76
- isView: isView
77
+ isView: isView,
78
+ diffConfig: diffConfig
77
79
  })
78
80
  }, field.key)
79
81
  })
@@ -2,6 +2,7 @@ import { ColProps, FormListFieldData } from 'antd';
2
2
  import React from 'react';
3
3
  import { InternalNamePath } from 'antd/es/form/interface';
4
4
  import { FormListProps } from '../propsType';
5
+ import { DiffConfigProps } from '../../../../propsType';
5
6
  interface Props extends Omit<FormListProps, 'toolbarProps'> {
6
7
  className?: string;
7
8
  index: number;
@@ -12,6 +13,7 @@ interface Props extends Omit<FormListProps, 'toolbarProps'> {
12
13
  field: Omit<FormListFieldData, 'key'> & {
13
14
  key: string;
14
15
  };
16
+ diffConfig?: DiffConfigProps;
15
17
  }
16
18
  declare const LineFields: React.FC<Props>;
17
19
  export default LineFields;
@@ -29,7 +29,8 @@ var LineFields = function LineFields(props) {
29
29
  isView = props.isView,
30
30
  draggable = props.draggable,
31
31
  className = props.className,
32
- id = props.id;
32
+ id = props.id,
33
+ diffConfig = props.diffConfig;
33
34
  var isLess = mode === 'less';
34
35
  var _useSortable = useSortable({
35
36
  id: field.key,
@@ -70,7 +71,8 @@ var LineFields = function LineFields(props) {
70
71
  form: form,
71
72
  colProps: colProps,
72
73
  disabled: disabled,
73
- isView: isView
74
+ isView: isView,
75
+ diffConfig: diffConfig
74
76
  })
75
77
  }), actionProps !== false && _jsx(ActionButton, {
76
78
  min: min,
@@ -5,6 +5,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
5
5
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
6
  import { forwardRef, useCallback, useImperativeHandle } from 'react';
7
7
  import { DndContext } from '@dnd-kit/core';
8
+ import { get } from 'lodash';
8
9
  import { SortableContext, verticalListSortingStrategy } from '@dnd-kit/sortable';
9
10
  import { toArray } from '../../../utils';
10
11
  import { namesPathTransform } from './utils';
@@ -12,6 +13,7 @@ import ToolbarButton from './components/ToolbarButton';
12
13
  import BlockFields from './components/BlockFields';
13
14
  import LineFields from './components/LineFields';
14
15
  import ProForm from '../../../../ProForm';
16
+ import { useProConfig } from '../../../../ProConfigProvider';
15
17
  var FormList = function FormList(props, ref) {
16
18
  var columns = props.columns,
17
19
  min = props.min,
@@ -33,9 +35,16 @@ var FormList = function FormList(props, ref) {
33
35
  var _ref = ProForm.useFieldProps() || {},
34
36
  form = _ref.form,
35
37
  name = _ref.name,
36
- isView = _ref.isView;
38
+ isView = _ref.isView,
39
+ diffConfig = _ref.diffConfig;
40
+ var _useProConfig = useProConfig('ProForm'),
41
+ isDiffAll = _useProConfig.isDiffAll;
37
42
  var errors = meta.errors;
38
43
  var _namePath = toArray(name);
44
+ var orgValues = get(diffConfig === null || diffConfig === void 0 ? void 0 : diffConfig.originalValues, name);
45
+ var _diffConfig = _objectSpread(_objectSpread({}, diffConfig), {}, {
46
+ originalValues: isDiffAll ? orgValues || [] : orgValues
47
+ });
39
48
  var processColumns = useCallback(function (fieldName, namePath) {
40
49
  return columns.map(function (item) {
41
50
  // names的name处理
@@ -98,7 +107,8 @@ var FormList = function FormList(props, ref) {
98
107
  colProps: {
99
108
  span: span
100
109
  },
101
- form: form
110
+ form: form,
111
+ diffConfig: _diffConfig
102
112
  }), field.key) : _jsx(LineFields, _objectSpread(_objectSpread({
103
113
  className: _fields.length === index + 1 ? 'pro-form-list-last' : ''
104
114
  }, props), {}, {
@@ -112,7 +122,8 @@ var FormList = function FormList(props, ref) {
112
122
  colProps: {
113
123
  span: mode === 'less' ? 24 : span
114
124
  },
115
- form: form
125
+ form: form,
126
+ diffConfig: _diffConfig
116
127
  }), field.key);
117
128
  }), _jsx(_Form.ErrorList, {
118
129
  errors: errors
@@ -54,7 +54,9 @@ var ChangedWrapper = function ChangedWrapper(props) {
54
54
  var isChanged = diffType === 'changed';
55
55
  var tipContent = useMemo(function () {
56
56
  if (!isWatch || noChange) return undefined;
57
- var valueProps = getValueProps ? getValueProps(originalValue) : originalValue;
57
+ var valueProps = getValueProps && !names ? getValueProps(originalValue) : {
58
+ value: originalValue
59
+ };
58
60
  return /*#__PURE__*/React.isValidElement(children) ? /*#__PURE__*/React.cloneElement(children, _objectSpread(_objectSpread({}, children.props), {}, _defineProperty({
59
61
  isView: true
60
62
  }, valuePropName, valueProps === null || valueProps === void 0 ? void 0 : valueProps.value))) : undefined;
@@ -186,7 +186,8 @@ var RenderFields = function RenderFields(props) {
186
186
  namePath: column.namePath,
187
187
  listName: column.listName,
188
188
  globalControl: globalControl,
189
- formDisabled: formDisabled
189
+ formDisabled: formDisabled,
190
+ diffConfig: diffConfig
190
191
  };
191
192
  return _jsx(FieldProvider, {
192
193
  value: otherProps,
@@ -45,6 +45,7 @@ export interface ProFormOtherProps {
45
45
  globalControl?: boolean;
46
46
  formDisabled?: boolean;
47
47
  isDiffChange?: boolean;
48
+ diffConfig?: DiffConfigProps;
48
49
  }
49
50
  export interface DiffConfigProps<Values = any> {
50
51
  /** 比对原始数据源 */
@@ -137,7 +137,7 @@ var ListChangedWrapper = function ListChangedWrapper(props) {
137
137
  children: ["\u521D\u59CB\u503C\uFF1A", /*#__PURE__*/_react.default.isValidElement(children) ? /*#__PURE__*/_react.default.cloneElement(children, (0, _objectSpread3.default)((0, _objectSpread3.default)({}, children), {}, (0, _defineProperty2.default)((0, _defineProperty2.default)({
138
138
  // @ts-ignore
139
139
  isView: true
140
- }, valuePropName, getValueProps ? (_getValueProps = getValueProps(originalValue)) === null || _getValueProps === void 0 ? void 0 : _getValueProps[valuePropName] : props[valuePropName]), "checked", type === 'Switch' ? originalValue : undefined))) : undefined]
140
+ }, valuePropName, getValueProps ? (_getValueProps = getValueProps(originalValue)) === null || _getValueProps === void 0 ? void 0 : _getValueProps[valuePropName] : originalValue), "checked", type === 'Switch' ? originalValue : undefined))) : undefined]
141
141
  }),
142
142
  children: (0, _jsxRuntime.jsx)("div", {
143
143
  className: diffClassName,
@@ -3,6 +3,7 @@ import React from 'react';
3
3
  import { InternalNamePath } from 'antd/es/form/interface';
4
4
  import type { levelType } from '../../../../../ProLayout/components/ProCollapse/PropTypes';
5
5
  import type { FormListProps } from '../propsType';
6
+ import { DiffConfigProps } from '../../../../propsType';
6
7
  interface Props extends Omit<FormListProps, 'toolbarProps'> {
7
8
  index: number;
8
9
  namePath: InternalNamePath;
@@ -14,6 +15,7 @@ interface Props extends Omit<FormListProps, 'toolbarProps'> {
14
15
  };
15
16
  level?: levelType;
16
17
  towCollapse?: boolean;
18
+ diffConfig?: DiffConfigProps;
17
19
  }
18
20
  declare const BlockFields: React.FC<Props>;
19
21
  export default BlockFields;
@@ -36,7 +36,8 @@ var BlockFields = function BlockFields(props) {
36
36
  _props$level = props.level,
37
37
  level = _props$level === void 0 ? '2' : _props$level,
38
38
  towCollapse = props.towCollapse,
39
- id = props.id;
39
+ id = props.id,
40
+ diffConfig = props.diffConfig;
40
41
  var _title = (0, _react.useMemo)(function () {
41
42
  if ((0, _lodash.isFunction)(title)) {
42
43
  var record = form.getFieldValue(namePath);
@@ -78,7 +79,8 @@ var BlockFields = function BlockFields(props) {
78
79
  form: form,
79
80
  colProps: colProps,
80
81
  disabled: disabled,
81
- isView: isView
82
+ isView: isView,
83
+ diffConfig: diffConfig
82
84
  })
83
85
  }, field.key)
84
86
  })
@@ -2,6 +2,7 @@ import { ColProps, FormListFieldData } from 'antd';
2
2
  import React from 'react';
3
3
  import { InternalNamePath } from 'antd/es/form/interface';
4
4
  import { FormListProps } from '../propsType';
5
+ import { DiffConfigProps } from '../../../../propsType';
5
6
  interface Props extends Omit<FormListProps, 'toolbarProps'> {
6
7
  className?: string;
7
8
  index: number;
@@ -12,6 +13,7 @@ interface Props extends Omit<FormListProps, 'toolbarProps'> {
12
13
  field: Omit<FormListFieldData, 'key'> & {
13
14
  key: string;
14
15
  };
16
+ diffConfig?: DiffConfigProps;
15
17
  }
16
18
  declare const LineFields: React.FC<Props>;
17
19
  export default LineFields;
@@ -35,7 +35,8 @@ var LineFields = function LineFields(props) {
35
35
  isView = props.isView,
36
36
  draggable = props.draggable,
37
37
  className = props.className,
38
- id = props.id;
38
+ id = props.id,
39
+ diffConfig = props.diffConfig;
39
40
  var isLess = mode === 'less';
40
41
  var _useSortable = (0, _sortable.useSortable)({
41
42
  id: field.key,
@@ -76,7 +77,8 @@ var LineFields = function LineFields(props) {
76
77
  form: form,
77
78
  colProps: colProps,
78
79
  disabled: disabled,
79
- isView: isView
80
+ isView: isView,
81
+ diffConfig: diffConfig
80
82
  })
81
83
  }), actionProps !== false && (0, _jsxRuntime.jsx)(_ActionButton.default, {
82
84
  min: min,
@@ -11,6 +11,7 @@ var _jsxRuntime = require("react/jsx-runtime");
11
11
  var _react = require("react");
12
12
  var _antd = require("antd");
13
13
  var _core = require("@dnd-kit/core");
14
+ var _lodash = require("lodash");
14
15
  var _sortable = require("@dnd-kit/sortable");
15
16
  var _utils = require("../../../utils");
16
17
  var _utils2 = require("./utils");
@@ -18,6 +19,7 @@ var _ToolbarButton = _interopRequireDefault(require("./components/ToolbarButton"
18
19
  var _BlockFields = _interopRequireDefault(require("./components/BlockFields"));
19
20
  var _LineFields = _interopRequireDefault(require("./components/LineFields"));
20
21
  var _ProForm = _interopRequireDefault(require("../../../../ProForm"));
22
+ var _ProConfigProvider = require("../../../../ProConfigProvider");
21
23
  var FormList = function FormList(props, ref) {
22
24
  var columns = props.columns,
23
25
  min = props.min,
@@ -39,9 +41,16 @@ var FormList = function FormList(props, ref) {
39
41
  var _ref = _ProForm.default.useFieldProps() || {},
40
42
  form = _ref.form,
41
43
  name = _ref.name,
42
- isView = _ref.isView;
44
+ isView = _ref.isView,
45
+ diffConfig = _ref.diffConfig;
46
+ var _useProConfig = (0, _ProConfigProvider.useProConfig)('ProForm'),
47
+ isDiffAll = _useProConfig.isDiffAll;
43
48
  var errors = meta.errors;
44
49
  var _namePath = (0, _utils.toArray)(name);
50
+ var orgValues = (0, _lodash.get)(diffConfig === null || diffConfig === void 0 ? void 0 : diffConfig.originalValues, name);
51
+ var _diffConfig = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, diffConfig), {}, {
52
+ originalValues: isDiffAll ? orgValues || [] : orgValues
53
+ });
45
54
  var processColumns = (0, _react.useCallback)(function (fieldName, namePath) {
46
55
  return columns.map(function (item) {
47
56
  // names的name处理
@@ -104,7 +113,8 @@ var FormList = function FormList(props, ref) {
104
113
  colProps: {
105
114
  span: span
106
115
  },
107
- form: form
116
+ form: form,
117
+ diffConfig: _diffConfig
108
118
  }), field.key) : (0, _jsxRuntime.jsx)(_LineFields.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({
109
119
  className: _fields.length === index + 1 ? 'pro-form-list-last' : ''
110
120
  }, props), {}, {
@@ -118,7 +128,8 @@ var FormList = function FormList(props, ref) {
118
128
  colProps: {
119
129
  span: mode === 'less' ? 24 : span
120
130
  },
121
- form: form
131
+ form: form,
132
+ diffConfig: _diffConfig
122
133
  }), field.key);
123
134
  }), (0, _jsxRuntime.jsx)(_antd.Form.ErrorList, {
124
135
  errors: errors
@@ -59,7 +59,9 @@ var ChangedWrapper = function ChangedWrapper(props) {
59
59
  var isChanged = diffType === 'changed';
60
60
  var tipContent = (0, _react.useMemo)(function () {
61
61
  if (!isWatch || noChange) return undefined;
62
- var valueProps = getValueProps ? getValueProps(originalValue) : originalValue;
62
+ var valueProps = getValueProps && !names ? getValueProps(originalValue) : {
63
+ value: originalValue
64
+ };
63
65
  return /*#__PURE__*/_react.default.isValidElement(children) ? /*#__PURE__*/_react.default.cloneElement(children, (0, _objectSpread3.default)((0, _objectSpread3.default)({}, children.props), {}, (0, _defineProperty2.default)({
64
66
  isView: true
65
67
  }, valuePropName, valueProps === null || valueProps === void 0 ? void 0 : valueProps.value))) : undefined;
@@ -194,7 +194,8 @@ var RenderFields = function RenderFields(props) {
194
194
  namePath: column.namePath,
195
195
  listName: column.listName,
196
196
  globalControl: globalControl,
197
- formDisabled: formDisabled
197
+ formDisabled: formDisabled,
198
+ diffConfig: diffConfig
198
199
  };
199
200
  return (0, _jsxRuntime.jsx)(_useFieldProps.FieldProvider, {
200
201
  value: otherProps,
@@ -45,6 +45,7 @@ export interface ProFormOtherProps {
45
45
  globalControl?: boolean;
46
46
  formDisabled?: boolean;
47
47
  isDiffChange?: boolean;
48
+ diffConfig?: DiffConfigProps;
48
49
  }
49
50
  export interface DiffConfigProps<Values = any> {
50
51
  /** 比对原始数据源 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.8.3-beta.4",
3
+ "version": "3.8.3-beta.6",
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
-