dtable-ui-component 7.0.1 → 7.0.3

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.
Files changed (38) hide show
  1. package/lib/AsyncUserSelect/index.css +38 -28
  2. package/lib/AsyncUserSelect/index.js +32 -19
  3. package/lib/DTableCustomizeSearchInput/index.css +75 -0
  4. package/lib/DTableCustomizeSearchInput/index.js +133 -0
  5. package/lib/DTableCustomizeSelect/index.css +120 -42
  6. package/lib/DTableCustomizeSelect/index.js +12 -6
  7. package/lib/DTableFiltersPopover/index.js +9 -8
  8. package/lib/DTableFiltersPopover/utils/filter-item-utils.js +7 -19
  9. package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +5 -9
  10. package/lib/DTableFiltersPopover/widgets/filter-group.js +1 -1
  11. package/lib/DTableFiltersPopover/widgets/filter-item.js +16 -8
  12. package/lib/DTableFiltersPopover/widgets/filter-list/index.css +7 -7
  13. package/lib/DTableModalHeader/index.js +3 -10
  14. package/lib/DTableSelect/dtable-select-label.css +8 -3
  15. package/lib/DTableSelect/dtable-select-label.js +1 -1
  16. package/lib/DTableSelect/index.js +3 -3
  17. package/lib/DTableSelect/select-dropdown-indicator/index.css +16 -0
  18. package/lib/DTableSelect/select-dropdown-indicator/index.js +24 -0
  19. package/lib/DTableSelect/user-select.css +7 -46
  20. package/lib/DTableSelect/utils.js +170 -79
  21. package/lib/FieldDisplaySetting/index.js +1 -1
  22. package/lib/SelectItem/index.js +1 -1
  23. package/lib/SelectOptionGroup/KeyCodes.js +96 -4
  24. package/lib/SelectOptionGroup/index.css +44 -54
  25. package/lib/SelectOptionGroup/index.js +35 -18
  26. package/lib/SelectOptionGroup/option.js +16 -4
  27. package/lib/assets/icons/close.svg +1 -0
  28. package/lib/assets/icons/down.svg +3 -0
  29. package/lib/index.js +3 -10
  30. package/package.json +1 -1
  31. package/lib/DTableCustomizeCollaboratorSelect/index.css +0 -86
  32. package/lib/DTableCustomizeCollaboratorSelect/index.js +0 -158
  33. package/lib/DTableGroupSelect/index.css +0 -96
  34. package/lib/DTableGroupSelect/index.js +0 -131
  35. package/lib/DTableGroupSelect/option.js +0 -42
  36. package/lib/DTableGroupSelect/select-option-group.css +0 -54
  37. package/lib/DTableGroupSelect/select-option-group.js +0 -227
  38. package/lib/DTableModalHeader/index.css +0 -22
@@ -3,19 +3,35 @@
3
3
  height: auto !important;
4
4
  min-height: 38px;
5
5
  max-width: calc(100% - 10px);
6
+ padding: .375rem 40px .375rem 1rem;
7
+ position: relative;
8
+ }
9
+
10
+ .dtable-ui-selected-users-container.focus {
11
+ border: 1px solid var(--bs-bg-border-color) !important;
6
12
  }
7
13
 
8
14
  .dtable-ui-selected-users-container .dtable-ui-user-select-placeholder {
9
- color: #808080;
15
+ color: var(--bs-icon-color);
16
+ }
17
+
18
+ .select-dropdown-indicator {
19
+ margin-left: -2px;
20
+ position: absolute;
21
+ right: 16px;
22
+ top: 50%;
23
+ transform: translateY(-50%)
24
+ }
25
+
26
+ .select-dropdown-indicator .multicolor-icon {
27
+ font-size: 12px;
28
+ width: 12px;
29
+ height: 12px;
10
30
  }
11
31
 
