dtable-ui-component 7.0.7-beta.1 → 7.0.7-utg.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/lib/AsyncUserSelect/index.css +13 -7
- package/lib/AsyncUserSelect/index.js +116 -100
- package/lib/DTableCustomizeSearchInput/index.css +18 -2
- package/lib/DTableCustomizeSelect/index.css +10 -10
- package/lib/DTableCustomizeSelect/index.js +14 -1
- package/lib/DTableFiltersPopover/widgets/filter-list/index.css +1 -10
- package/lib/DTableSelect/dtable-select-label.css +8 -1
- package/lib/DTableSelect/utils.js +1 -1
- package/lib/SelectOptionGroup/index.css +3 -0
- package/package.json +1 -1
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
flex-wrap: wrap;
|
|
3
3
|
height: auto !important;
|
|
4
4
|
min-height: 38px;
|
|
5
|
-
max-width: calc(100% - 10px);
|
|
6
5
|
padding: .375rem 40px .375rem 1rem;
|
|
7
6
|
position: relative;
|
|
7
|
+
border-radius: 4px;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.dtable-ui-selected-users-container.focus {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.dtable-ui-selected-users-container .dtable-ui-user-select-placeholder {
|
|
15
|
-
color: var(--bs-
|
|
15
|
+
color: var(--bs-bg-placeholder-color)
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.select-dropdown-indicator {
|
|
@@ -29,10 +29,13 @@
|
|
|
29
29
|
height: 12px;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
.dtable-ui-user-select-popover
|
|
33
|
-
|
|
34
|
-
max-width: 385px;
|
|
32
|
+
.dtable-ui-user-select-popover {
|
|
33
|
+
z-index: 1060;
|
|
35
34
|
margin-top: -4px;
|
|
35
|
+
background-color: var(--bs-popover-bg);
|
|
36
|
+
box-shadow: var(--bs-border-secondary-shadow);
|
|
37
|
+
border: 1px solid var(--bs-border-secondary-color);
|
|
38
|
+
border-radius: 4px;
|
|
36
39
|
}
|
|
37
40
|
|
|
38
41
|
.dtable-ui-user-select-container {
|
|
@@ -58,8 +61,11 @@
|
|
|
58
61
|
border-radius: 4px;
|
|
59
62
|
}
|
|
60
63
|
|
|
61
|
-
.dtable-ui-user-select-container .dtable-ui-user-list-container .dtable-ui-user-item-container
|
|
62
|
-
|
|
64
|
+
.dtable-ui-user-select-container .dtable-ui-user-list-container .dtable-ui-user-item-container .dtable-ui-user-item {
|
|
65
|
+
background: none !important;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.dtable-ui-user-select-container .dtable-ui-user-list-container .dtable-ui-user-item-container:hover {
|
|
63
69
|
background-color: var(--bs-btn-background-hover);
|
|
64
70
|
cursor: pointer;
|
|
65
71
|
}
|
|
@@ -8,8 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
9
9
|
var _react = require("react");
|
|
10
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
-
var
|
|
12
|
-
var _ClickOutside = _interopRequireDefault(require("../ClickOutside"));
|
|
11
|
+
var _ModalPortal = _interopRequireDefault(require("../ModalPortal"));
|
|
13
12
|
var _DTableCustomizeSearchInput = _interopRequireDefault(require("../DTableCustomizeSearchInput"));
|
|
14
13
|
var _userItem = _interopRequireDefault(require("./user-item"));
|
|
15
14
|
var _lang = require("../lang");
|
|
@@ -57,6 +56,10 @@ const AsyncUserSelect = _ref => {
|
|
|
57
56
|
_useState10 = (0, _slicedToArray2.default)(_useState1, 2),
|
|
58
57
|
itemHeight = _useState10[0],
|
|
59
58
|
setItemHeight = _useState10[1];
|
|
59
|
+
const _useState11 = (0, _react.useState)(null),
|
|
60
|
+
_useState12 = (0, _slicedToArray2.default)(_useState11, 2),
|
|
61
|
+
popoverPosition = _useState12[0],
|
|
62
|
+
setPopoverPosition = _useState12[1];
|
|
60
63
|
const selectorRef = (0, _react.useRef)(null);
|
|
61
64
|
const userSelectContainerRef = (0, _react.useRef)(null);
|
|
62
65
|
const userListContainerRef = (0, _react.useRef)(null);
|
|
@@ -66,25 +69,17 @@ const AsyncUserSelect = _ref => {
|
|
|
66
69
|
setSearchValue('');
|
|
67
70
|
setHighlightIndex(-1);
|
|
68
71
|
}, []);
|
|
69
|
-
const onClickOutside = (0, _react.useCallback)(e => {
|
|
70
|
-
if (isPopoverOpen && (!selectorRef.current || !selectorRef.current.contains(e.target))) {
|
|
71
|
-
setIsPopoverOpen(false);
|
|
72
|
-
clearStatus();
|
|
73
|
-
}
|
|
74
|
-
}, [isPopoverOpen, clearStatus]);
|
|
75
72
|
const searchUsers = (0, _react.useCallback)(function () {
|
|
76
73
|
let searchValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
77
74
|
const trimmedSearchValue = (searchValue === null || searchValue === void 0 ? void 0 : searchValue.trim()) || '';
|
|
78
75
|
if (!trimmedSearchValue) {
|
|
79
76
|
setSearchedUsers([]);
|
|
80
|
-
setHighlightIndex(-1);
|
|
81
77
|
return;
|
|
82
78
|
}
|
|
83
79
|
loadOptions && loadOptions(searchValue, function () {
|
|
84
80
|
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
85
81
|
// [{ email, name, avatar_url }, ...]
|
|
86
82
|
setSearchedUsers(options);
|
|
87
|
-
setHighlightIndex(options.length > 0 ? 0 : -1);
|
|
88
83
|
});
|
|
89
84
|
}, [loadOptions]);
|
|
90
85
|
const onSearchValueChanged = (0, _react.useCallback)(newSearchValue => {
|
|
@@ -189,106 +184,127 @@ const AsyncUserSelect = _ref => {
|
|
|
189
184
|
}
|
|
190
185
|
}, [onEnter, onUpArrow, onDownArrow, onEsc]);
|
|
191
186
|
(0, _react.useEffect)(() => {
|
|
192
|
-
if (
|
|
193
|
-
const _userSelectContainerR = userSelectContainerRef.current.getBoundingClientRect(),
|
|
194
|
-
bottom = _userSelectContainerR.bottom;
|
|
195
|
-
if (bottom > window.innerHeight) {
|
|
196
|
-
userSelectContainerRef.current.style.top = "".concat(window.innerHeight - bottom, "px");
|
|
197
|
-
}
|
|
198
|
-
}
|
|
187
|
+
if (!isPopoverOpen) return;
|
|
199
188
|
if (userListContainerRef.current && userItemContainerRef.current) {
|
|
200
|
-
const
|
|
201
|
-
const
|
|
202
|
-
const userItemHeight = parseInt(userItemStyle.height);
|
|
203
|
-
const maxContainerItemNum = Math.floor(parseInt(userContainerStyle.maxHeight) / userItemHeight);
|
|
204
|
-
setMaxItemNum(maxContainerItemNum);
|
|
189
|
+
const userItemHeight = userItemContainerRef.current.getBoundingClientRect().height;
|
|
190
|
+
const listMaxHeight = userListContainerRef.current.clientHeight;
|
|
205
191
|
setItemHeight(userItemHeight);
|
|
192
|
+
setMaxItemNum(Math.max(1, Math.floor(listMaxHeight / userItemHeight)));
|
|
206
193
|
}
|
|
207
|
-
}, []);
|
|
194
|
+
}, [isPopoverOpen, searchedUsers]);
|
|
208
195
|
(0, _react.useEffect)(() => {
|
|
209
196
|
document.addEventListener('keydown', onHotKey, true);
|
|
210
197
|
return () => {
|
|
211
198
|
document.removeEventListener('keydown', onHotKey, true);
|
|
212
199
|
};
|
|
213
200
|
}, [onHotKey]);
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
201
|
+
(0, _react.useEffect)(() => {
|
|
202
|
+
if (!isPopoverOpen) return;
|
|
203
|
+
const isInside = target => {
|
|
204
|
+
if (!target) return false;
|
|
205
|
+
if (selectorRef.current && selectorRef.current.contains(target)) return true;
|
|
206
|
+
if (userSelectContainerRef.current && userSelectContainerRef.current.contains(target)) return true;
|
|
207
|
+
return false;
|
|
208
|
+
};
|
|
209
|
+
const handleDocumentMouseDown = e => {
|
|
210
|
+
if (isInside(e.target)) return;
|
|
211
|
+
setIsPopoverOpen(false);
|
|
212
|
+
clearStatus();
|
|
213
|
+
};
|
|
214
|
+
document.addEventListener('mousedown', handleDocumentMouseDown, true);
|
|
215
|
+
return () => {
|
|
216
|
+
document.removeEventListener('mousedown', handleDocumentMouseDown, true);
|
|
217
|
+
};
|
|
218
|
+
}, [isPopoverOpen, clearStatus]);
|
|
219
|
+
const getSelectorRect = () => {
|
|
220
|
+
if (!selectorRef.current) return null;
|
|
221
|
+
return selectorRef.current.getBoundingClientRect();
|
|
222
|
+
};
|
|
223
|
+
(0, _react.useLayoutEffect)(() => {
|
|
224
|
+
if (!isPopoverOpen) {
|
|
225
|
+
setPopoverPosition(null);
|
|
226
|
+
return;
|
|
227
|
+
}
|
|
228
|
+
const rect = getSelectorRect();
|
|
229
|
+
if (!rect) return;
|
|
230
|
+
setPopoverPosition({
|
|
231
|
+
position: 'fixed',
|
|
232
|
+
top: rect.bottom + 8,
|
|
233
|
+
left: rect.left,
|
|
234
|
+
width: rect.width
|
|
235
|
+
});
|
|
236
|
+
}, [isPopoverOpen, selectedUsers]);
|
|
237
|
+
const popoverStyle = popoverPosition;
|
|
238
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
239
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
240
|
+
className: (0, _classnames.default)('dtable-ui-selected-users-container form-control d-flex align-items-center', className, {
|
|
241
|
+
'focus': isPopoverOpen
|
|
242
|
+
}),
|
|
243
|
+
onClick: onTogglePopover,
|
|
244
|
+
ref: selectorRef,
|
|
245
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
246
|
+
className: "dtable-ui-users-input",
|
|
247
|
+
children: [selectedUsers.map((user, index) => {
|
|
248
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_userItem.default, {
|
|
249
|
+
user: user,
|
|
250
|
+
deleteUser: deselectUser
|
|
251
|
+
}, "dtable-ui-user-selector-selected-user-".concat(index));
|
|
252
|
+
}), selectedUsers.length === 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
253
|
+
className: "dtable-ui-user-select-placeholder",
|
|
254
|
+
children: emptyPlaceholder || (0, _lang.getLocale)('Search_users')
|
|
255
|
+
}), !showDeptBtn && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
256
|
+
className: "select-dropdown-indicator d-inline-flex align-items-center",
|
|
257
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableIcon.default, {
|
|
258
|
+
symbol: "down",
|
|
259
|
+
color: "var(--bs-icon-color)"
|
|
260
|
+
})
|
|
261
|
+
})]
|
|
262
|
+
})
|
|
263
|
+
}), isPopoverOpen && popoverStyle && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ModalPortal.default, {
|
|
264
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
265
|
+
className: "dtable-ui-user-select-popover dtable-ui-user-select-container",
|
|
266
|
+
ref: userSelectContainerRef,
|
|
267
|
+
style: popoverStyle,
|
|
268
|
+
onMouseDown: e => e.stopPropagation(),
|
|
269
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
270
|
+
className: "seatable-select-search",
|
|
271
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableCustomizeSearchInput.default, {
|
|
272
|
+
className: "option-search-control",
|
|
273
|
+
placeholder: searchPlaceholder || (0, _lang.getLocale)('Search_users'),
|
|
274
|
+
onChange: onSearchValueChanged,
|
|
275
|
+
clearValue: () => onSearchValueChanged(''),
|
|
276
|
+
autoFocus: true,
|
|
277
|
+
isClearable: true,
|
|
278
|
+
value: searchValue
|
|
279
|
+
})
|
|
280
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
281
|
+
className: "dtable-ui-user-list-container",
|
|
282
|
+
ref: userListContainerRef,
|
|
283
|
+
children: [searchedUsers.length > 0 && searchedUsers.map((user, index) => {
|
|
284
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
285
|
+
className: (0, _classnames.default)('dtable-ui-user-item-container', {
|
|
286
|
+
'dtable-ui-user-item-container-highlight': index === highlightIndex
|
|
287
|
+
}),
|
|
288
|
+
ref: index === 0 ? userItemContainerRef : null,
|
|
289
|
+
onClick: () => onUserClick(user),
|
|
290
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_userItem.default, {
|
|
291
|
+
user: user,
|
|
292
|
+
enableShowIDInOrgWhenSearchUser: enableShowIDInOrgWhenSearchUser
|
|
293
|
+
}, "dtable-ui-user-selector-searched-user-".concat(index)), selectedUsers.find(u => u.email === user.email) && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
294
|
+
className: "dtable-ui-collaborator-check-icon",
|
|
295
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
296
|
+
className: "dtable-font dtable-icon-check",
|
|
297
|
+
"aria-hidden": "true"
|
|
298
|
+
})
|
|
299
|
+
})]
|
|
300
|
+
}, user.email);
|
|
301
|
+
}), searchedUsers.length === 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
302
|
+
className: "no-user-search-result",
|
|
303
|
+
children: searchValue ? (0, _lang.getLocale)('User_not_found') : (0, _lang.getLocale)('Enter_characters_to_start_searching')
|
|
288
304
|
})]
|
|
289
|
-
})
|
|
290
|
-
})
|
|
291
|
-
})
|
|
305
|
+
})]
|
|
306
|
+
})
|
|
307
|
+
})]
|
|
292
308
|
});
|
|
293
309
|
};
|
|
294
310
|
var _default = exports.default = AsyncUserSelect;
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
height: 32px;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
.select-search-control::placeholder {
|
|
17
|
+
color: var(--bs-bg-placeholder-color);
|
|
18
|
+
}
|
|
19
|
+
|
|
16
20
|
.select-search-control {
|
|
17
21
|
height: 100%;
|
|
18
22
|
border: none;
|
|
@@ -28,6 +32,18 @@
|
|
|
28
32
|
border-top-right-radius: 4px;
|
|
29
33
|
}
|
|
30
34
|
|
|
35
|
+
.select-search-control:-webkit-autofill,
|
|
36
|
+
.select-search-control:-webkit-autofill:hover,
|
|
37
|
+
.select-search-control:-webkit-autofill:focus,
|
|
38
|
+
.select-search-control:-webkit-autofill:active,
|
|
39
|
+
.select-search-control:-internal-autofill-previewed,
|
|
40
|
+
.select-search-control:-internal-autofill-selected {
|
|
41
|
+
-webkit-box-shadow: inset 0 0 0 1000px var(--bs-popover-bg) !important;
|
|
42
|
+
box-shadow: inset 0 0 0 1000px var(--bs-popover-bg) !important;
|
|
43
|
+
-webkit-text-fill-color: var(--bs-body-color) !important;
|
|
44
|
+
transition: background-color 5000s ease-in-out 0s !important;
|
|
45
|
+
}
|
|
46
|
+
|
|
31
47
|
.select-search-control:focus {
|
|
32
48
|
outline: none;
|
|
33
49
|
box-shadow: none;
|
|
@@ -70,6 +86,6 @@
|
|
|
70
86
|
|
|
71
87
|
.dtable-ui-user-select-popover .select-search-control,
|
|
72
88
|
.dtable-popover .select-search-control {
|
|
73
|
-
border-top-left-radius:
|
|
74
|
-
border-top-right-radius:
|
|
89
|
+
border-top-left-radius: 4px;
|
|
90
|
+
border-top-right-radius: 4px;
|
|
75
91
|
}
|
|
@@ -101,16 +101,12 @@
|
|
|
101
101
|
line-height: 20px;
|
|
102
102
|
margin-right: 8px;
|
|
103
103
|
width: calc(100% - 20px);
|
|
104
|
-
display:
|
|
104
|
+
display: block;
|
|
105
105
|
text-overflow: ellipsis;
|
|
106
106
|
overflow: hidden;
|
|
107
107
|
white-space: nowrap;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
.seatable-customize-select .selected-option .multicolor-icon {
|
|
111
|
-
font-size: 12px;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
110
|
.seatable-customize-select .multiple-check-icon,
|
|
115
111
|
.seatable-customize-select .header-icon .dtable-font,
|
|
116
112
|
.seatable-option-group .select-label .header-icon .dtable-font {
|
|
@@ -125,6 +121,12 @@
|
|
|
125
121
|
margin-left: 0 !important;
|
|
126
122
|
}
|
|
127
123
|
|
|
124
|
+
.seatable-customize-select .selected-option .dtable-icon-down3,
|
|
125
|
+
.seatable-customize-select .selected-option .multicolor-icon {
|
|
126
|
+
color: var(--bs-icon-color) !important;
|
|
127
|
+
font-size: 12px;
|
|
128
|
+
}
|
|
129
|
+
|
|
128
130
|
.selector-group-select .selected-option-show .selected-option-item {
|
|
129
131
|
align-items: center;
|
|
130
132
|
border-radius: 4px;
|
|
@@ -159,7 +161,9 @@
|
|
|
159
161
|
}
|
|
160
162
|
|
|
161
163
|
.selector-group-select {
|
|
162
|
-
|
|
164
|
+
height: auto;
|
|
165
|
+
min-height: 38px;
|
|
166
|
+
padding: 6px 16px 6px 8px;
|
|
163
167
|
}
|
|
164
168
|
|
|
165
169
|
.selector-group-select .selected-option {
|
|
@@ -172,7 +176,3 @@
|
|
|
172
176
|
height: auto;
|
|
173
177
|
min-height: 24px
|
|
174
178
|
}
|
|
175
|
-
|
|
176
|
-
.selector-group-select {
|
|
177
|
-
height: auto;
|
|
178
|
-
}
|
|
@@ -45,6 +45,13 @@ class DTableCustomizeSelect extends _react.Component {
|
|
|
45
45
|
isShowSelectOptions: false
|
|
46
46
|
});
|
|
47
47
|
};
|
|
48
|
+
this.handleDocumentMouseDown = event => {
|
|
49
|
+
if (!this.state.isShowSelectOptions) return;
|
|
50
|
+
const target = event.target;
|
|
51
|
+
if (this.selector && this.selector.contains(target)) return;
|
|
52
|
+
if (target && target.closest && target.closest('.seatable-option-group')) return;
|
|
53
|
+
this.closeSelect();
|
|
54
|
+
};
|
|
48
55
|
this.getSelectedOptionTop = () => {
|
|
49
56
|
if (!this.selector) return 38;
|
|
50
57
|
const _this$selector$getBou = this.selector.getBoundingClientRect(),
|
|
@@ -80,6 +87,12 @@ class DTableCustomizeSelect extends _react.Component {
|
|
|
80
87
|
isShowSelectOptions: false
|
|
81
88
|
};
|
|
82
89
|
}
|
|
90
|
+
componentDidMount() {
|
|
91
|
+
document.addEventListener('mousedown', this.handleDocumentMouseDown, true);
|
|
92
|
+
}
|
|
93
|
+
componentWillUnmount() {
|
|
94
|
+
document.removeEventListener('mousedown', this.handleDocumentMouseDown, true);
|
|
95
|
+
}
|
|
83
96
|
render() {
|
|
84
97
|
let _this$props2 = this.props,
|
|
85
98
|
className = _this$props2.className,
|
|
@@ -109,7 +122,7 @@ class DTableCustomizeSelect extends _react.Component {
|
|
|
109
122
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
110
123
|
className: "select-placeholder",
|
|
111
124
|
children: placeholder
|
|
112
|
-
}),
|
|
125
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
113
126
|
className: "d-inline-flex align-items-center",
|
|
114
127
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableIcon.default, {
|
|
115
128
|
symbol: "down",
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
.dtable-ui-filters-list .filter-conjunction {
|
|
135
|
-
width:
|
|
135
|
+
width: 88px;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
.dtable-ui-filters-list .filter-conjunction-readonly {
|
|
@@ -166,21 +166,12 @@
|
|
|
166
166
|
color: #666666;
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
.dtable-ui-filters-list .filter-column {
|
|
170
|
-
max-width: 150px;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
169
|
.filter-term .dtable-ui-multiple-select-selector .option,
|
|
174
170
|
.filter-term .dtable-ui-single-select-selector .option {
|
|
175
171
|
height: 30px;
|
|
176
172
|
padding: 0 10px;
|
|
177
173
|
}
|
|
178
174
|
|
|
179
|
-
.filter-term .dtable-ui-multiple-select-selector .select-option-name,
|
|
180
|
-
.filter-term .dtable-ui-single-select-selector .select-option-name {
|
|
181
|
-
margin-top: 5px !important;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
175
|
.filter-term .dtable-ui-single-select-selector .option:hover {
|
|
185
176
|
color: #212529;
|
|
186
177
|
background-color: #f7f7f7;
|
|
@@ -9,7 +9,14 @@
|
|
|
9
9
|
color: var(--bs-icon-color);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
.seatable-option .
|
|
12
|
+
.seatable-option .seatable-tip-default {
|
|
13
13
|
font-size: 12px;
|
|
14
14
|
margin-top: 4px
|
|
15
15
|
}
|
|
16
|
+
|
|
17
|
+
.select-option-name .group-select-option,
|
|
18
|
+
.seatable-option.option-name {
|
|
19
|
+
width: 100%;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
text-overflow: ellipsis;
|
|
22
|
+
}
|
|
@@ -214,7 +214,7 @@ const Option = props => {
|
|
|
214
214
|
whiteSpace: 'pre-line'
|
|
215
215
|
},
|
|
216
216
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
217
|
-
className: "seatable-option",
|
|
217
|
+
className: "seatable-option option-name",
|
|
218
218
|
children: label
|
|
219
219
|
}), isSelected && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
220
220
|
className: "dtable-font dtable-icon-check",
|