dtable-ui-component 7.0.9-beta.2 → 7.0.9

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.
@@ -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-icon-color);
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 .popover {
33
- width: 385px;
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:hover,
62
- .dtable-ui-user-select-container .dtable-ui-user-list-container .dtable-ui-user-item-container-highlight {
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 _reactstrap = require("reactstrap");
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,12 +69,6 @@ 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()) || '';
@@ -84,7 +81,6 @@ const AsyncUserSelect = _ref => {
84
81
  let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
85
82
  // [{ email, name, avatar_url }, ...]
86
83
  setSearchedUsers(options);
87
- setHighlightIndex(options.length > 0 ? 0 : -1);
88
84
  });
89
85
  }, [loadOptions]);
90
86
  const onSearchValueChanged = (0, _react.useCallback)(newSearchValue => {
@@ -189,106 +185,127 @@ const AsyncUserSelect = _ref => {
189
185
  }
190
186
  }, [onEnter, onUpArrow, onDownArrow, onEsc]);
191
187
  (0, _react.useEffect)(() => {
192
- if (userSelectContainerRef.current) {
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
- }
188
+ if (!isPopoverOpen) return;
199
189
  if (userListContainerRef.current && userItemContainerRef.current) {
200
- const userContainerStyle = getComputedStyle(userListContainerRef.current, null);
201
- const userItemStyle = getComputedStyle(userItemContainerRef.current, null);
202
- const userItemHeight = parseInt(userItemStyle.height);
203
- const maxContainerItemNum = Math.floor(parseInt(userContainerStyle.maxHeight) / userItemHeight);
204
- setMaxItemNum(maxContainerItemNum);
190
+ const userItemHeight = userItemContainerRef.current.getBoundingClientRect().height;
191
+ const listMaxHeight = userListContainerRef.current.clientHeight;
205
192
  setItemHeight(userItemHeight);
193
+ setMaxItemNum(Math.max(1, Math.floor(listMaxHeight / userItemHeight)));
206
194
  }
207
- }, []);
195
+ }, [isPopoverOpen, searchedUsers]);
208
196
  (0, _react.useEffect)(() => {
209
197
  document.addEventListener('keydown', onHotKey, true);
210
198
  return () => {
211
199
  document.removeEventListener('keydown', onHotKey, true);
212
200
  };
213
201
  }, [onHotKey]);
