dtable-ui-component 7.0.12 → 7.0.13-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.
|
@@ -46,6 +46,11 @@ class ParticipantSelect extends _react.Component {
|
|
|
46
46
|
participants: updatedValue
|
|
47
47
|
});
|
|
48
48
|
};
|
|
49
|
+
this.clearSearchValue = () => {
|
|
50
|
+
this.setState({
|
|
51
|
+
searchVal: ''
|
|
52
|
+
});
|
|
53
|
+
};
|
|
49
54
|
this.onChangeSearch = event => {
|
|
50
55
|
let searchVal = this.state.searchVal;
|
|
51
56
|
if (searchVal === event.target.value) {
|
|
@@ -158,12 +163,22 @@ class ParticipantSelect extends _react.Component {
|
|
|
158
163
|
ref: ref => this.participantsRef = ref,
|
|
159
164
|
children: [this.renderParticipantList(), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
160
165
|
className: "dtable-ui-participants-editor-search",
|
|
161
|
-
children: /*#__PURE__*/(0, _jsxRuntime.
|
|
162
|
-
className: "
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
166
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
167
|
+
className: "seatable-input-wrapper",
|
|
168
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
169
|
+
className: "form-control form-control-clear-icon",
|
|
170
|
+
type: "text",
|
|
171
|
+
placeholder: (0, _lang.getLocale)('Search_collaborator'),
|
|
172
|
+
value: this.state.searchVal,
|
|
173
|
+
onChange: this.onChangeSearch
|
|
174
|
+
}), this.state.searchVal && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
175
|
+
className: "search-icon-right",
|
|
176
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
177
|
+
className: " dtable-font dtable-icon-x",
|
|
178
|
+
"aria-hidden": "true",
|
|
179
|
+
onClick: this.clearSearchValue
|
|
180
|
+
})
|
|
181
|
+
})]
|
|
167
182
|
})
|
|
168
183
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
169
184
|
className: "dtable-ui-participants-editor-participants-container",
|
|
@@ -65,7 +65,7 @@ class DTableCustomizeSearchInput extends _react.Component {
|
|
|
65
65
|
onClick: this.clearSearch,
|
|
66
66
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableIcon.default, {
|
|
67
67
|
symbol: "close",
|
|
68
|
-
color: "var(--bs-icon-
|
|
68
|
+
color: "var(--bs-icon-color)"
|
|
69
69
|
})
|
|
70
70
|
});
|
|
71
71
|
};
|
|
@@ -19,6 +19,10 @@
|
|
|
19
19
|
color: var(--bs-bg-placeholder-color);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
.seatable-customize-select.disabled {
|
|
23
|
+
background-color: #f5f5f5;
|
|
24
|
+
}
|
|
25
|
+
|
|
22
26
|
.seatable-customize-select:focus,
|
|
23
27
|
.seatable-customize-select.focus {
|
|
24
28
|
border: 1px solid var(--bs-bg-border-color) !important;
|
|
@@ -19,6 +19,11 @@ class PCLinkEditorPopover extends _react.default.Component {
|
|
|
19
19
|
searchValue: value
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
|
+
this.clearSearchValue = () => {
|
|
23
|
+
this.setState({
|
|
24
|
+
searchValue: ''
|
|
25
|
+
});
|
|
26
|
+
};
|
|
22
27
|
this.onInputClick = event => {
|
|
23
28
|
event.nativeEvent.stopImmediatePropagation();
|
|
24
29
|
event.stopPropagation();
|
|
@@ -54,12 +59,22 @@ class PCLinkEditorPopover extends _react.default.Component {
|
|
|
54
59
|
style: popoverStyle,
|
|
55
60
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
56
61
|
className: "link-options-search",
|
|
57
|
-
children: /*#__PURE__*/(0, _jsxRuntime.
|
|
58
|
-
className: "
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
63
|
+
className: "seatable-input-wrapper",
|
|
64
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
65
|
+
className: "form-control form-control-clear-icon",
|
|
66
|
+
value: searchValue,
|
|
67
|
+
onChange: this.onValueChanged,
|
|
68
|
+
onClick: this.onInputClick,
|
|
69
|
+
placeholder: (0, _lang.getLocale)('Search_option')
|
|
70
|
+
}), searchValue && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
71
|
+
className: "search-icon-right",
|
|
72
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
73
|
+
className: " dtable-font dtable-icon-x",
|
|
74
|
+
"aria-hidden": "true",
|
|
75
|
+
onClick: this.clearSearchValue
|
|
76
|
+
})
|
|
77
|
+
})]
|
|
63
78
|
})
|
|
64
79
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
65
80
|
className: "link-options-container",
|