dtable-ui-component 6.0.120-xms.20 → 6.0.121

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.
@@ -69,7 +69,8 @@ const DTableDropdownItem = _ref => {
69
69
  className: "item-icon"
70
70
  }), leftSlotContent || null]
71
71
  }), renderedIcon(), typeof content === 'string' && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
72
- className: "item-text",
72
+ className: "item-text text-truncate",
73
+ title: content,
73
74
  "aria-label": content,
74
75
  children: content
75
76
  }), typeof content !== 'string' && (content || ''), rightSlotContent && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
@@ -10,7 +10,6 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
  var _reactstrap = require("reactstrap");
12
12
  var _IconButton = _interopRequireDefault(require("../IconButton"));
13
- var _lang = require("../lang");
14
13
  require("./index.css");
15
14
  var _jsxRuntime = require("react/jsx-runtime");
16
15
  const _excluded = ["children"];
@@ -27,10 +26,7 @@ const DTableModalHeader = _ref => {
27
26
  onClick: props.toggle,
28
27
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconButton.default, {
29
28
  icon: "x",
30
- className: "dtable-modal-close-inner",
31
- id: "seatable-modal-x",
32
- tooltip: (0, _lang.getLocale)('Close'),
33
- title: (0, _lang.getLocale)('Close')
29
+ className: "dtable-modal-close-inner"
34
30
  })
35
31
  });
36
32
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.ModalHeader, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
@@ -9,47 +9,25 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/
9
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
  var _classnames = _interopRequireDefault(require("classnames"));
12
- var _DTableToolTip = _interopRequireDefault(require("../DTableToolTip"));
13
12
  var _jsxRuntime = require("react/jsx-runtime");
14
- const _excluded = ["disabled", "className", "id", "icon", "title", "placement", "tooltip", "children", "style", "onClick"];
13
+ const _excluded = ["disabled", "className", "icon", "children"];
15
14
  const IconButton = _ref => {
16
15
  let {
17
16
  disabled,
18
17
  className,
19
- id,
20
18
  icon,
21
- title,
22
- placement,
23
- tooltip,
24
- children,
25
- style,
26
- onClick
19
+ children
27
20
  } = _ref,
28
- others = (0, _objectWithoutProperties2.default)(_ref, _excluded);
29
- const iconWrapper = /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", (0, _objectSpread2.default)((0, _objectSpread2.default)({
21
+ otherProperties = (0, _objectWithoutProperties2.default)(_ref, _excluded);
22
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", (0, _objectSpread2.default)((0, _objectSpread2.default)({
30
23
  className: (0, _classnames.default)('seatable-icon-btn', className, {
31
24
  'disabled': disabled
32
- }),
33
- id: id,
34
- style: style,
35
- role: "button",
36
- "aria-label": title,
37
- onClick: onClick
38
- }, others), {}, {
25
+ })
26
+ }, otherProperties), {}, {
39
27
  children: [icon && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
40
28
  className: (0, _classnames.default)('seatable-icon dtable-font', "dtable-icon-".concat(icon)),
41
29
  "aria-hidden": "true"
42
30
  }), children]
43
31
  }));
44
- if (tooltip && id) {
45
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
46
- children: [iconWrapper, /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableToolTip.default, {
47
- target: id,
48
- placement: placement,
49
- children: tooltip
50
- })]
51
- });
52
- }
53
- return iconWrapper;
54
32
  };
55
33
  var _default = exports.default = IconButton;
@@ -8,7 +8,6 @@ exports.default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _reactstrap = require("reactstrap");
10
10
  var _IconButton = _interopRequireDefault(require("../IconButton"));
11
- var _lang = require("../lang");
12
11
  require("./index.css");
13
12
  var _jsxRuntime = require("react/jsx-runtime");
14
13
  class NotificationPopover extends _react.default.Component {
@@ -63,10 +62,7 @@ class NotificationPopover extends _react.default.Component {
63
62
  className: "notification-header",
64
63
  children: [headerText, /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconButton.default, {
65
64
  icon: "x",
66
- onClick: this.props.onNotificationListToggle,
67
- id: "notification-popover-x",
68
- tooltip: (0, _lang.getLocale)('Close'),
69
- title: (0, _lang.getLocale)('Close')
65
+ onClick: this.props.onNotificationListToggle
70
66
  })]
71
67
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
72
68
  className: "notification-body",
@@ -43,15 +43,13 @@ const Header = _ref => {
43
43
  children: [copyURL && /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconButton.default, {
44
44
  icon: "url",
45
45
  onClick: () => copyURL(),
46
- tooltip: (0, _lang.getLocale)('Get_URL'),
47
- title: (0, _lang.getLocale)('Get_URL'),
48
- id: "row-expand-url"
46
+ "aria-label": (0, _lang.getLocale)('Get_URL'),
47
+ title: (0, _lang.getLocale)('Get_URL')
49
48
  }), children, /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconButton.default, {
50
49
  icon: "x",
51
50
  onClick: onToggle,
52
51
  title: (0, _lang.getLocale)('Close_expanded_record'),
53
- tooltip: (0, _lang.getLocale)('Close_expanded_record'),
54
- id: "row-expand-x"
52
+ "aria-label": (0, _lang.getLocale)('Close_expanded_record')
55
53
  })]
56
54
  }),
57
55
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "6.0.120xms.20",
3
+ "version": "6.0.121",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "^5.0.8",