dtable-ui-component 6.0.110-oot.4 → 6.0.110-oot.6
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.
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
align-items: center;
|
|
66
66
|
width: 100%;
|
|
67
67
|
line-height: 24px;
|
|
68
|
-
padding: 0.25rem
|
|
68
|
+
padding: 0.25rem 8px;
|
|
69
69
|
clear: both;
|
|
70
70
|
font-weight: 400;
|
|
71
71
|
text-align: inherit;
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
text-overflow: ellipsis;
|
|
76
76
|
white-space: nowrap;
|
|
77
77
|
border-radius: 4px;
|
|
78
|
+
height: 32px;
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
.seatable-select-option.seatable-select-option-active {
|
|
@@ -96,18 +97,19 @@
|
|
|
96
97
|
color: #aaa;
|
|
97
98
|
} */
|
|
98
99
|
|
|
99
|
-
.seatable-select-option .select-option-name .single-select-option {
|
|
100
|
+
/* .seatable-select-option .select-option-name .single-select-option {
|
|
100
101
|
margin: 0 0 0 12px;
|
|
101
|
-
}
|
|
102
|
+
} */
|
|
102
103
|
|
|
103
104
|
.seatable-select-option .select-option-name .multiple-select-option {
|
|
104
105
|
margin: 0;
|
|
105
106
|
}
|
|
106
107
|
|
|
107
108
|
.seatable-option-group .dtable-icon-check {
|
|
108
|
-
color:
|
|
109
|
+
color: var(--bs-icon-color);
|
|
109
110
|
}
|
|
110
111
|
|
|
112
|
+
.seatable-option-group-selector-single-select .select-label,
|
|
111
113
|
.seatable-option-group-selector-single-select .select-option-name,
|
|
112
114
|
.seatable-option-group-selector-multiple-select .multiple-option-name {
|
|
113
115
|
display: flex;
|
|
@@ -119,11 +121,11 @@
|
|
|
119
121
|
display: inline-flex;
|
|
120
122
|
width: 20px;
|
|
121
123
|
text-align: center;
|
|
124
|
+
color: var(--bs-icon-color);
|
|
122
125
|
}
|
|
123
126
|
|
|
124
|
-
.seatable-option-group-selector-multiple-select .multiple-check-icon .dtable-icon-check
|
|
127
|
+
.seatable-option-group-selector-multiple-select .multiple-check-icon .dtable-icon-check {
|
|
125
128
|
font-size: 12px;
|
|
126
|
-
color: #798d99;
|
|
127
129
|
}
|
|
128
130
|
|
|
129
131
|
.seatable-option-group-selector-single-select .seatable-select-option:hover,
|
|
@@ -154,6 +154,7 @@ class SelectOptionGroup extends _react.Component {
|
|
|
154
154
|
supportMultipleSelect: this.props.supportMultipleSelect,
|
|
155
155
|
disableHover: this.state.disableHover,
|
|
156
156
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
157
|
+
className: "select-label",
|
|
157
158
|
children: opt.label
|
|
158
159
|
}), isSelected && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
159
160
|
className: "dtable-font dtable-icon-check seatable-check-color"
|
|
@@ -66,6 +66,9 @@ class SearchInput extends _react.Component {
|
|
|
66
66
|
if (!isClearable || !searchValue) return null;
|
|
67
67
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
68
68
|
className: (0, _classnames.default)('search-text-clear input-icon-addon', clearClassName),
|
|
69
|
+
style: {
|
|
70
|
+
fontSize: '12px'
|
|
71
|
+
},
|
|
69
72
|
onClick: this.clearSearch,
|
|
70
73
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableIcon.default, {
|
|
71
74
|
symbol: "close"
|
|
@@ -129,24 +129,7 @@ class DTableSelect extends _react.default.Component {
|
|
|
129
129
|
options.shift();
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
const optionsWithCheck = options.map(option => {
|
|
133
|
-
const isSelected = value && value.value === option.value;
|
|
134
|
-
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, option), {}, {
|
|
135
|
-
label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
136
|
-
className: "d-flex align-items-center justify-content-between",
|
|
137
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
138
|
-
className: "select-option-label",
|
|
139
|
-
children: option.label
|
|
140
|
-
}), isSelected && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
141
|
-
className: "dtable-font dtable-icon-check seatable-check-color",
|
|
142
|
-
style: {
|
|
143
|
-
width: '12px',
|
|
144
|
-
height: '12px'
|
|
145
|
-
}
|
|
146
|
-
})]
|
|
147
|
-
})
|
|
148
|
-
});
|
|
149
|
-
});
|
|
132
|
+
const optionsWithCheck = options.map(option => (0, _objectSpread2.default)({}, option));
|
|
150
133
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactSelect.default, {
|
|
151
134
|
value: value,
|
|
152
135
|
isDisabled: isDisabled,
|
|
@@ -176,7 +159,33 @@ class DTableSelect extends _react.default.Component {
|
|
|
176
159
|
noOptionsMessage: noOptionsMessage,
|
|
177
160
|
filterOption: customFilterOption,
|
|
178
161
|
autoFocus: autoFocus,
|
|
179
|
-
form: form
|
|
162
|
+
form: form,
|
|
163
|
+
formatOptionLabel: (option, _ref3) => {
|
|
164
|
+
let {
|
|
165
|
+
context
|
|
166
|
+
} = _ref3;
|
|
167
|
+
const isSelected = value && value.value === option.value;
|
|
168
|
+
if (context === 'menu') {
|
|
169
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
170
|
+
className: "d-flex align-items-center justify-content-between",
|
|
171
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
172
|
+
className: "select-option-label",
|
|
173
|
+
children: option.label
|
|
174
|
+
}), isSelected && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
175
|
+
className: "dtable-font dtable-icon-check seatable-check-color",
|
|
176
|
+
style: {
|
|
177
|
+
width: '12px',
|
|
178
|
+
height: '12px'
|
|
179
|
+
}
|
|
180
|
+
})]
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
// context === 'value'
|
|
184
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
185
|
+
className: "select-option-label",
|
|
186
|
+
children: option.label
|
|
187
|
+
});
|
|
188
|
+
}
|
|
180
189
|
});
|
|
181
190
|
}
|
|
182
191
|
}
|