dtable-ui-component 0.1.74 → 0.1.75-beta3
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.
- package/es/AutoNumberFormatter/index.css +1 -0
- package/es/{components/cell-formatter/auto-number-formatter.js → AutoNumberFormatter/index.js} +1 -0
- package/es/ButtonFormatter/index.css +13 -0
- package/es/{components/cell-formatter/button-formatter.js → ButtonFormatter/index.js} +1 -0
- package/es/CTimeFormatter/index.css +1 -0
- package/es/{components/cell-formatter/ctime-formatter.js → CTimeFormatter/index.js} +1 -0
- package/es/CheckboxFormatter/index.css +1 -0
- package/es/{components/cell-formatter/checkbox-formatter.js → CheckboxFormatter/index.js} +1 -0
- package/es/CollaboratorFormatter/index.css +1 -0
- package/es/{components/cell-formatter/collaborator-formatter.js → CollaboratorFormatter/index.js} +3 -2
- package/es/CollaboratorItem/index.css +49 -0
- package/es/CollaboratorItem/index.js +64 -0
- package/es/CreatorFormatter/index.css +1 -0
- package/es/{components/cell-formatter/creator-formatter.js → CreatorFormatter/index.js} +3 -2
- package/es/DateFormatter/index.css +1 -0
- package/es/{components/cell-formatter/date-formatter.js → DateFormatter/index.js} +2 -1
- package/es/DurationFormatter/index.css +1 -0
- package/es/{components/cell-formatter/duration-formatter.js → DurationFormatter/index.js} +2 -1
- package/es/EmailFormatter/index.css +5 -0
- package/es/{components/cell-formatter/email-formatter.js → EmailFormatter/index.js} +1 -0
- package/es/FileFormatter/index.css +29 -0
- package/es/{components/cell-formatter/file-formatter.js → FileFormatter/index.js} +2 -1
- package/es/{components/cell-formatter/widgets/file-item-formatter.js → FileItemFormatter/index.js} +2 -2
- package/es/{components/file-uploader → FileUploader}/index.js +0 -0
- package/es/FormulaFormatter/index.css +19 -0
- package/es/{components/cell-formatter/formula-formatter.js → FormulaFormatter/index.js} +8 -8
- package/es/GeolocationFormatter/index.css +1 -0
- package/es/{components/cell-formatter/geolocation-formatter.js → GeolocationFormatter/index.js} +2 -1
- package/es/{components/common → ImageFormatter}/images-lazy-load.js +2 -2
- package/es/ImageFormatter/index.css +34 -0
- package/es/{components/cell-formatter/image-formatter.js → ImageFormatter/index.js} +4 -3
- package/es/{css/image-previewer-ligntbox.css → ImagePreviewerLightbox/index.css} +0 -0
- package/es/{components/cell-formatter/widgets/image-previewer-lightbox.js → ImagePreviewerLightbox/index.js} +3 -3
- package/es/LastModifierFormatter/index.css +1 -0
- package/es/{components/cell-formatter/last-modifier-formatter.js → LastModifierFormatter/index.js} +5 -4
- package/es/LinkFormatter/index.css +27 -0
- package/es/{components/cell-formatter/link-formatter.js → LinkFormatter/index.js} +2 -2
- package/es/{css/loading.css → Loading/index.css} +0 -0
- package/es/{components/loading.js → Loading/index.js} +1 -1
- package/es/{components/cell-formatter/widgets/long-text-formatter → LongTextFormatter}/html-long-text-formatter.js +1 -1
- package/es/LongTextFormatter/index.css +63 -0
- package/es/{components/cell-formatter/long-text-formatter.js → LongTextFormatter/index.js} +3 -2
- package/es/{components/cell-formatter/widgets/long-text-formatter → LongTextFormatter}/simple-long-text-formatter.js +1 -1
- package/es/MTimeFormatter/index.css +1 -0
- package/es/{components/cell-formatter/mtime-formatter.js → MTimeFormatter/index.js} +1 -0
- package/es/{components/common/modal-portal.js → ModalPortal/index.js} +0 -0
- package/es/MultipleSelectFormatter/index.css +1 -0
- package/es/{components/cell-formatter/multiple-select-formatter.js → MultipleSelectFormatter/index.js} +2 -1
- package/es/NumberFormatter/index.css +1 -0
- package/es/{components/cell-formatter/number-formatter.js → NumberFormatter/index.js} +2 -1
- package/es/RateFormatter/index.css +1 -0
- package/es/{components/cell-formatter/rate-formatter.js → RateFormatter/index.js} +1 -0
- package/es/{components/common/select-item.js → SelectItem/index.js} +0 -0
- package/es/SingleSelectFormatter/index.css +1 -0
- package/es/{components/cell-formatter/single-select-formatter.js → SingleSelectFormatter/index.js} +2 -1
- package/es/TextFormatter/index.css +1 -0
- package/es/{components/cell-formatter/text-formatter.js → TextFormatter/index.js} +1 -0
- package/es/UrlFormatter/index.css +5 -0
- package/es/{components/cell-formatter/url-formatter.js → UrlFormatter/index.js} +1 -0
- package/es/app.js +1 -1
- package/es/{components/cell-factory/cell-formatter-factory.js → cellFormatterFactory/index.js} +3 -3
- package/es/components/cell-editor/checkbox-editor.js +104 -0
- package/es/components/cell-editor/collaborator-editor.js +236 -0
- package/es/components/cell-editor/date-editor.js +151 -0
- package/es/components/cell-editor/index.js +9 -0
- package/es/components/cell-editor/link-editor.js +303 -0
- package/es/components/cell-editor/multiple-select-editor.js +237 -0
- package/es/components/cell-editor/number-editor.js +154 -0
- package/es/components/cell-editor/single-select-editor.js +202 -0
- package/es/components/cell-editor/text-editor.js +122 -0
- package/es/components/cell-editor-dialog/pc-file-editor-dialog.js +46 -0
- package/es/components/cell-editor-dialog/pc-files-addition/index.js +0 -0
- package/es/components/cell-editor-dialog/pc-files-addition/pc-file-uploaded-item.js +0 -0
- package/es/components/cell-editor-dialog/pc-files-preview/index.js +0 -0
- package/es/components/cell-editor-dialog/pc-files-preview/pc-file-item-preview.js +0 -0
- package/es/components/cell-editor-popover/mb-collaborator-editor-popover.js +177 -0
- package/es/components/cell-editor-popover/mb-date-editor-popover.js +245 -0
- package/es/components/cell-editor-popover/mb-link-editor-popover.js +170 -0
- package/es/components/cell-editor-popover/mb-select-editor-popover.js +230 -0
- package/es/components/cell-editor-popover/pc-collaborator-editor-popover.js +109 -0
- package/es/components/cell-editor-popover/pc-date-editor-popover.js +142 -0
- package/es/components/cell-editor-popover/pc-link-editor-popover.js +114 -0
- package/es/components/cell-editor-popover/pc-select-editor-popover.js +143 -0
- package/es/constants/index.js +15 -14
- package/es/css/cell-formatter.css +0 -243
- package/es/formatterConfig/index.js +31 -0
- package/es/index.js +29 -3
- package/es/{components/toast → toaster}/alert.js +0 -0
- package/es/{components/toast → toaster}/index.js +0 -0
- package/es/{components/toast → toaster}/toast.js +0 -0
- package/es/{components/toast → toaster}/toastManager.js +0 -0
- package/es/{components/toast → toaster}/toaster.js +0 -0
- package/es/utils/cell-value-validator.js +1 -2
- package/es/utils/editor-utils.js +71 -0
- package/es/utils/normalize-long-text-value.js +2 -2
- package/es/utils/number-precision.js +1 -0
- package/es/utils/value-format-utils.js +2 -0
- package/lib/AutoNumberFormatter/index.css +1 -0
- package/lib/AutoNumberFormatter/index.js +47 -0
- package/lib/ButtonFormatter/index.css +13 -0
- package/lib/ButtonFormatter/index.js +68 -0
- package/lib/CTimeFormatter/index.css +1 -0
- package/lib/CTimeFormatter/index.js +72 -0
- package/lib/CheckboxFormatter/index.css +1 -0
- package/lib/CheckboxFormatter/index.js +58 -0
- package/lib/CollaboratorFormatter/index.css +1 -0
- package/lib/CollaboratorFormatter/index.js +113 -0
- package/lib/CollaboratorItem/index.css +49 -0
- package/lib/CollaboratorItem/index.js +81 -0
- package/lib/CreatorFormatter/index.css +1 -0
- package/lib/CreatorFormatter/index.js +107 -0
- package/lib/DateFormatter/index.css +1 -0
- package/lib/DateFormatter/index.js +75 -0
- package/lib/DurationFormatter/index.css +1 -0
- package/lib/DurationFormatter/index.js +51 -0
- package/lib/EmailFormatter/index.css +5 -0
- package/lib/EmailFormatter/index.js +47 -0
- package/lib/FileFormatter/index.css +29 -0
- package/lib/FileFormatter/index.js +79 -0
- package/lib/FileItemFormatter/index.js +63 -0
- package/lib/FileUploader/index.js +63 -0
- package/lib/FormulaFormatter/index.css +19 -0
- package/lib/FormulaFormatter/index.js +185 -0
- package/lib/GeolocationFormatter/index.css +1 -0
- package/lib/GeolocationFormatter/index.js +68 -0
- package/lib/ImageFormatter/images-lazy-load.js +158 -0
- package/lib/ImageFormatter/index.css +34 -0
- package/lib/ImageFormatter/index.js +173 -0
- package/lib/ImagePreviewerLightbox/index.css +87 -0
- package/lib/ImagePreviewerLightbox/index.js +152 -0
- package/lib/LastModifierFormatter/index.css +1 -0
- package/lib/LastModifierFormatter/index.js +107 -0
- package/lib/LinkFormatter/index.css +27 -0
- package/lib/LinkFormatter/index.js +165 -0
- package/lib/Loading/index.css +54 -0
- package/lib/Loading/index.js +16 -0
- package/lib/LongTextFormatter/html-long-text-formatter.js +107 -0
- package/lib/LongTextFormatter/index.css +63 -0
- package/lib/LongTextFormatter/index.js +48 -0
- package/lib/LongTextFormatter/simple-long-text-formatter.js +110 -0
- package/lib/MTimeFormatter/index.css +1 -0
- package/lib/MTimeFormatter/index.js +72 -0
- package/lib/ModalPortal/index.js +51 -0
- package/lib/MultipleSelectFormatter/index.css +1 -0
- package/lib/MultipleSelectFormatter/index.js +86 -0
- package/lib/NumberFormatter/index.css +1 -0
- package/lib/NumberFormatter/index.js +62 -0
- package/lib/RateFormatter/index.css +1 -0
- package/lib/RateFormatter/index.js +95 -0
- package/lib/SelectItem/index.js +73 -0
- package/lib/SingleSelectFormatter/index.css +1 -0
- package/lib/SingleSelectFormatter/index.js +86 -0
- package/lib/TextFormatter/index.css +1 -0
- package/lib/TextFormatter/index.js +69 -0
- package/lib/UrlFormatter/index.css +5 -0
- package/lib/UrlFormatter/index.js +47 -0
- package/lib/app.css +20 -0
- package/lib/app.js +96 -0
- package/lib/assets/images/avatar/default_avatar.png +0 -0
- package/lib/assets/images/file/192/excel.png +0 -0
- package/lib/assets/images/file/192/file.png +0 -0
- package/lib/assets/images/file/192/music.png +0 -0
- package/lib/assets/images/file/192/pdf.png +0 -0
- package/lib/assets/images/file/192/pic.png +0 -0
- package/lib/assets/images/file/192/ppt.png +0 -0
- package/lib/assets/images/file/192/txt.png +0 -0
- package/lib/assets/images/file/192/video.png +0 -0
- package/lib/assets/images/file/192/word.png +0 -0
- package/lib/assets/images/file/24/excel.png +0 -0
- package/lib/assets/images/file/24/file.png +0 -0
- package/lib/assets/images/file/24/music.png +0 -0
- package/lib/assets/images/file/24/pdf.png +0 -0
- package/lib/assets/images/file/24/pic.png +0 -0
- package/lib/assets/images/file/24/ppt.png +0 -0
- package/lib/assets/images/file/24/txt.png +0 -0
- package/lib/assets/images/file/24/video.png +0 -0
- package/lib/assets/images/file/24/word.png +0 -0
- package/lib/assets/images/folder/folder-192.png +0 -0
- package/lib/assets/images/folder/folder-24.png +0 -0
- package/lib/cellFormatterFactory/index.js +28 -0
- package/lib/components/cell-editor/checkbox-editor.js +111 -0
- package/lib/components/cell-editor/collaborator-editor.js +249 -0
- package/lib/components/cell-editor/date-editor.js +171 -0
- package/lib/components/cell-editor/index.js +40 -0
- package/lib/components/cell-editor/link-editor.js +321 -0
- package/lib/components/cell-editor/multiple-select-editor.js +250 -0
- package/lib/components/cell-editor/number-editor.js +162 -0
- package/lib/components/cell-editor/single-select-editor.js +216 -0
- package/lib/components/cell-editor/text-editor.js +129 -0
- package/lib/components/cell-editor-dialog/pc-file-editor-dialog.js +66 -0
- package/lib/components/cell-editor-dialog/pc-files-addition/index.js +1 -0
- package/lib/components/cell-editor-dialog/pc-files-addition/pc-file-uploaded-item.js +1 -0
- package/lib/components/cell-editor-dialog/pc-files-preview/index.js +1 -0
- package/lib/components/cell-editor-dialog/pc-files-preview/pc-file-item-preview.js +1 -0
- package/lib/components/cell-editor-popover/mb-collaborator-editor-popover.js +183 -0
- package/lib/components/cell-editor-popover/mb-date-editor-popover.js +262 -0
- package/lib/components/cell-editor-popover/mb-link-editor-popover.js +176 -0
- package/lib/components/cell-editor-popover/mb-select-editor-popover.js +243 -0
- package/lib/components/cell-editor-popover/pc-collaborator-editor-popover.js +124 -0
- package/lib/components/cell-editor-popover/pc-date-editor-popover.js +156 -0
- package/lib/components/cell-editor-popover/pc-link-editor-popover.js +128 -0
- package/lib/components/cell-editor-popover/pc-select-editor-popover.js +157 -0
- package/lib/components/common/collaborator-item.js +79 -0
- package/lib/components/common/edit-editor-button.js +67 -0
- package/lib/components/common/link-editor-option.js +121 -0
- package/lib/components/common/mobile/mb-editor-header.js +61 -0
- package/lib/components/common/select-editor-option.js +122 -0
- package/lib/constants/cell-types.js +54 -0
- package/lib/constants/index.js +72 -0
- package/lib/css/cell-editor.css +614 -0
- package/lib/css/cell-formatter.css +4 -0
- package/lib/css/custom-rc-calendar.css +118 -0
- package/lib/formatterConfig/index.js +62 -0
- package/lib/index.js +139 -0
- package/lib/lang/index.js +66 -0
- package/lib/locals/de.js +7 -0
- package/lib/locals/en.js +22 -0
- package/lib/locals/fr.js +7 -0
- package/lib/locals/zh-CN.js +22 -0
- package/lib/toaster/alert.js +164 -0
- package/lib/toaster/index.js +12 -0
- package/lib/toaster/toast.js +223 -0
- package/lib/toaster/toastManager.js +189 -0
- package/lib/toaster/toaster.js +92 -0
- package/lib/utils/cell-value-validator.js +35 -0
- package/lib/utils/column-utils.js +15 -0
- package/lib/utils/editor-utils.js +81 -0
- package/lib/utils/markdown2html.js +68 -0
- package/lib/utils/normalize-long-text-value.js +74 -0
- package/lib/utils/number-precision.js +182 -0
- package/lib/utils/unified/index.js +470 -0
- package/lib/utils/utils.js +141 -0
- package/lib/utils/value-format-utils.js +547 -0
- package/lib/utils/vfile/core.js +172 -0
- package/lib/utils/vfile/index.js +48 -0
- package/package.json +5 -3
- package/es/components/cell-formatter/formatter-config.js +0 -31
- package/es/components/cell-formatter/index.js +0 -27
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
9
|
+
|
|
10
|
+
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));
|
|
11
|
+
|
|
12
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
+
|
|
14
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
15
|
+
|
|
16
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
|
+
|
|
18
|
+
var _astroClassname = _interopRequireDefault(require("astro-classname"));
|
|
19
|
+
|
|
20
|
+
var _imagesLazyLoad = _interopRequireDefault(require("./images-lazy-load"));
|
|
21
|
+
|
|
22
|
+
var _utils = require("../utils/utils");
|
|
23
|
+
|
|
24
|
+
var _ImagePreviewerLightbox = _interopRequireDefault(require("../ImagePreviewerLightbox"));
|
|
25
|
+
|
|
26
|
+
require("./index.css");
|
|
27
|
+
|
|
28
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
29
|
+
|
|
30
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
31
|
+
|
|
32
|
+
var ImageFormatter = /*#__PURE__*/function (_React$Component) {
|
|
33
|
+
(0, _inheritsLoose2.default)(ImageFormatter, _React$Component);
|
|
34
|
+
|
|
35
|
+
function ImageFormatter(props) {
|
|
36
|
+
var _this;
|
|
37
|
+
|
|
38
|
+
_this = _React$Component.call(this, props) || this;
|
|
39
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onImageClick", function (index) {
|
|
40
|
+
if (!_this.props.isSupportPreview) return;
|
|
41
|
+
|
|
42
|
+
_this.setState({
|
|
43
|
+
isPreviewImage: true,
|
|
44
|
+
previewImageIndex: index
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "closeImagePopup", function () {
|
|
48
|
+
if (!_this.props.isSupportPreview) return;
|
|
49
|
+
|
|
50
|
+
_this.setState({
|
|
51
|
+
isPreviewImage: false,
|
|
52
|
+
previewImageIndex: -1
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "movePrev", function () {
|
|
56
|
+
var images = _this.props.value;
|
|
57
|
+
|
|
58
|
+
_this.setState(function (prevState) {
|
|
59
|
+
return {
|
|
60
|
+
previewImageIndex: (prevState.previewImageIndex + images.length - 1) % images.length
|
|
61
|
+
};
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "moveNext", function () {
|
|
65
|
+
var images = _this.props.value;
|
|
66
|
+
|
|
67
|
+
_this.setState(function (prevState) {
|
|
68
|
+
return {
|
|
69
|
+
previewImageIndex: (prevState.previewImageIndex + 1) % images.length
|
|
70
|
+
};
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "downloadImage", function (imageItemUrl) {
|
|
74
|
+
if (!_this.props.downloadImage) return;
|
|
75
|
+
|
|
76
|
+
_this.props.downloadImage(imageItemUrl);
|
|
77
|
+
});
|
|
78
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "deleteImage", function (index) {
|
|
79
|
+
var readOnly = _this.props.readOnly;
|
|
80
|
+
if (readOnly) return;
|
|
81
|
+
if (!_this.props.deleteImage) return;
|
|
82
|
+
|
|
83
|
+
_this.props.deleteImage(index);
|
|
84
|
+
});
|
|
85
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onRotateImage", function (index, degree) {
|
|
86
|
+
var readOnly = _this.props.readOnly;
|
|
87
|
+
if (readOnly) return;
|
|
88
|
+
if (!_this.props.rotateImage) return;
|
|
89
|
+
|
|
90
|
+
_this.props.rotateImage(index, degree);
|
|
91
|
+
});
|
|
92
|
+
_this.state = {
|
|
93
|
+
isPreviewImage: false,
|
|
94
|
+
previewImageIndex: -1
|
|
95
|
+
};
|
|
96
|
+
return _this;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
var _proto = ImageFormatter.prototype;
|
|
100
|
+
|
|
101
|
+
_proto.render = function render() {
|
|
102
|
+
var _this$props = this.props,
|
|
103
|
+
isSample = _this$props.isSample,
|
|
104
|
+
value = _this$props.value,
|
|
105
|
+
server = _this$props.server,
|
|
106
|
+
containerClassName = _this$props.containerClassName,
|
|
107
|
+
readOnly = _this$props.readOnly;
|
|
108
|
+
var className = (0, _astroClassname.default)('dtable-ui cell-formatter-container image-formatter', containerClassName);
|
|
109
|
+
var _this$state = this.state,
|
|
110
|
+
isPreviewImage = _this$state.isPreviewImage,
|
|
111
|
+
previewImageIndex = _this$state.previewImageIndex;
|
|
112
|
+
|
|
113
|
+
if (!Array.isArray(value) || value.length === 0) {
|
|
114
|
+
return null;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
if (isSample) {
|
|
118
|
+
var item = value[0];
|
|
119
|
+
var url = (0, _utils.getImageThumbnailUrl)(item, server);
|
|
120
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
121
|
+
className: className
|
|
122
|
+
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
123
|
+
className: "image-item",
|
|
124
|
+
src: url,
|
|
125
|
+
alt: ""
|
|
126
|
+
}), value.length !== 1 && /*#__PURE__*/_react.default.createElement("span", {
|
|
127
|
+
className: "image-item-count"
|
|
128
|
+
}, "+" + value.length));
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
132
|
+
className: className
|
|
133
|
+
}, /*#__PURE__*/_react.default.createElement(_imagesLazyLoad.default, {
|
|
134
|
+
images: value,
|
|
135
|
+
server: server,
|
|
136
|
+
onImageClick: this.onImageClick
|
|
137
|
+
})), isPreviewImage && /*#__PURE__*/_react.default.createElement(_ImagePreviewerLightbox.default, {
|
|
138
|
+
imageItems: value,
|
|
139
|
+
imageIndex: previewImageIndex,
|
|
140
|
+
closeImagePopup: this.closeImagePopup,
|
|
141
|
+
moveToPrevImage: this.movePrev,
|
|
142
|
+
moveToNextImage: this.moveNext,
|
|
143
|
+
deleteImage: readOnly ? null : this.deleteImage,
|
|
144
|
+
downloadImage: this.downloadImage,
|
|
145
|
+
onRotateImage: readOnly ? null : this.onRotateImage,
|
|
146
|
+
readOnly: readOnly
|
|
147
|
+
}));
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
return ImageFormatter;
|
|
151
|
+
}(_react.default.Component);
|
|
152
|
+
|
|
153
|
+
(0, _defineProperty2.default)(ImageFormatter, "defaultProps", {
|
|
154
|
+
isSample: false,
|
|
155
|
+
isSupportPreview: false,
|
|
156
|
+
readOnly: true,
|
|
157
|
+
value: [],
|
|
158
|
+
server: '',
|
|
159
|
+
containerClassName: ''
|
|
160
|
+
});
|
|
161
|
+
ImageFormatter.propTypes = {
|
|
162
|
+
isSample: _propTypes.default.bool,
|
|
163
|
+
readOnly: _propTypes.default.bool,
|
|
164
|
+
isSupportPreview: _propTypes.default.bool,
|
|
165
|
+
value: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.array]),
|
|
166
|
+
server: _propTypes.default.string,
|
|
167
|
+
containerClassName: _propTypes.default.string,
|
|
168
|
+
deleteImage: _propTypes.default.func,
|
|
169
|
+
downloadImage: _propTypes.default.func,
|
|
170
|
+
rotateImage: _propTypes.default.func
|
|
171
|
+
};
|
|
172
|
+
var _default = ImageFormatter;
|
|
173
|
+
exports.default = _default;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
.dtable-ui-component.mobile-image-previewer .ril-prev-button,
|
|
2
|
+
.dtable-ui-component.mobile-image-previewer .ril-next-button,
|
|
3
|
+
.dtable-ui-component.mobile-image-previewer .ril-caption .ril-zoom-in,
|
|
4
|
+
.dtable-ui-component.mobile-image-previewer .ril-caption .ril-zoom-out {
|
|
5
|
+
display: none;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.dtable-ui-component.mobile-image-previewer .ril-toolbar .ril__toolbarRightSide {
|
|
9
|
+
padding-right: 14px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.dtable-ui-component.image-footer-choice.mobile-image-footer-choice {
|
|
13
|
+
height: 100px;
|
|
14
|
+
background-color: #000;
|
|
15
|
+
z-index: 1052;
|
|
16
|
+
padding: 0;
|
|
17
|
+
width: 100%;
|
|
18
|
+
border-radius: 2px;
|
|
19
|
+
border-top-right-radius: 0;
|
|
20
|
+
border-top-left-radius: 0;
|
|
21
|
+
bottom: 0;
|
|
22
|
+
position: absolute;
|
|
23
|
+
color: #fff;
|
|
24
|
+
background: rgba(0, 0, 0, 0.6);
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: space-between;
|
|
27
|
+
align-items: center;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.dtable-ui-component.image-footer-choice.mobile-image-footer-choice .image-footer-icon {
|
|
31
|
+
width: 100%;
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: space-between;
|
|
35
|
+
flex-direction: row-reverse;
|
|
36
|
+
margin: 0 20px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.dtable-ui-component.image-footer-choice.mobile-image-footer-choice .image-footer-icon .image-footer-choice-item {
|
|
40
|
+
height: 40px;
|
|
41
|
+
width: 40px;
|
|
42
|
+
border-radius: 5px;
|
|
43
|
+
background-color: #333;
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
display: flex;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
align-items: center;
|
|
48
|
+
color: #dbdbdb;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.dtable-ui-component.image-footer-choice.mobile-image-footer-choice .image-footer-icon .image-footer-choice-item i {
|
|
52
|
+
font-size: 20px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.ril__outer .ril-caption button.dtable-font {
|
|
56
|
+
height: 50px;
|
|
57
|
+
font-size: 20px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.ril__outer .ril-toolbar button.dtable-font {
|
|
61
|
+
border: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.ril__outer .ril-toolbar button.dtable-font:focus {
|
|
65
|
+
outline: none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.ril__outer button.dtable-font {
|
|
69
|
+
font-size: 16px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.ril__outer .ril-toolbar .ril-close {
|
|
73
|
+
width: 30px;
|
|
74
|
+
height: 53px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.ril__outer .ril__toolbarItem {
|
|
78
|
+
height: 50px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.ril__outer .ril__toolbarItem button {
|
|
82
|
+
opacity: 0.7;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.ril__outer .ril__toolbarItem button:hover {
|
|
86
|
+
opacity: 1;
|
|
87
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
12
|
+
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
13
|
+
|
|
14
|
+
var _ModalPortal = _interopRequireDefault(require("../ModalPortal"));
|
|
15
|
+
|
|
16
|
+
var _reactImageLightbox = _interopRequireDefault(require("@seafile/react-image-lightbox"));
|
|
17
|
+
|
|
18
|
+
var _utils = require("../utils/utils");
|
|
19
|
+
|
|
20
|
+
require("@seafile/react-image-lightbox/style.css");
|
|
21
|
+
|
|
22
|
+
require("./index.css");
|
|
23
|
+
|
|
24
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
25
|
+
|
|
26
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
|
+
|
|
28
|
+
function ImagePreviewerLightbox(props) {
|
|
29
|
+
var imageItems = props.imageItems,
|
|
30
|
+
imageIndex = props.imageIndex,
|
|
31
|
+
deleteImage = props.deleteImage,
|
|
32
|
+
downloadImage = props.downloadImage,
|
|
33
|
+
onRotateImage = props.onRotateImage,
|
|
34
|
+
readOnly = props.readOnly;
|
|
35
|
+
var imageItemsLength = imageItems.length;
|
|
36
|
+
var URL = imageItems[imageIndex];
|
|
37
|
+
var imageTitle = URL ? decodeURI(URL.slice(URL.lastIndexOf('/') + 1)) : ''; // svg image is vectorgraph and can't rotate, external image can't rotate
|
|
38
|
+
|
|
39
|
+
var canRotateImage = onRotateImage && !readOnly && !(0, _utils.checkSVGImage)(URL) && (0, _utils.isInternalImg)(URL);
|
|
40
|
+
|
|
41
|
+
var imageTitleEl = /*#__PURE__*/_react.default.createElement("span", {
|
|
42
|
+
className: "d-flex"
|
|
43
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
44
|
+
className: "text-truncate"
|
|
45
|
+
}, imageTitle), /*#__PURE__*/_react.default.createElement("span", {
|
|
46
|
+
className: "flex-shrink-0"
|
|
47
|
+
}, "(", imageIndex + 1, "/", imageItemsLength, ")"));
|
|
48
|
+
|
|
49
|
+
var toolbarButtons = [];
|
|
50
|
+
|
|
51
|
+
if (!readOnly && deleteImage) {
|
|
52
|
+
toolbarButtons.push( /*#__PURE__*/_react.default.createElement("button", {
|
|
53
|
+
className: "dtable-font dtable-icon-delete",
|
|
54
|
+
onClick: function onClick() {
|
|
55
|
+
deleteImage(imageIndex, 'previewer');
|
|
56
|
+
}
|
|
57
|
+
}));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
if (downloadImage) {
|
|
61
|
+
toolbarButtons.push( /*#__PURE__*/_react.default.createElement("button", {
|
|
62
|
+
className: "dtable-font dtable-icon-download",
|
|
63
|
+
onClick: function onClick() {
|
|
64
|
+
downloadImage(URL);
|
|
65
|
+
}
|
|
66
|
+
}));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
|
|
70
|
+
query: "(min-width: 767.8px)"
|
|
71
|
+
}, /*#__PURE__*/_react.default.createElement(_reactImageLightbox.default, {
|
|
72
|
+
wrapperClassName: "PC-image-previewer",
|
|
73
|
+
imageTitle: imageTitleEl,
|
|
74
|
+
toolbarButtons: toolbarButtons,
|
|
75
|
+
mainSrc: imageItems[imageIndex],
|
|
76
|
+
nextSrc: imageItems[(imageIndex + 1) % imageItemsLength],
|
|
77
|
+
prevSrc: imageItems[(imageIndex + imageItemsLength - 1) % imageItemsLength],
|
|
78
|
+
onCloseRequest: props.closeImagePopup,
|
|
79
|
+
onMovePrevRequest: props.moveToPrevImage,
|
|
80
|
+
onMoveNextRequest: props.moveToNextImage,
|
|
81
|
+
onRotateImage: canRotateImage ? function (deg) {
|
|
82
|
+
onRotateImage(imageIndex, deg);
|
|
83
|
+
} : null,
|
|
84
|
+
imagePadding: 70,
|
|
85
|
+
reactModalStyle: {
|
|
86
|
+
overlay: {
|
|
87
|
+
zIndex: 1051
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
})), /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
|
|
91
|
+
query: "(max-width: 767.8px)"
|
|
92
|
+
}, /*#__PURE__*/_react.default.createElement(_reactImageLightbox.default, {
|
|
93
|
+
isDesktop: false,
|
|
94
|
+
wrapperClassName: "mobile-image-previewer dtable-ui-component",
|
|
95
|
+
mainSrc: imageItems[imageIndex],
|
|
96
|
+
nextSrc: imageItems[(imageIndex + 1) % imageItemsLength],
|
|
97
|
+
prevSrc: imageItems[(imageIndex + imageItemsLength - 1) % imageItemsLength],
|
|
98
|
+
onCloseRequest: props.closeImagePopup,
|
|
99
|
+
onMovePrevRequest: props.moveToPrevImage,
|
|
100
|
+
onMoveNextRequest: props.moveToNextImage,
|
|
101
|
+
imagePadding: 0,
|
|
102
|
+
animationDisabled: true,
|
|
103
|
+
imageTitle: imageTitleEl,
|
|
104
|
+
reactModalStyle: {
|
|
105
|
+
overlay: {
|
|
106
|
+
zIndex: 1051,
|
|
107
|
+
backgroundColor: '#000'
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}), /*#__PURE__*/_react.default.createElement(_ModalPortal.default, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
111
|
+
className: "image-footer-choice mobile-image-footer-choice dtable-ui-component"
|
|
112
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
113
|
+
className: "image-footer-icon"
|
|
114
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
115
|
+
className: "d-flex"
|
|
116
|
+
}, canRotateImage && /*#__PURE__*/_react.default.createElement("span", {
|
|
117
|
+
className: "image-footer-choice-item mr-4",
|
|
118
|
+
onClick: function onClick() {
|
|
119
|
+
onRotateImage(imageIndex, 90);
|
|
120
|
+
}
|
|
121
|
+
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
122
|
+
className: "dtable-font dtable-icon-rotate"
|
|
123
|
+
})), downloadImage && /*#__PURE__*/_react.default.createElement("span", {
|
|
124
|
+
className: "image-footer-choice-item",
|
|
125
|
+
onClick: function onClick() {
|
|
126
|
+
downloadImage(URL);
|
|
127
|
+
}
|
|
128
|
+
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
129
|
+
className: "dtable-font dtable-icon-download"
|
|
130
|
+
}))), !readOnly && deleteImage && /*#__PURE__*/_react.default.createElement("span", {
|
|
131
|
+
className: "image-footer-choice-item",
|
|
132
|
+
onClick: function onClick() {
|
|
133
|
+
deleteImage(imageIndex, 'previewer');
|
|
134
|
+
}
|
|
135
|
+
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
136
|
+
className: "dtable-font dtable-icon-delete"
|
|
137
|
+
})))))));
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
ImagePreviewerLightbox.propTypes = {
|
|
141
|
+
imageItems: _propTypes.default.array.isRequired,
|
|
142
|
+
imageIndex: _propTypes.default.number.isRequired,
|
|
143
|
+
closeImagePopup: _propTypes.default.func.isRequired,
|
|
144
|
+
moveToPrevImage: _propTypes.default.func.isRequired,
|
|
145
|
+
moveToNextImage: _propTypes.default.func.isRequired,
|
|
146
|
+
downloadImage: _propTypes.default.func,
|
|
147
|
+
deleteImage: _propTypes.default.func,
|
|
148
|
+
onRotateImage: _propTypes.default.func,
|
|
149
|
+
readOnly: _propTypes.default.bool
|
|
150
|
+
};
|
|
151
|
+
var _default = ImagePreviewerLightbox;
|
|
152
|
+
exports.default = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import url('../css/cell-formatter.css');
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
9
|
+
|
|
10
|
+
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));
|
|
11
|
+
|
|
12
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
+
|
|
14
|
+
var _react = _interopRequireDefault(require("react"));
|
|
15
|
+
|
|
16
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
|
+
|
|
18
|
+
var _astroClassname = _interopRequireDefault(require("astro-classname"));
|
|
19
|
+
|
|
20
|
+
var _CollaboratorItem = _interopRequireDefault(require("../CollaboratorItem"));
|
|
21
|
+
|
|
22
|
+
var _default_avatar = _interopRequireDefault(require("../assets/images/avatar/default_avatar.png"));
|
|
23
|
+
|
|
24
|
+
require("./index.css");
|
|
25
|
+
|
|
26
|
+
var propTypes = {
|
|
27
|
+
containerClassName: _propTypes.default.string,
|
|
28
|
+
value: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.array]).isRequired,
|
|
29
|
+
collaborators: _propTypes.default.arrayOf(_propTypes.default.exact({
|
|
30
|
+
email: _propTypes.default.string.isRequired,
|
|
31
|
+
name: _propTypes.default.string.isRequired,
|
|
32
|
+
contact_email: _propTypes.default.string.isRequired,
|
|
33
|
+
avatar_url: _propTypes.default.string.isRequired
|
|
34
|
+
}))
|
|
35
|
+
}; // there will be there conditions
|
|
36
|
+
// 1 value is not exist, typeof value is array, but it's length is 0
|
|
37
|
+
// 2 value is exist, but can't find in collaborators
|
|
38
|
+
// 3 value is exist, typeof value is a string
|
|
39
|
+
// 4 value is exist, typeof value is array
|
|
40
|
+
|
|
41
|
+
var LastModifierFormatter = /*#__PURE__*/function (_React$PureComponent) {
|
|
42
|
+
(0, _inheritsLoose2.default)(LastModifierFormatter, _React$PureComponent);
|
|
43
|
+
|
|
44
|
+
function LastModifierFormatter() {
|
|
45
|
+
var _this;
|
|
46
|
+
|
|
47
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
48
|
+
args[_key] = arguments[_key];
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
_this = _React$PureComponent.call.apply(_React$PureComponent, [this].concat(args)) || this;
|
|
52
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getCollaborators", function () {
|
|
53
|
+
var _this$props = _this.props,
|
|
54
|
+
value = _this$props.value,
|
|
55
|
+
collaborators = _this$props.collaborators;
|
|
56
|
+
|
|
57
|
+
if (!Array.isArray(value)) {
|
|
58
|
+
value = [value];
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return value.map(function (item, index) {
|
|
62
|
+
var collaborator = collaborators.find(function (collaborator) {
|
|
63
|
+
return collaborator.email === item;
|
|
64
|
+
}); // the collaborator can be not exist, because the row modified by third app
|
|
65
|
+
|
|
66
|
+
if (!collaborator) {
|
|
67
|
+
collaborator = {
|
|
68
|
+
name: item,
|
|
69
|
+
avatar_url: _default_avatar.default
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return /*#__PURE__*/_react.default.createElement(_CollaboratorItem.default, {
|
|
74
|
+
key: index,
|
|
75
|
+
collaborator: collaborator
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
return _this;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
var _proto = LastModifierFormatter.prototype;
|
|
83
|
+
|
|
84
|
+
_proto.render = function render() {
|
|
85
|
+
var _this$props2 = this.props,
|
|
86
|
+
containerClassName = _this$props2.containerClassName,
|
|
87
|
+
value = _this$props2.value;
|
|
88
|
+
var classname = (0, _astroClassname.default)('dtable-ui cell-formatter-container last-modified-formatter', containerClassName);
|
|
89
|
+
|
|
90
|
+
if (!value || Array.isArray(value) && value.length === 0) {
|
|
91
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
92
|
+
className: classname
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
var collaborators = this.getCollaborators();
|
|
97
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
98
|
+
className: classname
|
|
99
|
+
}, collaborators);
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
return LastModifierFormatter;
|
|
103
|
+
}(_react.default.PureComponent);
|
|
104
|
+
|
|
105
|
+
LastModifierFormatter.propTypes = propTypes;
|
|
106
|
+
var _default = LastModifierFormatter;
|
|
107
|
+
exports.default = _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@import url('../css/cell-formatter.css');
|
|
2
|
+
|
|
3
|
+
.dtable-ui.link-formmatter {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
flex-wrap: nowrap;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.dtable-ui.link-formatter .link-item {
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
height: 20px;
|
|
13
|
+
max-width: 230px;
|
|
14
|
+
padding: 0 8px 0 2px;
|
|
15
|
+
align-items: center;
|
|
16
|
+
font-size: 13px;
|
|
17
|
+
margin-right: 10px;
|
|
18
|
+
border-radius: 3px;
|
|
19
|
+
background: #eceff4;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.dtable-ui.link-formatter .link-item .link-name {
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
white-space: nowrap;
|
|
26
|
+
text-overflow: ellipsis;
|
|
27
|
+
}
|