dtable-ui-component 6.0.125 → 6.0.126-beta.s1

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 +46 -14
  2. package/lib/AsyncUserSelect/index.js +22 -18
  3. package/lib/DTableCustomizeSearchInput/index.css +81 -0
  4. package/lib/DTableCustomizeSearchInput/index.js +141 -0
  5. package/lib/DTableCustomizeSelect/index.css +67 -43
  6. package/lib/DTableCustomizeSelect/index.js +18 -12
  7. package/lib/DTableCustomizeSelect/select-option-group/KeyCodes.js +109 -0
  8. package/lib/DTableCustomizeSelect/select-option-group/index.css +134 -0
  9. package/lib/DTableCustomizeSelect/select-option-group/index.js +260 -0
  10. package/lib/DTableCustomizeSelect/select-option-group/option.js +48 -0
  11. package/lib/DTableCustomizeSelect/util.js +12 -0
  12. package/lib/DTableFiltersPopover/utils/filter-item-utils.js +2 -2
  13. package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +1 -1
  14. package/lib/DTableFiltersPopover/widgets/filter-list/index.css +5 -5
  15. package/lib/DTableGroupSelect/index.css +31 -5
  16. package/lib/DTableGroupSelect/index.js +2 -2
  17. package/lib/DTableGroupSelect/select-option-group.css +11 -15
  18. package/lib/DTableGroupSelect/select-option-group.js +11 -8
  19. package/lib/DTableSelect/dtable-select-label.css +4 -4
  20. package/lib/DTableSelect/dtable-select-label.js +1 -1
  21. package/lib/DTableSelect/index.js +3 -3
  22. package/lib/DTableSelect/select-dropdown-indicator/index.css +16 -0
  23. package/lib/DTableSelect/select-dropdown-indicator/index.js +26 -0
  24. package/lib/DTableSelect/select-style.js +133 -0
  25. package/lib/DTableSelect/user-select.css +7 -46
  26. package/lib/DTableSelect/utils.js +166 -77
  27. package/lib/SelectOptionGroup/index.css +50 -22
  28. package/lib/SelectOptionGroup/index.js +46 -7
  29. package/lib/assets/icons/close.svg +1 -0
  30. package/lib/assets/icons/down.svg +3 -0
  31. package/lib/index.js +7 -0
  32. package/package.json +1 -1
