dtable-ui-component 7.0.9-beta.1 → 7.0.9-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.
@@ -28,18 +28,6 @@
28
28
  border-top-right-radius: 4px;
29
29
  }
30
30
 
31
- .select-search-control:-webkit-autofill,
32
- .select-search-control:-webkit-autofill:hover,
33
- .select-search-control:-webkit-autofill:focus,
34
- .select-search-control:-webkit-autofill:active,
35
- .select-search-control:-internal-autofill-previewed,
36
- .select-search-control:-internal-autofill-selected {
37
- -webkit-box-shadow: inset 0 0 0 1000px var(--bs-popover-bg) !important;
38
- box-shadow: inset 0 0 0 1000px var(--bs-popover-bg) !important;
39
- -webkit-text-fill-color: var(--bs-body-color) !important;
40
- transition: background-color 5000s ease-in-out 0s !important;
41
- }
42
-
43
31
  .select-search-control:focus {
44
32
  outline: none;
45
33
  box-shadow: none;
@@ -82,6 +70,6 @@
82
70
 
83
71
  .dtable-ui-user-select-popover .select-search-control,
84
72
  .dtable-popover .select-search-control {
85
- border-top-left-radius: 4px;
86
- border-top-right-radius: 4px;
73
+ border-top-left-radius: 8px;
74
+ border-top-right-radius: 8px;
87
75
  }
@@ -107,6 +107,10 @@
107
107
  white-space: nowrap;
108
108
  }
109
109
 
110
+ .seatable-customize-select .selected-option .multicolor-icon {
111
+ font-size: 12px;
112
+ }
113
+
110
114
  .seatable-customize-select .multiple-check-icon,
111
115
  .seatable-customize-select .header-icon .dtable-font,
112
116
  .seatable-option-group .select-label .header-icon .dtable-font {
@@ -121,12 +125,6 @@
121
125
  margin-left: 0 !important;
122
126
  }
123
127
 
124
- .seatable-customize-select .selected-option .dtable-icon-down3,
125
- .seatable-customize-select .selected-option .multicolor-icon {
126
- color: var(--bs-icon-color) !important;
127
- font-size: 12px;
128
- }
129
-
130
128
  .selector-group-select .selected-option-show .selected-option-item {
131
129
  align-items: center;
132
130
  border-radius: 4px;
@@ -161,9 +159,7 @@
161
159
  }
162
160
 
163
161
  .selector-group-select {
164
- height: auto;
165
- min-height: 38px;
166
- padding: 6px 16px 6px 8px;
162
+ padding: 7px 16px 7px 8px;
167
163
  }
168
164
 
169
165
  .selector-group-select .selected-option {
@@ -176,3 +172,7 @@
176
172
  height: auto;
177
173
  min-height: 24px
178
174
  }
175
+
176
+ .selector-group-select {
177
+ height: auto;
178
+ }
@@ -45,13 +45,6 @@ class DTableCustomizeSelect extends _react.Component {
45
45
  isShowSelectOptions: false
46
46
  });
47
47
  };
48
- this.handleDocumentMouseDown = event => {
49
- if (!this.state.isShowSelectOptions) return;
50
- const target = event.target;
51
- if (this.selector && this.selector.contains(target)) return;
52
- if (target && target.closest && target.closest('.seatable-option-group')) return;
53
- this.closeSelect();
54
- };
55
48
  this.getSelectedOptionTop = () => {
56
49
  if (!this.selector) return 38;
57
50
  const _this$selector$getBou = this.selector.getBoundingClientRect(),
@@ -87,12 +80,6 @@ class DTableCustomizeSelect extends _react.Component {
87
80
  isShowSelectOptions: false
88
81
  };
89
82
  }
90
- componentDidMount() {
91
- document.addEventListener('mousedown', this.handleDocumentMouseDown, true);
92
- }
93
- componentWillUnmount() {
94
- document.removeEventListener('mousedown', this.handleDocumentMouseDown, true);
95
- }
96
83
  render() {
97
84
  let _this$props2 = this.props,
98
85
  className = _this$props2.className,
@@ -132,7 +132,7 @@
132
132
  }
133
133
 
134
134
  .dtable-ui-filters-list .filter-conjunction {
135
- width: 88px;
135
+ width: 72px;
136
136
  }
137
137
 
138
138
  .dtable-ui-filters-list .filter-conjunction-readonly {
@@ -166,12 +166,21 @@
166
166
  color: #666666;
167
167
  }
168
168
 
169
+ .dtable-ui-filters-list .filter-column {
170
+ max-width: 150px;
171
+ }
172
+
169
173
  .filter-term .dtable-ui-multiple-select-selector .option,
170
174
  .filter-term .dtable-ui-single-select-selector .option {
171
175
  height: 30px;
172
176
  padding: 0 10px;
173
177
  }
174
178
 
179
+ .filter-term .dtable-ui-multiple-select-selector .select-option-name,
180
+ .filter-term .dtable-ui-single-select-selector .select-option-name {
181
+ margin-top: 5px !important;
182
+ }
183
+
175
184
  .filter-term .dtable-ui-single-select-selector .option:hover {
176
185
  color: #212529;
177
186
  background-color: #f7f7f7;
@@ -9,15 +9,7 @@
9
9
  color: var(--bs-icon-color);
10
10
  }
11
11
 
12
- .seatable-option .seatable-tip-default {
12
+ .seatable-option .select-option-name .seatable-tip-default {
13
13
  font-size: 12px;
14
14
  margin-top: 4px
15
15
  }
16
-
17
- .select-option-name .group-select-option,
18
- .seatable-option.option-name {
19
- width: 100%;
20
- overflow: hidden;
21
- text-overflow: ellipsis;
22
- white-space: nowrap;
23
- }
@@ -214,7 +214,7 @@ const Option = props => {
214
214
  whiteSpace: 'pre-line'
215
215
  },
216
216
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
217
- className: "seatable-option option-name",
217
+ className: "seatable-option",
218
218
  children: label
219
219
  }), isSelected && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
220
220
  className: "dtable-font dtable-icon-check",
@@ -66,9 +66,6 @@
66
66
 
67
67
  .select-label {
68
68
  width: 100%;
69
- overflow: hidden;
70
- white-space: nowrap;
71
- text-overflow: ellipsis;
72
69
  }
73
70
 
74
71
  .seatable-option-group-selector-multiple-select .select-label,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "7.0.9-beta.1",
3
+ "version": "7.0.9-beta.2",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "5.0.9",