dtable-ui-component 6.0.124-beta.p1 → 6.0.125-vjs.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 (48) hide show
  1. package/lib/AsyncUserSelect/index.css +51 -12
  2. package/lib/AsyncUserSelect/index.js +27 -16
  3. package/lib/DTableColorPicker/ColorPickerPortal/index.js +1 -1
  4. package/lib/DTableColorPicker/index.css +2 -4
  5. package/lib/DTableCommonAddTool/index.css +2 -2
  6. package/lib/DTableCustomFooter/index.css +3 -3
  7. package/lib/DTableCustomizeCollaboratorSelect/index.js +20 -2
  8. package/lib/DTableCustomizeSearchInput/index.css +82 -0
  9. package/lib/DTableCustomizeSearchInput/index.js +141 -0
  10. package/lib/DTableCustomizeSelect/index.css +61 -43
  11. package/lib/DTableCustomizeSelect/index.js +18 -12
  12. package/lib/DTableCustomizeSelect/select-option-group/KeyCodes.js +109 -0
  13. package/lib/DTableCustomizeSelect/select-option-group/index.css +128 -0
  14. package/lib/DTableCustomizeSelect/select-option-group/index.js +261 -0
  15. package/lib/DTableCustomizeSelect/select-option-group/option.js +48 -0
  16. package/lib/DTableCustomizeSelect/util.js +12 -0
  17. package/lib/DTableFiltersPopover/index.css +2 -2
  18. package/lib/DTableFiltersPopover/utils/filter-item-utils.js +2 -2
  19. package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +1 -1
  20. package/lib/DTableFiltersPopover/widgets/filter-list/index.css +5 -5
  21. package/lib/DTableGroupSelect/index.css +33 -5
  22. package/lib/DTableGroupSelect/index.js +1 -1
  23. package/lib/DTableGroupSelect/select-option-group.css +11 -15
  24. package/lib/DTableGroupSelect/select-option-group.js +12 -9
  25. package/lib/DTablePopover/index.js +1 -2
  26. package/lib/DTableSelect/index.js +3 -3
  27. package/lib/DTableSelect/select-dropdown-indicator/index.css +16 -0
  28. package/lib/DTableSelect/select-dropdown-indicator/index.js +26 -0
  29. package/lib/DTableSelect/select-style.js +133 -0
  30. package/lib/DTableSelect/user-select.css +7 -46
  31. package/lib/DTableSelect/utils.js +74 -11
  32. package/lib/DTableSwitch/index.css +1 -0
  33. package/lib/ImagePreviewerLightbox/index.js +2 -2
  34. package/lib/NotificationPopover/index.css +12 -8
  35. package/lib/NotificationPopover/index.js +3 -3
  36. package/lib/SelectOptionGroup/index.css +50 -25
  37. package/lib/SelectOptionGroup/index.js +47 -8
  38. package/lib/assets/icons/close.svg +1 -0
  39. package/lib/assets/icons/down.svg +3 -0
  40. package/lib/index.js +7 -0
  41. package/lib/locales/de.json +2 -2
  42. package/lib/locales/en.json +2 -2
  43. package/lib/locales/es.json +2 -2
  44. package/lib/locales/fr.json +2 -2
  45. package/lib/locales/pt.json +2 -2
  46. package/lib/locales/ru.json +2 -2
  47. package/lib/locales/zh-CN.json +2 -2
  48. package/package.json +1 -1
@@ -3,6 +3,7 @@
3
3
  height: auto !important;
4
4
  min-height: 38px;
5
5
  max-width: calc(100% - 10px);
6
+ padding: 0.4375rem 1rem 0.4375rem 0.5rem;
6
7
  }
7
8
 
