@vtx/components 4.0.0-beta.73 → 4.0.0-beta.75

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 (80) hide show
  1. package/README.md +19 -19
  2. package/es/utils/components/LabelIconTip/index.js +7 -7
  3. package/es/utils/conversionMomentValue/index.js +25 -25
  4. package/es/utils/filterSpecialCharacters.js +6 -6
  5. package/es/utils/genCopyable/index.js +6 -6
  6. package/es/utils/getFieldPropsOrFormItemProps/index.js +7 -7
  7. package/es/utils/hooks/useDebounceFn/index.js +4 -4
  8. package/es/utils/hooks/useDebounceValue/index.js +6 -6
  9. package/es/utils/hooks/useDeepCompareMemo/index.js +7 -7
  10. package/es/utils/hooks/useLatest/index.js +2 -2
  11. package/es/utils/hooks/useRefCallback/index.js +5 -5
  12. package/es/utils/isBrowser/index.js +7 -7
  13. package/es/utils/isUrl/index.js +4 -4
  14. package/es/utils/merge/index.js +4 -4
  15. package/es/utils/nanoid/index.js +4 -4
  16. package/es/utils/omitBoolean/index.js +4 -4
  17. package/es/utils/parseValueToMoment/index.js +4 -4
  18. package/es/utils/proFieldParsingText/index.js +10 -10
  19. package/es/utils/transformKeySubmitValue/index.js +57 -57
  20. package/es/utils/useEditableArray/index.js +46 -46
  21. package/es/utils/useEditableMap/index.js +22 -22
  22. package/es/utils/useMediaQuery/index.js +5 -5
  23. package/es/vtx-datagrid/ToolBar/components/ColumnSetting/index.js +4 -4
  24. package/es/vtx-datagrid/style/index.js +17 -17
  25. package/es/vtx-datagrid/style/index.less +242 -242
  26. package/es/vtx-date-picker/style/index.less +39 -39
  27. package/es/vtx-export/index.js +8 -8
  28. package/es/vtx-export-async/util.js +16 -5
  29. package/es/vtx-icon/index.js1 +90 -90
  30. package/es/vtx-modal/index.js +2 -2
  31. package/es/vtx-page-layout/Basic.js +2 -2
  32. package/es/vtx-page-layout/TabLayout.js +6 -6
  33. package/es/vtx-page-layout/TableLayout.js +10 -10
  34. package/es/vtx-page-layout/TreeLayout.js +6 -6
  35. package/es/vtx-page-layout/container.js +2 -2
  36. package/es/vtx-provider/index.js +30 -30
  37. package/es/vtx-provider/intl.js +9 -9
  38. package/es/vtx-provider/useStyle/index.js +17 -17
  39. package/es/vtx-select/index.js +1 -7
  40. package/es/vtx-wang-editor/style/index.less +12 -12
  41. package/lib/utils/components/LabelIconTip/index.js +7 -7
  42. package/lib/utils/conversionMomentValue/index.js +25 -25
  43. package/lib/utils/filterSpecialCharacters.js +6 -6
  44. package/lib/utils/genCopyable/index.js +6 -6
  45. package/lib/utils/getFieldPropsOrFormItemProps/index.js +7 -7
  46. package/lib/utils/hooks/useDebounceFn/index.js +4 -4
  47. package/lib/utils/hooks/useDebounceValue/index.js +6 -6
  48. package/lib/utils/hooks/useDeepCompareMemo/index.js +7 -7
  49. package/lib/utils/hooks/useLatest/index.js +2 -2
  50. package/lib/utils/hooks/useRefCallback/index.js +5 -5
  51. package/lib/utils/isBrowser/index.js +7 -7
  52. package/lib/utils/isUrl/index.js +4 -4
  53. package/lib/utils/merge/index.js +4 -4
  54. package/lib/utils/nanoid/index.js +4 -4
  55. package/lib/utils/omitBoolean/index.js +4 -4
  56. package/lib/utils/parseValueToMoment/index.js +4 -4
  57. package/lib/utils/proFieldParsingText/index.js +10 -10
  58. package/lib/utils/transformKeySubmitValue/index.js +57 -57
  59. package/lib/utils/useEditableArray/index.js +46 -46
  60. package/lib/utils/useEditableMap/index.js +22 -22
  61. package/lib/utils/useMediaQuery/index.js +5 -5
  62. package/lib/vtx-datagrid/ToolBar/components/ColumnSetting/index.js +4 -4
  63. package/lib/vtx-datagrid/style/index.js +17 -17
  64. package/lib/vtx-datagrid/style/index.less +242 -242
  65. package/lib/vtx-date-picker/style/index.less +39 -39
  66. package/lib/vtx-export/index.js +8 -8
  67. package/lib/vtx-export-async/util.js +16 -5
  68. package/lib/vtx-icon/index.js1 +90 -90
  69. package/lib/vtx-modal/index.js +2 -2
  70. package/lib/vtx-page-layout/Basic.js +2 -2
  71. package/lib/vtx-page-layout/TabLayout.js +6 -6
  72. package/lib/vtx-page-layout/TableLayout.js +10 -10
  73. package/lib/vtx-page-layout/TreeLayout.js +6 -6
  74. package/lib/vtx-page-layout/container.js +2 -2
  75. package/lib/vtx-provider/index.js +30 -30
  76. package/lib/vtx-provider/intl.js +9 -9
  77. package/lib/vtx-provider/useStyle/index.js +17 -17
  78. package/lib/vtx-select/index.js +1 -7
  79. package/lib/vtx-wang-editor/style/index.less +12 -12
  80. package/package.json +238 -238
