dtable-ui-component 6.0.125-xhs.2 → 6.0.125-xhs.20

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.
@@ -39,15 +39,15 @@
39
39
 
40
40
  .dtable-ui-user-select-container .form-control {
41
41
  border: none;
42
- border-bottom: 1px solid rgb(0 40 100 / 12%) !important;
43
42
  border-radius: 4px 4px 0 0;
44
43
  padding: .375rem 1rem !important;
44
+ height: 100%;
45
45
  }
46
46
 
47
47
  .dtable-ui-user-select-container .form-control:focus {
48
48
  border-color: transparent !important;
49
- border-bottom: 1px solid rgb(0 40 100 / 12%) !important;
50
49
  box-shadow: none !important;
50
+ height: 100%;
51
51
  }
52
52
 
53
53
  .dtable-ui-user-select-container .dtable-ui-user-list-container .dtable-ui-user-item-container {
@@ -80,25 +80,13 @@
80
80
  }
81
81
 
82
82
  .dtable-ui-user-list-container .dtable-ui-collaborator-check-icon .dtable-icon-check {
83
- color: #666666;
83
+ color: var(--bs-icon-color);
84
84
  font-size: 14px;
85
85
  }
86
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 {
100
- font-size: 12px;
101
- color: #999999;
87
+ .seatable-option-group-search {
88
+ border-bottom: 1px solid var(--bs-border-color);
89
+ height: 32px;
102
90
  }
103
91
 
104
92
  /* user-item */
@@ -155,7 +143,3 @@
155
143
  color: #666666;
156
144
  cursor: pointer;
157
145
  }
158
-
159
- .dtable-ui-selected-users-container .dtable-ui-users-input {
160
- padding-right: 37px;
161
- }
@@ -9,7 +9,7 @@ var _react = require("react");
9
9
  var _classnames = _interopRequireDefault(require("classnames"));
10
10
  var _reactstrap = require("reactstrap");
11
11
  var _ClickOutside = _interopRequireDefault(require("../ClickOutside"));
12
- var _DTableSearchInput = _interopRequireDefault(require("../DTableSearchInput"));
12
+ var _DTableCustomizeSearchInput = _interopRequireDefault(require("../DTableCustomizeSearchInput"));
13
13
  var _userItem = _interopRequireDefault(require("./user-item"));
14
14
  var _lang = require("../lang");
15
15
  var _keyCodes = _interopRequireDefault(require("../constants/key-codes"));
@@ -219,24 +219,17 @@ const AsyncUserSelect = _ref => {
219
219
  className: "dtable-ui-user-select-container",
220
220
  ref: userSelectContainerRef,
221
221
  onMouseDown: e => e.stopPropagation(),
222
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
223
- className: "dtable-ui-user-search-container",
224
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableSearchInput.default, {
225
- autoFocus: true,
222
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
223
+ className: "seatable-option-group-search",
224
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableCustomizeSearchInput.default, {
225
+ className: "option-search-control",
226
226
  placeholder: searchPlaceholder || (0, _lang.getLocale)('Search_users'),
227
- value: searchValue,
228
- wait: 200,
229
227
  onChange: onSearchValueChanged,
230
- onKeyDown: onKeyDown
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
- })]
228
+ clearValue: () => onSearchValueChanged(''),
229
+ autoFocus: true,
230
+ isClearable: true,
231
+ value: searchValue
232
+ })
240
233
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
241
234
  className: "dtable-ui-user-list-container",
242
235
  ref: userListContainerRef,
@@ -10,11 +10,10 @@
10
10
  }
11
11
 
12
12
  .seatable-search-input .form-control {
13
- height: 32px;
13
+ height: 100%;
14
14
  border: none;
15
- padding: .375rem 0 .375rem 1rem;
15
+ padding: .375rem 1rem;
16
16
  cursor: pointer;
17
- border-bottom: 1px solid var(--bs-border-color);
18
17
  }
19
18
 
20
19
  .seatable-search-input-multiple .form-control:focus,
@@ -10,6 +10,12 @@
10
10
  border: 1px solid rgba(0, 40, 100, 0.12);
11
11
  border-radius: 4px;
12
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;
13
19
  }
14
20
 
15
21
  .seatable-option-group .seatable-option-group-search {
@@ -17,16 +23,13 @@
17
23
  min-width: 170px;
18
24
  position: relative;
19
25
  padding: 0;
20
- height: 32px;
21
- border-bottom: 1px solid var(--bs-border-color);
22
26
  }
23
27
 
24
28
  .seatable-option-group .seatable-option-group-search .form-control {
25
- height: 32px;
29
+ height: 100%;
26
30
  border: none;
27
31
  padding: .375rem 1rem;
28
32
  cursor: pointer;
29
- border-bottom: 1px solid var(--bs-border-color);
30
33
  }
31
34
 
32
35
  .seatable-option-group .seatable-option-group-search .form-control:focus {
@@ -34,10 +37,13 @@
34
37
  box-shadow: none;
35
38
  }
36
39
 
40
+ .seatable-option-group-search .input-icon-addon,
37
41
  .seatable-option-group .seatable-option-group-search .input-icon-addon {
38
42
  z-index: 1;
39
43
  pointer-events: auto;
40
44
  min-width: 2.75rem !important;
45
+ width: 40px;
46
+ height: 32px;
41
47
  }
