@seafile/seafile-database 0.0.32 → 0.0.34
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/dist/common/components/select-option-group/index.css +13 -13
- package/dist/common/components/select-option-group/index.js +1 -1
- package/dist/components/data-process-setter/view-type-setter.js +0 -1
- package/dist/components/hover-menu/index.js +2 -2
- package/dist/components/popover/settings-popover/index.js +0 -4
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.option-group {
|
|
1
|
+
.sea-metadata-option-group {
|
|
2
2
|
position: absolute;
|
|
3
3
|
left: 0;
|
|
4
4
|
min-height: 60px;
|
|
@@ -13,29 +13,29 @@
|
|
|
13
13
|
z-index: 10001;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.option-group .option-group-search {
|
|
16
|
+
.sea-metadata-option-group .sea-metadata-option-group-search {
|
|
17
17
|
width: 100%;
|
|
18
18
|
padding: 0 10px 6px 10px;
|
|
19
19
|
min-width: 170px;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.option-group-search .form-control {
|
|
22
|
+
.sea-metadata-option-group-search .form-control {
|
|
23
23
|
height: 31px;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.option-group .none-search-result {
|
|
26
|
+
.sea-metadata-option-group .none-search-result {
|
|
27
27
|
height: 100px;
|
|
28
28
|
width: 100%;
|
|
29
29
|
padding: 10px;
|
|
30
30
|
font-size: 14px;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
.option-group .option-group-content {
|
|
33
|
+
.sea-metadata-option-group .option-group-content {
|
|
34
34
|
max-height: 252px;
|
|
35
35
|
overflow-y: auto;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
.option-group .option {
|
|
38
|
+
.sea-metadata-option-group .option {
|
|
39
39
|
display: block;
|
|
40
40
|
width: 100%;
|
|
41
41
|
line-height: 24px;
|
|
@@ -50,29 +50,29 @@
|
|
|
50
50
|
white-space: nowrap;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
.option-group .option.active {
|
|
53
|
+
.sea-metadata-option-group .option.active {
|
|
54
54
|
background-color: #20a0ff;
|
|
55
55
|
color: #fff;
|
|
56
56
|
cursor: pointer;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
.option-group .option:hover .header-icon,
|
|
60
|
-
.option-group .option.active .select-option-name {
|
|
59
|
+
.sea-metadata-option-group .option:hover .header-icon,
|
|
60
|
+
.sea-metadata-option-group .option.active .select-option-name {
|
|
61
61
|
color: #fff;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
.option-group .option.active .header-icon {
|
|
64
|
+
.sea-metadata-option-group .option.active .header-icon {
|
|
65
65
|
color: #fff;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
.option-group .option:not(.active):hover .header-icon {
|
|
68
|
+
.sea-metadata-option-group .option:not(.active):hover .header-icon {
|
|
69
69
|
color: #aaa;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
.option-group .option .select-option-name .single-select-option {
|
|
72
|
+
.sea-metadata-option-group .option .select-option-name .single-select-option {
|
|
73
73
|
margin: 0 0 0 12px;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
.option-group .option .select-option-name .multiple-select-option {
|
|
76
|
+
.sea-metadata-option-group .option .select-option-name .multiple-select-option {
|
|
77
77
|
margin: 0;
|
|
78
78
|
}
|
|
@@ -214,7 +214,7 @@ class OptionGroup extends _react.Component {
|
|
|
214
214
|
return /*#__PURE__*/_react.default.createElement(_clickOutside.default, {
|
|
215
215
|
onClickOutside: this.props.onClickOutside
|
|
216
216
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
217
|
-
className: (0, _classnames.default)('option-group', className ? 'option-group-' + className : '', {
|
|
217
|
+
className: (0, _classnames.default)('sea-metadata-option-group', className ? 'option-group-' + className : '', {
|
|
218
218
|
'pt-0': isShowSelected,
|
|
219
219
|
'create-new-option-group': addOptionAble
|
|
220
220
|
}),
|
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _hotkey = require("../../common/utils/hotkey");
|
|
11
10
|
var _translate = _interopRequireDefault(require("../../lang/translate"));
|
|
12
11
|
var _icons = _interopRequireDefault(require("../icons"));
|
|
13
12
|
var _popover = require("../popover");
|
|
@@ -87,7 +87,7 @@ const FileViewHoverMenu = _ref => {
|
|
|
87
87
|
groupbys: view.groupbys,
|
|
88
88
|
modifyGroupbys: modifyGroupbys
|
|
89
89
|
}), viewType === _constants.VIEW_TYPE.TABLE && /*#__PURE__*/_react.default.createElement(_dataProcessSetter.HideColumnSetter, {
|
|
90
|
-
wrapperClass: "sea-metadata-view-tool-hide-column
|
|
90
|
+
wrapperClass: "sea-metadata-view-tool-hide-column",
|
|
91
91
|
target: `sea-metadata-hide-column-popover-${view._id}`,
|
|
92
92
|
readOnly: readOnly,
|
|
93
93
|
columns: viewColumns === null || viewColumns === void 0 ? void 0 : viewColumns.slice(fixedColumnCount),
|
|
@@ -95,7 +95,7 @@ const FileViewHoverMenu = _ref => {
|
|
|
95
95
|
modifyHiddenColumns: modifyHiddenColumns,
|
|
96
96
|
modifyColumnOrder: modifyColumnOrder
|
|
97
97
|
}), viewType === _constants.VIEW_TYPE.CARD && /*#__PURE__*/_react.default.createElement(_dataProcessSetter.SettingsSetter, {
|
|
98
|
-
wrapperClass: "sea-metadata-view-tool-operation-btn sea-metadata-view-tool-view-type
|
|
98
|
+
wrapperClass: "sea-metadata-view-tool-operation-btn sea-metadata-view-tool-view-type",
|
|
99
99
|
target: `sea-metadata-setting-popover-${view._id}`,
|
|
100
100
|
readOnly: readOnly,
|
|
101
101
|
columns: viewColumns === null || viewColumns === void 0 ? void 0 : viewColumns.slice(fixedColumnCount),
|
|
@@ -28,7 +28,6 @@ const SettingsPopover = _ref => {
|
|
|
28
28
|
onToggleFieldsVisibility,
|
|
29
29
|
hidePopover
|
|
30
30
|
} = _ref;
|
|
31
|
-
const [isShowPopover, setIsShowPopover] = (0, _react.useState)(false);
|
|
32
31
|
const onChangeNullProperty = (0, _react.useCallback)(() => {
|
|
33
32
|
handleUpdateSettings('hide_empty_value', !settings.hide_empty_value);
|
|
34
33
|
}, [handleUpdateSettings, settings.hide_empty_value]);
|
|
@@ -38,9 +37,6 @@ const SettingsPopover = _ref => {
|
|
|
38
37
|
const onChangeTextWrap = (0, _react.useCallback)(() => {
|
|
39
38
|
handleUpdateSettings('text_wrap', !settings.text_wrap);
|
|
40
39
|
}, [handleUpdateSettings, settings.text_wrap]);
|
|
41
|
-
const onFieldPopoverToggle = (0, _react.useCallback)(() => {
|
|
42
|
-
setIsShowPopover(!isShowPopover);
|
|
43
|
-
}, [isShowPopover]);
|
|
44
40
|
return /*#__PURE__*/_react.default.createElement(_components.CustomizePopover, {
|
|
45
41
|
target: target,
|
|
46
42
|
popoverClassName: "sea-metadata-settings-popover",
|