dtable-ui-component 7.0.0 → 7.0.1-beta.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.
Files changed (32) hide show
  1. package/lib/AsyncUserSelect/index.css +36 -18
  2. package/lib/AsyncUserSelect/index.js +29 -18
  3. package/lib/DTableCustomizeSearchInput/index.css +81 -0
  4. package/lib/DTableCustomizeSearchInput/index.js +136 -0
  5. package/lib/DTableCustomizeSelect/index.css +120 -42
  6. package/lib/DTableCustomizeSelect/index.js +9 -4
  7. package/lib/DTableFiltersPopover/utils/filter-item-utils.js +7 -19
  8. package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +5 -9
  9. package/lib/DTableFiltersPopover/widgets/filter-item.js +15 -7
  10. package/lib/DTableFiltersPopover/widgets/filter-list/index.css +3 -3
  11. package/lib/DTableSelect/dtable-select-label.css +4 -4
  12. package/lib/DTableSelect/dtable-select-label.js +1 -1
  13. package/lib/DTableSelect/index.js +3 -3
  14. package/lib/DTableSelect/select-dropdown-indicator/index.css +16 -0
  15. package/lib/DTableSelect/select-dropdown-indicator/index.js +24 -0
  16. package/lib/DTableSelect/user-select.css +7 -46
  17. package/lib/DTableSelect/utils.js +165 -79
  18. package/lib/SelectOptionGroup/KeyCodes.js +96 -4
  19. package/lib/SelectOptionGroup/index.css +74 -52
  20. package/lib/SelectOptionGroup/index.js +35 -26
  21. package/lib/SelectOptionGroup/option.js +16 -4
  22. package/lib/assets/icons/close.svg +1 -0
  23. package/lib/assets/icons/down.svg +3 -0
  24. package/lib/index.js +3 -10
  25. package/package.json +1 -1
  26. package/lib/DTableCustomizeCollaboratorSelect/index.css +0 -86
  27. package/lib/DTableCustomizeCollaboratorSelect/index.js +0 -158
  28. package/lib/DTableGroupSelect/index.css +0 -96
  29. package/lib/DTableGroupSelect/index.js +0 -131
  30. package/lib/DTableGroupSelect/option.js +0 -42
  31. package/lib/DTableGroupSelect/select-option-group.css +0 -54
  32. package/lib/DTableGroupSelect/select-option-group.js +0 -227
@@ -3,10 +3,30 @@
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 {
@@ -23,34 +43,28 @@
23
43
  position: relative;
24
44
  }
25
45
 
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
46
  .dtable-ui-user-select-container .dtable-ui-user-list-container {
35
47
  min-height: 160px;
36
48
  max-height: 200px;
37
- margin: 10px 0;
49
+ padding: 8px;
38
50
  overflow: auto;
51
+ position: relative;
39
52
  }
40
53
 
41
54
  .dtable-ui-user-select-container .dtable-ui-user-list-container .dtable-ui-user-item-container {
42
55
  display: flex;
43
56
  align-items: center;
44
57
  justify-content: space-between;
45
- height: 30px;
46
- padding: 0 10px;
58
+ height: 32px;
59
+ padding: 0 8px;
47
60
  font-size: 14px;
48
61
  cursor: pointer;
62
+ border-radius: 4px;
49
63
  }
50
64
 
51
65
  .dtable-ui-user-select-container .dtable-ui-user-list-container .dtable-ui-user-item-container:hover,
52
66
  .dtable-ui-user-select-container .dtable-ui-user-list-container .dtable-ui-user-item-container-highlight {
53
- background: #f5f5f5;
67
+ background-color: var(--bs-btn-background-hover);
54
68
  cursor: pointer;
55
69
  }
56
70
 
@@ -66,16 +80,15 @@
66
80
  background: transparent;
67
81
  }
68
82
 