214
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ClickOutside.default, {
215
- onClickOutside: onClickOutside,
216
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
217
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
218
- className: (0, _classnames.default)('dtable-ui-selected-users-container form-control d-flex align-items-center', className, {
219
- 'focus': isPopoverOpen
220
- }),
221
- onClick: onTogglePopover,
222
- ref: selectorRef,
223
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
224
- className: "dtable-ui-users-input",
225
- children: [selectedUsers.map((user, index) => {
226
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_userItem.default, {
227
- user: user,
228
- deleteUser: deselectUser
229
- }, "dtable-ui-user-selector-selected-user-".concat(index));
230
- }), selectedUsers.length === 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
231
- className: "dtable-ui-user-select-placeholder",
232
- children: emptyPlaceholder || (0, _lang.getLocale)('Search_users')
233
- }), !showDeptBtn && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
234
- className: "select-dropdown-indicator d-inline-flex align-items-center",
235
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableIcon.default, {
236
- symbol: "down",
237
- color: "var(--bs-icon-color)"
238
- })
239
- })]
240
- })
241
- }), selectorRef.current && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Popover, {
242
- placement: "bottom-start",
243
- isOpen: isPopoverOpen,
244
- target: selectorRef.current,
245
- hideArrow: true,
246
- fade: false,
247
- className: "dtable-ui-user-select-popover",
248
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
249
- className: "dtable-ui-user-select-container",
250
- ref: userSelectContainerRef,
251
- onMouseDown: e => e.stopPropagation(),
252
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
253
- className: "seatable-select-search",
254
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableCustomizeSearchInput.default, {
255
- className: "option-search-control",
256
- placeholder: searchPlaceholder || (0, _lang.getLocale)('Search_users'),
257
- onChange: onSearchValueChanged,
258
- clearValue: () => onSearchValueChanged(''),
259
- autoFocus: true,
260
- isClearable: true,
261
- value: searchValue
262
- })
263
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
264
- className: "dtable-ui-user-list-container",
265
- ref: userListContainerRef,
266
- children: [searchedUsers.length > 0 && searchedUsers.map((user, index) => {
267
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
268
- className: (0, _classnames.default)('dtable-ui-user-item-container', {
269
- 'dtable-ui-user-item-container-highlight': index === highlightIndex
270
- }),
271
- ref: userItemContainerRef,
272
- onClick: () => onUserClick(user),
273
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_userItem.default, {
274
- user: user,
275
- enableShowIDInOrgWhenSearchUser: enableShowIDInOrgWhenSearchUser
276
- }, "dtable-ui-user-selector-searched-user-".concat(index)), selectedUsers.find(u => u.email === user.email) && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
277
- className: "dtable-ui-collaborator-check-icon",
278
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
279
- className: "dtable-font dtable-icon-check",
280
- "aria-hidden": "true"
281
- })
282
- })]
283
- }, user.email);
284
- }), searchedUsers.length === 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
285
- className: "no-user-search-result",
286
- children: searchValue ? (0, _lang.getLocale)('User_not_found') : (0, _lang.getLocale)('Enter_characters_to_start_searching')
287
- })]
202
+ (0, _react.useEffect)(() => {
203
+ if (!isPopoverOpen) return;
204
+ const isInside = target => {
205
+ if (!target) return false;
206
+ if (selectorRef.current && selectorRef.current.contains(target)) return true;
207
+ if (userSelectContainerRef.current && userSelectContainerRef.current.contains(target)) return true;
208
+ return false;
209
+ };
210
+ const handleDocumentMouseDown = e => {
211
+ if (isInside(e.target)) return;
212
+ setIsPopoverOpen(false);
213
+ clearStatus();
214
+ };
215
+ document.addEventListener('mousedown', handleDocumentMouseDown, true);
216
+ return () => {
217
+ document.removeEventListener('mousedown', handleDocumentMouseDown, true);
218
+ };
219
+ }, [isPopoverOpen, clearStatus]);
220
+ const getSelectorRect = () => {
221
+ if (!selectorRef.current) return null;
222
+ return selectorRef.current.getBoundingClientRect();
223
+ };
224
+ (0, _react.useLayoutEffect)(() => {
225
+ if (!isPopoverOpen) {
226
+ setPopoverPosition(null);
227
+ return;
228
+ }
229
+ const rect = getSelectorRect();
230
+ if (!rect) return;
231
+ setPopoverPosition({
232
+ position: 'fixed',
233
+ top: rect.bottom + 8,
234
+ left: rect.left,
235
+ width: rect.width
236
+ });
237
+ }, [isPopoverOpen, selectedUsers]);
238
+ const popoverStyle = popoverPosition;
239
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
240
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
241
+ className: (0, _classnames.default)('dtable-ui-selected-users-container form-control d-flex align-items-center', className, {
242
+ 'focus': isPopoverOpen
243
+ }),
244
+ onClick: onTogglePopover,
245
+ ref: selectorRef,
246
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
247
+ className: "dtable-ui-users-input",
248
+ children: [selectedUsers.map((user, index) => {
249
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_userItem.default, {
250
+ user: user,
251
+ deleteUser: deselectUser
252
+ }, "dtable-ui-user-selector-selected-user-".concat(index));
253
+ }), selectedUsers.length === 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
254
+ className: "dtable-ui-user-select-placeholder",
255
+ children: emptyPlaceholder || (0, _lang.getLocale)('Search_users')
256
+ }), !showDeptBtn && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
257
+ className: "select-dropdown-indicator d-inline-flex align-items-center",
258
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableIcon.default, {
259
+ symbol: "down",
260
+ color: "var(--bs-icon-color)"
261
+ })
262
+ })]
263
+ })
264
+ }), isPopoverOpen && popoverStyle && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ModalPortal.default, {
265
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
266
+ className: "dtable-ui-user-select-popover dtable-ui-user-select-container",
267
+ ref: userSelectContainerRef,
268
+ style: popoverStyle,
269
+ onMouseDown: e => e.stopPropagation(),
270
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
271
+ className: "seatable-select-search",
272
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableCustomizeSearchInput.default, {
273
+ className: "option-search-control",
274
+ placeholder: searchPlaceholder || (0, _lang.getLocale)('Search_users'),
275
+ onChange: onSearchValueChanged,
276
+ clearValue: () => onSearchValueChanged(''),
277
+ autoFocus: true,
278
+ isClearable: true,
279
+ value: searchValue
280
+ })
281
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
282
+ className: "dtable-ui-user-list-container",
283
+ ref: userListContainerRef,
284
+ children: [searchedUsers.length > 0 && searchedUsers.map((user, index) => {
285
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
286
+ className: (0, _classnames.default)('dtable-ui-user-item-container', {
287
+ 'dtable-ui-user-item-container-highlight': index === highlightIndex
288
+ }),
289
+ ref: index === 0 ? userItemContainerRef : null,
290
+ onClick: () => onUserClick(user),
291
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_userItem.default, {
292
+ user: user,
293
+ enableShowIDInOrgWhenSearchUser: enableShowIDInOrgWhenSearchUser
294
+ }, "dtable-ui-user-selector-searched-user-".concat(index)), selectedUsers.find(u => u.email === user.email) && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
295
+ className: "dtable-ui-collaborator-check-icon",
296
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
297
+ className: "dtable-font dtable-icon-check",
298
+ "aria-hidden": "true"
299
+ })
300
+ })]
301
+ }, user.email);
302
+ }), searchedUsers.length === 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
303
+ className: "no-user-search-result",
304
+ children: searchValue ? (0, _lang.getLocale)('User_not_found') : (0, _lang.getLocale)('Enter_characters_to_start_searching')
288
305
  })]
