dtable-ui-component 7.0.5-pal.11 → 7.0.5-pal.15
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.
|
@@ -71,27 +71,23 @@ const AsyncUserSelect = _ref => {
|
|
|
71
71
|
setSearchValue('');
|
|
72
72
|
setHighlightIndex(-1);
|
|
73
73
|
}, []);
|
|
74
|
-
const isEventInsideComponent = (0, _react.useCallback)(target => {
|
|
75
|
-
if (!target) return false;
|
|
76
|
-
if (selectorRef.current && selectorRef.current.contains(target)) return true;
|
|
77
|
-
if (userSelectContainerRef.current && userSelectContainerRef.current.contains(target)) return true;
|
|
78
|
-
return false;
|
|
79
|
-
}, []);
|
|
80
74
|
const onClickOutside = (0, _react.useCallback)(e => {
|
|
81
|
-
|
|
75
|
+
console.log(111);
|
|
76
|
+
if (isPopoverOpen && (!selectorRef.current || !selectorRef.current.contains(e.target))) {
|
|
82
77
|
setIsPopoverOpen(false);
|
|
83
78
|
clearStatus();
|
|
84
79
|
}
|
|
85
|
-
}, [isPopoverOpen, clearStatus
|
|
80
|
+
}, [isPopoverOpen, clearStatus]);
|
|
86
81
|
const onClickOutsideMenu = (0, _react.useCallback)(event => {
|
|
82
|
+
console.log(222);
|
|
87
83
|
if (isPopoverOpen && (0, _utils.getEventClassName)(event).includes('icon-fork-number')) {
|
|
88
84
|
return;
|
|
89
85
|
}
|
|
90
|
-
if (!
|
|
86
|
+
if (!selectorRef.current.contains(event.target)) {
|
|
91
87
|
setIsPopoverOpen(false);
|
|
92
88
|
clearStatus();
|
|
93
89
|
}
|
|
94
|
-
}, [isPopoverOpen, clearStatus
|
|
90
|
+
}, [isPopoverOpen, clearStatus]);
|
|
95
91
|
const searchUsers = (0, _react.useCallback)(function () {
|
|
96
92
|
let searchValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
97
93
|
const trimmedSearchValue = (searchValue === null || searchValue === void 0 ? void 0 : searchValue.trim()) || '';
|
|
@@ -28,6 +28,18 @@
|
|
|
28
28
|
border-top-right-radius: 4px;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
.select-search-control:-webkit-autofill,
|
|
32
|
+
.select-search-control:-webkit-autofill:hover,
|
|
33
|
+
.select-search-control:-webkit-autofill:focus,
|
|
34
|
+
.select-search-control:-webkit-autofill:active,
|
|
35
|
+
.select-search-control:-internal-autofill-previewed,
|
|
36
|
+
.select-search-control:-internal-autofill-selected {
|
|
37
|
+
-webkit-box-shadow: inset 0 0 0 1000px var(--bs-popover-bg) !important;
|
|
38
|
+
box-shadow: inset 0 0 0 1000px var(--bs-popover-bg) !important;
|
|
39
|
+
-webkit-text-fill-color: var(--bs-body-color) !important;
|
|
40
|
+
transition: background-color 5000s ease-in-out 0s !important;
|
|
41
|
+
}
|
|
42
|
+
|
|
31
43
|
.select-search-control:focus {
|
|
32
44
|
outline: none;
|
|
33
45
|
box-shadow: none;
|
|
@@ -161,7 +161,9 @@
|
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
.selector-group-select {
|
|
164
|
-
|
|
164
|
+
height: auto;
|
|
165
|
+
min-height: 38px;
|
|
166
|
+
padding: 6px 16px 6px 8px;
|
|
165
167
|
}
|
|
166
168
|
|
|
167
169
|
.selector-group-select .selected-option {
|
|
@@ -174,7 +176,3 @@
|
|
|
174
176
|
height: auto;
|
|
175
177
|
min-height: 24px
|
|
176
178
|
}
|
|
177
|
-
|
|
178
|
-
.selector-group-select {
|
|
179
|
-
height: auto;
|
|
180
|
-
}
|