dtable-ui-component 6.0.125-xhs.9 → 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.
@@ -35,6 +35,7 @@
35
35
  padding: 8px !important;
36
36
  overflow: auto;
37
37
  position: relative;
38
+ margin: 0 !important;
38
39
  }
39
40
 
40
41
  .dtable-ui-user-select-container .form-control {
@@ -84,21 +85,17 @@
84
85
  font-size: 14px;
85
86
  }
86
87
 
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;
88
+ .seatable-option-group-search {
89
+ border-bottom: 1px solid var(--bs-border-color);
90
+ height: 32px;
97
91
  }
98
92
 
99
- .dtable-ui-user-select-container .dtable-ui-user-search-container .search-clear-btn .dtable-icon-x {
100
- font-size: 12px;
101
- color: #999999;
93
+ .seatable-option-group-search .input-icon-addon {
94
+ z-index: 1;
95
+ pointer-events: auto;
96
+ min-width: 2.75rem !important;
97
+ width: 40px;
98
+ height: 32px;
102
99
  }
103
100
 
104
101
  /* user-item */
@@ -128,7 +125,7 @@
128
125
  }
129
126
 
130
127
  .dtable-ui-user-item .user-name {
131
- margin-left: 5px;
128
+ margin-left: 4px;
132
129
  }
133
130
 
134
131
  .dtable-ui-user-item .user-avatar img {
@@ -155,7 +152,3 @@
155
152
  color: #666666;
156
153
  cursor: pointer;
157
154
  }
158
-
159
- .dtable-ui-selected-users-container .dtable-ui-users-input {
160
- padding-right: 37px;
161
- }
@@ -32,22 +32,6 @@ 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
- };
51
35
  this.onMousedown = event => {
52
36
  const name = event.target.className;
53
37
  if (name === 'select-placeholder' || name.includes('icon-fork-number')) {
@@ -97,8 +81,7 @@ class CollaboratorSelect extends _react.Component {
97
81
  getFilterOptions: this.getFilterOptions,
98
82
  supportMultipleSelect: this.props.supportMultipleSelect,
99
83
  stopClickEvent: true,
100
- isShowSelected: true,
101
- onClickOutside: this.onClick
84
+ isShowSelected: true
102
85
  });
103
86
  }
104
87
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Popover, {
@@ -123,8 +106,7 @@ class CollaboratorSelect extends _react.Component {
123
106
  getFilterOptions: this.getFilterOptions,
124
107
  supportMultipleSelect: this.props.supportMultipleSelect,
125
108
  stopClickEvent: true,
126
- isShowSelected: true,
127
- onClickOutside: this.onClick
109
+ isShowSelected: true
128
110
  })
129
111
  });
130
112
  };
@@ -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,7 @@
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;
13
14
  }
14
15
 
15
16
  .seatable-option-group-search {
@@ -106,11 +107,11 @@
106
107
  display: flex;
107
108
  align-items: center;
108
109
  justify-content: space-between;
110
+ width: 100%;
109
111
  }
110
112
 
111
113
  .seatable-option-group-selector-multiple-select .multiple-check-icon {
112
114
  display: inline-flex;
113
- width: 20px;
114
115
  text-align: center;
115
116
  color: var(--bs-icon-color);
116
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", {
@@ -419,13 +419,13 @@
419
419
  .filter-header-icon .dtable-font,
420
420
  .filter-header-icon .multicolor-icon {
421
421
  font-size: 14px;
422
- color: #999;
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: #999;
428
+ color: var(--bs-icon-secondary-color);
429
429
  }
430
430
 
431
431
  .dtable-ui-filters-list .single-select-option,
@@ -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
  };
@@ -65,8 +65,7 @@ class DTableSelect extends _react.default.Component {
65
65
  ref: innerRef,
66
66
  filterOption: customFilterOption,
67
67
  form: form,
68
- autoFocus: autoFocus,
69
- menuIsOpen: true
68
+ autoFocus: autoFocus
70
69
  });
71
70
  }
72
71
  }
@@ -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
@@ -134,3 +134,8 @@
134
134
  .option-group-selector-single-select .form-control {
135
135
  padding: .375rem .5rem !important;
136
136
  }
137
+
138
+ .pre-fill-dialog .single-select-option,
139
+ .pre-fill-dialog .multiple-select-option {
140
+ padding: 0 !important;
141
+ }
@@ -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.9",
3
+ "version": "6.0.126-beta.s1",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "5.0.9",