@aloudata/aloudata-design 2.0.1 → 2.0.2

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.
@@ -41,9 +41,7 @@ export default function Header(props) {
41
41
  className: "ald-data-preview-header-left"
42
42
  }, column.icon !== undefined ? column.icon : /*#__PURE__*/React.createElement("span", null)), /*#__PURE__*/React.createElement("div", {
43
43
  className: "ald-data-preview-header-name"
44
- }, column.name), /*#__PURE__*/React.createElement("div", {
45
- className: "ald-data-preview-header-right"
46
- })), /*#__PURE__*/React.createElement(DragBar, {
44
+ }, column.name)), /*#__PURE__*/React.createElement(DragBar, {
47
45
  columnId: column.id,
48
46
  wrapWidth: columnLayout[column.id].width,
49
47
  onChange: setWidth
@@ -24,6 +24,7 @@ var DataPreviewTable = /*#__PURE__*/forwardRef(function (props, ref) {
24
24
  return datasource.length * CELL_HEIGHT + HEADER_HEIGHT;
25
25
  }, [datasource]);
26
26
  var wrapRef = useRef(null);
27
+ var progressRef = useRef(null);
27
28
  var _useDirection = useDirection(columns, wrapRef),
28
29
  columnRange = _useDirection.columnRange,
29
30
  rowRange = _useDirection.rowRange,
@@ -60,6 +61,10 @@ var DataPreviewTable = /*#__PURE__*/forwardRef(function (props, ref) {
60
61
  behavior: 'smooth'
61
62
  });
62
63
  }
64
+ },
65
+ progressRestart: function progressRestart() {
66
+ var _progressRef$current;
67
+ (_progressRef$current = progressRef.current) === null || _progressRef$current === void 0 ? void 0 : _progressRef$current.restart();
63
68
  }
64
69
  };
65
70
  });
@@ -85,7 +90,8 @@ var DataPreviewTable = /*#__PURE__*/forwardRef(function (props, ref) {
85
90
  })