69
- .dtable-ui-user-list-container .dtable-ui-collaborator-check-icon .dtable-icon-check-mark {
70
- color: #798d99;
71
- font-size: 12px;
83
+ .dtable-ui-user-list-container .dtable-ui-collaborator-check-icon .dtable-icon-check {
84
+ color: #666666;
85
+ font-size: 14px;
72
86
  }
73
87
 
74
- /* user-item */
75
88
  .dtable-ui-user-item {
76
89
  display: inline-flex;
77
90
  align-items: center;
78
- margin: 2px 10px 2px 0;
91
+ margin: 2px 4px 2px 0;
79
92
  padding: 0 8px 0 2px;
80
93
  height: 20px;
81
94
  font-size: 13px;
@@ -95,6 +108,7 @@
95
108
  justify-content: center;
96
109
  transform: translateY(0);
97
110
  flex-shrink: 0;
111
+ margin-right: 4px;
98
112
  }
99
113
 
100
114
  .dtable-ui-user-item .user-name {
@@ -125,3 +139,7 @@
125
139
  color: #666666;
126
140
  cursor: pointer;
127
141
  }
142
+
143
+ .dtable-ui-selected-users-container .dtable-ui-users-input {
144
+ padding-right: 37px;
145
+ }
@@ -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 => {
@@ -211,21 +212,30 @@ const AsyncUserSelect = _ref => {
211
212
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ClickOutside.default, {
212
213
  onClickOutside: onClickOutside,
213
214
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
214
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
215
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
215
216
  className: (0, _classnames.default)('dtable-ui-selected-users-container form-control d-flex align-items-center', className, {
216
217
  'focus': isPopoverOpen
217
218
  }),
218
219
  onClick: onTogglePopover,
219
220
  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
- })]
221
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
222
+ className: "dtable-ui-users-input",
223
+ children: [selectedUsers.map((user, index) => {
224
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_userItem.default, {
225
+ user: user,
226
+ deleteUser: deselectUser
227
+ }, "dtable-ui-user-selector-selected-user-".concat(index));
228
+ }), selectedUsers.length === 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
229
+ className: "dtable-ui-user-select-placeholder",
230
+ children: emptyPlaceholder || (0, _lang.getLocale)('Search_users')
231
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
232
+ className: "select-dropdown-indicator d-inline-flex align-items-center",
233
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableIcon.default, {
234
+ symbol: "down",
235
+ color: "var(--bs-icon-color)"
236
+ })
237
+ })]
238
+ })
229
239
  }), selectorRef.current && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Popover, {
230
240
  placement: "bottom-start",
231
241
  isOpen: isPopoverOpen,
@@ -238,14 +248,15 @@ const AsyncUserSelect = _ref => {
238
248
  ref: userSelectContainerRef,
239
249
  onMouseDown: e => e.stopPropagation(),
240
250
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
241
- className: "dtable-ui-user-search-container",
242
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableSearchInput.default, {
243
- autoFocus: true,
251
+ className: "seatable-option-group-search",
252
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableCustomizeSearchInput.default, {
253
+ className: "option-search-control",
244
254
  placeholder: searchPlaceholder || (0, _lang.getLocale)('Search_users'),
245
- value: searchValue,
246
- wait: 200,
247
255
  onChange: onSearchValueChanged,
248
- onKeyDown: onKeyDown
256
+ clearValue: () => onSearchValueChanged(''),
257
+ autoFocus: true,
258
+ isClearable: true,
259
+ value: searchValue
249
260
  })
250
261
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
251
262
  className: "dtable-ui-user-list-container",
@@ -263,7 +274,7 @@ const AsyncUserSelect = _ref => {
263
274
  }, "dtable-ui-user-selector-searched-user-".concat(index)), selectedUsers.find(u => u.email === user.email) && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
264
275
  className: "dtable-ui-collaborator-check-icon",
265
276
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
266
- className: "dtable-font dtable-icon-check-mark",
277
+ className: "dtable-font dtable-icon-check",
267
278
  "aria-hidden": "true"
268
279
  })
