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.
- package/lib/CollaboratorEditor/index.css +2 -2
- package/lib/CollaboratorEditor/pc-collaborator-editor-popover/index.js +1 -1
- package/lib/DTableCustomizeSelect/index.js +7 -1
- package/lib/DTableFiltersPopover/index.css +1 -2
- package/lib/DTableFiltersPopover/widgets/filter-list/index.css +3 -3
- package/lib/Department-editor/index.css +1 -1
- package/lib/HtmlLongTextFormatter/index.css +1 -1
- package/lib/NotificationPopover/index.css +2 -2
- package/lib/SelectOptionGroup/index.css +1 -1
- package/lib/SelectOptionGroup/index.js +12 -3
- package/lib/SimpleLongTextFormatter/index.css +1 -1
- package/lib/SimpleLongTextFormatter/widgets/longTextEditor.css +1 -1
- package/lib/select-editor/pc-select-editor-popover/index.js +1 -1
- package/package.json +1 -1
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
overflow: auto;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.dtable-ui-collaborator-editor-popover .collaborator-list-container .search-
|
|
21
|
-
|
|
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-
|
|
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,
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
.filters-list .empty-filters-list {
|
|
17
17
|
padding: 0.25rem;
|
|
18
18
|
font-size: 14px;
|
|
19
|
-
|
|
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: #
|
|
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: #
|
|
279
|
+
color: #666666;
|
|
280
280
|
}
|
|
281
281
|
|
|
282
282
|
.filters-list .popover-add-tool .popover-add-icon {
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
.notification-container .notification-body .mark-notifications {
|
|
63
|
-
color: #
|
|
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: #
|
|
137
|
+
color: #666;
|
|
138
138
|
text-overflow: ellipsis;
|
|
139
139
|
overflow: hidden;
|
|
140
140
|
white-space: nowrap;
|
|
@@ -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:
|
|
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;
|
|
@@ -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-
|
|
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
|