12
32
  .dtable-ui-user-select-popover .popover {
13
33
  width: 385px;
14
34
  max-width: 385px;
15
- background: var(--bs-popover-bg);
16
- border: 1px solid var(--bs-border-secondary-color);
17
- border-radius: 4px;
18
- box-shadow: var(--bs-border-secondary-shadow);
19
35
  margin-top: -4px;
20
36
  }
21
37
 
@@ -23,59 +39,48 @@
23
39
  position: relative;
24
40
  }
25
41
 
26
- .dtable-ui-user-select-container .dtable-ui-user-search-container {
27
- padding: 10px 10px 0 10px;
28
- }
29
-
30
- .dtable-ui-user-select-container .dtable-ui-user-search-container input {
31
- height: 28px;
32
- }
33
-
34
42
  .dtable-ui-user-select-container .dtable-ui-user-list-container {
35
43
  min-height: 160px;
36
44
  max-height: 200px;
37
- margin: 10px 0;
45
+ padding: 8px;
38
46
  overflow: auto;
47
+ position: relative;
39
48
  }
40
49
 
41
50
  .dtable-ui-user-select-container .dtable-ui-user-list-container .dtable-ui-user-item-container {
42
51
  display: flex;
43
52
  align-items: center;
44
53
  justify-content: space-between;
45
- height: 30px;
46
- padding: 0 10px;
54
+ height: 32px;
55
+ padding: 0 8px;
47
56
  font-size: 14px;
48
57
  cursor: pointer;
58
+ border-radius: 4px;
49
59
  }
50
60
 
51
61
  .dtable-ui-user-select-container .dtable-ui-user-list-container .dtable-ui-user-item-container:hover,
52
62
  .dtable-ui-user-select-container .dtable-ui-user-list-container .dtable-ui-user-item-container-highlight {
53
- background: #f5f5f5;
63
+ background-color: var(--bs-btn-background-hover);
54
64
  cursor: pointer;
55
65
  }
56
66
 