269
280
  })]
@@ -0,0 +1,81 @@
1
+
2
+ .seatable-search-input {
3
+ width: 100%;
4
+ padding: 6px 10px;
5
+ min-width: 170px;
6
+ position: relative;
7
+ padding: 0;
8
+ height: 32px;
9
+ border-bottom: 1px solid var(--bs-border-color);
10
+ }
11
+
12
+ .seatable-search-input .form-control {
13
+ height: 100%;
14
+ border: none;
15
+ padding: .375rem 1rem;
16
+ cursor: pointer;
17
+ }
18
+
19
+ .seatable-search-input-multiple .form-control:focus,
20
+ .seatable-search-input .form-control:focus {
21
+ outline: none;
22
+ box-shadow: none;
23
+ }
24
+
25
+ .seatable-search-input .input-icon-addon {
26
+ z-index: 1;
27
+ pointer-events: auto;
28
+ min-width: 2.75rem !important;
29
+ }
30
+
31
+ .seatable-search-input .input-icon-addon svg {
32
+ color: var(--bs-body-secondary-color);
33
+ cursor: pointer;
34
+ }
35
+
36
+ .seatable-search-input .none-search-result {
37
+ height: 100px;
38
+ width: 100%;
39
+ padding: 10px;
40
+ color: var(--bs-body-secondary-color);
41
+ }
42
+
43
+
44
+ .seatable-search-input-multiple {
45
+ width: 100%;
46
+ padding: 6px 10px;
47
+ min-width: 170px;
48
+ position: relative;
49
+ height: 40px;
50
+ }
51
+
52
+ .seatable-search-input-multiple .form-control {
53
+ height: 30px;
54
+ padding: .375rem 2.5rem .375rem 1rem;
55
+ cursor: pointer;
56
+ }
57
+
58
+ .seatable-search-input-multiple .input-icon-addon {
59
+ z-index: 1;
60
+ pointer-events: auto;
61
+ min-width: 2.75rem !important;
62
+ top: 10px;
63
+ height: 30px;
64
+ right: 10px;
65
+ }
66
+
67
+ .seatable-search-input-multiple .input-icon-addon svg {
68
+ color: var(--bs-body-secondary-color);
69
+ cursor: pointer;
70
+ }
71
+
72
+ .seatable-search-input-multiple .none-search-result {
73
+ height: 100px;
74
+ width: 100%;
75
+ padding: 10px;
76
+ color: var(--bs-body-secondary-color);
77
+ }
78
+
79
+ .multiple-selects-editor-list .seatable-search-input-multiple {
80
+ padding: 10px 10px 0;
81
+ }
@@ -0,0 +1,136 @@
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)('search-text-clear input-icon-addon', clearClassName),
65
+ style: {
66
+ fontSize: '12px'
67
+ },
68
+ onClick: this.clearSearch,
69
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableIcon.default, {
70
+ symbol: "close",
71
+ color: "var(--bs-icon-secondary-color)"
72
+ })
73
+ });
74
+ };
75
+ this.state = {
76
+ searchValue: props.value || ''
77
+ };
78
+ this.isInputtingChinese = false;
79
+ this.timer = null;
80
+ this.inputRef = null;
81
+ }
82
+ componentDidMount() {
83
+ if (this.props.autoFocus && this.inputRef && this.inputRef !== document.activeElement) {
84
+ setTimeout(() => {
85
+ this.inputRef.focus();
86
+ }, 0);
87
+ }
88
+ }
89
+ UNSAFE_componentWillReceiveProps(nextProps) {
90
+ if (nextProps.value !== this.props.value) {
91
+ this.setState({
92
+ searchValue: nextProps.value
93
+ });
94
+ }
95
+ }
96
+ componentWillUnmount() {
97
+ this.timer && clearTimeout(this.timer);
98
+ this.timer = null;
99
+ this.inputRef = null;
100
+ }
101
+ render() {
102
+ const _this$props3 = this.props,
103
+ placeholder = _this$props3.placeholder,
104
+ autoFocus = _this$props3.autoFocus,
105
+ className = _this$props3.className,
106
+ onKeyDown = _this$props3.onKeyDown,
107
+ _this$props3$disabled = _this$props3.disabled,
108
+ disabled = _this$props3$disabled === void 0 ? false : _this$props3$disabled,
109
+ _this$props3$style = _this$props3.style,
110
+ style = _this$props3$style === void 0 ? {} : _this$props3$style,
111
+ isClearable = _this$props3.isClearable,
112
+ _this$props3$isMultip = _this$props3.isMultiple,
113
+ isMultiple = _this$props3$isMultip === void 0 ? false : _this$props3$isMultip;
114
+ const searchValue = this.state.searchValue;
115
+ const inputWidth = isClearable && searchValue && !isMultiple ? 'calc(100% - 40px)' : '100%';
116
+ style.width = inputWidth;
117
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
118
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
119
+ type: "text",
120
+ name: "search-input",
121
+ value: searchValue,
122
+ className: (0, _classnames.default)('form-control', className),
123
+ onChange: this.onChange,
124
+ autoFocus: autoFocus,
125
+ placeholder: placeholder,
126
+ onCompositionStart: this.onCompositionStart,
127
+ onCompositionEnd: this.onCompositionEnd,
128
+ onKeyDown: onKeyDown,
129
+ disabled: disabled,
130
+ style: style,
131
+ ref: ref => this.inputRef = ref
132
+ }), this.renderClear()]
133
+ });
134
+ }
135
+ }
136
+ 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
  }
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.default = void 0;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
10
  var _SelectOptionGroup = _interopRequireDefault(require("../SelectOptionGroup"));