86
91
  }, /*#__PURE__*/React.createElement(Progress, {
87
92
  className: "ald-data-preview-progress",
88
- loading: !!loading
93
+ loading: !!loading,
94
+ ref: progressRef
89
95
  }), /*#__PURE__*/React.createElement("div", {
90
96
  style: {
91
97
  height: dataStatus === 'pending' ? skeletonRows * CELL_HEIGHT + HEADER_HEIGHT : contentHeight,
@@ -11,6 +11,7 @@ export interface ITableProps {
11
11
  }
12
12
  export interface DataPreviewTableRef {
13
13
  scrollToColumnInView: (columnId: string) => void;
14
+ progressRestart: () => void;
14
15
  }
15
16
  export type Align = 'left' | 'center' | 'right';
16
17
  export interface PreviewColumn {
@@ -35,26 +35,22 @@
35
35
  font-weight: 500;
36
36
 
37
37
  .ald-data-preview-header-default {
38
- padding: 4px 13px 3px 20px;
38
+ padding: 4px;
39
39
  height: 100%;
40
40
  width: 100%;
41
- line-height: 25px;
41
+ line-height: 24px;
42
42
  background: var(--alias-colors-bg-skeleton-subtle, #f9fafb);
43
+ display: flex;
44
+ align-items: center;
43
45
 
44
46
  .ald-data-preview-header-left {
45
- width: 20px;
46
47
  height: 100%;
47
48
  display: flex;
48
49
  align-items: center;
49
50
  justify-content: center;
50
51
  font-size: 16px;
51
- position: absolute;
52
- left: 4px;
53
- z-index: 1;
52
+ margin-right: 4px;
54
53
  color: #575757;
55
- top: 0;
56
- bottom: 0;
57
- // background:rgb(0 0 0 / 0%)
58
54
  }
59
55
 
60
56
  .ald-data-preview-header-name {
@@ -62,6 +58,7 @@
62
58
  overflow: hidden;
63
59
  text-overflow: ellipsis;
64
60
  white-space: nowrap;
61
+ margin: auto;
65
62
  }
66
63
 
67
64
  .ald-data-preview-header-right {
@@ -13,7 +13,6 @@ import classnames from 'classnames';
13
13
  import React, { useContext } from 'react';
14
14
  import { ConfigContext } from "../../../ConfigProvider";
15
15
  import { CloseCircleFill } from "../../../Icon";
16
- import IconButton from "../../../IconButton/index";
17
16
  export function getSizeType(sizeType) {
18
17
  if (['small', 'middle', 'large'].includes(sizeType || '')) {
19
18
  return sizeType;
@@ -46,11 +45,9 @@ var Input = /*#__PURE__*/React.forwardRef(function (props, ref) {
46
45
  disabled: disabled,
47
46
  autoComplete: "off",
48
47
  allowClear: allowClear ? {
49
- clearIcon: /*#__PURE__*/React.createElement(IconButton, {
50
- size: "small",
51
- icon: /*#__PURE__*/React.createElement(CloseCircleFill, {
52
- color: "#9CA3AF"
53
- })
48
+ clearIcon: /*#__PURE__*/React.createElement(CloseCircleFill, {
49
+ size: 16,
50
+ color: "#9CA3AF"
54
51
  })
55
52
  } : undefined,
56
53
  spellCheck: false,
@@ -77,7 +77,7 @@
77
77
  line-height: 20px;
78
78
  font-size: 14px;
79
79
  overflow-y: auto;
80
- padding: var(--alias-spacing-200, 16px) var(--alias-spacing-250, 20px);
80
+ padding: var(--alias-padding-300, 24px);
81
81
  }
82
82
 
83
83
  .ant-modal-footer {
@@ -398,7 +398,7 @@
398
398
 
399
399
  .ald-radio-label.ald-radio-button-wrapper-filled {
400
400
  height: 28px;
401
- border-radius: @border-radius-middle;
401
+ border-radius: 4px !important;
402
402
  margin-top: 2px;
403
403
  }
404
404
 
@@ -455,7 +455,7 @@
455
455
  .ald-radio-label.ald-radio-button-wrapper-filled {
456
456
  height: 24px;
457
457
  margin-top: 2px;
458
- border-radius: @border-radius-small !important;
458
+ border-radius: 2px !important;
459
459
  }
460
460
 
461
461
  .ald-radio-icon-button-wrapper-filled,
@@ -524,7 +524,7 @@
524
524
  .ald-radio-label.ald-radio-button-wrapper-filled {
525
525
  height: 32px;
526
526
  margin-top: 2px;
527
- border-radius: @border-radius-large!important;
527
+ border-radius: 6px !important;
528
528
  }
529
529
 
530
530
  .ald-radio-label {
@@ -0,0 +1,11 @@
1
+ .ald-tree-indent {
2
+ display: block;
3
+ // 这里比较黑,本身不需要indent元素,但是rc-tree需要 ald-tree-indent-unit的宽度,来计算dropIndicator的位置
4
+ position: absolute;
5
+ left: 100000px;
6
+
7
+ .ald-tree-indent-unit {
8
+ width: 16px;
9
+ height: 1px;
10
+ }
11
+ }
@@ -5,6 +5,7 @@
5
5
  @import './rtl.less';
6
6
  @import './mixin.less';
7
7
  @import './reset.less';
8
+ @import './indent.less';
8
9
  @import './checkbox.less';
9
10
 
10
11
  @tree-font-size-large: 14px;
@@ -24,9 +24,21 @@
24
24
  // it should displayed over the following node
25
25
  z-index: 1;
26
26
  height: 2px;
27
- background-color: @primary-color;
27
+ background-color: var(--alias-colors-border-selected, #126fdd);
28
28
  border-radius: 1px;
29
29
  pointer-events: none;
30
+
31
+ &::before {
32
+ content: '';
33
+ position: absolute;
34
+ left: 0;
35
+ top: -5px;
36
+ width: 0;
37
+ height: 0;
38
+ border-top: 6px solid transparent;
39
+ border-bottom: 6px solid transparent;
40
+ border-left: 10px solid var(--alias-colors-border-selected, #126fdd); /* 高度 */
41
+ }
30
42
  }
31
43
  }
32
44
 
@@ -66,8 +78,8 @@
66
78
  top: 0;
67
79
  right: 0;
68
80
  bottom: 0;
69
- border: 1px solid @primary-color;
70
- opacity: 0;
81
+ // border: 1px solid @primary-color;
82
+ opacity: 0.5;
71
83
  animation: ald-tree-node-fx-do-not-use 0.3s;
72
84
  animation-play-state: running;
73
85
  animation-fill-mode: forwards;