@@ -25,19 +25,19 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
25
25
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
26
26
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
27
27
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /* eslint-disable react-hooks/exhaustive-deps */
28
- /**
29
- * 显示警告信息
30
- * @param messageStr
28
+ /**
29
+ * 显示警告信息
30
+ * @param messageStr
31
31
  */
32
32
  var warning = function warning(messageStr) {
33
33
  return _antd.message.warning(messageStr);
34
34
  };
35
35
 
36
- /**
37
- * 使用map 来删除数据,性能一般 但是准确率比较高
38
- *
39
- * @param params
40
- * @param action
36
+ /**
37
+ * 使用map 来删除数据,性能一般 但是准确率比较高
38
+ *
39
+ * @param params
40
+ * @param action
41
41
  */
42
42
  function editableRowByKey(_ref) {
43
43
  var data = _ref.data,
@@ -45,14 +45,14 @@ function editableRowByKey(_ref) {
45
45
  return _objectSpread(_objectSpread({}, data), row);
46
46
  }
47
47
 
48
- /**
49
- * 一个方便的hooks 用于维护编辑的状态
50
- *
51
- * @param props
48
+ /**
49
+ * 一个方便的hooks 用于维护编辑的状态
50
+ *
51
+ * @param props
52
52
  */
53
53
  function useEditableMap(props) {
54
- /**
55
- * 点击开始编辑之前的保存数据用的
54
+ /**
55
+ * 点击开始编辑之前的保存数据用的
56
56
  */
57
57
  var preEditRowRef = (0, _react.useRef)(null);
58
58
  var editableType = props.type || 'single';
@@ -84,10 +84,10 @@ function useEditableMap(props) {
84
84
  return false;
85
85
  }, [(editableKeys || []).join(',')]);
86
86
 
87
- /**
88
- * 进入编辑状态
89
- *
90
- * @param recordKey
87
+ /**
88
+ * 进入编辑状态
89
+ *
90
+ * @param recordKey
91
91
  */
92
92
  var startEditable = function startEditable(recordKey, recordValue) {
93
93
  var _ref2;
@@ -102,10 +102,10 @@ function useEditableMap(props) {
102
102
  return true;
103
103
  };
104
104
 
105
- /**
106
- * 退出编辑状态
107
- *
108
- * @param recordKey
105
+ /**
106
+ * 退出编辑状态
107
+ *
108
+ * @param recordKey
109
109
  */
110
110
  var cancelEditable = function cancelEditable(recordKey) {
111
111
  // 防止多次渲染
@@ -44,11 +44,11 @@ var MediaQueryEnum = exports.MediaQueryEnum = {
44
44
  }
45
45
  };
46
46
 
47
- /**
48
- * loop query screen className
49
- * Array.find will throw a error
50
- * `Rendered more hooks than during the previous render.`
51
- * So should use Array.forEach
47
+ /**
48
+ * loop query screen className
49
+ * Array.find will throw a error
50
+ * `Rendered more hooks than during the previous render.`
51
+ * So should use Array.forEach
52
52
  */
53
53
  var getScreenClassName = exports.getScreenClassName = function getScreenClassName() {
54
54
  var queryKey = undefined;
@@ -379,10 +379,10 @@ function ColumnSetting(props) {
379
379
  var checkedColumnKeys = props.checkedColumnKeys,
380
380
  onColumnsSave = props.onColumnsSave;
381
381
 
382
- /**
383
- * 设置全部选中,或全部未选中
384
- *
385
- * @param show
382
+ /**
383
+ * 设置全部选中,或全部未选中
384
+ *
385
+ * @param show
386
386
  */
387
387
  var setAllSelectAction = (0, _utils.useRefFunction)(function () {
388
388
  var show = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
@@ -20,10 +20,10 @@ var genVtxStyle = function genVtxStyle(token) {
20
20
  display: 'flex',
21
21
  flexDirection: 'column'
22
22
  }, "".concat(antCls, "-table-cell-ellipsis"), {
23
- whiteSpace: "normal"
23
+ whiteSpace: 'normal'
24
24
  }), "".concat(antCls, "-table-wrapper"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "table", {
25
25
  // minWidth: "calc(100% - 2px) !important"
26
- }), '.ant-spin', _defineProperty({
26
+ }), '.ant-spin, .ant-spin-nested-loading', _defineProperty({
27
27
  height: '100%'
28
28
  }, '.ant-spin-container', _defineProperty({
29
29
  height: '100%',
@@ -34,20 +34,20 @@ var genVtxStyle = function genVtxStyle(token) {
34
34
  flex: 1
35
35
  }, '.ant-table-container', _defineProperty(_defineProperty({
36
36
  height: '100%',
37
- borderInlineStart: "none"
37
+ borderInlineStart: 'none'
38
38
  }, '.ant-table-body', {
39
- scrollbarWidth: "thin"
39
+ scrollbarWidth: 'thin'
40
40
  }), '.ant-table-content', _defineProperty({
41
41
  height: '100%',
42
- scrollbarWidth: "thin"
42
+ scrollbarWidth: 'thin'
43
43
  }, 'table', {
44
44
  // height: '100%',
45
- minWidth: "calc(100% - 1px) !important"
45
+ minWidth: 'calc(100% - 1px) !important'
46
46
  })))))), '.ant-table', _defineProperty(_defineProperty(_defineProperty({}, '.ant-table-header', _defineProperty({}, '.ant-table-thead', {
47
47
  '>tr>th': {
48
48
  background: token.colorBgContainer,
49
49
  '&:first-child': {
50
- borderInlineStart: "var(--ant-line-width) var(--ant-line-type) var(--ant-table-border-color)"
50
+ borderInlineStart: 'var(--ant-line-width) var(--ant-line-type) var(--ant-table-border-color)'
51
51
  }
52
52
  }
53
53
  })), '.ant-table-cell', {
@@ -55,13 +55,13 @@ var genVtxStyle = function genVtxStyle(token) {
55
55
  }), '.ant-table-tbody', {
56
56
  '>tr>td': {
57
57
  '&:first-child': {
58
- borderInlineStart: "var(--ant-line-width) var(--ant-line-type) var(--ant-table-border-color)"
58
+ borderInlineStart: 'var(--ant-line-width) var(--ant-line-type) var(--ant-table-border-color)'
59
59
  }
60
60
  },
61
61
  '>tr.ant-table-placeholder': {
62
62
  position: 'absolute',
63
- top: "auto",
64
- bottom: "auto",
63
+ top: 'auto',
64
+ bottom: 'auto',
65
65
  right: 0,
66
66
  left: 0,
67
67
  backgroundColor: 'transparent',
@@ -86,7 +86,7 @@ var genVtxStyle = function genVtxStyle(token) {
86
86
  }
87
87
  }
88
88
  })), '.ant-pagination', _defineProperty({
89
- margin: "var(--ant-margin) 0 0 0"
89
+ margin: 'var(--ant-margin) 0 0 0'
90
90
  }, '.ant-pagination-item', {
91
91
  borderRadius: token.borderRadiusSM
92
92
  })))), "".concat(componentCls, "-fit"), {
@@ -147,15 +147,15 @@ var genVtxStyle = function genVtxStyle(token) {
147
147
  background: token.colorBgContainer
148
148
  }
149
149
  }))), "".concat(componentCls, "-no-data"), _defineProperty({}, "".concat(antCls, "-table-wrapper"), _defineProperty({}, '.ant-spin', _defineProperty({}, '.ant-spin-container', _defineProperty({}, '.ant-table', _defineProperty({}, '.ant-table-container', _defineProperty({
150
- borderInlineStart: "var(--ant-line-width) var(--ant-line-type) var(--ant-table-border-color)"
150
+ borderInlineStart: 'var(--ant-line-width) var(--ant-line-type) var(--ant-table-border-color)'
151
151
  }, '.ant-table-content', _defineProperty({
152
- borderRight: "var(--ant-line-width) var(--ant-line-type) var(--ant-table-border-color)",
153
- borderBottom: "var(--ant-line-width) var(--ant-line-type) var(--ant-table-border-color)"
152
+ borderRight: 'var(--ant-line-width) var(--ant-line-type) var(--ant-table-border-color)',
153
+ borderBottom: 'var(--ant-line-width) var(--ant-line-type) var(--ant-table-border-color)'
154
154
  }, 'table', {})))))))), "".concat(componentCls, "-no-data").concat(componentCls, "-no-border"), _defineProperty({}, "".concat(antCls, "-table-wrapper"), _defineProperty({}, '.ant-spin', _defineProperty({}, '.ant-spin-container', _defineProperty({}, '.ant-table', _defineProperty({}, '.ant-table-container', _defineProperty({
155
- borderInlineStart: "none"
155
+ borderInlineStart: 'none'
156
156
  }, '.ant-table-content', {
157
- borderRight: "none",
158
- borderBottom: "none"
157
+ borderRight: 'none',
158
+ borderBottom: 'none'
159
159
  })))))));
160
160
  };
161
161
  function useStyle(prefix) {