@@ -0,0 +1,109 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ const KeyCodes = {
8
+ Backspace: 8,
9
+ Tab: 9,
10
+ Enter: 13,
11
+ Shift: 16,
12
+ Ctrl: 17,
13
+ Alt: 18,
14
+ PauseBreak: 19,
15
+ CapsLock: 20,
16
+ Escape: 27,
17
+ Esc: 27,
18
+ Space: 32,
19
+ PageUp: 33,
20
+ PageDown: 34,
21
+ End: 35,
22
+ Home: 36,
23
+ LeftArrow: 37,
24
+ UpArrow: 38,
25
+ RightArrow: 39,
26
+ DownArrow: 40,
27
+ Insert: 45,
28
+ Delete: 46,
29
+ 0: 48,
30
+ 1: 49,
31
+ 2: 50,
32
+ 3: 51,
33
+ 4: 52,
34
+ 5: 53,
35
+ 6: 54,
36
+ 7: 55,
37
+ 8: 56,
38
+ 9: 57,
39
+ a: 65,
40
+ b: 66,
41
+ c: 67,
42
+ d: 68,
43
+ e: 69,
44
+ f: 70,
45
+ g: 71,
46
+ h: 72,
47
+ i: 73,
48
+ j: 74,
49
+ k: 75,
50
+ l: 76,
51
+ m: 77,
52
+ n: 78,
53
+ o: 79,
54
+ p: 80,
55
+ q: 81,
56
+ r: 82,
57
+ s: 83,
58
+ t: 84,
59
+ u: 85,
60
+ v: 86,
61
+ w: 87,
62
+ x: 88,
63
+ y: 89,
64
+ z: 90,
65
+ LeftWindowKey: 91,
66
+ RightWindowKey: 92,
67
+ SelectKey: 93,
68
+ NumPad0: 96,
69
+ NumPad1: 97,
70
+ NumPad2: 98,
71
+ NumPad3: 99,
72
+ NumPad4: 100,
73
+ NumPad5: 101,
74
+ NumPad6: 102,
75
+ NumPad7: 103,
76
+ NumPad8: 104,
77
+ NumPad9: 105,
78
+ Multiply: 106,
79
+ Add: 107,
80
+ Subtract: 109,
81
+ DecimalPoint: 110,
82
+ Divide: 111,
83
+ F1: 112,
84
+ F2: 113,
85
+ F3: 114,
86
+ F4: 115,
87
+ F5: 116,
88
+ F6: 117,
89
+ F7: 118,
90
+ F8: 119,
91
+ F9: 120,
92
+ F10: 121,
93
+ F12: 123,
94
+ NumLock: 144,
95
+ ScrollLock: 145,
96
+ SemiColon: 186,
97
+ EqualSign: 187,
98
+ Comma: 188,
99
+ Dash: 189,
100
+ Period: 190,
101
+ ForwardSlash: 191,
102
+ GraveAccent: 192,
103
+ OpenBracket: 219,
104
+ BackSlash: 220,
105
+ CloseBracket: 221,
106
+ SingleQuote: 222,
107
+ ChineseInputMethod: 229
108
+ };
109
+ var _default = exports.default = KeyCodes;
@@ -0,0 +1,134 @@
1
+ .seatable-option-group {
2
+ position: absolute;
3
+ left: 0;
4
+ min-height: 60px;
5
+ max-height: 300px;
6
+ min-width: 100%;
7
+ max-width: 15rem;
8
+ box-shadow: 0px 6px 14px rgba(0, 0, 0, 0.1);
9
+ background: var(--bs-popover-bg);
10
+ border: 1px solid rgba(0, 40, 100, 0.12);
11
+ border-radius: 4px;
12
+ z-index: 10001;
13
+ margin-top: 4px;
14
+ }
15
+
16
+ .seatable-option-group-search {
17
+ border-bottom: 1px solid var(--bs-border-color);
18
+ height: 32px;
19
+ }
20
+
21
+ .seatable-option-group .seatable-option-group-search {
22
+ width: 100%;
23
+ min-width: 170px;
24
+ position: relative;
25
+ padding: 0;
26
+ }
27
+
28
+ .seatable-option-group .seatable-option-group-search .form-control {
29
+ height: 100%;
30
+ border: none;
31
+ padding: .375rem 1rem;
32
+ cursor: pointer;
33
+ }
34
+
35
+ .seatable-option-group .seatable-option-group-search .form-control:focus {
36
+ outline: none;
37
+ box-shadow: none;
38
+ }
39
+
40
+ .seatable-option-group-search .input-icon-addon,
41
+ .seatable-option-group .seatable-option-group-search .input-icon-addon {
42
+ z-index: 1;
43
+ pointer-events: auto;
44
+ min-width: 2.75rem !important;
45
+ width: 40px;
46
+ height: 32px;
47
+ }
48
+
49
+ .seatable-option-group .seatable-option-group-search .input-icon-addon svg {
50
+ color: #999;
51
+ cursor: pointer;
52
+ }
53
+
54
+ .seatable-option-group .none-search-result {
55
+ height: 100px;
56
+ width: 100%;
57
+ padding: 8px;
58
+ color: var(--bs-body-secondary-color);
59
+ }
60
+
61
+ .seatable-option-group .seatable-option-group-content {
62
+ max-height: 252px;
63
+ overflow-y: auto;
64
+ padding: 8px;
65
+ }
66
+
67
+ .seatable-select-option {
68
+ position: relative;
69
+ display: flex;
70
+ justify-content: space-between;
71
+ align-items: center;
72
+ width: 100%;
73
+ line-height: 24px;
74
+ padding: 0.25rem 8px;
75
+ clear: both;
76
+ font-weight: 400;
77
+ text-align: inherit;
78
+ background-color: transparent;
79
+ border: 0;
80
+ overflow: hidden;
81
+ text-overflow: ellipsis;
82
+ white-space: nowrap;
83
+ border-radius: 4px;
84
+ height: 32px;
85
+ }
86
+
87
+ .seatable-select-option.seatable-select-option-active {
88
+ cursor: pointer;
89
+ background-color: rgba(0, 0, 0, 0.04);
90
+ }
91
+
92
+ .seatable-select-option .select-option-name .multiple-select-option {
93
+ margin: 0;
94
+ }
95
+
96
+ .seatable-option-group .dtable-icon-check {
97
+ color: var(--bs-icon-color);
98
+ }
99
+
100
+ .select-label {
101
+ width: 100%;
102
+ }
103
+
104
+ .seatable-option-group-selector-multiple-select .select-label,
105
+ .seatable-option-group-selector-single-select .select-option-name,
106
+ .seatable-option-group-selector-multiple-select .multiple-option-name {
107
+ display: flex;
108
+ align-items: center;
109
+ justify-content: space-between;
110
+ width: 100%;
111
+ }
112
+
113
+ .seatable-option-group-selector-multiple-select .multiple-check-icon {
114
+ display: inline-flex;
115
+ text-align: center;
116
+ color: var(--bs-icon-color);
117
+ }
118
+
119
+ .seatable-option-group-selector-multiple-select .multiple-check-icon .dtable-icon-check {
120
+ font-size: 14px;
121
+ }
122
+
123
+ .seatable-option-group-selector-single-select .seatable-select-option:hover,
124
+ .seatable-option-group-selector-single-select .seatable-select-option.seatable-select-option-active,
125
+ .seatable-option-group-selector-multiple-select .seatable-select-option:hover,
126
+ .seatable-option-group-selector-multiple-select .seatable-select-option.seatable-select-option-active {
127
+ background-color: #f5f5f5;
128
+ }
129
+
130
+ .select-label .header-icon {
131
+ display: inline-block;
132
+ padding: 0 .5rem 0 0!important;
133
+ margin-left: 0 !important;
134
+ }
@@ -0,0 +1,260 @@
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 _ClickOutside = _interopRequireDefault(require("../../ClickOutside"));
12
+ var _DTableCustomizeSearchInput = _interopRequireDefault(require("../../DTableCustomizeSearchInput"));
13
+ var _option = _interopRequireDefault(require("./option"));
14
+ var _KeyCodes = _interopRequireDefault(require("./KeyCodes"));
15
+ require("./index.css");
16
+ var _jsxRuntime = require("react/jsx-runtime");
17
+ const OPTION_HEIGHT = 32;
18
+ class SelectOptionGroup extends _react.Component {
19
+ constructor(props) {
20
+ super(props);
21
+ this.resetMenuStyle = () => {
22
+ const {
23
+ isInModal,
24
+ position
25
+ } = this.props;
26
+ const {
27
+ top,
28
+ height
29
+ } = this.optionGroupRef.getBoundingClientRect();
30
+ if (isInModal) {
31
+ if (position.y + position.height + height > window.innerHeight) {
32
+ this.optionGroupRef.style.top = position.y - height + 'px';
33
+ }
34
+ this.optionGroupRef.style.opacity = 1;
35
+ } else {
36
+ if (height + top > window.innerHeight) {
37
+ const borderWidth = 2;
38
+ this.optionGroupRef.style.top = -1 * (height + borderWidth) + 'px';
39
+ }
40
+ }
41
+ };
42
+ this.onHotKey = event => {
43
+ const keyCode = event.keyCode;
44
+ if (keyCode === _KeyCodes.default.UpArrow) {
45
+ this.onPressUp();
46
+ } else if (keyCode === _KeyCodes.default.DownArrow) {
47
+ this.onPressDown();
48
+ } else if (keyCode === _KeyCodes.default.Enter) {
49
+ let option = this.filterOptions && this.filterOptions[this.state.activeIndex];
50
+ if (option) {
51
+ this.props.onSelectOption(option.value);
52
+ if (!this.props.supportMultipleSelect) {
53
+ this.props.closeSelect();
54
+ }
55
+ }
56
+ } else if (keyCode === _KeyCodes.default.Tab || keyCode === _KeyCodes.default.Escape) {
57
+ this.props.closeSelect();
58
+ }
59
+ };
60
+ this.onPressUp = () => {
61
+ if (this.state.activeIndex > 0) {
62
+ this.setState({
63
+ activeIndex: this.state.activeIndex - 1
64
+ }, () => {
65
+ this.scrollContent();
66
+ });
67
+ }
68
+ };
69
+ this.onPressDown = () => {
70
+ if (this.filterOptions && this.state.activeIndex < this.filterOptions.length - 1) {
71
+ this.setState({
72
+ activeIndex: this.state.activeIndex + 1
73
+ }, () => {
74
+ this.scrollContent();
75
+ });
76
+ }
77
+ };
78
+ this.onMouseDown = e => {
79
+ const {
80
+ isInModal
81
+ } = this.props;
82
+ // prevent event propagation when click option or search input
83
+ if (isInModal) {
84
+ e.stopPropagation();
85
+ e.nativeEvent.stopImmediatePropagation();
86
+ }
87
+ };
88
+ this.scrollContent = () => {
89
+ const {
90
+ offsetHeight,
91
+ scrollTop
92
+ } = this.optionGroupContentRef;
93
+ this.setState({
94
+ disableHover: true
95
+ });
96
+ this.timer = setTimeout(() => {
97
+ this.setState({
98
+ disableHover: false
99
+ });
100
+ }, 500);
101
+ if (this.state.activeIndex * OPTION_HEIGHT === 0) {
102
+ this.optionGroupContentRef.scrollTop = 0;
103
+ return;
104
+ }
105
+ if (this.state.activeIndex * OPTION_HEIGHT < scrollTop) {
106
+ this.optionGroupContentRef.scrollTop = scrollTop - OPTION_HEIGHT;
107
+ } else if (this.state.activeIndex * OPTION_HEIGHT > offsetHeight + scrollTop) {
108
+ this.optionGroupContentRef.scrollTop = scrollTop + OPTION_HEIGHT;
109
+ }
110
+ };
111
+ this.changeIndex = index => {
112
+ this.setState({
113
+ activeIndex: index
114
+ });
115
+ };
116
+ this.onChangeSearch = searchVal => {
117
+ let value = searchVal || '';
118
+ if (value !== this.state.searchVal) {
119
+ this.setState({
120
+ searchVal: value,
121
+ activeIndex: -1
122
+ });
123
+ }
124
+ };
125
+ this.clearSearch = () => {
126
+ this.setState({
127
+ searchVal: '',
128
+ activeIndex: -1
129
+ });
130
+ };
131
+ this.renderOptGroup = searchVal => {
132
+ let {
133
+ noOptionsPlaceholder,
134
+ onSelectOption,
135
+ value
136
+ } = this.props;
137
+ this.filterOptions = this.props.getFilterOptions(searchVal);
138
+ if (this.filterOptions.length === 0) {
139
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
140
+ className: "none-search-result",
141
+ children: noOptionsPlaceholder
142
+ });
143
+ }
144
+ return this.filterOptions.map((opt, i) => {
145
+ let key = opt.value.column ? opt.value.column.key : i;
146
+ let isActive = this.state.activeIndex === i;
147
+ let isSelected = false;
148
+ if (value) {
149
+ // Handle both single value and array of values
150
+ if (Array.isArray(value.value)) {
151
+ isSelected = value.value.includes(opt.value);
152
+ } else {
153
+ isSelected = opt.value === value.value || JSON.stringify(opt.value) === JSON.stringify(value.value);
154
+ }
155
+ }
156
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_option.default, {
157
+ index: i,
158
+ isActive: isActive,
159
+ value: opt.value,
160
+ onSelectOption: onSelectOption,
161
+ changeIndex: this.changeIndex,
162
+ supportMultipleSelect: this.props.supportMultipleSelect,
163
+ disableHover: this.state.disableHover,
164
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
165
+ className: "select-label",
166
+ children: opt.label
167
+ }), isSelected && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
168
+ className: "dtable-font dtable-icon-check seatable-check-color"
169
+ })]
170
+ }, key);
171
+ });
172
+ };
173
+ this.state = {
174
+ searchVal: '',
175
+ activeIndex: -1,
176
+ disableHover: false
177
+ };
178
+ this.filterOptions = null;
179
+ this.timer = null;
180
+ }
181
+ componentDidMount() {
182
+ window.addEventListener('keydown', this.onHotKey);
183
+ setTimeout(() => {
184
+ this.resetMenuStyle();
185
+ }, 1);
186
+ }
187
+ componentWillUnmount() {
188
+ this.filterOptions = null;
189
+ this.timer && clearTimeout(this.timer);
190
+ window.removeEventListener('keydown', this.onHotKey);
191
+ }
192
+ render() {
193
+ const {
194
+ searchable,
195
+ searchPlaceholder,
196
+ top,
197
+ left,
198
+ minWidth,
199
+ value,
200
+ isShowSelected,
201
+ isInModal,
202
+ position,
203
+ className
204
+ } = this.props;
205
+ let {
206
+ searchVal
207
+ } = this.state;
208
+ let style = {
209
+ top: top || 0,
210
+ left: left || 0
211
+ };
212
+ if (minWidth) {
213
+ style = {
214
+ top: top || 0,
215
+ left: left || 0,
216
+ minWidth
217
+ };
218
+ }
219
+ if (isInModal) {
220
+ style = {
221
+ position: 'fixed',
222
+ left: position.x,
223
+ top: position.y + position.height,
224
+ minWidth: position.width,
225
+ opacity: 0
226
+ };
227
+ }
228
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ClickOutside.default, {
229
+ onClickOutside: this.props.onClickOutside,
230
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
231
+ className: (0, _classnames.default)('seatable-option-group', className ? 'seatable-option-group-' + className : '', {
232
+ 'pt-0': isShowSelected
233
+ }),
234
+ ref: ref => this.optionGroupRef = ref,
235
+ style: style,
236
+ onMouseDown: this.onMouseDown,
237
+ children: [isShowSelected && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
238
+ className: "editor-list-delete mb-2",
239
+ onClick: e => e.stopPropagation(),
240
+ children: value.label || ''
241
+ }), searchable && this.props.options && this.props.options.length > 10 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
242
+ className: "seatable-option-group-search",
243
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableCustomizeSearchInput.default, {
244
+ className: "option-search-control",
245
+ placeholder: searchPlaceholder,
246
+ onChange: this.onChangeSearch,
247
+ clearValue: this.clearSearch,
248
+ autoFocus: true,
249
+ isClearable: true
250
+ })
251
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
252
+ className: "seatable-option-group-content",
253
+ ref: ref => this.optionGroupContentRef = ref,
254
+ children: this.renderOptGroup(searchVal)
255
+ })]
256
+ })
257
+ });
258
+ }
259
+ }
260
+ var _default = exports.default = SelectOptionGroup;
@@ -0,0 +1,48 @@
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 _util = require("../util");
12
+ var _jsxRuntime = require("react/jsx-runtime");
13
+ class Option extends _react.Component {
14
+ constructor() {
15
+ super(...arguments);
16
+ this.onSelectOption = event => {
17
+ if (this.props.supportMultipleSelect) {
18
+ event.stopPropagation();
19
+ }
20
+ this.props.onSelectOption(this.props.value, event);
21
+ };
22
+ this.onMouseEnter = () => {
23
+ if (!this.props.disableHover) {
24
+ this.props.changeIndex(this.props.index);
25
+ }
26
+ };
27
+ this.onMouseLeave = () => {
28
+ if (!this.props.disableHover) {
29
+ this.props.changeIndex(-1);
30
+ }
31
+ };
32
+ }
33
+ render() {
34
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
35
+ className: (0, _classnames.default)('seatable-select-option', {
36
+ 'seatable-select-option-active': this.props.isActive
37
+ }),
38
+ tabIndex: "0",
39
+ role: "menuitem",
40
+ onClick: this.onSelectOption,
41
+ onKeyDown: _util.onKeyDown,
42
+ onMouseEnter: this.onMouseEnter,
43
+ onMouseLeave: this.onMouseLeave,
44
+ children: this.props.children
45
+ });
46
+ }
47
+ }
48
+ var _default = exports.default = Option;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.onKeyDown = void 0;
7
+ const onKeyDown = e => {
8
+ if (e.key === 'Enter' || e.key === 'Space') {
9
+ e.target.click();
10
+ }
11
+ };
12
+ exports.onKeyDown = onKeyDown;
@@ -107,7 +107,7 @@ class FilterItemUtils {
107
107
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
108
108
  className: "single-select-check-icon",
109
109
  children: (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.id) === option.id && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
110
- className: "option-edit dtable-font dtable-icon-check-mark"
110
+ className: "option-edit dtable-font dtable-icon-check"
111
111
  })
