@aloudata/aloudata-design 2.0.0 → 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.
- package/dist/DataPreviewTable/components/Header/index.js +1 -3
- package/dist/DataPreviewTable/index.js +7 -1
- package/dist/DataPreviewTable/interface.d.ts +1 -0
- package/dist/DataPreviewTable/style/index.less +6 -9
- package/dist/Empty/style/index.less +3 -3
- package/dist/Icon/components/CloseLLine.js +3 -10
- package/dist/Icon/svg/close-L-line.svg +2 -11
- package/dist/Input/components/Input/index.js +1 -1
- package/dist/Input/components/Password/index.js +4 -4
- package/dist/Input/components/TextArea/index.js +6 -3
- package/dist/Input/style/index.less +1 -0
- package/dist/Menu/style/index.less +1 -0
- package/dist/Modal/index.js +1 -1
- package/dist/Modal/style/modal.less +2 -2
- package/dist/Radio/style/index.less +29 -8
- package/dist/Select/style/status.less +2 -0
- package/dist/Tree/style/indent.less +11 -0
- package/dist/Tree/style/index.less +1 -0
- package/dist/Tree/style/mixin.less +15 -3
- package/dist/ald.min.css +1 -1
- package/package.json +1 -1
|
@@ -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(
|
|
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,
|
|
@@ -35,26 +35,22 @@
|
|
|
35
35
|
font-weight: 500;
|
|
36
36
|
|
|
37
37
|
.ald-data-preview-header-default {
|
|
38
|
-
padding: 4px
|
|
38
|
+
padding: 4px;
|
|
39
39
|
height: 100%;
|
|
40
40
|
width: 100%;
|
|
41
|
-
line-height:
|
|
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
|
-
|
|
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 {
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.ald-empty-title {
|
|
27
|
-
color:
|
|
28
|
-
font-size:
|
|
27
|
+
color: var(--alias-colors-text-default, #1f2937);
|
|
28
|
+
font-size: 14px;
|
|
29
29
|
line-height: 24px;
|
|
30
30
|
margin-bottom: 4px;
|
|
31
31
|
font-weight: 500;
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
.ald-empty-title-small {
|
|
35
35
|
color: #858585;
|
|
36
36
|
font-weight: 400;
|
|
37
|
-
font-size:
|
|
37
|
+
font-size: 14px;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.ald-empty-description {
|
|
@@ -23,19 +23,12 @@ var CloseLLine = function CloseLLine(_ref, ref) {
|
|
|
23
23
|
id: descId
|
|
24
24
|
}, desc) : null, title ? /*#__PURE__*/React.createElement("title", {
|
|
25
25
|
id: titleId
|
|
26
|
-
}, title) : null, /*#__PURE__*/React.createElement("
|
|
27
|
-
clipPath: "url(#a)"
|
|
28
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
26
|
+
}, title) : null, /*#__PURE__*/React.createElement("path", {
|
|
29
27
|
fill: props.color || 'currentColor',
|
|
30
28
|
fillRule: "evenodd",
|
|
31
|
-
d: "
|
|
29
|
+
d: "M6.47 6.47a.75.75 0 0 1 1.06 0L12 10.94l4.47-4.47a.75.75 0 1 1 1.06 1.06L13.06 12l4.47 4.47a.75.75 0 1 1-1.06 1.06L12 13.06l-4.47 4.47a.75.75 0 0 1-1.06-1.06L10.94 12 6.47 7.53a.75.75 0 0 1 0-1.06Z",
|
|
32
30
|
clipRule: "evenodd"
|
|
33
|
-
}))
|
|
34
|
-
id: "a"
|
|
35
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
36
|
-
fill: props.fill || 'currentColor',
|
|
37
|
-
d: "M0 0h24v24H0z"
|
|
38
|
-
}))));
|
|
31
|
+
}));
|
|
39
32
|
};
|
|
40
33
|
var ForwardRef = /*#__PURE__*/forwardRef(CloseLLine);
|
|
41
34
|
var Memo = /*#__PURE__*/memo(ForwardRef);
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none"
|
|
2
|
-
<
|
|
3
|
-
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
4
|
-
d="M12 11.2929L18.0104 5.2825L18.7175 5.98961L12.7071 12L18.7175 18.0104L18.0104 18.7175L12 12.7071L5.98959 18.7175L5.28249 18.0104L11.2929 12L5.28249 5.98961L5.98959 5.2825L12 11.2929Z"
|
|
5
|
-
fill="black" />
|
|
6
|
-
</g>
|
|
7
|
-
<defs>
|
|
8
|
-
<clipPath id="clip0_278_6954">
|
|
9
|
-
<rect width="24" height="24" fill="white" />
|
|
10
|
-
</clipPath>
|
|
11
|
-
</defs>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.46967 6.46967C6.76256 6.17678 7.23744 6.17678 7.53033 6.46967L12 10.9393L16.4697 6.46967C16.7626 6.17678 17.2374 6.17678 17.5303 6.46967C17.8232 6.76256 17.8232 7.23744 17.5303 7.53033L13.0607 12L17.5303 16.4697C17.8232 16.7626 17.8232 17.2374 17.5303 17.5303C17.2374 17.8232 16.7626 17.8232 16.4697 17.5303L12 13.0607L7.53033 17.5303C7.23744 17.8232 6.76256 17.8232 6.46967 17.5303C6.17678 17.2374 6.17678 16.7626 6.46967 16.4697L10.9393 12L6.46967 7.53033C6.17678 7.23744 6.17678 6.76256 6.46967 6.46967Z" fill="black"/>
|
|
12
3
|
</svg>
|
|
@@ -11,6 +11,7 @@ import classnames from 'classnames';
|
|
|
11
11
|
import React, { useContext } from 'react';
|
|
12
12
|
import SizeContext from "../../../ConfigProvider/sizeContext";
|
|
13
13
|
import { EyeOffLine, EyeOnLine } from "../../../Icon";
|
|
14
|
+
import IconButton from "../../../IconButton";
|
|
14
15
|
import { getSizeType } from "../Input";
|
|
15
16
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16
17
|
export default /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -26,10 +27,9 @@ export default /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
26
27
|
disabled: disabled,
|
|
27
28
|
className: classnames('ald-input', 'ald-input-password', "ald-input-".concat(getSizeType(size)), _defineProperty({}, "ald-input-disabled", disabled), className),
|
|
28
29
|
iconRender: function iconRender(visible) {
|
|
29
|
-
return
|
|
30
|
-
size:
|
|
31
|
-
|
|
32
|
-
size: 20
|
|
30
|
+
return /*#__PURE__*/React.createElement(IconButton, {
|
|
31
|
+
size: "small",
|
|
32
|
+
icon: visible ? /*#__PURE__*/React.createElement(EyeOnLine, null) : /*#__PURE__*/React.createElement(EyeOffLine, null)
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
}));
|
|
@@ -11,6 +11,7 @@ import classnames from 'classnames';
|
|
|
11
11
|
import React, { useContext } from 'react';
|
|
12
12
|
import SizeContext from "../../../ConfigProvider/sizeContext";
|
|
13
13
|
import { CloseCircleFill } from "../../../Icon";
|
|
14
|
+
import IconButton from "../../../IconButton";
|
|
14
15
|
import { getSizeType } from "../Input";
|
|
15
16
|
export default /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
16
17
|
var _props$bordered = props.bordered,
|
|
@@ -30,9 +31,11 @@ export default /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
30
31
|
spellCheck: false,
|
|
31
32
|
className: classnames('ald-input', 'ald-input-textarea', "ald-input-textarea-".concat(getSizeType(size)), _defineProperty({}, "ald-input-disabled", disabled), className),
|
|
32
33
|
allowClear: allowClear ? {
|
|
33
|
-
clearIcon: /*#__PURE__*/React.createElement(
|
|
34
|
-
size:
|
|
35
|
-
|
|
34
|
+
clearIcon: /*#__PURE__*/React.createElement(IconButton, {
|
|
35
|
+
size: "small",
|
|
36
|
+
icon: /*#__PURE__*/React.createElement(CloseCircleFill, {
|
|
37
|
+
color: "#9CA3AF"
|
|
38
|
+
})
|
|
36
39
|
})
|
|
37
40
|
} : false,
|
|
38
41
|
ref: ref,
|
package/dist/Modal/index.js
CHANGED
|
@@ -55,7 +55,7 @@ var ModalTitle = function ModalTitle(_ref, type) {
|
|
|
55
55
|
subTitle = _ref.subTitle;
|
|
56
56
|
return /*#__PURE__*/React.createElement("div", {
|
|
57
57
|
className: 'ald-modal-title-container'
|
|
58
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
58
|
+
}, icon && /*#__PURE__*/React.createElement("div", {
|
|
59
59
|
className: classNames('ald-modal-icon-container', _defineProperty({}, "ald-modal-cion-".concat(type, "-container"), type))
|
|
60
60
|
}, icon), /*#__PURE__*/React.createElement("div", {
|
|
61
61
|
className: 'ald-modal-text-container'
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.ant-modal-header {
|
|
29
|
-
padding: var(--alias-spacing-200, 16px) var(--alias-
|
|
29
|
+
padding: var(--alias-spacing-200, 16px) var(--alias-padding-300, 24px);
|
|
30
30
|
margin-bottom: 0;
|
|
31
31
|
border-bottom: 1px solid var(--alias-colors-border-default, #e5e7eb);
|
|
32
32
|
background: var(--alias-colors-bg-skeleton-subtler, #fff);
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
line-height: 20px;
|
|
78
78
|
font-size: 14px;
|
|
79
79
|
overflow-y: auto;
|
|
80
|
-
padding: var(--alias-
|
|
80
|
+
padding: var(--alias-padding-300, 24px);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
.ant-modal-footer {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@import '../../style/index.less';
|
|
2
2
|
|
|
3
|
-
@radio-icon-button-padding-large:
|
|
4
|
-
@radio-icon-button-padding-middle:
|
|
5
|
-
@radio-icon-button-padding-small:
|
|
3
|
+
@radio-icon-button-padding-large: 4px;
|
|
4
|
+
@radio-icon-button-padding-middle: 4px;
|
|
5
|
+
@radio-icon-button-padding-small: 5px;
|
|
6
6
|
@radio-group-height-large: 36px;
|
|
7
7
|
@radio-group-height-middle: 32px;
|
|
8
8
|
@radio-group-height-small: 28px;
|
|
@@ -77,6 +77,7 @@
|
|
|
77
77
|
font-size: 14px;
|
|
78
78
|
line-height: 20px;
|
|
79
79
|
user-select: none;
|
|
80
|
+
white-space: nowrap;
|
|
80
81
|
}
|
|
81
82
|
// 绘制选中时的圆圈样式
|
|
82
83
|
.ald-radio-checked > .ald-radio-inner {
|
|
@@ -200,13 +201,16 @@
|
|
|
200
201
|
}
|
|
201
202
|
}
|
|
202
203
|
|
|
204
|
+
.ald-radio-group-icon-button {
|
|
205
|
+
padding: 0 !important;
|
|
206
|
+
}
|
|
207
|
+
|
|
203
208
|
// button状态下的样式
|
|
204
209
|
.ald-radio-group-button,
|
|
205
210
|
.ald-radio-group-icon-button {
|
|
206
211
|
display: flex;
|
|
207
212
|
align-items: flex-start;
|
|
208
213
|
box-sizing: border-box;
|
|
209
|
-
width: min-content;
|
|
210
214
|
padding: 0;
|
|
211
215
|
overflow: hidden;
|
|
212
216
|
|
|
@@ -267,6 +271,10 @@
|
|
|
267
271
|
}
|
|
268
272
|
}
|
|
269
273
|
|
|
274
|
+
.ald-radio-icon-button-wrapper-filled {
|
|
275
|
+
margin: 2px;
|
|
276
|
+
}
|
|
277
|
+
|
|
270
278
|
// button选中状态下的样式
|
|
271
279
|
.ald-radio-wrapper-checked.ald-radio-button-wrapper-border,
|
|
272
280
|
.ald-radio-wrapper-checked.ald-radio-button-wrapper-border-primary,
|
|
@@ -308,7 +316,7 @@
|
|
|
308
316
|
display: flex;
|
|
309
317
|
align-items: center;
|
|
310
318
|
justify-content: center;
|
|
311
|
-
height: 100
|
|
319
|
+
height: calc(100% - 4px);
|
|
312
320
|
background-color: var(--alias-colors-bg-skeleton-strong, #f3f4f6);
|
|
313
321
|
cursor: pointer;
|
|
314
322
|
|
|
@@ -378,6 +386,10 @@
|
|
|
378
386
|
border-radius: var(--alias-radius-50, 4px);
|
|
379
387
|
}
|
|
380
388
|
|
|
389
|
+
.ald-radio-icon-button-wrapper-filled {
|
|
390
|
+
border-radius: var(--alias-radius-50, 4px) !important ;
|
|
391
|
+
}
|
|
392
|
+
|
|
381
393
|
.ald-radio-label {
|
|
382
394
|
.ald-radio-desc {
|
|
383
395
|
font-size: @font-size-middle;
|
|
@@ -386,7 +398,7 @@
|
|
|
386
398
|
|
|
387
399
|
.ald-radio-label.ald-radio-button-wrapper-filled {
|
|
388
400
|
height: 28px;
|
|
389
|
-
border-radius:
|
|
401
|
+
border-radius: 4px !important;
|
|
390
402
|
margin-top: 2px;
|
|
391
403
|
}
|
|
392
404
|
|
|
@@ -436,10 +448,14 @@
|
|
|
436
448
|
}
|
|
437
449
|
}
|
|
438
450
|
|
|
451
|
+
.ald-radio-icon-button-wrapper-filled {
|
|
452
|
+
border-radius: var(--alias-radius-25, 2px) !important ;
|
|
453
|
+
}
|
|
454
|
+
|
|
439
455
|
.ald-radio-label.ald-radio-button-wrapper-filled {
|
|
440
456
|
height: 24px;
|
|
441
457
|
margin-top: 2px;
|
|
442
|
-
border-radius:
|
|
458
|
+
border-radius: 2px !important;
|
|
443
459
|
}
|
|
444
460
|
|
|
445
461
|
.ald-radio-icon-button-wrapper-filled,
|
|
@@ -501,10 +517,14 @@
|
|
|
501
517
|
border-radius: var(--alias-radius-75, 6px);
|
|
502
518
|
}
|
|
503
519
|
|
|
520
|
+
.ald-radio-icon-button-wrapper-filled {
|
|
521
|
+
border-radius: var(--alias-radius-75, 6px) !important ;
|
|
522
|
+
}
|
|
523
|
+
|
|
504
524
|
.ald-radio-label.ald-radio-button-wrapper-filled {
|
|
505
525
|
height: 32px;
|
|
506
526
|
margin-top: 2px;
|
|
507
|
-
border-radius:
|
|
527
|
+
border-radius: 6px !important;
|
|
508
528
|
}
|
|
509
529
|
|
|
510
530
|
.ald-radio-label {
|
|
@@ -570,6 +590,7 @@
|
|
|
570
590
|
gap: 2px;
|
|
571
591
|
background: var(--alias-colors-bg-skeleton-strong, #f3f4f6);
|
|
572
592
|
padding: 0 2px;
|
|
593
|
+
width: min-content;
|
|
573
594
|
|
|
574
595
|
.ald-radio-label:not(.ald-radio-wrapper-disabled) {
|
|
575
596
|
&:hover {
|
|
@@ -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:
|
|
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;
|