dtable-ui-component 7.0.7-his.5 → 7.0.7-hsm.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.
- package/lib/AsyncUserSelect/index.css +6 -3
- package/lib/AsyncUserSelect/index.js +1 -0
- package/lib/DTableCustomizeSearchInput/index.css +3 -7
- package/lib/DTableCustomizeSearchInput/index.js +2 -7
- package/lib/DTableCustomizeSelect/index.css +1 -5
- package/lib/DTableCustomizeSelect/index.js +1 -1
- package/lib/DTableSelect/dtable-select-label.css +1 -4
- package/package.json +4 -4
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
flex-wrap: wrap;
|
|
3
3
|
height: auto !important;
|
|
4
4
|
min-height: 38px;
|
|
5
|
+
max-width: calc(100% - 10px);
|
|
5
6
|
padding: .375rem 40px .375rem 1rem;
|
|
6
7
|
position: relative;
|
|
7
|
-
border-radius: 4px;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.dtable-ui-selected-users-container.focus {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.dtable-ui-selected-users-container .dtable-ui-user-select-placeholder {
|
|
15
|
-
color: var(--bs-
|
|
15
|
+
color: var(--bs-icon-color);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.select-dropdown-indicator {
|
|
@@ -31,6 +31,8 @@
|
|
|
31
31
|
|
|
32
32
|
.dtable-ui-user-select-popover {
|
|
33
33
|
z-index: 1060;
|
|
34
|
+
width: 385px !important;
|
|
35
|
+
max-width: 385px;
|
|
34
36
|
margin-top: -4px;
|
|
35
37
|
background-color: var(--bs-popover-bg);
|
|
36
38
|
box-shadow: var(--bs-border-secondary-shadow);
|
|
@@ -65,7 +67,8 @@
|
|
|
65
67
|
background: none !important;
|
|
66
68
|
}
|
|
67
69
|
|
|
68
|
-
.dtable-ui-user-select-container .dtable-ui-user-list-container .dtable-ui-user-item-container:hover
|
|
70
|
+
.dtable-ui-user-select-container .dtable-ui-user-list-container .dtable-ui-user-item-container:hover,
|
|
71
|
+
.dtable-ui-user-select-container .dtable-ui-user-list-container .dtable-ui-user-item-container-highlight {
|
|
69
72
|
background-color: var(--bs-btn-background-hover);
|
|
70
73
|
cursor: pointer;
|
|
71
74
|
}
|
|
@@ -81,6 +81,7 @@ const AsyncUserSelect = _ref => {
|
|
|
81
81
|
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
82
82
|
// [{ email, name, avatar_url }, ...]
|
|
83
83
|
setSearchedUsers(options);
|
|
84
|
+
setHighlightIndex(options.length > 0 ? 0 : -1);
|
|
84
85
|
});
|
|
85
86
|
}, [loadOptions]);
|
|
86
87
|
const onSearchValueChanged = (0, _react.useCallback)(newSearchValue => {
|
|
@@ -13,10 +13,6 @@
|
|
|
13
13
|
height: 32px;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.select-search-control::placeholder {
|
|
17
|
-
color: var(--bs-bg-placeholder-color);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
16
|
.select-search-control {
|
|
21
17
|
height: 100%;
|
|
22
18
|
border: none;
|
|
@@ -27,7 +23,7 @@
|
|
|
27
23
|
font-size: .875rem;
|
|
28
24
|
line-height: 1.6;
|
|
29
25
|
width: 100%;
|
|
30
|
-
padding:
|
|
26
|
+
padding: 6px 40px 6px 12px;
|
|
31
27
|
border-top-left-radius: 4px;
|
|
32
28
|
border-top-right-radius: 4px;
|
|
33
29
|
}
|
|
@@ -60,13 +56,13 @@
|
|
|
60
56
|
min-width: 20px;
|
|
61
57
|
pointer-events: auto;
|
|
62
58
|
color: var(--bs-icon-color);
|
|
63
|
-
right:
|
|
59
|
+
right: 6px;
|
|
64
60
|
top: 6px;
|
|
65
61
|
z-index: 1;
|
|
66
62
|
height: 20px;
|
|
67
63
|
width: 20px;
|
|
68
64
|
cursor: pointer;
|
|
69
|
-
border-radius:
|
|
65
|
+
border-radius: 3px;
|
|
70
66
|
}
|
|
71
67
|
|
|
72
68
|
.clear-icon-x .multicolor-icon {
|
|
@@ -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
|
};
|
|
@@ -104,13 +104,8 @@ class DTableCustomizeSearchInput extends _react.Component {
|
|
|
104
104
|
_this$props3$disabled = _this$props3.disabled,
|
|
105
105
|
disabled = _this$props3$disabled === void 0 ? false : _this$props3$disabled,
|
|
106
106
|
_this$props3$style = _this$props3.style,
|
|
107
|
-
style = _this$props3$style === void 0 ? {} : _this$props3$style
|
|
108
|
-
isClearable = _this$props3.isClearable,
|
|
109
|
-
_this$props3$isMultip = _this$props3.isMultiple,
|
|
110
|
-
isMultiple = _this$props3$isMultip === void 0 ? false : _this$props3$isMultip;
|
|
107
|
+
style = _this$props3$style === void 0 ? {} : _this$props3$style;
|
|
111
108
|
const searchValue = this.state.searchValue;
|
|
112
|
-
const inputWidth = isClearable && searchValue && !isMultiple ? 'calc(100% - 40px)' : '100%';
|
|
113
|
-
style.width = inputWidth;
|
|
114
109
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
|
|
115
110
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
116
111
|
type: "text",
|
|
@@ -15,10 +15,6 @@
|
|
|
15
15
|
border: 1px solid rgba(0, 40, 100, 0.12);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.seatable-select-search .select-search-control::placeholder {
|
|
19
|
-
color: var(--bs-bg-placeholder-color);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
18
|
.seatable-customize-select:focus,
|
|
23
19
|
.seatable-customize-select.focus {
|
|
24
20
|
border: 1px solid var(--bs-bg-border-color) !important;
|
|
@@ -105,7 +101,7 @@
|
|
|
105
101
|
line-height: 20px;
|
|
106
102
|
margin-right: 8px;
|
|
107
103
|
width: calc(100% - 20px);
|
|
108
|
-
display:
|
|
104
|
+
display: flex;
|
|
109
105
|
text-overflow: ellipsis;
|
|
110
106
|
overflow: hidden;
|
|
111
107
|
white-space: nowrap;
|
|
@@ -122,7 +122,7 @@ class DTableCustomizeSelect extends _react.Component {
|
|
|
122
122
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
123
123
|
className: "select-placeholder",
|
|
124
124
|
children: placeholder
|
|
125
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
125
|
+
}), !isLocked && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
126
126
|
className: "d-inline-flex align-items-center",
|
|
127
127
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableIcon.default, {
|
|
128
128
|
symbol: "down",
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dtable-ui-component",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.7hsm.2",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@seafile/react-image-lightbox": "5.0.9",
|
|
7
|
-
"@seafile/seafile-calendar": "^1.0.
|
|
7
|
+
"@seafile/seafile-calendar": "^1.0.10",
|
|
8
8
|
"@seafile/seafile-editor": "^3.0.34",
|
|
9
9
|
"classnames": "~2.5.*",
|
|
10
10
|
"dayjs": "1.10.7",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"less-loader": "^11.1.3",
|
|
113
113
|
"mini-css-extract-plugin": "^2.4.5",
|
|
114
114
|
"path-browserify": "^1.0.1",
|
|
115
|
-
"postcss": "^8.5.
|
|
115
|
+
"postcss": "^8.5.23",
|
|
116
116
|
"postcss-flexbugs-fixes": "^5.0.2",
|
|
117
117
|
"postcss-loader": "^6.2.1",
|
|
118
118
|
"postcss-normalize": "^10.0.1",
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"terser-webpack-plugin": "^5.2.5",
|
|
137
137
|
"url-loader": "^4.1.1",
|
|
138
138
|
"webpack": "^5.105.4",
|
|
139
|
-
"webpack-dev-server": "^5.2.
|
|
139
|
+
"webpack-dev-server": "^5.2.6",
|
|
140
140
|
"worker-loader": "3.0.8"
|
|
141
141
|
}
|
|
142
142
|
}
|