dtable-ui-component 7.0.0-ahn.4 → 7.0.0-ahn.7
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/lib/AsyncUserSelect/index.css +2 -14
- package/lib/AsyncUserSelect/index.js +1 -1
- package/lib/DTableCustomizeSearchInput/index.css +9 -1
- package/lib/DTableCustomizeSelect/index.js +1 -1
- package/lib/SelectOptionGroup/index.css +1 -7
- package/lib/SelectOptionGroup/index.js +1 -1
- package/package.json +1 -1
|
@@ -32,17 +32,9 @@
|
|
|
32
32
|
.dtable-ui-user-select-popover .popover {
|
|
33
33
|
width: 385px;
|
|
34
34
|
max-width: 385px;
|
|
35
|
-
background: var(--bs-popover-bg);
|
|
36
|
-
border: 1px solid var(--bs-border-secondary-color);
|
|
37
|
-
border-radius: 4px;
|
|
38
|
-
box-shadow: var(--bs-border-secondary-shadow);
|
|
39
35
|
margin-top: -4px;
|
|
40
36
|
}
|
|
41
37
|
|
|
42
|
-
.dtable-ui-user-select-container .form-control {
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
|
|
46
38
|
.dtable-ui-user-select-container {
|
|
47
39
|
position: relative;
|
|
48
40
|
}
|
|
@@ -72,12 +64,8 @@
|
|
|
72
64
|
cursor: pointer;
|
|
73
65
|
}
|
|
74
66
|
|
|
75
|
-
.
|
|
76
|
-
|
|
77
|
-
font-size: 14px;
|
|
78
|
-
padding-left: 10px;
|
|
79
|
-
padding: 10px;
|
|
80
|
-
overflow: auto;
|
|
67
|
+
.dtable-ui-user-select-container .dtable-ui-user-list-container {
|
|
68
|
+
margin: 0 !important;
|
|
81
69
|
}
|
|
82
70
|
|
|
83
71
|
.dtable-ui-user-select-popover .popover .dtable-ui-user-item {
|
|
@@ -248,7 +248,7 @@ const AsyncUserSelect = _ref => {
|
|
|
248
248
|
ref: userSelectContainerRef,
|
|
249
249
|
onMouseDown: e => e.stopPropagation(),
|
|
250
250
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
251
|
-
className: "seatable-
|
|
251
|
+
className: "seatable-select-search",
|
|
252
252
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableCustomizeSearchInput.default, {
|
|
253
253
|
className: "option-search-control",
|
|
254
254
|
placeholder: searchPlaceholder || (0, _lang.getLocale)('Search_users'),
|
|
@@ -8,10 +8,15 @@
|
|
|
8
8
|
border-bottom: 1px solid var(--bs-border-color);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
.seatable-select-search {
|
|
12
|
+
border-bottom: 1px solid var(--bs-border-secondary-color);
|
|
13
|
+
height: 32px;
|
|
14
|
+
padding: .375rem 1rem;
|
|
15
|
+
}
|
|
16
|
+
|
|
11
17
|
.select-search-control {
|
|
12
18
|
height: 100%;
|
|
13
19
|
border: none;
|
|
14
|
-
padding: .375rem 1rem;
|
|
15
20
|
cursor: pointer;
|
|
16
21
|
display: block;
|
|
17
22
|
background-color: var(--bs-popover-bg);
|
|
@@ -33,6 +38,7 @@
|
|
|
33
38
|
left: auto;
|
|
34
39
|
right: 0;
|
|
35
40
|
}
|
|
41
|
+
|
|
36
42
|
.clear-icon-x {
|
|
37
43
|
position: absolute;
|
|
38
44
|
display: flex;
|
|
@@ -45,6 +51,8 @@
|
|
|
45
51
|
top: 0;
|
|
46
52
|
z-index: 1;
|
|
47
53
|
bottom: 0;
|
|
54
|
+
height: 32px;
|
|
55
|
+
cursor: pointer;
|
|
48
56
|
}
|
|
49
57
|
|
|
50
58
|
.seatable-search-input .none-search-result {
|
|
@@ -24,7 +24,7 @@ class DTableCustomizeSelect extends _react.Component {
|
|
|
24
24
|
*/
|
|
25
25
|
if (this.state.isShowSelectOptions) event.stopPropagation();
|
|
26
26
|
let eventClassName = event.target.className;
|
|
27
|
-
if (this.props.isLocked || eventClassName.indexOf('option-search-control') > -1 || eventClassName === 'seatable-
|
|
27
|
+
if (this.props.isLocked || eventClassName.indexOf('option-search-control') > -1 || eventClassName === 'seatable-select-search') return;
|
|
28
28
|
// Prevent closing by pressing the spacebar in the search input
|
|
29
29
|
if (event.target.value === '') return;
|
|
30
30
|
this.setState({
|
|
@@ -12,16 +12,10 @@
|
|
|
12
12
|
z-index: 10001;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.seatable-option-group-search {
|
|
16
|
-
border-bottom: 1px solid var(--bs-border-color);
|
|
17
|
-
height: 32px;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.seatable-option-group .seatable-option-group-search {
|
|
15
|
+
.seatable-option-group .seatable-select-search {
|
|
21
16
|
width: 100%;
|
|
22
17
|
min-width: 170px;
|
|
23
18
|
position: relative;
|
|
24
|
-
padding: 0;
|
|
25
19
|
}
|
|
26
20
|
|
|
27
21
|
.seatable-option-group .none-search-result {
|
|
@@ -235,7 +235,7 @@ class SelectOptionGroup extends _react.Component {
|
|
|
235
235
|
onClick: e => e.stopPropagation(),
|
|
236
236
|
children: value.label || ''
|
|
237
237
|
}), searchable && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
238
|
-
className: "seatable-
|
|
238
|
+
className: "seatable-select-search",
|
|
239
239
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableCustomizeSearchInput.default, {
|
|
240
240
|
className: "option-search-control",
|
|
241
241
|
placeholder: searchPlaceholder,
|