8
9
  .dtable-ui-selected-users-container .dtable-ui-user-select-placeholder {
@@ -12,40 +13,57 @@
12
13
  .dtable-ui-user-select-popover .popover {
13
14
  width: 385px;
14
15
  max-width: 385px;
16
+ border-radius: 4px;
17
+ fill: #FFFFFF 100%;
18
+ background-color: #FFFFFF;
19
+ border: 1px solid #EEEEEE;
20
+ border-radius: 4px;
21
+ box-shadow: 0px 6px 14px rgba(0, 0, 0, 0.1);
15
22
  }
16
23
 
17
24
  .dtable-ui-user-select-container {
18
25
  position: relative;
19
26
  }
20
27
 
21
- .dtable-ui-user-select-container .dtable-ui-user-search-container {
22
- padding: 10px 10px 0 10px;
23
- }
24
-
25
28
  .dtable-ui-user-select-container .dtable-ui-user-search-container input {
26
- height: 28px;
29
+ height: 32px;
27
30
  }
28
31
 
29
32
  .dtable-ui-user-select-container .dtable-ui-user-list-container {
30
33
  min-height: 160px;
31
34
  max-height: 200px;
32
- margin: 10px 0;
35
+ padding: 8px !important;
33
36
  overflow: auto;
37
+ position: relative;
38
+ }
39
+
40
+ .dtable-ui-user-select-container .form-control {
41
+ border: none;
42
+ border-bottom: 1px solid rgb(0 40 100 / 12%) !important;
43
+ border-radius: 4px 4px 0 0;
44
+ padding: .375rem 1rem !important;
45
+ }
46
+
47
+ .dtable-ui-user-select-container .form-control:focus {
48
+ border-color: transparent !important;
49
+ border-bottom: 1px solid rgb(0 40 100 / 12%) !important;
50
+ box-shadow: none !important;
34
51
  }
35
52
 
36
53
  .dtable-ui-user-select-container .dtable-ui-user-list-container .dtable-ui-user-item-container {
37
54
  display: flex;
38
55
  align-items: center;
39
56
  justify-content: space-between;
40
- height: 30px;
41
- padding: 0 10px;
57
+ height: 32px;
58
+ padding: 0 8px;
42
59
  font-size: 14px;
43
60
  cursor: pointer;
61
+ border-radius: 4px;
44
62
  }
45
63
 
46
64
  .dtable-ui-user-select-container .dtable-ui-user-list-container .dtable-ui-user-item-container:hover,
47
65
  .dtable-ui-user-select-container .dtable-ui-user-list-container .dtable-ui-user-item-container-highlight {
48
- background: #f5f5f5;
66
+ background-color: rgba(0, 0, 0, 0.04);
49
67
  cursor: pointer;
50
68
  }
51
69
 
@@ -61,16 +79,33 @@
61
79
  background: transparent;
62
80
  }
63
81
 
