dtable-ui-component 5.0.6 → 5.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.
@@ -17,8 +17,8 @@
17
17
  overflow: auto;
18
18
  }
19
19
 
20
- .dtable-ui-collaborator-editor-popover .collaborator-list-container .search-option-null {
21
- opacity: 0.5;
20
+ .dtable-ui-collaborator-editor-popover .collaborator-list-container .no-search-result {
21
+ color: #666666;
22
22
  padding-left: 10px;
23
23
  }
24
24
 
@@ -90,7 +90,7 @@ class PCCollaboratorEditorPopover extends _react.default.Component {
90
90
  className: "dtable-font dtable-icon-check-mark"
91
91
  })));
92
92
  }), collaborators.length === 0 && /*#__PURE__*/_react.default.createElement("div", {
93
- className: "search-option-null"
93
+ className: "no-search-result"
94
94
  }, (0, _lang.getLocale)('No_collaborators_available'))));
95
95
  }
96
96
  }
@@ -91,7 +91,9 @@ class DTableCustomizeSelect extends _react.Component {
91
91
  searchPlaceholder,
92
92
  noOptionsPlaceholder,
93
93
  isLocked,
94
- isInModal
94
+ isInModal,
95
+ addOptionAble,
96
+ component
95
97
  } = this.props;
