dtable-ui-component 6.0.117-beta.8 → 6.0.117

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.
@@ -26,7 +26,9 @@ const DTableDropdownItem = _ref => {
26
26
  rightSlotContent,
27
27
  icon,
28
28
  content,
29
- onClick
29
+ onClick,
30
+ style,
31
+ tabIndex
30
32
  } = _ref;
31
33
  if (divider) {
32
34
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.DropdownItem, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, itemProps), {}, {
@@ -48,6 +50,12 @@ const DTableDropdownItem = _ref => {
48
50
  if (typeof toggle === 'boolean') {
49
51
  customItemProps.toggle = toggle;
50
52
  }
53
+ if (style) {
54
+ customItemProps.style = style;
55
+ }
56
+ if (typeof tabIndex === 'number') {
57
+ customItemProps.tabIndex = tabIndex;
58
+ }
51
59
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactstrap.DropdownItem, (0, _objectSpread2.default)((0, _objectSpread2.default)({
52
60
  className: className,
53
61
  disabled: disabled,
@@ -11,6 +11,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
11
11
  var _jsxRuntime = require("react/jsx-runtime");
12
12
  const DTableDropdownMenu = _ref => {
13
13
  let {
14
+ id,
14
15
  className,
15
16
  container,
16
17
  modifiers,
@@ -20,6 +21,12 @@ const DTableDropdownMenu = _ref => {
20
21
  children
21
22
  } = _ref;
22
23
  let customMenuProps = (0, _objectSpread2.default)({}, menuProps);
24
+ customMenuProps.modifiers = [{
25
+ name: 'preventOverflow',
26
+ options: {
27
+ boundary: document.body
28
+ }
29
+ }, ...((customMenuProps === null || customMenuProps === void 0 ? void 0 : customMenuProps.modifiers) || [])];
23
30
  if (container) {
24
31
  customMenuProps.container = container;
25
32
  }
@@ -33,6 +40,7 @@ const DTableDropdownMenu = _ref => {
33
40
  customMenuProps.flip = flip;
34
41
  }
35
42
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.DropdownMenu, (0, _objectSpread2.default)((0, _objectSpread2.default)({
43
+ id: id,
36
44
  className: (0, _classnames.default)('dtable-dropdown-menu', className)
37
45
  }, customMenuProps), {}, {
38
46
  children: children
@@ -11,6 +11,7 @@ var _DTableDropdownMenu = _interopRequireDefault(require("../DTableDropdownMenu"
11
11
  var _jsxRuntime = require("react/jsx-runtime");
12
12
  const DTableSubDropdownMenu = _ref => {
13
13
  let {
14
+ id,
14
15
  className,
15
16
  container,
16
17
  modifiers,
@@ -33,6 +34,7 @@ const DTableSubDropdownMenu = _ref => {
33
34
  customMenuProps.flip = flip;
34
35
  }
35
36
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableDropdownMenu.default, {
37
+ id: id,
36
38
  className: (0, _classnames.default)('dtable-sub-dropdown-menu', className),
37
39
  menuProps: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, customMenuProps), {}, {
38
40
  modifiers: [{
@@ -124,7 +124,10 @@ function ImagePreviewerLightbox(props) {
124
124
  zoomOutTip: (0, _lang.getLocale)('Zoom_out'),
125
125
  rotateTip: (0, _lang.getLocale)('Rotate_image'),
126
126
  deleteTip: (0, _lang.getLocale)('Delete_image'),
127
- downloadImageTip: (0, _lang.getLocale)('Download_image')
127
+ downloadImageTip: (0, _lang.getLocale)('Download_image'),
128
+ preLineMetadaTip: (0, _lang.getLocale)('Pre_Line'),
129
+ nextLineMetadaTip: (0, _lang.getLocale)('Next_Line'),
130
+ closeMetadataTip: (0, _lang.getLocale)('Close')
128
131
  });
129
132
  }
130
133
  var _default = exports.default = ImagePreviewerLightbox;
@@ -47,12 +47,6 @@ const RoleStatusEditor = _ref => {
47
47
  })]
48
48
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableDropdownMenu.default, {
49
49
  className: "position-fixed",
50
- modifiers: [{
51
- name: 'preventOverflow',
52
- options: {
53
- boundary: document.body
54
- }
55
- }],
56
50
  children: menuOptions.map(option => {
57
51
  const {
58
52
  value,
@@ -12,6 +12,8 @@
12
12
  "Rotate_image": "Rotate image",
13
13
  "Delete_image": "delete image",
14
14
  "Download_image": "Download image",
15
+ "Pre_Line": "previous Line",
16
+ "Next_Line": "next Line",
15
17
  "Zoom_in": "Zoom in",
16
18
  "Zoom_out": "Zoom out",
17
19
  "Choose_a_collaborator": "Wählen Sie einen Mitarbeiter",
@@ -12,6 +12,8 @@
12
12
  "Rotate_image": "Rotate image",
13
13
  "Delete_image": "delete image",
14
14
  "Download_image": "Download image",
15
+ "Pre_Line": "previous Line",
16
+ "Next_Line": "next Line",
15
17
  "Zoom_in": "Zoom in",
16
18
  "Zoom_out": "Zoom out",
17
19
  "Choose_a_collaborator": "Choose a collaborator",
@@ -12,6 +12,8 @@
12
12
  "Rotate_image": "Rotate image",
13
13
  "Delete_image": "delete image",
14
14
  "Download_image": "Download image",
15
+ "Pre_Line": "previous Line",
16
+ "Next_Line": "next Line",
15
17
  "Zoom_in": "Zoom in",
16
18
  "Zoom_out": "Zoom out",
17
19
  "Choose_a_collaborator": "Choose a collaborator",
@@ -12,6 +12,8 @@
12
12
  "Rotate_image": "Rotate image",
13
13
  "Delete_image": "delete image",
14
14
  "Download_image": "Download image",
15
+ "Pre_Line": "previous Line",
16
+ "Next_Line": "next Line",
15
17
  "Zoom_in": "Zoom in",
16
18
  "Zoom_out": "Zoom out",
17
19
  "Choose_a_collaborator": "Choisissez un collaborateur",
@@ -12,6 +12,8 @@
12
12
  "Rotate_image": "Rotate image",
13
13
  "Delete_image": "delete image",
14
14
  "Download_image": "Download image",
15
+ "Pre_Line": "previous Line",
16
+ "Next_Line": "next Line",
15
17
  "Zoom_in": "Zoom in",
16
18
  "Zoom_out": "Zoom out",
17
19
  "Choose_a_collaborator": "Choose a collaborator",
@@ -12,6 +12,8 @@
12
12
  "Rotate_image": "Rotate image",
13
13
  "Delete_image": "delete image",
14
14
  "Download_image": "Download image",
15
+ "Pre_Line": "previous Line",
16
+ "Next_Line": "next Line",
15
17
  "Zoom_in": "Zoom in",
16
18
  "Zoom_out": "Zoom out",
17
19
  "Choose_a_collaborator": "Choose a collaborator",
@@ -12,6 +12,8 @@
12
12
  "Rotate_image": "旋转",
13
13
  "Delete_image": "删除",
14
14
  "Download_image": "下载",
15
+ "Pre_Line": "上一行",
16
+ "Next_Line": "下一行",
15
17
  "Zoom_in": "放大",
16
18
  "Zoom_out": "缩小",
17
19
  "Choose_a_collaborator": "选择一个协作人",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "6.0.117-beta.8",
3
+ "version": "6.0.117",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "^5.0.8",