dtable-ui-component 6.0.115 → 6.0.116-xmz.2

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.
@@ -85,6 +85,14 @@ function ImagePreviewerLightbox(props) {
85
85
  children: ["(", currentImageIndex + 1, "/", imagesLength, ")"]
86
86
  })]
87
87
  });
88
+ const moveToPrevRowImage = () => {
89
+ setCurrentImageIndex(0);
90
+ props.moveToPrevRowImage && props.moveToPrevRowImage();
91
+ };
92
+ const moveToNextRowImage = () => {
93
+ setCurrentImageIndex(0);
94
+ props.moveToNextRowImage && props.moveToNextRowImage();
95
+ };
88
96
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactImageLightbox.default, {
89
97
  imageItems: imageSrcList,
90
98
  currentIndex: currentImageIndex,
@@ -100,8 +108,8 @@ function ImagePreviewerLightbox(props) {
100
108
  onCloseRequest: props.closeImagePopup,
101
109
  onMovePrevRequest: props.moveToPrevImage,
102
110
  onMoveNextRequest: props.moveToNextImage,
103
- onClickMoveUp: props.moveToPrevRowImage,
104
- onClickMoveDown: props.moveToNextRowImage,
111
+ onClickMoveUp: moveToPrevRowImage,
112
+ onClickMoveDown: moveToNextRowImage,
105
113
  onViewOriginal: props.onViewOriginal,
106
114
  onRotateImage: canRotateImage ? deg => {
107
115
  onRotateImage(currentImageIndex, deg);
@@ -116,7 +124,9 @@ function ImagePreviewerLightbox(props) {
116
124
  zoomOutTip: (0, _lang.getLocale)('Zoom_out'),
117
125
  rotateTip: (0, _lang.getLocale)('Rotate_image'),
118
126
  deleteTip: (0, _lang.getLocale)('Delete_image'),
119
- 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')
120
130
  });
121
131
  }
122
132
  var _default = exports.default = ImagePreviewerLightbox;
@@ -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,11 +1,11 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "6.0.115",
3
+ "version": "6.0.116xmz.2",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
- "@seafile/react-image-lightbox": "^5.0.7",
6
+ "@seafile/react-image-lightbox": "5.0.82",
7
7
  "@seafile/seafile-calendar": "^1.0.10",
8
- "@seafile/seafile-editor": "^3.0.32",
8
+ "@seafile/seafile-editor": "^3.0.34",
9
9
  "classnames": "~2.5.*",
10
10
  "dayjs": "1.10.7",
11
11
  "dtable-utils": "~5.0.27",
@@ -136,7 +136,7 @@
136
136
  "terser-webpack-plugin": "^5.2.5",
137
137
  "url-loader": "^4.1.1",
138
138
  "webpack": "^5.105.4",
139
- "webpack-dev-server": "^5.2.3",
139
+ "webpack-dev-server": "^5.2.4",
140
140
  "worker-loader": "3.0.8"
141
141
  }
142
142
  }