112
112
  })]
113
113
  })
@@ -132,7 +132,7 @@ class FilterItemUtils {
132
132
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
133
133
  className: "multiple-check-icon",
134
134
  children: filterTerm.indexOf(option.id) > -1 && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
135
- className: "option-edit dtable-font dtable-icon-check-mark"
135
+ className: "option-edit dtable-font dtable-icon-check"
136
136
  })
137
137
  })]
138
138
  })
@@ -49,7 +49,7 @@ class CollaboratorFilter extends _react.Component {
49
49
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
50
50
  className: "collaborator-check-icon",
51
51
  children: isSelected && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
52
- className: "option-edit dtable-font dtable-icon-check-mark"
52
+ className: "option-edit dtable-font dtable-icon-check"
53
53
  })
54
54
  })]
55
55
  })
@@ -205,7 +205,7 @@
205
205
  .option-group-dtable-ui-collaborator-selector .option:hover,
206
206
  .option-group-dtable-ui-collaborator-selector .option.option-active {
207
207
  color: #212529;
208
- background-color: #f7f7f7;
208
+ background-color: #f5f5f5;
209
209
  }
210
210
 
211
211
  .dtable-ui-filters-list .dtable-ui-multiple-select-selector .option.option-active .select-option-name,
@@ -333,7 +333,7 @@
333
333
  display: inline-flex;
