dtable-ui-component 6.0.113-wry.8 → 6.0.114-kfc.3
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.
|
@@ -45,3 +45,14 @@
|
|
|
45
45
|
.dtable-ui.formula-formatter.multiple .formula-formatter-content-item .collaborator {
|
|
46
46
|
margin-right: 0;
|
|
47
47
|
}
|
|
48
|
+
|
|
49
|
+
.dtable-ui.formula-formatter {
|
|
50
|
+
white-space: pre-wrap;
|
|
51
|
+
word-wrap: break-word;
|
|
52
|
+
line-height: 1.5;
|
|
53
|
+
width: 100%;
|
|
54
|
+
text-decoration: none;
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
text-overflow: ellipsis;
|
|
57
|
+
}
|
|
58
|
+
|
package/lib/IconButton/index.js
CHANGED
|
@@ -1,39 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = void 0;
|
|
9
8
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
10
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
11
|
-
var _react =
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
12
11
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
-
var _DTableToolTip = _interopRequireDefault(require("../DTableToolTip"));
|
|
14
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
const _excluded = ["disabled", "className", "icon", "children"
|
|
13
|
+
const _excluded = ["disabled", "className", "icon", "children"];
|
|
16
14
|
const IconButton = _ref => {
|
|
17
15
|
let {
|
|
18
16
|
disabled,
|
|
19
17
|
className,
|
|
20
18
|
icon,
|
|
21
|
-
children
|
|
22
|
-
title
|
|
19
|
+
children
|
|
23
20
|
} = _ref,
|
|
24
21
|
otherProperties = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
25
|
-
const uniqueId = (0, _react.useMemo)(() => "seatable-icon-btn-".concat(Math.random().toString(36).substr(2, 9)), []);
|
|
26
22
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
27
23
|
className: (0, _classnames.default)('seatable-icon-btn', className, {
|
|
28
24
|
'disabled': disabled
|
|
29
25
|
})
|
|
30
26
|
}, otherProperties), {}, {
|
|
31
|
-
|
|
32
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableToolTip.default, {
|
|
33
|
-
placement: "bottom",
|
|
34
|
-
target: uniqueId,
|
|
35
|
-
children: title
|
|
36
|
-
}), icon && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
27
|
+
children: [icon && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
37
28
|
className: (0, _classnames.default)('seatable-icon dtable-font', "dtable-icon-".concat(icon)),
|
|
38
29
|
"aria-hidden": "true"
|
|
39
30
|
}), children]
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
margin: 5px 10px 5px 0;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.dtable-ui.dtable-ui-row-expand-formatter .dtable-ui.formula-formatter,
|
|
19
18
|
.dtable-ui.dtable-ui-row-expand-formatter .dtable-ui.text-formatter,
|
|
20
19
|
.dtable-ui.dtable-ui-row-expand-formatter .dtable-ui.url-formatter,
|
|
21
20
|
.dtable-ui.dtable-ui-row-expand-formatter .dtable-ui.email-formatter {
|
|
@@ -28,6 +27,16 @@
|
|
|
28
27
|
text-decoration: none;
|
|
29
28
|
}
|
|
30
29
|
|
|
30
|
+
.dtable-ui.dtable-ui-row-expand-formatter .dtable-ui.formula-formatter {
|
|
31
|
+
white-space: pre-wrap;
|
|
32
|
+
word-wrap: break-word;
|
|
33
|
+
line-height: 1.5;
|
|
34
|
+
width: 100%;
|
|
35
|
+
text-decoration: none;
|
|
36
|
+
overflow: hidden;
|
|
37
|
+
text-overflow: ellipsis;
|
|
38
|
+
}
|
|
39
|
+
|
|
31
40
|
.dtable-ui.dtable-ui-row-expand-formatter .dtable-ui.multiple-select-formatter .dtable-ui.select-item {
|
|
32
41
|
margin: 5px 0;
|
|
33
42
|
}
|
package/lib/index.js
CHANGED
|
@@ -202,12 +202,6 @@ Object.defineProperty(exports, "DTableSwitch", {
|
|
|
202
202
|
return _DTableSwitch.default;
|
|
203
203
|
}
|
|
204
204
|
});
|
|
205
|
-
Object.defineProperty(exports, "DTableToolTip", {
|
|
206
|
-
enumerable: true,
|
|
207
|
-
get: function () {
|
|
208
|
-
return _DTableToolTip.default;
|
|
209
|
-
}
|
|
210
|
-
});
|
|
211
205
|
Object.defineProperty(exports, "DateEditor", {
|
|
212
206
|
enumerable: true,
|
|
213
207
|
get: function () {
|
|
@@ -697,7 +691,6 @@ var _index = _interopRequireDefault(require("./DTableGroupSelect/index"));
|
|
|
697
691
|
var _dtableSelectLabel = _interopRequireDefault(require("./DTableSelect/dtable-select-label"));
|
|
698
692
|
var _DTableSwitch = _interopRequireDefault(require("./DTableSwitch"));
|
|
699
693
|
var _DTableCustomizeSelect = _interopRequireDefault(require("./DTableCustomizeSelect"));
|
|
700
|
-
var _DTableToolTip = _interopRequireDefault(require("./DTableToolTip"));
|
|
701
694
|
var _DTableCustomizeCollaboratorSelect = _interopRequireDefault(require("./DTableCustomizeCollaboratorSelect"));
|
|
702
695
|
var _DTableSearchInput = _interopRequireDefault(require("./DTableSearchInput"));
|
|
703
696
|
var _DTableColorPicker = _interopRequireDefault(require("./DTableColorPicker"));
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dtable-ui-component",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.114kfc.3",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@seafile/react-image-lightbox": "^5.0.
|
|
6
|
+
"@seafile/react-image-lightbox": "^5.0.7",
|
|
7
7
|
"@seafile/seafile-calendar": "^1.0.10",
|
|
8
|
-
"@seafile/seafile-editor": "^3.0.
|
|
8
|
+
"@seafile/seafile-editor": "^3.0.32",
|
|
9
9
|
"classnames": "~2.5.*",
|
|
10
10
|
"dayjs": "1.10.7",
|
|
11
11
|
"dtable-utils": "~5.0.27",
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
.dtable-tooltip {
|
|
2
|
-
position: absolute;
|
|
3
|
-
z-index: 99999;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.dtable-tooltip .tooltip {
|
|
7
|
-
max-width: 242px;
|
|
8
|
-
min-width: max-content;
|
|
9
|
-
opacity: 1;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.dtable-tooltip .tooltip .tooltip-inner {
|
|
13
|
-
font-size: 14px;
|
|
14
|
-
text-align: start;
|
|
15
|
-
background-color: var(--bs-body-color);
|
|
16
|
-
color: var(--bs-body-bg);
|
|
17
|
-
border-radius: 4px;
|
|
18
|
-
padding: 4px 8px;
|
|
19
|
-
line-height: 20px;
|
|
20
|
-
font-weight: normal;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.dtable-tooltip-shortcut-inner {
|
|
24
|
-
display: flex;
|
|
25
|
-
align-items: center;
|
|
26
|
-
justify-content: space-between;
|
|
27
|
-
gap: 4px;
|
|
28
|
-
line-height: 20px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.dtable-tooltip-shortcut-keys {
|
|
32
|
-
display: inline-flex;
|
|
33
|
-
align-items: center;
|
|
34
|
-
gap: 4px;
|
|
35
|
-
flex-shrink: 0;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.dtable-tooltip-shortcut-key {
|
|
39
|
-
display: inline-block;
|
|
40
|
-
padding: 2px 8px;
|
|
41
|
-
border: 1px solid #999;
|
|
42
|
-
border-radius: 4px;
|
|
43
|
-
white-space: nowrap;
|
|
44
|
-
line-height: 14px;
|
|
45
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var _reactstrap = require("reactstrap");
|
|
11
|
-
require("./index.css");
|
|
12
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
const DTableToolTip = _ref => {
|
|
14
|
-
let {
|
|
15
|
-
target,
|
|
16
|
-
placement = 'bottom',
|
|
17
|
-
className,
|
|
18
|
-
children,
|
|
19
|
-
shortcut
|
|
20
|
-
} = _ref;
|
|
21
|
-
const hasShortcut = Boolean(shortcut);
|
|
22
|
-
const renderContent = () => {
|
|
23
|
-
if (hasShortcut) {
|
|
24
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
25
|
-
className: "dtable-tooltip-shortcut-inner",
|
|
26
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
27
|
-
className: "dtable-tooltip-text",
|
|
28
|
-
children: children
|
|
29
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
30
|
-
className: "dtable-tooltip-shortcut-keys",
|
|
31
|
-
children: shortcut.map((key, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
32
|
-
className: "dtable-tooltip-shortcut-key",
|
|
33
|
-
children: key
|
|
34
|
-
}, index))
|
|
35
|
-
})]
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
return children;
|
|
39
|
-
};
|
|
40
|
-
const tooltipProps = {
|
|
41
|
-
target,
|
|
42
|
-
placement,
|
|
43
|
-
className: "dtable-tooltip ".concat(className ? className : ''),
|
|
44
|
-
innerClassName: hasShortcut ? 'dtable-tooltip-shortcut-inner' : '',
|
|
45
|
-
delay: {
|
|
46
|
-
show: 0,
|
|
47
|
-
hide: 0
|
|
48
|
-
},
|
|
49
|
-
hideArrow: true,
|
|
50
|
-
autohide: false,
|
|
51
|
-
modifiers: [{
|
|
52
|
-
name: 'offset',
|
|
53
|
-
options: {
|
|
54
|
-
offset: [0, -2.5]
|
|
55
|
-
}
|
|
56
|
-
}, {
|
|
57
|
-
name: 'preventOverflow',
|
|
58
|
-
options: {
|
|
59
|
-
boundariesElement: 'window'
|
|
60
|
-
}
|
|
61
|
-
}]
|
|
62
|
-
};
|
|
63
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.UncontrolledTooltip, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, tooltipProps), {}, {
|
|
64
|
-
children: renderContent()
|
|
65
|
-
}));
|
|
66
|
-
};
|
|
67
|
-
var _default = exports.default = DTableToolTip;
|