@aloudata/aloudata-design 2.0.0-beta.1 → 2.0.0-beta.11
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/Avatar/component/Avatar/index.js +9 -7
- package/dist/Avatar/style/index.less +8 -1
- package/dist/Button/style/variables.less +8 -5
- package/dist/Checkbox/index.js +10 -4
- package/dist/Checkbox/style/index.less +12 -0
- package/dist/Checkbox/type.d.ts +11 -0
- package/dist/ColorPicker/style/index.less +1 -2
- package/dist/ConfigProvider/index.d.ts +1 -1
- package/dist/ConfigProvider/index.js +8 -1
- package/dist/DataPreviewTable/components/Body/index.js +7 -0
- package/dist/DataPreviewTable/constant.d.ts +1 -1
- package/dist/DataPreviewTable/constant.js +1 -1
- package/dist/DataPreviewTable/interface.d.ts +1 -0
- package/dist/DataPreviewTable/style/index.less +11 -11
- package/dist/Dropdown/style/index.less +3 -2
- package/dist/Empty/image/Search.js +2 -2
- package/dist/Empty/image/SearchSmall.js +2 -2
- package/dist/Empty/index.js +2 -1
- package/dist/Empty/style/index.less +2 -1
- package/dist/Form/style/index.less +27 -6
- package/dist/Icon/components/CloseCircleLightLine.d.ts +11 -0
- package/dist/Icon/components/CloseCircleLightLine.js +35 -0
- package/dist/Icon/components/User.d.ts +11 -0
- package/dist/Icon/components/User.js +41 -0
- package/dist/Icon/components/UserGroup.d.ts +11 -0
- package/dist/Icon/components/UserGroup.js +39 -0
- package/dist/Icon/index.d.ts +3 -0
- package/dist/Icon/index.js +4 -1
- package/dist/Icon/svg/Close-Circle-light-line.svg +5 -0
- package/dist/Icon/svg/check-circle-light-line.svg +1 -1
- package/dist/Icon/svg/information-circle-light-line.svg +1 -1
- package/dist/Icon/svg/user.svg +4 -0
- package/dist/Icon/svg/userGroup.svg +7 -0
- package/dist/Input/components/Input/index.js +1 -0
- package/dist/Input/components/TextArea/index.js +1 -0
- package/dist/InputNumber/style/index.less +12 -9
- package/dist/MemberPicker/components/MultipleOption.js +4 -3
- package/dist/MemberPicker/components/NickLabel.d.ts +2 -0
- package/dist/MemberPicker/components/NickLabel.js +8 -2
- package/dist/MemberPicker/components/Panel.js +2 -2
- package/dist/MemberPicker/components/SelectedMemberTags.js +4 -1
- package/dist/MemberPicker/components/SingleOption.js +1 -0
- package/dist/MemberPicker/index.js +13 -1
- package/dist/MemberPicker/interface.d.ts +1 -0
- package/dist/MemberPicker/style/index.less +39 -29
- package/dist/Menu/style/index.less +1 -2
- package/dist/Modal/style/polyfill/index.less +0 -3
- package/dist/Navigator/style/index.less +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +7 -1
- package/dist/Pagination/types.d.ts +1 -0
- package/dist/Popconfirm/index.js +3 -3
- package/dist/Popconfirm/style/index.less +49 -15
- package/dist/Progress/style/index.less +5 -2
- package/dist/ScrollArea/index.d.ts +1 -0
- package/dist/ScrollArea/index.js +5 -2
- package/dist/ScrollArea/style/index.less +5 -0
- package/dist/Select/index.js +3 -1
- package/dist/Select/style/index.less +21 -9
- package/dist/Select/style/layout.less +7 -5
- package/dist/Select/style/selectDropdown.less +1 -2
- package/dist/Select/style/size.less +239 -20
- package/dist/Select/style/variables.less +6 -3
- package/dist/Skeleton/style/index.less +84 -4
- package/dist/Spin/index.js +2 -3
- package/dist/Spin/style/index.less +8 -0
- package/dist/Table/components/Pagination/index.js +3 -1
- package/dist/Table/index.js +18 -3
- package/dist/Table/style/index.less +16 -9
- package/dist/Table/types.d.ts +1 -0
- package/dist/Tabs/index.d.ts +5 -0
- package/dist/Tabs/index.js +5 -2
- package/dist/Tabs/style/index.less +10 -7
- package/dist/TextLink/index.js +3 -2
- package/dist/TextLink/style/index.less +5 -0
- package/dist/TextLink/style/type.less +2 -2
- package/dist/Tree/DirectoryTree.js +0 -12
- package/dist/Tree/Tree.d.ts +2 -2
- package/dist/Tree/Tree.js +56 -2
- package/dist/Tree/demo/directoryTree/index.d.ts +3 -0
- package/dist/Tree/demo/directoryTree/index.js +44 -0
- package/dist/Tree/demo/filter/index.d.ts +3 -0
- package/dist/Tree/demo/filter/index.js +63 -0
- package/dist/Tree/style/index.less +35 -12
- package/dist/Tree/style/mixin.less +10 -8
- package/dist/Tree/style/reset.less +15 -0
- package/dist/ald.min.css +1 -1
- package/dist/notification/demo/footer.d.ts +3 -0
- package/dist/notification/demo/footer.js +44 -0
- package/dist/notification/index.js +77 -48
- package/dist/notification/style/index.less +49 -11
- package/dist/style/index.less +3 -3
- package/dist/style/themes/default/index.less +4 -2
- package/package.json +1 -1
package/dist/Icon/index.js
CHANGED
|
@@ -14,6 +14,7 @@ export { default as ChevronLeftLine } from "./components/ChevronLeftLine";
|
|
|
14
14
|
export { default as ChevronRightLine } from "./components/ChevronRightLine";
|
|
15
15
|
export { default as CircleLightLine } from "./components/CircleLightLine";
|
|
16
16
|
export { default as CloseCircleFill } from "./components/CloseCircleFill";
|
|
17
|
+
export { default as CloseCircleLightLine } from "./components/CloseCircleLightLine";
|
|
17
18
|
export { default as CloseLLine } from "./components/CloseLLine";
|
|
18
19
|
export { default as CloseLightLine } from "./components/CloseLightLine";
|
|
19
20
|
export { default as CloseMLine } from "./components/CloseMLine";
|
|
@@ -32,4 +33,6 @@ export { default as LoadingDuotone } from "./components/LoadingDuotone";
|
|
|
32
33
|
export { default as LoadingLine } from "./components/LoadingLine";
|
|
33
34
|
export { default as MoreVerticalLine } from "./components/MoreVerticalLine";
|
|
34
35
|
export { default as SearchLine } from "./components/SearchLine";
|
|
35
|
-
export { default as TriangleLightLine } from "./components/TriangleLightLine";
|
|
36
|
+
export { default as TriangleLightLine } from "./components/TriangleLightLine";
|
|
37
|
+
export { default as User } from "./components/User";
|
|
38
|
+
export { default as UserGroup } from "./components/UserGroup";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id=" Icon / Light / Interface / Close-Circle-light-line">
|
|
3
|
+
<path id="Icon" fill-rule="evenodd" clip-rule="evenodd" d="M3.75 12C3.75 7.44365 7.44365 3.75 12 3.75C16.5563 3.75 20.25 7.44365 20.25 12C20.25 16.5563 16.5563 20.25 12 20.25C7.44365 20.25 3.75 16.5563 3.75 12ZM12 2.25C6.61522 2.25 2.25 6.61522 2.25 12C2.25 17.3848 6.61522 21.75 12 21.75C17.3848 21.75 21.75 17.3848 21.75 12C21.75 6.61522 17.3848 2.25 12 2.25ZM10.5303 9.46967C10.2374 9.17678 9.76256 9.17678 9.46967 9.46967C9.17678 9.76256 9.17678 10.2374 9.46967 10.5303L10.9393 12L9.46967 13.4697C9.17678 13.7626 9.17678 14.2374 9.46967 14.5303C9.76256 14.8232 10.2374 14.8232 10.5303 14.5303L12 13.0607L13.4697 14.5303C13.7626 14.8232 14.2374 14.8232 14.5303 14.5303C14.8232 14.2374 14.8232 13.7626 14.5303 13.4697L13.0607 12L14.5303 10.5303C14.8232 10.2374 14.8232 9.76256 14.5303 9.46967C14.2374 9.17678 13.7626 9.17678 13.4697 9.46967L12 10.9393L10.5303 9.46967Z" fill="black"/>
|
|
4
|
+
</g>
|
|
5
|
+
</svg>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<g id=" Icon / Light / Interface / Check
|
|
2
|
+
<g id=" Icon / Light / Interface / Check-Circle-light-line">
|
|
3
3
|
<g id="Icon">
|
|
4
4
|
<path d="M15.5303 10.5303C15.8232 10.2374 15.8232 9.76256 15.5303 9.46967C15.2374 9.17678 14.7626 9.17678 14.4697 9.46967L11 12.9393L9.53033 11.4697C9.23744 11.1768 8.76256 11.1768 8.46967 11.4697C8.17678 11.7626 8.17678 12.2374 8.46967 12.5303L10.4697 14.5303C10.7626 14.8232 11.2374 14.8232 11.5303 14.5303L15.5303 10.5303Z" fill="black"/>
|
|
5
5
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 2.25C6.61522 2.25 2.25 6.61522 2.25 12C2.25 17.3848 6.61522 21.75 12 21.75C17.3848 21.75 21.75 17.3848 21.75 12C21.75 6.61522 17.3848 2.25 12 2.25ZM3.75 12C3.75 7.44365 7.44365 3.75 12 3.75C16.5563 3.75 20.25 7.44365 20.25 12C20.25 16.5563 16.5563 20.25 12 20.25C7.44365 20.25 3.75 16.5563 3.75 12Z" fill="black"/>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<g id=" Icon / Light / Interface / Information
|
|
2
|
+
<g id=" Icon / Light / Interface / Information-Circle-light-line">
|
|
3
3
|
<g id="Icon">
|
|
4
4
|
<path d="M11 8C11 7.44772 11.4477 7 12 7H12.01C12.5623 7 13.01 7.44772 13.01 8V8.01C13.01 8.56228 12.5623 9.01 12.01 9.01H12C11.4477 9.01 11 8.56228 11 8.01V8Z" fill="black"/>
|
|
5
5
|
<path d="M12.75 12C12.75 11.5858 12.4142 11.25 12 11.25C11.5858 11.25 11.25 11.5858 11.25 12V16C11.25 16.4142 11.5858 16.75 12 16.75C12.4142 16.75 12.75 16.4142 12.75 16V12Z" fill="black"/>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<circle opacity="0.25" cx="50" cy="50" r="50" fill="#F97316"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M62.9916 45.7902C64.7084 43.2206 65.6248 40.1997 65.6248 37.1094C65.6248 32.9654 63.9786 28.9911 61.0484 26.0608C58.1182 23.1306 54.1439 21.4844 49.9999 21.4844C46.9096 21.4844 43.8887 22.4008 41.3192 24.1177C38.7497 25.8346 36.747 28.2748 35.5644 31.1299C34.3818 33.985 34.0723 37.1267 34.6752 40.1577C35.2781 43.1886 36.7663 45.9727 38.9514 48.1579C41.1366 50.3431 43.9207 51.8312 46.9517 52.4341C49.9826 53.037 53.1242 52.7276 55.9793 51.545C58.8344 50.3624 61.2747 48.3597 62.9916 45.7902ZM50 93.75C63.3857 93.75 75.3674 87.7386 83.3925 78.2681C75.5937 68.4242 63.5343 62.1094 50 62.1094C36.4658 62.1094 24.4064 68.4242 16.6076 78.2681C24.6327 87.7386 36.6144 93.75 50 93.75Z" fill="#F97316"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<circle opacity="0.25" cx="50" cy="50" r="50" fill="#6366F1"/>
|
|
3
|
+
<path d="M67.9995 90.1619C62.5051 92.6281 56.4127 94 50 94C35.8547 94 23.2683 87.325 15.2191 76.9531C19.9103 68.0611 29.2473 62 40 62C55.464 62 68 74.536 68 90C68 90.054 67.9998 90.1079 67.9995 90.1619Z" fill="#6366F1"/>
|
|
4
|
+
<path d="M84.7809 76.9531C82.2018 80.2764 79.1569 83.2202 75.7442 85.6864C74.6138 76.2201 69.8101 67.882 62.799 62.1382C72.3574 63.0868 80.5018 68.8423 84.7809 76.9531Z" fill="#6366F1"/>
|
|
5
|
+
<path d="M40 53C48.8365 53 56 45.8365 56 37C56 28.1635 48.8365 21 40 21C31.1634 21 24 28.1635 24 37C24 45.8365 31.1634 53 40 53Z" fill="#6366F1"/>
|
|
6
|
+
<path d="M64 37C64 43.0872 61.7337 48.6451 57.9989 52.8761C58.6545 52.9579 59.3223 53 60 53C68.8365 53 76 45.8366 76 37C76 28.1634 68.8365 21 60 21C59.3223 21 58.6545 21.0421 57.9989 21.1239C61.7337 25.3549 64 30.9128 64 37Z" fill="#6366F1"/>
|
|
7
|
+
</svg>
|
|
@@ -23,6 +23,7 @@ export default /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
23
23
|
var contentSize = useContext(SizeContext);
|
|
24
24
|
var size = customSize || contentSize || 'middle';
|
|
25
25
|
return /*#__PURE__*/React.createElement(AntdTextArea, _extends({}, rest, {
|
|
26
|
+
autoComplete: "off",
|
|
26
27
|
disabled: disabled,
|
|
27
28
|
spellCheck: false,
|
|
28
29
|
className: classnames('ald-input', 'ald-input-textarea', "ald-input-textarea-".concat(getSizeType(size)), _defineProperty({}, "ald-input-disabled", disabled), className),
|
|
@@ -3,27 +3,30 @@
|
|
|
3
3
|
|
|
4
4
|
@inputNumber-height-large: 36px;
|
|
5
5
|
@inputNumber-font-size-large: 16px;
|
|
6
|
-
@inputNumber-border-radius-large:
|
|
6
|
+
@inputNumber-border-radius-large: 8px;
|
|
7
7
|
@inputNumber-padding-large: 0 11px;
|
|
8
8
|
|
|
9
9
|
@inputNumber-height-middle: 32px;
|
|
10
|
-
@inputNumber-font-size-middle:
|
|
11
|
-
@inputNumber-border-radius-middle:
|
|
10
|
+
@inputNumber-font-size-middle: 14px;
|
|
11
|
+
@inputNumber-border-radius-middle: 6px;
|
|
12
12
|
@inputNumber-padding-middle: 0 7px;
|
|
13
13
|
|
|
14
14
|
@inputNumber-height-small: 28px;
|
|
15
15
|
@inputNumber-font-size-small: 12px;
|
|
16
|
-
@inputNumber-border-radius-small:
|
|
16
|
+
@inputNumber-border-radius-small: 4px;
|
|
17
17
|
@inputNumber-padding-small: 0 7px;
|
|
18
18
|
|
|
19
19
|
//默认
|
|
20
|
-
@inputNumber-bg-color:
|
|
21
|
-
@inputNumber-border-color:
|
|
22
|
-
|
|
20
|
+
@inputNumber-bg-color: var(--alias-colors-bg-skeleton-subtler, #fff);
|
|
21
|
+
@inputNumber-border-color: var(
|
|
22
|
+
--alias-colors-border-accent-gray-subtle-default,
|
|
23
|
+
#d1d5db
|
|
24
|
+
);
|
|
25
|
+
@inputNumber-color: var(--alias-colors-text-default, #1f2937);
|
|
23
26
|
@inputNumber-wrapper-bg-color: @BG95;
|
|
24
27
|
//激活
|
|
25
|
-
@inputNumber-active-bg-color:
|
|
26
|
-
@inputNumber-active-border-color:
|
|
28
|
+
@inputNumber-active-bg-color: var(--alias-colors-bg-skeleton-subtler, #fff);
|
|
29
|
+
@inputNumber-active-border-color: var(--alias-colors-border-selected, #126fdd);
|
|
27
30
|
|
|
28
31
|
//disable
|
|
29
32
|
@inputNumber-disabled-bg-color: @BG90;
|
|
@@ -4,8 +4,8 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
4
4
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
5
5
|
import classnames from 'classnames';
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import Button from "../../Button";
|
|
8
7
|
import Checkbox from "../../Checkbox";
|
|
8
|
+
import TextLink from "../../TextLink/index";
|
|
9
9
|
import { getAccount, getId, getPhoto } from "../utils";
|
|
10
10
|
import { isUserGroup } from "../utils/getUsersWithUserId";
|
|
11
11
|
import NickLabel from "./NickLabel";
|
|
@@ -32,13 +32,14 @@ export default function MultipleList(params) {
|
|
|
32
32
|
checked: selected,
|
|
33
33
|
disabled: disabled
|
|
34
34
|
}), /*#__PURE__*/React.createElement(NickLabel, {
|
|
35
|
+
type: user.type,
|
|
35
36
|
id: getId(user),
|
|
36
37
|
name: user.name,
|
|
37
38
|
photo: getPhoto(user),
|
|
38
39
|
account: getAccount(user)
|
|
39
|
-
})), isUserGroup(user) && hasNextLevel && /*#__PURE__*/React.createElement(
|
|
40
|
-
type: "link",
|
|
40
|
+
})), isUserGroup(user) && hasNextLevel && /*#__PURE__*/React.createElement(TextLink, {
|
|
41
41
|
className: "ald-member-picker-btn",
|
|
42
|
+
size: "small",
|
|
42
43
|
onClick: function onClick(e) {
|
|
43
44
|
onNextLevel === null || onNextLevel === void 0 ? void 0 : onNextLevel(user);
|
|
44
45
|
e.stopPropagation();
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { EUserType } from "../../ConfigProvider/getUserList";
|
|
1
2
|
import React from 'react';
|
|
2
3
|
interface INickLabelProps {
|
|
3
4
|
name?: string;
|
|
4
5
|
id: string;
|
|
5
6
|
photo?: React.ReactNode;
|
|
6
7
|
account?: string;
|
|
8
|
+
type: EUserType;
|
|
7
9
|
}
|
|
8
10
|
declare const _default: React.NamedExoticComponent<INickLabelProps>;
|
|
9
11
|
export default _default;
|
|
@@ -1,16 +1,22 @@
|
|
|
1
|
+
import { EUserType } from "../../ConfigProvider/getUserList";
|
|
2
|
+
import { UserGroup } from "../../Icon";
|
|
1
3
|
import React, { memo } from 'react';
|
|
2
4
|
import Avatar from "../../Avatar";
|
|
3
5
|
var NickLabel = function NickLabel(_ref) {
|
|
4
6
|
var photo = _ref.photo,
|
|
5
7
|
name = _ref.name,
|
|
6
8
|
id = _ref.id,
|
|
7
|
-
account = _ref.account
|
|
9
|
+
account = _ref.account,
|
|
10
|
+
type = _ref.type;
|
|
8
11
|
var innerName = name || id;
|
|
12
|
+
var photoSrc = !photo && type === EUserType.USER_GROUP ? /*#__PURE__*/React.createElement(UserGroup, {
|
|
13
|
+
size: 20
|
|
14
|
+
}) : photo;
|
|
9
15
|
return /*#__PURE__*/React.createElement("div", {
|
|
10
16
|
className: "ald-member-picker-nick-label"
|
|
11
17
|
}, /*#__PURE__*/React.createElement(Avatar, {
|
|
12
18
|
key: innerName,
|
|
13
|
-
src:
|
|
19
|
+
src: photoSrc,
|
|
14
20
|
size: 20
|
|
15
21
|
}, innerName), /*#__PURE__*/React.createElement("div", {
|
|
16
22
|
className: "ald-member-picker-nick-label-name",
|
|
@@ -86,7 +86,7 @@ export default function Panel(props) {
|
|
|
86
86
|
var userSelection = /*#__PURE__*/React.createElement(MemberSelection, {
|
|
87
87
|
className: 'ald-member-picker-member-selection-multiple',
|
|
88
88
|
userList: dataList.filter(isUser),
|
|
89
|
-
width: (panelWidth -
|
|
89
|
+
width: (panelWidth - 6) / 2,
|
|
90
90
|
selectedUsers: selectedUsers.filter(isUser),
|
|
91
91
|
onChange: onSelectionChange,
|
|
92
92
|
onSearchValueChange: onSearchValueChange,
|
|
@@ -97,7 +97,7 @@ export default function Panel(props) {
|
|
|
97
97
|
var userGroupSelection = /*#__PURE__*/React.createElement(UserGroupSelection, {
|
|
98
98
|
className: 'ald-member-picker-member-selection-multiple',
|
|
99
99
|
userGroupList: dataList.filter(isUserGroup),
|
|
100
|
-
width: (panelWidth -
|
|
100
|
+
width: (panelWidth - 6) / 2,
|
|
101
101
|
selectedUsersGroup: selectedUsers.filter(isUserGroup),
|
|
102
102
|
onChange: onSelectionChange,
|
|
103
103
|
onSearchValueChange: onSearchValueChange,
|
|
@@ -43,12 +43,15 @@ export default function SelectedMemberTags(props) {
|
|
|
43
43
|
return /*#__PURE__*/React.createElement("div", {
|
|
44
44
|
className: 'ald-member-picker-selected-member-tag',
|
|
45
45
|
key: getId(user)
|
|
46
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
47
|
+
className: 'ald-member-picker-selected-member-tag-user'
|
|
46
48
|
}, /*#__PURE__*/React.createElement(NickLabel, {
|
|
49
|
+
type: user.type,
|
|
47
50
|
id: getId(user),
|
|
48
51
|
name: user.name,
|
|
49
52
|
photo: getPhoto(user),
|
|
50
53
|
account: getAccount(user)
|
|
51
|
-
}), !hasLocked && /*#__PURE__*/React.createElement(CloseMLine, {
|
|
54
|
+
})), !hasLocked && /*#__PURE__*/React.createElement(CloseMLine, {
|
|
52
55
|
size: 20,
|
|
53
56
|
className: 'ald-member-picker-close',
|
|
54
57
|
color: "#98A2B3",
|
|
@@ -21,6 +21,7 @@ export default function SingleOption(params) {
|
|
|
21
21
|
className: classnames('ald-member-picker-option', className, 'ald-member-picker-singleOption', _defineProperty({}, 'ald-member-picker-single-option-selected', selected)),
|
|
22
22
|
onClick: onClick
|
|
23
23
|
}, /*#__PURE__*/React.createElement(NickLabel, {
|
|
24
|
+
type: user.type,
|
|
24
25
|
id: getId(user),
|
|
25
26
|
name: user.name,
|
|
26
27
|
photo: getPhoto(user),
|
|
@@ -12,6 +12,7 @@ import _ from 'lodash';
|
|
|
12
12
|
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
13
13
|
import ConfigProvider from "../ConfigProvider";
|
|
14
14
|
import { EUserType } from "../ConfigProvider/getUserList";
|
|
15
|
+
import { User } from "../Icon";
|
|
15
16
|
import Select from "../Select";
|
|
16
17
|
import message from "../message";
|
|
17
18
|
import Panel from "./components/Panel";
|
|
@@ -30,11 +31,11 @@ var Component = function Component(_ref) {
|
|
|
30
31
|
_ref$placeholder = _ref.placeholder,
|
|
31
32
|
placeholder = _ref$placeholder === void 0 ? '选择' : _ref$placeholder,
|
|
32
33
|
className = _ref.className,
|
|
33
|
-
prefix = _ref.prefix,
|
|
34
34
|
allowClear = _ref.allowClear,
|
|
35
35
|
disabled = _ref.disabled,
|
|
36
36
|
_onClear = _ref.onClear,
|
|
37
37
|
size = _ref.size,
|
|
38
|
+
selectType = _ref.selectType,
|
|
38
39
|
_ref$lockedIds = _ref.lockedIds,
|
|
39
40
|
lockedIds = _ref$lockedIds === void 0 ? [] : _ref$lockedIds;
|
|
40
41
|
var _ConfigProvider$useGe = ConfigProvider.useGetUserList(),
|
|
@@ -182,9 +183,20 @@ var Component = function Component(_ref) {
|
|
|
182
183
|
setDropdownOpen(open);
|
|
183
184
|
onOpenChange === null || onOpenChange === void 0 ? void 0 : onOpenChange(open);
|
|
184
185
|
}, [onOpenChange]);
|
|
186
|
+
var prefix = useMemo(function () {
|
|
187
|
+
if (multiple) return null;
|
|
188
|
+
if (type === EMemberPicker.USER) return /*#__PURE__*/React.createElement(User, {
|
|
189
|
+
size: 20
|
|
190
|
+
});
|
|
191
|
+
if (type === EMemberPicker.GROUP) return /*#__PURE__*/React.createElement(User, {
|
|
192
|
+
size: 20
|
|
193
|
+
});
|
|
194
|
+
return null;
|
|
195
|
+
}, [multiple, type]);
|
|
185
196
|
return /*#__PURE__*/React.createElement(Select, {
|
|
186
197
|
prefix: prefix,
|
|
187
198
|
size: size,
|
|
199
|
+
type: selectType,
|
|
188
200
|
className: classNames('ald-member-picker-select', className),
|
|
189
201
|
value: selectedUserList.map(function (item) {
|
|
190
202
|
if (item.type === EUserType.USER_GROUP) {
|
|
@@ -15,6 +15,7 @@ export interface IBaseMemberSelectorProps extends Pick<ISelectProps, 'allowClear
|
|
|
15
15
|
open?: boolean;
|
|
16
16
|
onOpenChange?: (open: boolean) => void;
|
|
17
17
|
type?: EMemberPicker;
|
|
18
|
+
selectType?: ISelectProps['type'];
|
|
18
19
|
lockedIds?: Array<TUserValue | TUserGroupValue>;
|
|
19
20
|
}
|
|
20
21
|
export interface IMultipleMemberSelectorProps extends IBaseMemberSelectorProps {
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
@import '../../Empty/style/index.less';
|
|
7
7
|
@import '../../message/style/index.less';
|
|
8
8
|
@import '../../Spin/style/index.less';
|
|
9
|
+
@import '../../TextLink/style/index.less';
|
|
9
10
|
|
|
10
11
|
@btnWidth: 30px;
|
|
11
12
|
|
|
@@ -13,8 +14,7 @@
|
|
|
13
14
|
box-sizing: border-box;
|
|
14
15
|
border: 1px solid var(--colors-gray-400, #dbdbdb);
|
|
15
16
|
background: var(--global-colors-base-white-950a, #fff);
|
|
16
|
-
box-shadow: 0
|
|
17
|
-
0 8px 8px -4px rgb(16 24 40 / 0.03);
|
|
17
|
+
box-shadow: 0 10px 18px -2px rgba(0, 0, 0, 0.08);
|
|
18
18
|
|
|
19
19
|
&.ald-member-picker-multiple {
|
|
20
20
|
display: flex;
|
|
@@ -22,9 +22,6 @@
|
|
|
22
22
|
border-radius: 2px;
|
|
23
23
|
// .memberSelection {
|
|
24
24
|
// }
|
|
25
|
-
.ald-member-picker-selected-member-tags {
|
|
26
|
-
border-left: 1px solid var(--colors-gray-400, #dbdbdb);
|
|
27
|
-
}
|
|
28
25
|
|
|
29
26
|
.ald-member-picker-selector-footer {
|
|
30
27
|
grid-column: 1 / 3;
|
|
@@ -34,6 +31,7 @@
|
|
|
34
31
|
|
|
35
32
|
.ald-member-picker-member-selection-wrapper {
|
|
36
33
|
width: 50%;
|
|
34
|
+
border-right: 1px solid var(--alias-colors-border-default, #e5e7eb);
|
|
37
35
|
}
|
|
38
36
|
|
|
39
37
|
.ald-member-picker-member-list-wrap {
|
|
@@ -51,7 +49,7 @@
|
|
|
51
49
|
.ald-member-picker-search-input.ald-member-picker-search-input {
|
|
52
50
|
border: none;
|
|
53
51
|
border-bottom: 1px solid var(--colors-gray-300, #e8e8e8) !important;
|
|
54
|
-
border-radius: 0;
|
|
52
|
+
border-radius: 0 !important;
|
|
55
53
|
flex: 0 0 32px;
|
|
56
54
|
|
|
57
55
|
&.ant-input-affix-wrapper-focused {
|
|
@@ -72,7 +70,7 @@
|
|
|
72
70
|
}
|
|
73
71
|
|
|
74
72
|
.ald-member-picker-member-list {
|
|
75
|
-
height:
|
|
73
|
+
height: 300px;
|
|
76
74
|
|
|
77
75
|
&.ald-member-picker-member-list-null {
|
|
78
76
|
display: none;
|
|
@@ -82,6 +80,7 @@
|
|
|
82
80
|
|
|
83
81
|
.ald-member-picker-selected-member-tags-wrap {
|
|
84
82
|
width: 50%;
|
|
83
|
+
height: 100%;
|
|
85
84
|
max-height: 320px;
|
|
86
85
|
padding: 8px;
|
|
87
86
|
|
|
@@ -102,19 +101,21 @@
|
|
|
102
101
|
|
|
103
102
|
.ald-member-picker-selected-member-tag {
|
|
104
103
|
display: flex;
|
|
105
|
-
padding: 1px 5px;
|
|
106
104
|
justify-content: center;
|
|
107
|
-
|
|
108
|
-
border-radius: var(--
|
|
109
|
-
border: 1px solid
|
|
110
|
-
|
|
111
|
-
|
|
105
|
+
align-items: center;
|
|
106
|
+
border-radius: var(--alias-radius-50, 4px);
|
|
107
|
+
border: 1px solid
|
|
108
|
+
var(--alias-colors-border-accent-gray-subtler-default, #e5e7eb);
|
|
109
|
+
background: var(--alias-colors-bg-accent-gray-subtler-default, #f9fafb);
|
|
110
|
+
color: var(--alias-colors-text-accent-gray-default, #374151);
|
|
111
|
+
text-align: center;
|
|
112
|
+
font-size: 14px;
|
|
112
113
|
font-weight: 400;
|
|
113
|
-
line-height: 20px;
|
|
114
|
-
height: 24px;
|
|
115
|
-
max-width: 100%;
|
|
114
|
+
line-height: 20px; /* 142.857% */
|
|
116
115
|
|
|
117
116
|
.ald-member-picker-close {
|
|
117
|
+
border-left: 1px solid
|
|
118
|
+
var(--alias-colors-border-accent-gray-subtler-default, #e5e7eb);
|
|
118
119
|
cursor: pointer;
|
|
119
120
|
}
|
|
120
121
|
}
|
|
@@ -130,18 +131,18 @@
|
|
|
130
131
|
align-items: center;
|
|
131
132
|
gap: var(--global-number-spacing-spacing-sm, 12px);
|
|
132
133
|
align-self: stretch;
|
|
133
|
-
border-top: 1px solid var(--colors-
|
|
134
|
-
background: var(--colors-
|
|
134
|
+
border-top: 1px solid var(--alias-colors-border-default, #e5e7eb);
|
|
135
|
+
background: var(--alias-colors-bg-skeleton-subtler, #fff);
|
|
135
136
|
}
|
|
136
137
|
|
|
137
138
|
.ald-member-picker-option {
|
|
138
|
-
padding: 0
|
|
139
|
+
padding: 0 12px;
|
|
139
140
|
display: flex;
|
|
140
141
|
align-items: center;
|
|
141
142
|
box-sizing: border-box;
|
|
142
|
-
height:
|
|
143
|
+
height: 36px;
|
|
143
144
|
line-height: 20px;
|
|
144
|
-
gap:
|
|
145
|
+
gap: 6px;
|
|
145
146
|
cursor: pointer;
|
|
146
147
|
justify-content: space-between;
|
|
147
148
|
|
|
@@ -231,8 +232,13 @@
|
|
|
231
232
|
}
|
|
232
233
|
}
|
|
233
234
|
|
|
235
|
+
.ald-member-picker-selected-member-tag-user {
|
|
236
|
+
padding: 2px 6px;
|
|
237
|
+
display: flex;
|
|
238
|
+
align-items: center;
|
|
239
|
+
}
|
|
240
|
+
|
|
234
241
|
.ald-member-picker-nick-label {
|
|
235
|
-
font-size: 0;
|
|
236
242
|
display: inline-flex;
|
|
237
243
|
gap: 4px;
|
|
238
244
|
flex-wrap: nowrap;
|
|
@@ -246,15 +252,14 @@
|
|
|
246
252
|
}
|
|
247
253
|
|
|
248
254
|
.ald-member-picker-nick-label-name {
|
|
249
|
-
color: var(--colors-
|
|
250
|
-
font-size:
|
|
251
|
-
font-style: normal;
|
|
255
|
+
color: var(--alias-colors-text-default, #1f2937);
|
|
256
|
+
font-size: 14px;
|
|
252
257
|
font-weight: 400;
|
|
253
|
-
line-height: 20px;
|
|
258
|
+
line-height: 20px; /* 142.857% */
|
|
254
259
|
white-space: nowrap;
|
|
255
260
|
text-overflow: ellipsis;
|
|
256
261
|
overflow: hidden;
|
|
257
|
-
max-width:
|
|
262
|
+
max-width: 130px;
|
|
258
263
|
}
|
|
259
264
|
}
|
|
260
265
|
|
|
@@ -308,8 +313,13 @@
|
|
|
308
313
|
align-items: center;
|
|
309
314
|
}
|
|
310
315
|
|
|
311
|
-
.ald-select-popup.ald-member-picker-popup.ald-member-picker-popup {
|
|
316
|
+
.ald-select-popup.ald-member-picker-popup.ald-member-picker-popup.ald-member-picker-popup {
|
|
312
317
|
border: none;
|
|
313
|
-
background-color: transparent;
|
|
314
318
|
overflow: hidden;
|
|
319
|
+
padding: 0;
|
|
320
|
+
border-radius: 0;
|
|
321
|
+
border-radius: 4px;
|
|
322
|
+
background: var(--colors-neutral-white, #fff);
|
|
323
|
+
box-shadow: 0 20px 24px -4px rgba(16, 24, 40, 0.08),
|
|
324
|
+
0 8px 8px -4px rgba(16, 24, 40, 0.03);
|
|
315
325
|
}
|
|
@@ -84,8 +84,7 @@
|
|
|
84
84
|
.menu-wrap {
|
|
85
85
|
border: 1px solid var(--alias-colors-border-strong, #d1d5db);
|
|
86
86
|
border-radius: var(--alias-radius-75, 6px);
|
|
87
|
-
box-shadow: 0
|
|
88
|
-
0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
|
|
87
|
+
box-shadow: 0 10px 18px -2px rgba(0, 0, 0, 0.08);
|
|
89
88
|
overflow: hidden;
|
|
90
89
|
}
|
|
91
90
|
|
|
@@ -32,9 +32,6 @@
|
|
|
32
32
|
font-size: 14px;
|
|
33
33
|
line-height: 1.5714;
|
|
34
34
|
list-style: none;
|
|
35
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
|
|
36
|
-
'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji',
|
|
37
|
-
'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
|
38
35
|
pointer-events: none;
|
|
39
36
|
position: relative;
|
|
40
37
|
top: 100px;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IPaginationProps } from './types';
|
|
3
|
-
declare function Pagination(props: IPaginationProps): React.JSX.Element;
|
|
3
|
+
declare function Pagination(props: IPaginationProps): React.JSX.Element | null;
|
|
4
4
|
export default Pagination;
|
|
5
5
|
/**
|
|
6
6
|
* 获取在安全范围内的当前页数
|
package/dist/Pagination/index.js
CHANGED
|
@@ -18,7 +18,8 @@ function Pagination(props) {
|
|
|
18
18
|
currPage = _props$current === void 0 ? 1 : _props$current,
|
|
19
19
|
pageSize = props.pageSize,
|
|
20
20
|
total = props.total,
|
|
21
|
-
onChange = props.onChange
|
|
21
|
+
onChange = props.onChange,
|
|
22
|
+
hideOnSinglePage = props.hideOnSinglePage;
|
|
22
23
|
var totalPage = getTotalPage(total, pageSize);
|
|
23
24
|
var _useState = useState(getSafeCurrent(totalPage, currPage)),
|
|
24
25
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -41,6 +42,11 @@ function Pagination(props) {
|
|
|
41
42
|
};
|
|
42
43
|
}, [onChange, current]);
|
|
43
44
|
var pageRange = getPaginationRange(totalPage, current);
|
|
45
|
+
if (hideOnSinglePage) {
|
|
46
|
+
if (totalPage <= 1) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
44
50
|
return /*#__PURE__*/React.createElement("div", {
|
|
45
51
|
className: prefixCls('container')
|
|
46
52
|
}, /*#__PURE__*/React.createElement(Button, {
|
package/dist/Popconfirm/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Popconfirm } from 'antd';
|
|
|
6
6
|
import classNames from 'classnames';
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { btnPrefix, getButtonSizeClass, getButtonType, getDangerStatus, getShape } from "../Button";
|
|
9
|
-
import {
|
|
9
|
+
import { AttentionTriangleFill } from "../Icon";
|
|
10
10
|
function MyPopconfirm(props) {
|
|
11
11
|
var _props$okButtonProps = props.okButtonProps,
|
|
12
12
|
okButtonProps = _props$okButtonProps === void 0 ? {} : _props$okButtonProps,
|
|
@@ -15,8 +15,8 @@ function MyPopconfirm(props) {
|
|
|
15
15
|
okType = props.okType,
|
|
16
16
|
rootClassName = props.rootClassName,
|
|
17
17
|
_props$icon = props.icon,
|
|
18
|
-
icon = _props$icon === void 0 ? /*#__PURE__*/React.createElement(
|
|
19
|
-
size:
|
|
18
|
+
icon = _props$icon === void 0 ? /*#__PURE__*/React.createElement(AttentionTriangleFill, {
|
|
19
|
+
size: 16,
|
|
20
20
|
color: "#D64343",
|
|
21
21
|
fill: "#fff"
|
|
22
22
|
}) : _props$icon,
|
|
@@ -1,45 +1,79 @@
|
|
|
1
1
|
@import '../../style/index.less';
|
|
2
2
|
@import '../../Button/style/index.less';
|
|
3
3
|
|
|
4
|
+
.ant-popover-arrow.ant-popover-arrow.ant-popover-arrow {
|
|
5
|
+
overflow: visible;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.ant-popover[class] .ant-popover-arrow::before {
|
|
9
|
+
content: '';
|
|
10
|
+
width: 10px;
|
|
11
|
+
display: inline-block;
|
|
12
|
+
bottom: -6px;
|
|
13
|
+
position: absolute;
|
|
14
|
+
left: 4px;
|
|
15
|
+
height: 10px;
|
|
16
|
+
border: 1px solid #d1d5db;
|
|
17
|
+
transform: rotate(45deg);
|
|
18
|
+
clip-path: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.ant-popover[class] .ant-popover-arrow::after {
|
|
22
|
+
content: '';
|
|
23
|
+
width: 15px;
|
|
24
|
+
background-color: #fff;
|
|
25
|
+
display: inline-block;
|
|
26
|
+
bottom: -11px;
|
|
27
|
+
position: absolute;
|
|
28
|
+
left: 1px;
|
|
29
|
+
height: 10px;
|
|
30
|
+
transform: none;
|
|
31
|
+
box-shadow: none !important;
|
|
32
|
+
}
|
|
33
|
+
|
|
4
34
|
.ald-pop-confirm.ant-popover.ant-popover .ant-popover-inner {
|
|
35
|
+
width: 240px;
|
|
5
36
|
padding: 12px;
|
|
6
|
-
border
|
|
7
|
-
|
|
8
|
-
|
|
37
|
+
border: 1px solid #d1d5db;
|
|
38
|
+
border-radius: 6px;
|
|
39
|
+
box-shadow: 0 10px 18px -2px rgba(0, 0, 0, 0.08);
|
|
9
40
|
|
|
10
41
|
.ant-popover-inner-content {
|
|
11
42
|
.ant-popconfirm-message {
|
|
12
|
-
padding-bottom:
|
|
43
|
+
padding-bottom: 8px;
|
|
13
44
|
margin-bottom: 0;
|
|
14
|
-
align-items: center;
|
|
15
45
|
}
|
|
16
46
|
|
|
17
47
|
.ant-popconfirm-buttons {
|
|
18
|
-
padding-
|
|
48
|
+
padding-left: 16px;
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
flex-direction: row-reverse;
|
|
52
|
+
justify-content: start;
|
|
19
53
|
}
|
|
20
54
|
}
|
|
21
55
|
}
|
|
22
56
|
|
|
23
57
|
.ant-popconfirm-message {
|
|
24
58
|
.ant-popconfirm-message-icon {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
align-items: center;
|
|
59
|
+
display: inline-block;
|
|
60
|
+
height: 100%;
|
|
28
61
|
}
|
|
29
62
|
|
|
30
63
|
.ant-popconfirm-message-title {
|
|
31
64
|
font-weight: 400;
|
|
32
|
-
font-size:
|
|
33
|
-
line-height:
|
|
34
|
-
color: var(--colors-
|
|
65
|
+
font-size: 12px;
|
|
66
|
+
line-height: 16px;
|
|
67
|
+
color: var(--alias-colors-text-default, #1f2937);
|
|
35
68
|
margin-inline-start: 4px;
|
|
36
|
-
margin-left:
|
|
69
|
+
margin-left: 8px !important;
|
|
70
|
+
width: 190px;
|
|
71
|
+
word-break: break-all;
|
|
37
72
|
}
|
|
38
73
|
}
|
|
39
74
|
|
|
40
75
|
.ald-pop-confirm.ant-popover.ant-popover .ant-popover-arrow {
|
|
41
76
|
&::after {
|
|
42
|
-
box-shadow: 0
|
|
43
|
-
0 4px 6px -2px rgba(16, 24, 40, 0.03);
|
|
77
|
+
box-shadow: 0 10px 18px -2px rgba(0, 0, 0, 0.08);
|
|
44
78
|
}
|
|
45
79
|
}
|
|
@@ -7,11 +7,14 @@
|
|
|
7
7
|
pointer-events: none;
|
|
8
8
|
|
|
9
9
|
&-show-bg {
|
|
10
|
-
background-color:
|
|
10
|
+
background-color: var(
|
|
11
|
+
--alias-colors-bg-accent-blue-subtle-default,
|
|
12
|
+
#d4e7fd
|
|
13
|
+
);
|
|
11
14
|
}
|
|
12
15
|
|
|
13
16
|
&-inner {
|
|
14
|
-
background-color: #
|
|
17
|
+
background-color: var(--alias-colors-icon-information, #2986f4);
|
|
15
18
|
border-radius: 2px 0 0;
|
|
16
19
|
height: 100%;
|
|
17
20
|
width: 0;
|