334
334
  align-items: center;
335
335
  height: 20px;
336
- margin-right: 10px;
336
+ margin-right: 4px;
337
337
  padding: 0 8px 0 2px;
338
338
  font-size: 13px;
339
339
  border-radius: 10px;
@@ -412,20 +412,20 @@
412
412
 
413
413
  .filter-header-icon {
414
414
  display: inline-block;
415
- padding: 0 0.3125rem;
415
+ padding-right: 0.5rem;
416
416
  margin-left: -0.3125rem;
417
417
  }
418
418
 
419
419
  .filter-header-icon .dtable-font,
420
420
  .filter-header-icon .multicolor-icon {
421
421
  font-size: 14px;
422
- color: #aaa;
422
+ color: var(--bs-icon-secondary-color);
423
423
  cursor: default;
424
424
  }
425
425
 
426
426
  .option.option-active .filter-header-icon .dtable-font,
427
427
  .option.option-active .filter-header-icon .multicolor-icon {
428
- color: #fff;
428
+ color: var(--bs-icon-secondary-color);
429
429
  }
430
430
 
431
431
  .dtable-ui-filters-list .single-select-option,
@@ -4,7 +4,7 @@
4
4
 
5
5
  .group-select.custom-select {
6
6
  display: flex;
7
- padding: 5px 10px;
7
+ padding: 7px 8px !important;
8
8
  border-radius: 3px;
9
9
  align-items: center;
10
10
  justify-content: space-between;
@@ -79,18 +79,44 @@
79
79
  }
