dtable-ui-component 7.0.10 → 7.0.11-beta.1

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
  }
@@ -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;
@@ -66,7 +62,7 @@
66
62
  height: 20px;
67
63
  width: 20px;
68
64
  cursor: pointer;
69
- border-radius: 4px;
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-secondary-color)"
68
+ color: "var(--bs-icon-color)"
69
69
  })
70
70
  });
71
71
  };
@@ -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: block;
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",
@@ -19,8 +19,5 @@
19
19
  width: 100%;
20
20
  overflow: hidden;
21
21
  text-overflow: ellipsis;
22
- }
23
-
24
- .btn-add-custom-permission {
25
- height: 16px;
22
+ white-space: nowrap;
26
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: 12px;
13
+ font-size: 14px;
14
14
  text-align: start;
15
15
  background-color: var(--bs-body-color);
16
16
  color: var(--bs-body-bg);
17
- border-radius: 8px;
17
+ border-radius: 4px;
18
18
  padding: 4px 8px;
19
19
  line-height: 20px;
20
20
  font-weight: normal;
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "7.0.10",
3
+ "version": "7.0.11-beta.1",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "5.0.9",
7
- "@seafile/seafile-calendar": "^1.0.13",
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",
11
- "dtable-utils": "~5.0.33",
11
+ "dtable-utils": "~5.0.32",
12
12
  "is-hotkey": "0.2.0",
13
13
  "rc-checkbox": "3.5.0",
14
14
  "react-color": "2.19.3",