64
- .dtable-ui-user-list-container .dtable-ui-collaborator-check-icon .dtable-icon-check-mark {
65
- color: #798d99;
82
+ .dtable-ui-user-list-container .dtable-ui-collaborator-check-icon .dtable-icon-check {
83
+ color: #666666;
84
+ font-size: 14px;
85
+ }
86
+
87
+ .dtable-ui-user-select-container .dtable-ui-user-search-container .search-clear-btn {
88
+ position: absolute;
89
+ top: 5px;
90
+ right: 10px;
91
+ height: 22px;
92
+ line-height: 22px;
93
+ width: 28px;
94
+ text-align: center;
95
+ color: #999;
96
+ cursor: pointer;
97
+ }
98
+
99
+ .dtable-ui-user-select-container .dtable-ui-user-search-container .search-clear-btn .dtable-icon-x {
66
100
  font-size: 12px;
101
+ color: #999999;
67
102
  }
68
103
 
69
104
  /* user-item */
70
105
  .dtable-ui-user-item {
71
106
  display: inline-flex;
72
107
  align-items: center;
73
- margin: 2px 10px 2px 0;
108
+ margin: 2px 4px 2px 0;
74
109
  padding: 0 8px 0 2px;
75
110
  height: 20px;
76
111
  font-size: 13px;
@@ -120,3 +155,7 @@
120
155
  color: #666666;
121
156
  cursor: pointer;
122
157
  }
158
+
159
+ .dtable-ui-selected-users-container .dtable-ui-users-input {
160
+ padding-right: 37px;
161
+ }
@@ -190,42 +190,53 @@ const AsyncUserSelect = _ref => {
190
190
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ClickOutside.default, {
191
191
  onClickOutside: onClickOutside,
192
192
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
193
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
193
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
194
194
  className: (0, _classnames.default)('dtable-ui-selected-users-container form-control d-flex align-items-center', className, {
195
195
  'focus': isPopoverOpen
196
196
  }),
197
197
  onClick: onTogglePopover,
198
198
  ref: selectorRef,
199
- children: [selectedUsers.map((user, index) => {
200
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_userItem.default, {
201
- user: user,
202
- deleteUser: deselectUser
203
- }, "dtable-ui-user-selector-selected-user-".concat(index));
204
- }), selectedUsers.length === 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
205
- className: "dtable-ui-user-select-placeholder",
206
- children: emptyPlaceholder || (0, _lang.getLocale)('Search_users')
207
- })]
199
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
200
+ className: "dtable-ui-users-input",
201
+ children: [selectedUsers.map((user, index) => {
202
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_userItem.default, {
203
+ user: user,
204
+ deleteUser: deselectUser
205
+ }, "dtable-ui-user-selector-selected-user-".concat(index));
206
+ }), selectedUsers.length === 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
207
+ className: "dtable-ui-user-select-placeholder",
208
+ children: emptyPlaceholder || (0, _lang.getLocale)('Search_users')
209
+ })]
210
+ })
208
211
  }), selectorRef.current && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Popover, {
209
212
  placement: "bottom-start",
210
213
  isOpen: isPopoverOpen,
211
214
  target: selectorRef.current,
212
215
  hideArrow: true,
213
216
  fade: false,
214
- className: "dtable-ui-user-select-popover seatable-popover",
217
+ className: "dtable-ui-user-select-popover",
215
218
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
216
- className: "dtable-ui-user-select-container dtable-popover-container",
219
+ className: "dtable-ui-user-select-container",
217
220
  ref: userSelectContainerRef,
218
221
  onMouseDown: e => e.stopPropagation(),
219
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
222
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
220
223
  className: "dtable-ui-user-search-container",
221
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableSearchInput.default, {
224
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableSearchInput.default, {
222
225
  autoFocus: true,
223
226
  placeholder: searchPlaceholder || (0, _lang.getLocale)('Search_users'),
224
227
  value: searchValue,
225
228
  wait: 200,
226
229
  onChange: onSearchValueChanged,
227
230
  onKeyDown: onKeyDown
228
- })
231
+ }), searchValue && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
232
+ className: "search-clear-btn position-absolute",
233
+ onClick: () => onSearchValueChanged(''),
234
+ title: (0, _lang.getLocale)('Clear_search_text'),
235
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
236
+ "aria-hidden": "true",
237
+ className: "dtable-font dtable-icon-x"
238
+ })
239
+ })]
229
240
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
230
241
  className: "dtable-ui-user-list-container",
231
242
  ref: userListContainerRef,
@@ -242,7 +253,7 @@ const AsyncUserSelect = _ref => {
242
253
  }, "dtable-ui-user-selector-searched-user-".concat(index)), selectedUsers.find(u => u.email === user.email) && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
243
254
  className: "dtable-ui-collaborator-check-icon",
244
255
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
245
- className: "dtable-font dtable-icon-check-mark",
256
+ className: "dtable-font dtable-icon-check",
246
257
  "aria-hidden": "true"
247
258
  })
248
259
  })]
@@ -72,7 +72,7 @@ function ColorPickerPortal(_ref) {
72
72
  }, [target, scrollContainerId, throttleDelay, updatePosition]);
73
73
  if (!target) return null;
74
74
  return /*#__PURE__*/_reactDom.default.createPortal(/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
75
- className: "dtable-color-picker-portal dtable-popover-container",
75
+ className: "dtable-color-picker-portal",
76
76
  style: {
77
77
  position: 'fixed',
78
78
  zIndex: '1049',
@@ -2,14 +2,12 @@
2
2
  width: 240px;
3
3
  height: 370px;
4
4
  background-color: #fff;
5
+ border-radius: 3px;
5
6
  z-index: 100;
6
7
  padding: 0.75rem;
7
8
  line-height: 16px;
8
9
  position: absolute;
9
- margin-top: 8px;
10
- border: 1px solid #eee !important;
11
- border-radius: 8px !important;
12
- box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1) !important;
10
+ box-shadow: rgba(0, 0, 0, 0.3) 0px 0px 2px, rgba(0, 0, 0, 0.3) 0px 4px 4px;
13
11
  }