96
98
  return /*#__PURE__*/_react.default.createElement("div", {
97
99
  ref: node => this.selector = node,
@@ -111,6 +113,8 @@ class DTableCustomizeSelect extends _react.Component {
111
113
  className: "dtable-font dtable-icon-drop-down"
112
114
  })), this.state.isShowSelectOptions && !isInModal && /*#__PURE__*/_react.default.createElement(_SelectOptionGroup.default, {
113
115
  value: value,
116
+ addOptionAble: addOptionAble,
117
+ component: component,
114
118
  isShowSelected: this.props.isShowSelected,
115
119
  top: this.getSelectedOptionTop(),
116
120
  options: options,
@@ -125,6 +129,8 @@ class DTableCustomizeSelect extends _react.Component {
125
129
  }), this.state.isShowSelectOptions && isInModal && /*#__PURE__*/_react.default.createElement(_modalPortal.default, null, /*#__PURE__*/_react.default.createElement(_SelectOptionGroup.default, {
126
130
  className: className,
127
131
  value: value,
132
+ addOptionAble: addOptionAble,
133
+ component: component,
128
134
  isShowSelected: this.props.isShowSelected,
129
135
  position: this.selector.getBoundingClientRect(),
130
136
  isInModal: isInModal,
@@ -11,10 +11,9 @@
11
11
  border-top: 1px solid #e9ecef;
12
12
  }
13
13
 
14
- /* */
15
14
  .dtable-filter-popover .popover-add-tool {
16
15
  border-top: none;
17
- color: #555555;
16
+ color: #666666;
18
17
  }
19
18
 
20
19
  .dtable-filter-popover .popover-add-tool.disabled {
@@ -16,7 +16,7 @@
16
16
  .filters-list .empty-filters-list {
17
17
  padding: 0.25rem;
18
18
  font-size: 14px;
19
- opacity: 0.5;
19
+ color: #666666;
20
20
  }
21
21
 
22
22
  .filters-list .filter-item {
@@ -78,7 +78,7 @@
78
78
 
79
79
  .filters-list .selected-conjunction-show {
80
80
  padding: 0 10px;
81
- color: #999;
81
+ color: #666;
82
82
  }
83
83
 
84
84
  .filters-list .filter-column {
@@ -276,7 +276,7 @@
276
276
 
277
277
  .filters-list .popover-add-tool {
278
278
  border-top: none;
279
- color: #555555;
279
+ color: #666666;
280
280
  }
281
281
 
282
282
  .filters-list .popover-add-tool .popover-add-icon {
@@ -12,8 +12,8 @@
12
12
 
13
13
  .dtable-ui.department-editor-list .none-search-result {
14
14
  font-size: 14px;
15
- opacity: 0.5;
16
15
  display: inline-block;
16
+ color: #666666;
17
17
  }
18
18
 
19
19
  .dtable-ui.department-editor-list .department-item-left-content {
@@ -21,7 +21,7 @@
21
21
  height: 20px;
22
22
  padding: 2px;
23
23
  margin: 4px;
24
- color: #9c9c9c;
24
+ color: #666666;
25
25
  background-color: #f0f0f0;
26
26
  border-radius: 3px;
27
27
  line-height: 16px;
@@ -60,7 +60,7 @@
60
60
  }
61
61
 
62
62
  .notification-container .notification-body .mark-notifications {
63
- color: #b4b4b4;
63
+ color: #666;
64
64
  cursor: pointer;
65
65
  border-bottom: 1px solid #ededed;
66
66
  height: 36px;
@@ -134,7 +134,7 @@
134
134
  }
135
135
 
136
136
  .notification-item .notification-header-info .notification-time {
137
- color: #b4b4b4;
137
+ color: #666;
138
138
  text-overflow: ellipsis;
139
139
  overflow: hidden;
140
140
  white-space: nowrap;
@@ -27,7 +27,7 @@
27
27
  height: 100px;
28
28
  width: 100%;
29
29
  padding: 10px;
30
- opacity: 0.5;
30
+ color: #666666;
31
31
  }
32
32
 
33
33
  .option-group .option-group-content {
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.default = void 0;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
+ var _classnames = _interopRequireDefault(require("classnames"));
10
11
  var _option = _interopRequireDefault(require("./option"));
11
12
  var _DTableSearchInput = _interopRequireDefault(require("../DTableSearchInput"));
12
13
  var _KeyCodes = _interopRequireDefault(require("./KeyCodes"));
@@ -176,8 +177,13 @@ class SelectOptionGroup extends _react.Component {
176
177
  isShowSelected,
177
178
  isInModal,
178
179
  position,
179
- className
180
+ className,
181
+ addOptionAble,
182
+ component
180
183
  } = this.props;
184
+ const {
185
+ AddOption
186
+ } = component || {};
181
187
  let {
182
188
  searchVal
183
189
  } = this.state;
@@ -204,7 +210,10 @@ class SelectOptionGroup extends _react.Component {
204
210
  return /*#__PURE__*/_react.default.createElement(_ClickOutside.default, {
205
211
  onClickOutside: this.props.onClickOutside
206
212
  }, /*#__PURE__*/_react.default.createElement("div", {
207
- className: "option-group ".concat(isShowSelected ? 'pt-0' : '', " ").concat(className ? 'option-group-' + className : ''),
213
+ className: (0, _classnames.default)('option-group', className ? 'option-group-' + className : '', {
214
+ 'pt-0': isShowSelected,
215
+ 'create-new-option-group': addOptionAble
216
+ }),
208
217
  ref: ref => this.optionGroupRef = ref,
209
218
  style: style,
210
219
  onMouseDown: this.onMouseDown
@@ -221,7 +230,7 @@ class SelectOptionGroup extends _react.Component {
221
230
  })), /*#__PURE__*/_react.default.createElement("div", {
222
231
  className: "option-group-content",
223
232
  ref: ref => this.optionGroupContentRef = ref
224
- }, this.renderOptGroup(searchVal))));
233
+ }, this.renderOptGroup(searchVal)), addOptionAble && AddOption));
225
234
  }
226
235
  }
227
236
  var _default = exports.default = SelectOptionGroup;
@@ -21,7 +21,7 @@
21
21
  height: 20px;
22
22
  padding: 2px;
23
23
  margin: 4px;
24
- color: #9c9c9c;
24
+ color: #666666;
25
25
  background-color: #f0f0f0;
26
26
  border-radius: 3px;
27
27
  line-height: 16px;
@@ -63,7 +63,7 @@
63
63
 
64
64
  .longtext-formatter-links-container, .longtext-formatter-check-list-container {
65
65
  background-color: #f0f0f0;
66
- color: #9c9c9c;
66
+ color: #666666;
67
67
  padding: 0 3px;
68
68
  height: 20px;
69
69
  line-height: 20px;
@@ -105,7 +105,7 @@ class PCSelectEditorPopover extends _react.default.Component {
105
105
  className: "dtable-font dtable-icon-check-mark"
106
106
  })));
107
107
  }), options.length === 0 && /*#__PURE__*/_react.default.createElement("div", {
108
- className: "search-option-null"
108
+ className: "no-search-result"
109
109
  }, (0, _lang.getLocale)('No_options_available'))), isSupportNewOption && !!searchValue && /*#__PURE__*/_react.default.createElement("div", {
110
110
  className: "select-options-add",
111
111
  onClick: this.onAddNewOption
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "5.0.6",
3
+ "version": "5.0.8",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "2.0.5",