80
80
 
81
81
  .group-select .selected-option-show .selected-option-item {
82
- background-color: rgb(240, 240, 240);
83
- border-radius: 16px;
82
+ background-color: #F7F7F5;
83
+ border-radius: 4px !important;
84
84
  display: flex;
85
85
  align-items: center;
86
+ height: 24px;
86
87
  }
87
88
 
88
89
  .group-select .selected-option-show .selected-option-item .selected-option-item-name {
89
- font-size: 13px;
90
+ font-size: 14px !important;
90
91
  color: #212529;
92
+ margin-left: 6px;
93
+ margin-right: 8px
91
94
  }
92
95
 
93
96
  .group-select .selected-option-show .selected-option-item .dtable-icon-x {
94
97
  cursor: pointer;
95
- color: rgb(103, 103, 103);
98
+ color: var(--bs-icon-color);
99
+ font-size: 12px;
100
+ margin-right: 6px;
101
+ }
102
+
103
+ .seatable-group-select .option-group-search {
104
+ padding: 0 !important;
105
+ }
106
+
107
+ .seatable-group-select .form-control {
108
+ border: none;
109
+ border-radius: 4px 4px 0 0;
110
+ padding: .375rem 0 .375rem 1rem;
111
+ height: 100%;
112
+ }
113
+
114
+ .seatable-group-select .form-control:focus {
115
+ border-color: transparent !important;
116
+ box-shadow: none !important;
117
+ }
118
+
119
+ .option-group-content .dtable-icon-check {
120
+ color: var(--bs-icon-color);
121
+ font-size: 14px;
96
122
  }
@@ -86,12 +86,12 @@ class DTableGroupSelect extends _react.Component {
86
86
  children: [selectedOptions.length > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
87
87
  className: "selected-option-show",
88
88
  children: selectedOptions.map(item => /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
89
- className: "selected-option-item mr-1 pr-1 pl-2",
89
+ className: "selected-option-item",
90
90
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
91
91
  className: "selected-option-item-name",
92
92
  children: item.name
93
93
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
94
- className: "dtable-font dtable-icon-x ml-1",
94
+ className: "dtable-font dtable-icon-x",
95
95
  onClick: () => {
96
96
  this.props.onDeleteOption(item);
97
97
  }