57
- .no-user-search-result {
58
- color: #666666;
59
- font-size: 14px;
60
- padding-left: 10px;
61
- padding: 10px;
62
- overflow: auto;
67
+ .dtable-ui-user-select-container .dtable-ui-user-list-container {
68
+ margin: 0 !important;
63
69
  }
64
70
 
65
71
  .dtable-ui-user-select-popover .popover .dtable-ui-user-item {
66
72
  background: transparent;
67
73
  }
68
74
 
69
- .dtable-ui-user-list-container .dtable-ui-collaborator-check-icon .dtable-icon-check-mark {
70
- color: #798d99;
71
- font-size: 12px;
75
+ .dtable-ui-user-list-container .dtable-ui-collaborator-check-icon .dtable-icon-check {
76
+ color: var(--bs-icon-color);
77
+ font-size: 14px;
72
78
  }
73
79
 
74
- /* user-item */
75
80
  .dtable-ui-user-item {
76
81
  display: inline-flex;
77
82
  align-items: center;
78
- margin: 2px 10px 2px 0;
83
+ margin: 2px 4px 2px 0;
79
84
  padding: 0 8px 0 2px;
80
85
  height: 20px;
81
86
  font-size: 13px;
@@ -95,6 +100,7 @@
95
100
  justify-content: center;
96
101
  transform: translateY(0);
97
102
  flex-shrink: 0;
103
+ margin-right: 4px;
98
104
  }
99
105
 
100
106
  .dtable-ui-user-item .user-name {
@@ -125,3 +131,7 @@
125
131
  color: #666666;
126
132
  cursor: pointer;
127
133
  }
134
+
135
+ .dtable-ui-selected-users-container .dtable-ui-users-input {
136
+ padding-right: 37px;
137
+ }
@@ -10,10 +10,11 @@ var _react = require("react");
10
10
  var _classnames = _interopRequireDefault(require("classnames"));
11
11
  var _reactstrap = require("reactstrap");
12
12
  var _ClickOutside = _interopRequireDefault(require("../ClickOutside"));
13
- var _DTableSearchInput = _interopRequireDefault(require("../DTableSearchInput"));
13
+ var _DTableCustomizeSearchInput = _interopRequireDefault(require("../DTableCustomizeSearchInput"));
14
14
  var _userItem = _interopRequireDefault(require("./user-item"));
15
15
  var _lang = require("../lang");
16
16
  var _keyCodes = _interopRequireDefault(require("../constants/key-codes"));
17
+ var _DTableIcon = _interopRequireDefault(require("../DTableIcon"));
17
18
  require("./index.css");
18
19
  var _jsxRuntime = require("react/jsx-runtime");
19
20
  const AsyncUserSelect = _ref => {
@@ -29,7 +30,9 @@ const AsyncUserSelect = _ref => {
29
30
  _ref$selectedUsers = _ref.selectedUsers,
30
31
  selectedUsers = _ref$selectedUsers === void 0 ? [] : _ref$selectedUsers,
31
32
  loadOptions = _ref.loadOptions,
32
- modifySelectedUsers = _ref.modifySelectedUsers;
33
+ modifySelectedUsers = _ref.modifySelectedUsers,
34
+ _ref$showDeptBtn = _ref.showDeptBtn,
35
+ showDeptBtn = _ref$showDeptBtn === void 0 ? false : _ref$showDeptBtn;
33
36
  const _useState = (0, _react.useState)(false),
34
37
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
35
38
  isPopoverOpen = _useState2[0],
@@ -211,21 +214,30 @@ const AsyncUserSelect = _ref => {
211
214
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ClickOutside.default, {
212
215
  onClickOutside: onClickOutside,
213
216
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
214
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
217
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
215
218
  className: (0, _classnames.default)('dtable-ui-selected-users-container form-control d-flex align-items-center', className, {
216
219
  'focus': isPopoverOpen
217
220
  }),
218
221
  onClick: onTogglePopover,
219
222
  ref: selectorRef,
220
- children: [selectedUsers.map((user, index) => {
221
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_userItem.default, {
222
- user: user,
223
- deleteUser: deselectUser
224
- }, "dtable-ui-user-selector-selected-user-".concat(index));
225
- }), selectedUsers.length === 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
226
- className: "dtable-ui-user-select-placeholder",
227
- children: emptyPlaceholder || (0, _lang.getLocale)('Search_users')
228
- })]
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
+ })
229
241
  }), selectorRef.current && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Popover, {
230
242
  placement: "bottom-start",
231
243
  isOpen: isPopoverOpen,
@@ -238,14 +250,15 @@ const AsyncUserSelect = _ref => {
238
250
  ref: userSelectContainerRef,
239
251
  onMouseDown: e => e.stopPropagation(),
240
252
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
241
- className: "dtable-ui-user-search-container",
242
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableSearchInput.default, {
243
- autoFocus: true,
253
+ className: "seatable-select-search",
254
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableCustomizeSearchInput.default, {
255
+ className: "option-search-control",
244
256
  placeholder: searchPlaceholder || (0, _lang.getLocale)('Search_users'),
245
- value: searchValue,
246
- wait: 200,
247
257
  onChange: onSearchValueChanged,
248
- onKeyDown: onKeyDown
258
+ clearValue: () => onSearchValueChanged(''),
259
+ autoFocus: true,
260
+ isClearable: true,
261
+ value: searchValue
249
262
  })
250
263
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
251
264
  className: "dtable-ui-user-list-container",
@@ -263,7 +276,7 @@ const AsyncUserSelect = _ref => {
263
276
  }, "dtable-ui-user-selector-searched-user-".concat(index)), selectedUsers.find(u => u.email === user.email) && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
264
277
  className: "dtable-ui-collaborator-check-icon",
265
278
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
266
- className: "dtable-font dtable-icon-check-mark",
279
+ className: "dtable-font dtable-icon-check",
267
280
  "aria-hidden": "true"
268
281
  })