14
12
 
15
13
  .dtable-color-picker .chrome-picker {
@@ -7,8 +7,8 @@
7
7
  border-top: 1px solid #dedede;
8
8
  background: #fff;
9
9
  padding: 0 1rem;
10
- border-bottom-left-radius: 8px;
11
- border-bottom-right-radius: 8px;
10
+ border-bottom-left-radius: 3px;
11
+ border-bottom-right-radius: 3px;
12
12
  position: relative;
13
13
  }
14
14
 
@@ -4,9 +4,9 @@
4
4
  align-items: center;
5
5
  justify-content: flex-end;
6
6
  padding: 0.75rem;
7
- border-top: 0 6px 16px rgba(0, 0, 0, 0.1) !important;
8
- border-bottom-right-radius: 8px;
9
- border-bottom-left-radius: 8px;
7
+ border-top: 1px solid rgba(0, 40, 100, 0.12);
8
+ border-bottom-right-radius: 2px;
9
+ border-bottom-left-radius: 2px;
10
10
  }
11
11
 
12
12
  .dtable-custom-footer>* {
@@ -32,6 +32,22 @@ class CollaboratorSelect extends _react.Component {
32
32
  isShowSelectOptions: !this.state.isShowSelectOptions
33
33
  });
34
34
  };
35
+ this.onClick = event => {
36
+ const target = event.target;
37
+ const name = target.className;
38
+ const {
39
+ isShowSelectOptions
40
+ } = this.state;
41
+ if (!isShowSelectOptions || name === 'select-placeholder' || name.includes('icon-fork-number') || this.selector.contains(target)) {
42
+ return;
43
+ }
44
+ const {
45
+ isUsePopover
46
+ } = this.props;
47
+ if (isUsePopover && !this.collaboratorSelectPopoverRef.contains(target) || !isUsePopover && !this.selector.contains(target)) {
48
+ this.closeSelect();
49
+ }
50
+ };
35
51
  this.onMousedown = event => {
36
52
  const name = event.target.className;
37
53
  if (name === 'select-placeholder' || name.includes('icon-fork-number')) {
@@ -81,7 +97,8 @@ class CollaboratorSelect extends _react.Component {
81
97
  getFilterOptions: this.getFilterOptions,
82
98
  supportMultipleSelect: this.props.supportMultipleSelect,
83
99
  stopClickEvent: true,
84
- isShowSelected: true
100
+ isShowSelected: true,
101
+ onClickOutside: this.onClick
85
102
  });
86
103
  }
87
104
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Popover, {
@@ -106,7 +123,8 @@ class CollaboratorSelect extends _react.Component {
106
123
  getFilterOptions: this.getFilterOptions,
107
124
  supportMultipleSelect: this.props.supportMultipleSelect,
108
125
  stopClickEvent: true,
109
- isShowSelected: true
126
+ isShowSelected: true,
127
+ onClickOutside: this.onClick
110
128
  })
111
129
  });
112
130
  };