11
+ var _DTableIcon = _interopRequireDefault(require("../DTableIcon"));
11
12
  var _classnames = _interopRequireDefault(require("classnames"));
12
13
  var _ModalPortal = _interopRequireDefault(require("../ModalPortal"));
13
14
  require("./index.css");
@@ -23,7 +24,7 @@ class DTableCustomizeSelect extends _react.Component {
23
24
  */
24
25
  if (this.state.isShowSelectOptions) event.stopPropagation();
25
26
  let eventClassName = event.target.className;
26
- if (this.props.isLocked || eventClassName.indexOf('option-search-control') > -1 || eventClassName === 'option-group-search') return;
27
+ if (this.props.isLocked || eventClassName.indexOf('option-search-control') > -1 || eventClassName === 'seatable-option-group-search') return;
27
28
  // Prevent closing by pressing the spacebar in the search input
28
29
  if (event.target.value === '') return;
29
30
  this.setState({
@@ -93,7 +94,7 @@ class DTableCustomizeSelect extends _react.Component {
93
94
  component = _this$props2.component;
94
95
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
95
96
  ref: node => this.selector = node,
96
- className: (0, _classnames.default)('dtable-select custom-select', {
97
+ className: (0, _classnames.default)('seatable-customize-select custom-select', {
97
98
  'focus': this.state.isShowSelectOptions
98
99
  }, {
99
100
  'disabled': isLocked
@@ -107,8 +108,12 @@ class DTableCustomizeSelect extends _react.Component {
107
108
  }) : /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
108
109
  className: "select-placeholder",
109
110
  children: placeholder
110
- }), !isLocked && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
111
- className: "dtable-font dtable-icon-down3"
111
+ }), !isLocked && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
112
+ className: "d-inline-flex align-items-center",
113
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableIcon.default, {
114
+ symbol: "down",
115
+ color: "var(--bs-icon-color)"
116
+ })
112
117
  })]
113
118
  }), this.state.isShowSelectOptions && !isInModal && /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectOptionGroup.default, {
114
119
  value: value,