dtable-ui-component 5.3.1 → 6.0.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.option-group {
|
|
1
|
+
.group-selector.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
|
+
.group-selector.option-group .option-group-search {
|
|
17
17
|
width: 100%;
|
|
18
18
|
padding: 6px 10px;
|
|
19
19
|
min-width: 170px;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.option-group-search .form-control {
|
|
22
|
+
.group-selector .option-group-search .form-control {
|
|
23
23
|
height: 31px;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.option-group .none-search-result {
|
|
26
|
+
.group-selector.option-group .none-search-result {
|
|
27
27
|
height: 100px;
|
|
28
28
|
width: 100%;
|
|
29
29
|
padding: 10px;
|
|
30
30
|
color: #666666;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
.option-group .option-group-content {
|
|
33
|
+
.group-selector.option-group .option-group-content {
|
|
34
34
|
max-height: 252px;
|
|
35
35
|
overflow-y: auto;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
.option {
|
|
38
|
+
.group-selector .option {
|
|
39
39
|
display: block;
|
|
40
40
|
width: 100%;
|
|
41
41
|
line-height: 24px;
|
|
@@ -53,39 +53,39 @@
|
|
|
53
53
|
justify-content: space-between;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
.option .dtable-icon-check-mark {
|
|
56
|
+
.group-selector .option .dtable-icon-check-mark {
|
|
57
57
|
font-size: 12px;
|
|
58
58
|
color: #798d99;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
.option.option-active {
|
|
61
|
+
.group-selector .option.option-active {
|
|
62
62
|
background-color: #20a0ff;
|
|
63
63
|
color: #fff;
|
|
64
64
|
cursor: pointer;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
.option.option-active .dtable-icon-check-mark,
|
|
68
|
-
.option.option-active .select-option-name {
|
|
67
|
+
.group-selector .option.option-active .dtable-icon-check-mark,
|
|
68
|
+
.group-selector .option.option-active .select-option-name {
|
|
69
69
|
color: #fff !important;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
.option .select-option-name .single-select-option {
|
|
72
|
+
.group-selector .option .select-option-name .single-select-option {
|
|
73
73
|
margin: 0 0 0 12px;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
.option .select-option-name .multiple-select-option {
|
|
76
|
+
.group-selector .option .select-option-name .multiple-select-option {
|
|
77
77
|
margin: 0;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
.option-group-selector-single-select .select-option-name {
|
|
80
|
+
.group-selector .option-group-selector-single-select .select-option-name {
|
|
81
81
|
display: flex;
|
|
82
82
|
align-items: center;
|
|
83
83
|
justify-content: space-between;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
.option-group-selector-single-select .option:hover,
|
|
87
|
-
.option-group-selector-single-select .option.option-active,
|
|
88
|
-
.option-group-selector-multiple-select .option:hover,
|
|
89
|
-
.option-group-selector-multiple-select .option.option-active {
|
|
86
|
+
.group-selector .option-group-selector-single-select .option:hover,
|
|
87
|
+
.group-selector .option-group-selector-single-select .option.option-active,
|
|
88
|
+
.group-selector .option-group-selector-multiple-select .option:hover,
|
|
89
|
+
.group-selector .option-group-selector-multiple-select .option.option-active {
|
|
90
90
|
background-color: #f5f5f5;
|
|
91
91
|
}
|
|
@@ -208,7 +208,7 @@ class SelectOptionGroup extends _react.Component {
|
|
|
208
208
|
return /*#__PURE__*/_react.default.createElement(_ClickOutside.default, {
|
|
209
209
|
onClickOutside: this.props.onClickOutside
|
|
210
210
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
211
|
-
className: (0, _classnames.default)('option-group', className ? 'option-group-' + className : ''),
|
|
211
|
+
className: (0, _classnames.default)('option-group group-selector', className ? 'option-group-' + className : ''),
|
|
212
212
|
ref: ref => this.optionGroupRef = ref,
|
|
213
213
|
style: style,
|
|
214
214
|
onMouseDown: this.onMouseDown
|
|
@@ -8,12 +8,12 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _HtmlLongTextFormatter = _interopRequireDefault(require("../HtmlLongTextFormatter"));
|
|
10
10
|
var _SimpleLongTextFormatter = _interopRequireDefault(require("../SimpleLongTextFormatter"));
|
|
11
|
-
function LongTextFormatter(
|
|
12
|
-
|
|
13
|
-
isSample,
|
|
11
|
+
function LongTextFormatter(_ref) {
|
|
12
|
+
let {
|
|
13
|
+
isSample = true,
|
|
14
14
|
value,
|
|
15
15
|
containerClassName
|
|
16
|
-
} =
|
|
16
|
+
} = _ref;
|
|
17
17
|
if (isSample) {
|
|
18
18
|
return /*#__PURE__*/_react.default.createElement(_SimpleLongTextFormatter.default, {
|
|
19
19
|
value: value,
|
|
@@ -25,7 +25,4 @@ function LongTextFormatter(props) {
|
|
|
25
25
|
containerClassName: containerClassName
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
LongTextFormatter.defaultProps = {
|
|
29
|
-
isSample: true
|
|
30
|
-
};
|
|
31
28
|
var _default = exports.default = LongTextFormatter;
|
|
@@ -42,11 +42,12 @@ const RoleStatusEditor = _ref => {
|
|
|
42
42
|
})
|
|
43
43
|
}))), /*#__PURE__*/_react.default.createElement(_reactstrap.DropdownMenu, {
|
|
44
44
|
positionFixed: true,
|
|
45
|
-
modifiers: {
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
modifiers: [{
|
|
46
|
+
name: 'preventOverflow',
|
|
47
|
+
options: {
|
|
48
|
+
boundary: document.body
|
|
48
49
|
}
|
|
49
|
-
}
|
|
50
|
+
}]
|
|
50
51
|
}, menuOptions.map(option => {
|
|
51
52
|
const {
|
|
52
53
|
value,
|
package/lib/toaster/toaster.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _client = require("react-dom/client");
|
|
10
10
|
var _toastManager = _interopRequireDefault(require("./toastManager"));
|
|
11
11
|
require("./index.css");
|
|
12
12
|
const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
|
|
@@ -65,11 +65,12 @@ class Toaster {
|
|
|
65
65
|
const container = document.createElement('div');
|
|
66
66
|
container.setAttribute('data-evergreen-toaster-container', '');
|
|
67
67
|
document.body.appendChild(container);
|
|
68
|
-
|
|
68
|
+
const root = (0, _client.createRoot)(container);
|
|
69
|
+
root.render( /*#__PURE__*/_react.default.createElement(_toastManager.default, {
|
|
69
70
|
bindNotify: this._bindNotify,
|
|
70
71
|
bindGetToasts: this._bindGetToasts,
|
|
71
72
|
bindCloseAll: this._bindCloseAll
|
|
72
|
-
})
|
|
73
|
+
}));
|
|
73
74
|
}
|
|
74
75
|
}
|
|
75
76
|
exports.default = Toaster;
|
package/package.json
CHANGED
|
@@ -1,24 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dtable-ui-component",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@seafile/react-image-lightbox": "
|
|
6
|
+
"@seafile/react-image-lightbox": "4.0.0",
|
|
7
7
|
"@seafile/seafile-calendar": "0.0.24",
|
|
8
|
-
"@seafile/seafile-editor": "
|
|
8
|
+
"@seafile/seafile-editor": "2.0.0",
|
|
9
9
|
"antd-mobile": "2.3.1",
|
|
10
10
|
"classnames": "2.3.2",
|
|
11
11
|
"dayjs": "1.10.7",
|
|
12
12
|
"dtable-utils": "5.0.11",
|
|
13
13
|
"is-hotkey": "0.2.0",
|
|
14
|
-
"prop-types": "^15.8.1",
|
|
15
|
-
"react": "17.0.2",
|
|
16
|
-
"react-dom": "17.0.2",
|
|
17
|
-
"react-responsive": "9.0.2",
|
|
18
14
|
"react-color": "2.19.3",
|
|
19
|
-
"react-
|
|
20
|
-
"react-
|
|
21
|
-
"
|
|
15
|
+
"react-responsive": "10.0.0",
|
|
16
|
+
"react-select": "5.10.0",
|
|
17
|
+
"react-transition-group": "4.4.5",
|
|
18
|
+
"reactstrap": "9.2.3"
|
|
22
19
|
},
|
|
23
20
|
"scripts": {
|
|
24
21
|
"lint": "./node_modules/.bin/eslint ./src/ --fix",
|
|
@@ -66,6 +63,7 @@
|
|
|
66
63
|
"@babel/polyfill": "^7.10.1",
|
|
67
64
|
"@babel/preset-env": "^7.9.5",
|
|
68
65
|
"@babel/runtime": "7.22.11",
|
|
66
|
+
"@cfaester/enzyme-adapter-react-18": "0.8.0",
|
|
69
67
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
|
|
70
68
|
"@storybook/addon-actions": "7.6.17",
|
|
71
69
|
"@storybook/addon-docs": "7.6.17",
|
|
@@ -84,7 +82,6 @@
|
|
|
84
82
|
"@testing-library/react": "^11.1.0",
|
|
85
83
|
"@testing-library/user-event": "13.5.0",
|
|
86
84
|
"@types/jest": "^29.5.10",
|
|
87
|
-
"@wojtekmaj/enzyme-adapter-react-17": "0.8.0",
|
|
88
85
|
"autoprefixer": "10.4.5",
|
|
89
86
|
"babel-jest": "^27.4.2",
|
|
90
87
|
"babel-loader": "^8.2.3",
|
|
@@ -126,9 +123,12 @@
|
|
|
126
123
|
"postcss-normalize": "^10.0.1",
|
|
127
124
|
"postcss-preset-env": "^7.0.1",
|
|
128
125
|
"prompts": "^2.4.2",
|
|
126
|
+
"prop-types": "15.8.1",
|
|
127
|
+
"react": "18.3.1",
|
|
129
128
|
"react-app-polyfill": "^3.0.0",
|
|
130
129
|
"react-dev-utils": "^12.0.1",
|
|
131
|
-
"react-
|
|
130
|
+
"react-dom": "18.3.1",
|
|
131
|
+
"react-element-to-jsx-string": "15.0.0",
|
|
132
132
|
"react-i18next": "12.1.4",
|
|
133
133
|
"react-refresh": "^0.11.0",
|
|
134
134
|
"resolve": "^1.20.0",
|