@@ -0,0 +1,82 @@
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: 32px;
14
+ border: none;
15
+ padding: .375rem 0 .375rem 1rem;
16
+ cursor: pointer;
17
+ border-bottom: 1px solid var(--bs-border-color);
18
+ }
19
+
20
+ .seatable-search-input-multiple .form-control:focus,
21
+ .seatable-search-input .form-control:focus {
22
+ outline: none;
23
+ box-shadow: none;
24
+ }
25
+
26
+ .seatable-search-input .input-icon-addon {
27
+ z-index: 1;
28
+ pointer-events: auto;
29
+ min-width: 2.75rem !important;
30
+ }
31
+
32
+ .seatable-search-input .input-icon-addon svg {
33
+ color: var(--bs-body-secondary-color);
34
+ cursor: pointer;
35
+ }
36
+
37
+ .seatable-search-input .none-search-result {
38
+ height: 100px;
39
+ width: 100%;
40
+ padding: 10px;
41
+ color: var(--bs-body-secondary-color);
42
+ }
43
+
44
+
45
+ .seatable-search-input-multiple {
46
+ width: 100%;
47
+ padding: 6px 10px;
48
+ min-width: 170px;
49
+ position: relative;
50
+ height: 40px;
51
+ }
52
+
53
+ .seatable-search-input-multiple .form-control {
54
+ height: 30px;
55
+ padding: .375rem 2.5rem .375rem 1rem;
56
+ cursor: pointer;
57
+ }
58
+
59
+ .seatable-search-input-multiple .input-icon-addon {
60
+ z-index: 1;
61
+ pointer-events: auto;
62
+ min-width: 2.75rem !important;
63
+ top: 10px;
64
+ height: 30px;
65
+ right: 10px;
66
+ }
67
+
68
+ .seatable-search-input-multiple .input-icon-addon svg {
69
+ color: var(--bs-body-secondary-color);
70
+ cursor: pointer;
71
+ }
72
+
73
+ .seatable-search-input-multiple .none-search-result {
74
+ height: 100px;
75
+ width: 100%;
76
+ padding: 10px;
77
+ color: var(--bs-body-secondary-color);
78
+ }
79
+
80
+ .multiple-selects-editor-list .seatable-search-input-multiple {
81
+ padding: 10px 10px 0;
82
+ }
@@ -0,0 +1,141 @@
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 {
23
+ onChange,
24
+ wait = 100
25
+ } = this.props;
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 {
43
+ clearValue
44
+ } = this.props;
45
+ this.setState({
46
+ searchValue: ''
47
+ }, () => {
48
+ clearValue && clearValue();
49
+ });
50
+ };
51
+ this.setFocus = isSelectAllText => {
52
+ if (this.inputRef === document.activeElement) return;
53
+ this.inputRef.focus();
54
+ if (isSelectAllText) {
55
+ const txtLength = this.state.searchValue.length;
56
+ this.inputRef.setSelectionRange(0, txtLength);
57
+ }
58
+ };
59
+ this.renderClear = () => {
60
+ const {
61
+ isClearable,
62
+ clearClassName
63
+ } = this.props;
64
+ const {
65
+ searchValue
66
+ } = this.state;
67
+ if (!isClearable || !searchValue) return null;
68
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
69
+ className: (0, _classnames.default)('search-text-clear input-icon-addon', clearClassName),
70
+ style: {
71
+ fontSize: '12px'
72
+ },
73
+ onClick: this.clearSearch,
74
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableIcon.default, {
75
+ symbol: "close",
76
+ color: "var(--bs-icon-secondary-color)"
77
+ })
78
+ });
79
+ };
80
+ this.state = {
81
+ searchValue: props.value || ''
82
+ };
83
+ this.isInputtingChinese = false;
84
+ this.timer = null;
85
+ this.inputRef = null;
86
+ }
87
+ componentDidMount() {
88
+ if (this.props.autoFocus && this.inputRef && this.inputRef !== document.activeElement) {
89
+ setTimeout(() => {
90
+ this.inputRef.focus();
91
+ }, 0);
92
+ }
93
+ }
94
+ UNSAFE_componentWillReceiveProps(nextProps) {
95
+ if (nextProps.value !== this.props.value) {
96
+ this.setState({
97
+ searchValue: nextProps.value
98
+ });
99
+ }
100
+ }
101
+ componentWillUnmount() {
102
+ this.timer && clearTimeout(this.timer);
103
+ this.timer = null;
104
+ this.inputRef = null;
105
+ }
106
+ render() {
107
+ const {
108
+ placeholder,
109
+ autoFocus,
110
+ className,
111
+ onKeyDown,
112
+ disabled = false,
113
+ style = {},
114
+ isClearable,
115
+ isMultiple = false
116
+ } = this.props;
117
+ const {
118
+ searchValue
119
+ } = this.state;
120
+ const inputWidth = isClearable && searchValue && !isMultiple ? 'calc(100% - 40px)' : '100%';
121
+ style.width = inputWidth;
122
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
123
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
124
+ type: "text",
125
+ name: "search-input",
126
+ value: searchValue,
127
+ className: (0, _classnames.default)('form-control', className),
128
+ onChange: this.onChange,
129
+ autoFocus: autoFocus,
130
+ placeholder: placeholder,
131
+ onCompositionStart: this.onCompositionStart,
132
+ onCompositionEnd: this.onCompositionEnd,
133
+ onKeyDown: onKeyDown,
134
+ disabled: disabled,
135
+ style: style,
136
+ ref: ref => this.inputRef = ref
137
+ }), this.renderClear()]
138
+ });
139
+ }
140
+ }
141
+ var _default = exports.default = DTableCustomizeSearchInput;
@@ -1,100 +1,118 @@
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-color: #3E84F7 !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
+ }
51
+
52
+ .seatable-check-color {
53
+ color: var(--bs-icon-color);
58
54
  }