269
282
  })]
@@ -0,0 +1,75 @@
1
+ .seatable-search-input {
2
+ width: 100%;
3
+ padding: 6px 10px;
4
+ min-width: 170px;
5
+ position: relative;
6
+ padding: 0;
7
+ height: 32px;
8
+ border-bottom: 1px solid var(--bs-border-secondary-color);
9
+ }
10
+
11
+ .seatable-select-search {
12
+ border-bottom: 1px solid var(--bs-border-secondary-color);
13
+ height: 32px;
14
+ }
15
+
16
+ .select-search-control {
17
+ height: 100%;
18
+ border: none;
19
+ cursor: pointer;
20
+ display: block;
21
+ background-color: var(--bs-popover-bg);
22
+ font-weight: 400;
23
+ font-size: .875rem;
24
+ line-height: 1.6;
25
+ width: 100%;
26
+ padding: .375rem 1rem;
27
+ border-top-left-radius: 4px;
28
+ border-top-right-radius: 4px;
29
+ }
30
+
31
+ .select-search-control:focus {
32
+ outline: none;
33
+ box-shadow: none;
34
+ border: none;
35
+ cursor: pointer;
36
+ height: 100%;
37
+ }
38
+
39
+ .clear-icon-x {
40
+ position: absolute;
41
+ display: flex;
42
+ justify-content: center;
43
+ align-items: center;
44
+ min-width: 20px;
45
+ pointer-events: auto;
46
+ color: var(--bs-icon-color);
47
+ right: 13px;
48
+ top: 6px;
49
+ z-index: 1;
50
+ height: 20px;
51
+ width: 20px;
52
+ cursor: pointer;
53
+ border-radius: 3px;
54
+ }
55
+
56
+ .clear-icon-x .multicolor-icon {
57
+ font-size: 12px;
58
+ }
59
+
60
+ .clear-icon-x:hover {
61
+ background-color: var(--bs-btn-background-hover);
62
+ }
63
+
64
+ .seatable-search-input .none-search-result {
65
+ height: 100px;
66
+ width: 100%;
67
+ padding: 10px;
68
+ color: var(--bs-icon-color);
69
+ }
70
+
71
+ .dtable-ui-user-select-popover .select-search-control,
72
+ .dtable-popover .select-search-control {
73
+ border-top-left-radius: 8px;
74
+ border-top-right-radius: 8px;
75
+ }
@@ -0,0 +1,133 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = void 0;
9
+ var _react = _interopRequireWildcard(require("react"));
10
+ var _classnames = _interopRequireDefault(require("classnames"));
11
+ var _DTableIcon = _interopRequireDefault(require("../DTableIcon"));
12
+ require("./index.css");
13
+ var _jsxRuntime = require("react/jsx-runtime");
14
+ class DTableCustomizeSearchInput extends _react.Component {
15
+ constructor(props) {
16
+ super(props);
17
+ this.onCompositionStart = () => {
18
+ this.isInputtingChinese = true;
19
+ };
20
+ this.onChange = e => {
21
+ this.timer && clearTimeout(this.timer);
22
+ const _this$props = this.props,
23
+ onChange = _this$props.onChange,
24
+ _this$props$wait = _this$props.wait,
25
+ wait = _this$props$wait === void 0 ? 100 : _this$props$wait;
26
+ let text = e.target.value;
27
+ this.setState({
28
+ searchValue: text || ''
29
+ }, () => {
30
+ if (this.isInputtingChinese) return;
31
+ this.timer = setTimeout(() => {
32
+ onChange && onChange(this.state.searchValue.trim());
33
+ }, wait);
34
+ });
35
+ };
36
+ this.onCompositionEnd = e => {
37
+ this.isInputtingChinese = false;
38
+ this.onChange(e);
39
+ };
40
+ this.clearSearch = e => {
41
+ e && e.stopPropagation && e.stopPropagation();
42
+ const clearValue = this.props.clearValue;
43
+ this.setState({
44
+ searchValue: ''
45
+ }, () => {
46
+ clearValue && clearValue();
47
+ });
48
+ };
49
+ this.setFocus = isSelectAllText => {
50
+ if (this.inputRef === document.activeElement) return;
51
+ this.inputRef.focus();
52
+ if (isSelectAllText) {
53
+ const txtLength = this.state.searchValue.length;
54
+ this.inputRef.setSelectionRange(0, txtLength);
55
+ }
56
+ };
57
+ this.renderClear = () => {
58
+ const _this$props2 = this.props,
59
+ isClearable = _this$props2.isClearable,
60
+ clearClassName = _this$props2.clearClassName;
61
+ const searchValue = this.state.searchValue;
62
+ if (!isClearable || !searchValue) return null;
63
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
64
+ className: (0, _classnames.default)('clear-icon-x', clearClassName),
65
+ onClick: this.clearSearch,
66
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableIcon.default, {
67
+ symbol: "close",
68
+ color: "var(--bs-icon-secondary-color)"
69
+ })
70
+ });
71
+ };
72
+ this.state = {
73
+ searchValue: props.value || ''
74
+ };
75
+ this.isInputtingChinese = false;
76
+ this.timer = null;
77
+ this.inputRef = null;
78
+ }
79
+ componentDidMount() {
80
+ if (this.props.autoFocus && this.inputRef && this.inputRef !== document.activeElement) {
81
+ setTimeout(() => {
82
+ this.inputRef.focus();
83
+ }, 0);
84
+ }
85
+ }
86
+ UNSAFE_componentWillReceiveProps(nextProps) {
87
+ if (nextProps.value !== this.props.value) {
88
+ this.setState({
89
+ searchValue: nextProps.value
90
+ });
91
+ }
92
+ }
93
+ componentWillUnmount() {
94
+ this.timer && clearTimeout(this.timer);
95
+ this.timer = null;
96
+ this.inputRef = null;
97
+ }
98
+ render() {
99
+ const _this$props3 = this.props,
100
+ placeholder = _this$props3.placeholder,
101
+ autoFocus = _this$props3.autoFocus,
102
+ className = _this$props3.className,
103
+ onKeyDown = _this$props3.onKeyDown,
104
+ _this$props3$disabled = _this$props3.disabled,
105
+ disabled = _this$props3$disabled === void 0 ? false : _this$props3$disabled,
106
+ _this$props3$style = _this$props3.style,
107
+ style = _this$props3$style === void 0 ? {} : _this$props3$style,
108
+ isClearable = _this$props3.isClearable,
109
+ _this$props3$isMultip = _this$props3.isMultiple,
110
+ isMultiple = _this$props3$isMultip === void 0 ? false : _this$props3$isMultip;
111
+ const searchValue = this.state.searchValue;
112
+ const inputWidth = isClearable && searchValue && !isMultiple ? 'calc(100% - 40px)' : '100%';
113
+ style.width = inputWidth;
114
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
115
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
116
+ type: "text",
117
+ name: "search-input",
118
+ value: searchValue,
119
+ className: (0, _classnames.default)('select-search-control', className),
120
+ onChange: this.onChange,
121
+ autoFocus: autoFocus,
122
+ placeholder: placeholder,
123
+ onCompositionStart: this.onCompositionStart,
124
+ onCompositionEnd: this.onCompositionEnd,
125
+ onKeyDown: onKeyDown,
126
+ disabled: disabled,
127
+ style: style,
128
+ ref: ref => this.inputRef = ref
129
+ }), this.renderClear()]
130
+ });
131
+ }
132
+ }
133
+ var _default = exports.default = DTableCustomizeSearchInput;
@@ -1,100 +1,178 @@
1
- .dtable-select {
1
+ .seatable-customize-select {
2
2
  position: relative;
3
- }
4
-
5
- .dtable-select.custom-select {
6
3
  display: flex;
7
- padding: 0 10px;
8
- border-radius: 3px;
4
+ padding: 0 16px;
5
+ border-radius: 4px;
9
6
  align-items: center;
10
7
  justify-content: space-between;
11
8
  max-width: 900px;
12
9
  user-select: none;
13
- -webkit-user-select: none;
14
- -moz-user-select: none;
15
- -o-user-select: none;
16
- -ms-user-select: none;
17
10
  text-align: left;
11
+ line-height: 1.5;
12
+ background-image: none;
13
+ font-size: 14px;
14
+ color: var(--bs-body-color);
15
+ border: 1px solid rgba(0, 40, 100, 0.12);
18
16
  }
19
17
 
20
- .dtable-select.custom-select:focus,
21
- .dtable-select.custom-select.focus {
22
- border-color: #1991eb !important;
23
- box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25);
18
+ .seatable-customize-select:focus,
19
+ .seatable-customize-select.focus {
20
+ border: 1px solid var(--bs-bg-border-color) !important;
24
21
  }
25
22
 
26
- .dtable-select.custom-select.disabled:focus,
27
- .dtable-select.custom-select.focus.disabled,
28
- .dtable-select.custom-select.disabled:hover {
23
+ .seatable-customize-select.disabled:focus,
24
+ .seatable-customize-select.focus.disabled,
25
+ .seatable-customize-select.disabled:hover {
29
26
  border-color: rgba(0, 40, 100, 0.12) !important;
30
27
  box-shadow: unset;
31
28
  cursor: default;
32
29
  }
33
30
 
34
- .dtable-select.custom-select:hover {
31
+ .seatable-customize-select:hover {
35
32
  cursor: pointer;
36
- border-color: rgb(179, 179, 179);
37
- }
38
-
39
- .dtable-select .dtable-icon-down3 {
40
- display: inline-block;
41
- font-size: 12px;
42
- color: #999;
43
- transition: all 0.1s;
33
+ border-color: var(--bs-border-color);
44
34
  }
45
35
 
46
- .dtable-select .dtable-icon-down3:hover {
47
- color: #555;
36
+ .seatable-customize-select .seatable-multicolor-icon-down {
37
+ width: 12px;
38
+ height: 12px;
39
+ color: var(--bs-icon-color);
48
40
  }
49
41
 
50
- .dtable-select .selected-option {
42
+ .seatable-customize-select .selected-option {
51
43
  display: flex;
52
44
  flex: 1;
53
45
  overflow: hidden;
54
46
  flex-wrap: nowrap;
55
47
  align-items: center;
56
48
  justify-content: space-between;
57
- background: #fff;
49
+ background: inherit;
50
+ height: 20px;
51
+ }
52
+
53
+ .seatable-check-color {
54
+ color: var(--bs-icon-color);
58
55
  }
59
56
 
60
- .dtable-select.dtable-ui-collaborator-selector .option-group .option-group-content,
61
- .dtable-select.selector-group .option-group .option-group-content {
57
+ .seatable-customize-select.dtable-ui-collaborator-selector .seatable-option-group .seatable-option-group-content,
58
+ .seatable-customize-select.selector-group .seatable-option-group .seatable-option-group-content {
62
59
  padding: 10px;
63
60
  }
64
61
 
65
- .dtable-select.custom-select.dtable-ui-collaborator-selector .option-group .option-group-content {
62
+ .seatable-customize-select.dtable-ui-collaborator-selector .seatable-option-group .seatable-option-group-content {
66
63
  padding: 10px 0;
67
64
  }
68
65
 
69
- .dtable-select.custom-select.dtable-ui-collaborator-selector .option {
66
+ .seatable-customize-select.dtable-ui-collaborator-selector .option {
70
67
  padding: 5px 0 5px 10px !important;
71
68
  line-height: 20px;
72
69
  }
73
70
 
74
- .dtable-select.selector-group .option {
71
+ .seatable-customize-select.selector-group .option {
75
72
  height: 30px;
76
73
  display: flex;
77
74
  align-items: center;
78
75
  }
79
76
 
80
- .dtable-select.selector-group .select-group-option {
77
+ .seatable-customize-select.selector-group .select-group-option {
81
78
  justify-content: space-between;
82
79
  }
83
80
 
84
- .dtable-select.selector-group .selected-option .selected-group {
81
+ .seatable-customize-select.selector-group .selected-option .selected-group {
85
82
  padding: 0 2px;
86
83
  background: #eceff4;
87
84
  border-radius: 3px;
88
85
  }
89
86
 
90
- .dtable-select .selected-option-show {
91
- overflow: hidden;
87
+ .seatable-customize-select .select-placeholder {
88
+ line-height: 1;
89
+ font-size: 14px;
90
+ white-space: nowrap;
91
+ color: var(--bs-bg-placeholder-color);
92
+ margin-right: 8px;
93
+ }
94
+
95
+ .seatable-customize-select .disabled .select-placeholder {
96
+ opacity: 0.65;
97
+ }
98
+
99
+ .seatable-customize-select .selected-option-show {
100
+ height: 20px;
101
+ line-height: 20px;
102
+ margin-right: 8px;
103
+ width: calc(100% - 20px);
104
+ display: flex;
92
105
  text-overflow: ellipsis;
106
+ overflow: hidden;
93
107
  white-space: nowrap;
94
108
  }
95
109
 
96
- .dtable-select .select-placeholder {
97
- line-height: 1;
110
+ .seatable-customize-select .selected-option .multicolor-icon {
111
+ font-size: 12px;
112
+ }
113
+
114
+ .seatable-customize-select .multiple-check-icon,
115
+ .seatable-customize-select .header-icon .dtable-font,
116
+ .seatable-option-group .select-label .header-icon .dtable-font {
117
+ color: var(--bs-icon-secondary-color) !important;
118
+ cursor: default;
98
119
  font-size: 14px;
99
- white-space: nowrap;
120
+ }
121
+
122
+ .seatable-customize-select .header-icon {
123
+ display: inline-block;
124
+ padding: 0 .5rem 0 0!important;
125
+ margin-left: 0 !important;
126
+ }
127
+
128
+ .selector-group-select .selected-option-show .selected-option-item {
129
+ align-items: center;
130
+ border-radius: 4px;
131
+ display: flex;
132
+ height: 24px;
133
+ line-height: 24px;
134
+ margin-right: 4px;
135
+ padding: 0 6px 0 6px;
136
+ background-color: #f7f7f5;
137
+ }
138
+
139
+ .selector-group-select .selected-option-show .selected-option-item .selected-option-item-name {
140
+ color: #212519;
141
+ font-size: 14px;
142
+ margin-right: 8px
143
+ }
144
+
145
+ .selector-group-select .dtable-icon-x {
146
+ color: var(--bs-icon-color);
147
+ font-size: 12px;
148
+ display: flex;
149
+ align-items: center;
150
+ justify-content: center;
151
+ height: 100%;
152
+ }
153
+
154
+ .selector-group-select .selected-option-show {
155
+ display: flex;
156
+ flex-wrap: wrap;
157
+ gap: 4px;
158
+ height: auto;
159
+ }
160
+
161
+ .selector-group-select {
162
+ padding: 7px 16px 7px 8px;
163
+ }
164
+
165
+ .selector-group-select .selected-option {
166
+ align-items: center;
167
+ display: flex;
168
+ flex: 1 1;
169
+ flex-wrap: nowrap;
170
+ justify-content: space-between;
171
+ overflow: hidden;
172
+ height: auto;
173
+ min-height: 24px
174
+ }
175
+
176
+ .selector-group-select {
177
+ height: auto;
100
178
  }