dtable-ui-component 7.0.7-utg.2 → 7.0.8

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.
@@ -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-bg-placeholder-color)
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
  }
@@ -74,12 +74,14 @@ const AsyncUserSelect = _ref => {
74
74
  const trimmedSearchValue = (searchValue === null || searchValue === void 0 ? void 0 : searchValue.trim()) || '';
75
75
  if (!trimmedSearchValue) {
76
76
  setSearchedUsers([]);
77
+ setHighlightIndex(-1);
77
78
  return;
78
79
  }
79
80
  loadOptions && loadOptions(searchValue, function () {
80
81
  let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
81
82
  // [{ email, name, avatar_url }, ...]
82
83
  setSearchedUsers(options);
84
+ setHighlightIndex(options.length > 0 ? 0 : -1);
83
85
  });
84
86
  }, [loadOptions]);
85
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;
@@ -101,7 +101,7 @@
101
101
  line-height: 20px;
102
102
  margin-right: 8px;
103
103
  width: calc(100% - 20px);
104
- display: block;
104
+ display: flex;
105
105
  text-overflow: ellipsis;
106
106
  overflow: hidden;
107
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",
@@ -19,4 +19,5 @@
19
19
  width: 100%;
20
20
  overflow: hidden;
21
21
  text-overflow: ellipsis;
22
+ white-space: nowrap;
22
23
  }
@@ -10,11 +10,11 @@
10
10
  .dtable-tooltip .tooltip .tooltip-inner {
11
11
  width: fit-content;
12
12
  max-width: 242px;
13
- font-size: 14px;
13
+ font-size: 12px;
14
14
  text-align: start;
15
15
  background-color: var(--bs-body-color);
16
16
  color: var(--bs-body-bg);
17
- border-radius: 4px;
17
+ border-radius: 8px;
18
18
  padding: 4px 8px;
19
19
  line-height: 20px;
20
20
  font-weight: normal;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "7.0.7utg.2",
3
+ "version": "7.0.8",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "5.0.9",
@@ -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.12",
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.5",
139
+ "webpack-dev-server": "^5.2.6",
140
140
  "worker-loader": "3.0.8"
141
141
  }
142
142
  }