42
48
 
43
49
  .seatable-option-group .seatable-option-group-search .input-icon-addon svg {
@@ -101,11 +107,11 @@
101
107
  display: flex;
102
108
  align-items: center;
103
109
  justify-content: space-between;
110
+ width: 100%;
104
111
  }
105
112
 
106
113
  .seatable-option-group-selector-multiple-select .multiple-check-icon {
107
114
  display: inline-flex;
108
- width: 20px;
109
115
  text-align: center;
110
116
  color: var(--bs-icon-color);
111
117
  }
@@ -225,7 +225,6 @@ class SelectOptionGroup extends _react.Component {
225
225
  opacity: 0
226
226
  };
227
227
  }
228
- style.top = style.top + 4;
229
228
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ClickOutside.default, {
230
229
  onClickOutside: this.props.onClickOutside,
231
230
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
@@ -95,7 +95,7 @@
95
95
 
96
96
  .group-select .selected-option-show .selected-option-item .dtable-icon-x {
97
97
  cursor: pointer;
98
- color: #666666;
98
+ color: var(--bs-icon-color);
99
99
  font-size: 12px;
100
100
  margin-right: 6px;
101
101
  }
@@ -106,15 +106,13 @@
106
106
 
107
107
  .seatable-group-select .form-control {
108
108
  border: none;
109
- border-bottom: 1px solid rgb(0 40 100 / 12%) !important;
110
109
  border-radius: 4px 4px 0 0;
111
110
  padding: .375rem 0 .375rem 1rem;
112
- height: 32px;
111
+ height: 100%;
113
112
  }
114
113
 
115
114
  .seatable-group-select .form-control:focus {
116
115
  border-color: transparent !important;
117
- border-bottom: 1px solid rgb(0 40 100 / 12%) !important;
118
116
  box-shadow: none !important;
119
117
  }
120
118
 
@@ -91,7 +91,7 @@ class DTableGroupSelect extends _react.Component {
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
  }
@@ -19,7 +19,7 @@
19
19
 
20
20
  .group-selector .option .dtable-icon-check{
21
21
  font-size: 14px;
22
- color: #666666;
22
+ color: var(--bs-icon-color);
23
23
  height: 14px !important;
24
24
  display: flex;
25
25
  align-items: center;
@@ -207,7 +207,7 @@ class SelectOptionGroup extends _react.Component {
207
207
  style = {
208
208
  position: 'fixed',
209
209
  left: position.x,
210
- top: position.y + position.height + 4,
210
+ top: position.y + position.height,
211
211
  minWidth: position.width,
212
212
  opacity: 0
213
213
  };
@@ -1,10 +1,10 @@
1
1
  .dtable-select-check-icon {
2
- width: 20px;
3
- height: 20px;
2
+ width: 14px;
3
+ height: 14px;
4
4
  text-align: center;
5
5
  }
6
6
 
7
7
  .dtable-select-check-icon .dtable-font {
8
- font-size: 12px;
9
- color: #798d99;
8
+ font-size: 14px;
9
+ color: #666;
10
10
  }
@@ -21,7 +21,7 @@ function DTableSelectLabel(_ref) {
21
21
  }), isSelect && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
22
22
  className: "dtable-select-check-icon",
23
23
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
24
- className: "dtable-font dtable-icon-check-mark"
24
+ className: "dtable-font dtable-icon-check"
25
25
  })
26
26
  })]
27
27
  });
@@ -217,7 +217,8 @@ const Option = props => {
217
217
  display: 'flex',
218
218
  alignItems: 'center',
219
219
  justifyContent: 'space-between',
220
- width: '100%'
220
+ width: '100%',
221
+ whiteSpace: 'pre-line'
221
222
  },
222
223
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
223
224
  children: label
@@ -66,15 +66,13 @@
66
66
 
67
67
  .option-group .option-group-search .form-control {
68
68
  border: none;
69
- border-bottom: 1px solid rgb(0 40 100 / 12%) !important;
70
69
  border-radius: 4px 4px 0 0;
71
70
  padding: .375rem 0 .375rem 1rem;
72
- height: 32px;
71
+ height: 100%;
73
72
  }
74
73
 
75
74
  .option-group .option-group-search .form-control:focus {
76
75
  border-color: transparent !important;
77
- border-bottom: 1px solid rgb(0 40 100 / 12%) !important;
78
76
  box-shadow: none !important;
79
77
  }
80
78
 
@@ -114,7 +112,7 @@
114
112
 
115
113
  .option-group-dtable-ui-multiple-select-selector .multiple-check-icon .dtable-icon-check-mark {
116
114
  font-size: 12px;
117
- color: #666666;
115
+ color: var(--bs-icon-color);
118
116
  }
119
117
 
120
118
  .option-group-dtable-ui-single-select-selector .option:hover,
@@ -240,7 +240,7 @@ class SelectOptionGroup extends _react.Component {
240
240
  style = {
241
241
  position: 'fixed',
242
242
  left: position.x,
243
- top: "".concat(position.y + position.height + 4, "px"),
243
+ top: position.y + position.height,
244
244
  minWidth: position.width,
245
245
  opacity: 0
246
246
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "6.0.125xhs.2",
3
+ "version": "6.0.125xhs.20",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "5.0.9",