@aloudata/aloudata-design 2.13.10 → 2.13.12

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.
@@ -13,24 +13,45 @@
13
13
  flex-direction: column;
14
14
  padding-left: calc(@recordLineWidth + @selectWidth / 2 + @dragIConWidth);
15
15
  position: relative;
16
- cursor: pointer;
17
16
  border-radius: 6px;
18
17
  margin-left: -16px;
18
+ z-index: 10;
19
19
 
20
- &.is-hover {
20
+ &:hover {
21
+ .ald-logic-tree-node-drag-icon,
22
+ .ald-logic-tree-record-node-drag-icon {
23
+ background: #fff !important;
24
+ }
25
+ }
26
+
27
+ &.is-hover-drag-box {
21
28
  background: rgba(244, 244, 245);
22
- transition: background-color 0.3s ease-in-out;
29
+
30
+ .ald-logic-tree-node-drag-icon,
31
+ .ald-logic-tree-record-node-drag-icon {
32
+ background: rgba(244, 244, 245) !important;
33
+ }
23
34
  }
24
35
 
25
36
  &.is-dragging {
26
37
  background: var(--alias-colors-bg-selected-default, #e8f2fe);
38
+
39
+ .ald-logic-tree-node-drag-icon,
40
+ .ald-logic-tree-record-node-drag-icon {
41
+ background: var(--alias-colors-bg-selected-default, #e8f2fe) !important;
42
+ }
27
43
  }
28
44
 
29
- .ald-logic-tree-node-drag-icon {
45
+ .ald-logic-tree-node-drag-icon-wrapper {
30
46
  position: absolute;
31
- top: calc(50% + 5px);
47
+ cursor: pointer;
48
+ top: 0;
32
49
  left: 0;
33
- transform: translateY(-50%);
50
+ height: 100%;
51
+ z-index: 10px;
52
+ display: flex;
53
+ align-items: center;
54
+ justify-content: center;
34
55
  }
35
56
 
36
57
  .ald-logic-tree-node-wrap {
@@ -58,7 +79,7 @@
58
79
  border-left: 1px dashed #d1d5db;
59
80
  height: calc(50% - 16px);
60
81
  width: @recordLineWidth;
61
- top: 50%;
82
+ top: calc(50% - 4px);
62
83
  left: calc(@selectWidth / 2 + @dragIConWidth);
63
84
  }
64
85
  }
@@ -71,7 +92,7 @@
71
92
 
72
93
  .ald-logic-tree-select-relation {
73
94
  position: absolute !important;
74
- top: calc(50% - 10px);
95
+ top: calc(50% - 12px);
75
96
  left: 16px;
76
97
  z-index: 1;
77
98
  width: @selectWidth !important;
@@ -96,16 +117,20 @@
96
117
  display: flex;
97
118
  align-items: center;
98
119
  gap: 6px;
99
- cursor: pointer;
100
120
  padding-left: 16px;
101
121
  margin-left: -16px;
122
+ position: relative;
123
+ z-index: 10;
124
+ border-radius: 6px;
102
125
 
103
- &.is-hover {
126
+ &.is-hover-drag-box {
104
127
  display: flex;
105
128
  align-items: center;
106
- border-radius: 6px;
107
129
  background: rgba(244, 244, 245);
108
- transition: background-color 0.3s ease-in-out;
130
+
131
+ .ald-logic-tree-record-node-drag-icon {
132
+ background: rgba(244, 244, 245) !important;
133
+ }
109
134
  }
110
135
 
111
136
  &.is-dragging {
@@ -113,13 +138,29 @@
113
138
  align-items: center;
114
139
  border-radius: 6px;
115
140
  background: var(--alias-colors-bg-selected-default, #e8f2fe);
141
+
142
+ .ald-logic-tree-record-node-drag-icon {
143
+ background: var(--alias-colors-bg-selected-default, #e8f2fe) !important;
144
+ }
116
145
  }
117
146
 
118
- .ald-logic-tree-record-node-drag-icon {
147
+ .ald-logic-tree-record-node-drag-icon-wrapper {
119
148
  position: absolute;
149
+ cursor: pointer;
120
150
  top: calc(50%);
121
151
  left: 0;
122
152
  transform: translateY(-50%);
153
+ height: 100%;
154
+ width: 16px;
155
+ border-radius: 6px;
156
+ display: flex;
157
+ justify-content: center;
158
+ align-items: center;
159
+ z-index: 10;
160
+
161
+ .ald-logic-tree-record-node-drag-icon {
162
+ background-color: #fff;
163
+ }
123
164
  }
124
165
 
125
166
  .ald-logic-tree-render-condition-wrap {
@@ -136,8 +177,8 @@
136
177
  padding-bottom: 4px;
137
178
  }
138
179
 
139
- .ald-logic-tree-logic-node.is-over:last-child::after,
140
- .ald-logic-tree-record-node.is-over:last-child::after {
180
+ .ald-logic-tree-logic-node.is-hover-bottom:last-child::after,
181
+ .ald-logic-tree-record-node.is-hover-bottom:last-child::after {
141
182
  content: '';
142
183
  position: absolute;
143
184
  bottom: -1px;
@@ -146,3 +187,18 @@
146
187
  height: 2px;
147
188
  background-color: #126fdd;
148
189
  }
190
+
191
+ .ald-logic-tree-logic-node.is-hover-top:last-child::after,
192
+ .ald-logic-tree-record-node.is-hover-top:last-child::after {
193
+ content: '';
194
+ position: absolute;
195
+ top: -1px;
196
+ left: 16px;
197
+ width: calc(100% - 16px);
198
+ height: 2px;
199
+ background-color: #126fdd;
200
+ }
201
+
202
+ .ald-logic-tree-node-drag-icon-preview {
203
+ display: none;
204
+ }
@@ -6,6 +6,7 @@ import classnames from 'classnames';
6
6
  import React, { useContext } from 'react';
7
7
  import Badge from "../../Badge";
8
8
  import Checkbox from "../../Checkbox";
9
+ import ConfigProvider from "../../ConfigProvider";
9
10
  import { EUserType } from "../../ConfigProvider/getUserList";
10
11
  import TextLink from "../../TextLink/index";
11
12
  import { LocaleContext, getTranslator } from "../../locale/default";
@@ -16,6 +17,8 @@ export default function MultipleList(params) {
16
17
  var _useContext = useContext(LocaleContext),
17
18
  locale = _useContext.locale;
18
19
  var t = getTranslator(locale);
20
+ var _ConfigProvider$useGe = ConfigProvider.useGetUserList(),
21
+ getMemberPickerItemMoreInfoKey = _ConfigProvider$useGe.getMemberPickerItemMoreInfoKey;
19
22
  var disabled = params.disabled,
20
23
  user = params.user,
21
24
  selected = params.selected,
@@ -49,7 +52,7 @@ export default function MultipleList(params) {
49
52
  account: getAccount(user),
50
53
  addonBefore: showUserId && user.type === EUserType.USER && /*#__PURE__*/React.createElement("span", {
51
54
  className: 'ald-member-picker-option-id'
52
- }, user.userId)
55
+ }, getMemberPickerItemMoreInfoKey ? getMemberPickerItemMoreInfoKey(user) : user.userId)
53
56
  }), isUser(user) && user.ban && /*#__PURE__*/React.createElement(Badge, {
54
57
  status: "default",
55
58
  count: t.MemberPicker.ban,
@@ -2,6 +2,7 @@ import classNames from 'classnames';
2
2
  import _ from 'lodash';
3
3
  import React, { useContext } from 'react';
4
4
  import Badge from "../../Badge";
5
+ import ConfigProvider from "../../ConfigProvider";
5
6
  import { CloseMLine } from "../../Icon";
6
7
  import ScrollArea from "../../ScrollArea";
7
8
  import { LocaleContext, getTranslator } from "../../locale/default";
@@ -14,6 +15,8 @@ export default function SelectedMemberTags(props) {
14
15
  width = props.width,
15
16
  _props$lockedIds = props.lockedIds,
16
17
  lockedIds = _props$lockedIds === void 0 ? [] : _props$lockedIds;
18
+ var _ConfigProvider$useGe = ConfigProvider.useGetUserList(),
19
+ memberPickerItemMoreInfoKey = _ConfigProvider$useGe.memberPickerItemMoreInfoKey;
17
20
  var _useContext = useContext(LocaleContext),
18
21
  locale = _useContext.locale;
19
22
  var t = getTranslator(locale);
@@ -56,7 +59,7 @@ export default function SelectedMemberTags(props) {
56
59
  account: getAccount(user),
57
60
  addonBefore: user.type === 'USER' && /*#__PURE__*/React.createElement("span", {
58
61
  className: "ald-member-picker-option-id"
59
- }, user.userId)
62
+ }, user[memberPickerItemMoreInfoKey || 'userId'])
60
63
  })), isUser(user) && user.ban && /*#__PURE__*/React.createElement(Badge, {
61
64
  status: "default",
62
65
  count: t.MemberPicker.ban,
@@ -5,6 +5,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
5
5
  import classnames from 'classnames';
6
6
  import React, { useContext } from 'react';
7
7
  import Badge from "../../Badge";
8
+ import ConfigProvider from "../../ConfigProvider";
8
9
  import { EUserType } from "../../ConfigProvider/getUserList";
9
10
  import TextLink from "../../TextLink/index";
10
11
  import { LocaleContext, getTranslator } from "../../locale/default";
@@ -15,6 +16,8 @@ export default function SingleOption(params) {
15
16
  var _useContext = useContext(LocaleContext),
16
17
  locale = _useContext.locale;
17
18
  var t = getTranslator(locale);
19
+ var _ConfigProvider$useGe = ConfigProvider.useGetUserList(),
20
+ getMemberPickerItemMoreInfoKey = _ConfigProvider$useGe.getMemberPickerItemMoreInfoKey;
18
21
  var disabled = params.disabled,
19
22
  user = params.user,
20
23
  selected = params.selected,
@@ -45,7 +48,7 @@ export default function SingleOption(params) {
45
48
  account: getAccount(user),
46
49
  addonBefore: showUserId && user.type === EUserType.USER && /*#__PURE__*/React.createElement("span", {
47
50
  className: 'ald-member-picker-option-id'
48
- }, user.userId)
51
+ }, getMemberPickerItemMoreInfoKey ? getMemberPickerItemMoreInfoKey(user) : user.userId)
49
52
  }), isUser(user) && user.ban && /*#__PURE__*/React.createElement(Badge, {
50
53
  status: "default",
51
54
  count: t.MemberPicker.ban,