289
- })
290
- })]
291
- })
306
+ })]
307
+ })
308
+ })]
292
309
  });
293
310
  };
294
311
  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;
@@ -50,7 +66,7 @@
50
66
  height: 20px;
51
67
  width: 20px;
52
68
  cursor: pointer;
53
- border-radius: 3px;
69
+ border-radius: 4px;
54
70
  }
55
71
 
56
72
  .clear-icon-x .multicolor-icon {
@@ -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: 8px;
74
- border-top-right-radius: 8px;
89
+ border-top-left-radius: 4px;
90
+ border-top-right-radius: 4px;
75
91
  }
@@ -15,6 +15,10 @@
15
15
  border: 1px solid rgba(0, 40, 100, 0.12);
16
16
  }
17
17
 
18
+ .seatable-select-search .select-search-control::placeholder {
19
+ color: var(--bs-bg-placeholder-color);
20
+ }
21
+
18
22
  .seatable-customize-select:focus,
19
23
  .seatable-customize-select.focus {
20
24
  border: 1px solid var(--bs-bg-border-color) !important;
@@ -101,16 +105,12 @@
101
105
  line-height: 20px;
102
106
  margin-right: 8px;
103
107
  width: calc(100% - 20px);
104
- display: flex;
108
+ display: block;
105
109
  text-overflow: ellipsis;
106
110
  overflow: hidden;
107
111
  white-space: nowrap;
108
112
  }
109
113
 
110
- .seatable-customize-select .selected-option .multicolor-icon {
111
- font-size: 12px;
112
- }
113
-
114
114
  .seatable-customize-select .multiple-check-icon,
115
115
  .seatable-customize-select .header-icon .dtable-font,
116
116
  .seatable-option-group .select-label .header-icon .dtable-font {
@@ -125,6 +125,12 @@
125
125
  margin-left: 0 !important;
126
126
  }
127
127
 
128
+ .seatable-customize-select .selected-option .dtable-icon-down3,
129
+ .seatable-customize-select .selected-option .multicolor-icon {
130
+ color: var(--bs-icon-color) !important;
131
+ font-size: 12px;
132
+ }
133
+
128
134
  .selector-group-select .selected-option-show .selected-option-item {
129
135
  align-items: center;
130
136
  border-radius: 4px;
@@ -159,7 +165,9 @@
159
165
  }
160
166
 
161
167
  .selector-group-select {
162
- padding: 7px 16px 7px 8px;
168
+ height: auto;
169
+ min-height: 38px;
170
+ padding: 6px 16px 6px 8px;
163
171
  }
164
172
 
165
173
  .selector-group-select .selected-option {
@@ -172,7 +180,3 @@
172
180
  height: auto;
173
181
  min-height: 24px
174
182
  }
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
- }), !isLocked && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
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: 72px;
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,18 @@
9
9
  color: var(--bs-icon-color);
10
10
  }
11
11
 
12
- .seatable-option .select-option-name .seatable-tip-default {
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
+ }
23
+
24
+ .btn-add-custom-permission {
25
+ height: 16px;
26
+ }
@@ -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",
@@ -66,6 +66,9 @@
66
66
 
67
67
  .select-label {
68
68
  width: 100%;
69
+ overflow: hidden;
70
+ white-space: nowrap;
71
+ text-overflow: ellipsis;
69
72
  }
70
73
 
71
74
  .seatable-option-group-selector-multiple-select .select-label,
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "7.0.9-beta.2",
3
+ "version": "7.0.9",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "5.0.9",
7
- "@seafile/seafile-calendar": "^1.0.10",
7
+ "@seafile/seafile-calendar": "^1.0.13",
8
8
  "@seafile/seafile-editor": "^3.0.34",
9
9
  "classnames": "~2.5.*",
10
10
  "dayjs": "1.10.7",