59
55
 
60
- .dtable-select.dtable-ui-collaborator-selector .option-group .option-group-content,
61
- .dtable-select.selector-group .option-group .option-group-content {
56
+ .seatable-customize-select.dtable-ui-collaborator-selector .seatable-option-group .seatable-option-group-content,
57
+ .seatable-customize-select.selector-group .seatable-option-group .seatable-option-group-content {
62
58
  padding: 10px;
63
59
  }
64
60
 
65
- .dtable-select.custom-select.dtable-ui-collaborator-selector .option-group .option-group-content {
61
+ .seatable-customize-select.dtable-ui-collaborator-selector .seatable-option-group .seatable-option-group-content {
66
62
  padding: 10px 0;
67
63
  }
68
64
 
69
- .dtable-select.custom-select.dtable-ui-collaborator-selector .option {
65
+ .seatable-customize-select.dtable-ui-collaborator-selector .option {
70
66
  padding: 5px 0 5px 10px !important;
71
67
  line-height: 20px;
72
68
  }
73
69
 
74
- .dtable-select.selector-group .option {
70
+ .seatable-customize-select.selector-group .option {
75
71
  height: 30px;
76
72
  display: flex;
77
73
  align-items: center;
78
74
  }
79
75
 
80
- .dtable-select.selector-group .select-group-option {
76
+ .seatable-customize-select.selector-group .select-group-option {
81
77
  justify-content: space-between;
82
78
  }
83
79
 
84
- .dtable-select.selector-group .selected-option .selected-group {
80
+ .seatable-customize-select.selector-group .selected-option .selected-group {
85
81
  padding: 0 2px;
86
82
  background: #eceff4;
87
83
  border-radius: 3px;
88
84
  }
89
85
 
90
- .dtable-select .selected-option-show {
91
- overflow: hidden;
92
- text-overflow: ellipsis;
86
+ .seatable-customize-select .select-placeholder {
87
+ line-height: 1;
88
+ font-size: 14px;
93
89
  white-space: nowrap;
90
+ color: #868E96;
91
+ margin-right: 8px;
94
92
  }
95
93
 
96
- .dtable-select .select-placeholder {
97
- line-height: 1;
98
- font-size: 14px;
94
+ .seatable-customize-select .disabled .select-placeholder {
95
+ opacity: 0.65;
96
+ }
97
+
98
+ .seatable-customize-select .selected-option-show {
99
+ height: 20px;
100
+ line-height: 20px;
101
+ margin-right: 8px;
102
+ width: calc(100% - 20px);
99
103
  white-space: nowrap;
100
104
  }
105
+
106
+ .seatable-customize-select .multiple-check-icon,
107
+ .seatable-customize-select .header-icon .dtable-font,
108
+ .seatable-option-group .select-label .header-icon .dtable-font {
109
+ color: var(--bs-icon-secondary-color) !important;
110
+ cursor: default;
111
+ font-size: 14px;
112
+ }
113
+
114
+ .seatable-customize-select .header-icon {
115
+ display: inline-block;
116
+ padding: 0 .5rem 0 0!important;
117
+ margin-left: 0 !important;
118
+ }