dtable-ui-component 6.0.49 → 6.0.50
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/lib/ActionSheet/index.js +94 -68
- package/lib/ActivityIndicator/index.js +36 -28
- package/lib/AsyncUserSelect/index.css +122 -0
- package/lib/AsyncUserSelect/index.js +260 -0
- package/lib/AsyncUserSelect/user-item.js +55 -0
- package/lib/AutoNumberFormatter/index.js +5 -3
- package/lib/Badge/index.js +12 -8
- package/lib/ButtonFormatter/index.js +15 -10
- package/lib/CTimeFormatter/index.js +5 -3
- package/lib/CheckboxEditor/index.js +22 -13
- package/lib/CheckboxEditor/mb-editor.js +7 -5
- package/lib/CheckboxEditor/pc-editor.js +7 -5
- package/lib/CheckboxFormatter/index.js +7 -5
- package/lib/CollaboratorEditor/index.js +24 -15
- package/lib/CollaboratorEditor/mb-editor/index.js +19 -13
- package/lib/CollaboratorEditor/pc-editor/index.js +50 -42
- package/lib/CollaboratorFormatter/index.js +8 -7
- package/lib/CollaboratorItem/index.js +21 -16
- package/lib/CollapsibleSettingLayout/index.js +17 -12
- package/lib/Comment/body/comment.js +78 -62
- package/lib/Comment/body/index.js +14 -11
- package/lib/Comment/footer/btns/index.js +68 -53
- package/lib/Comment/footer/index.js +29 -27
- package/lib/Comment/footer/input/index.js +44 -39
- package/lib/Comment/footer/input/participant/index.js +18 -13
- package/lib/Comment/footer/participants/index.js +31 -28
- package/lib/Comment/footer/participants/participant/index.js +18 -15
- package/lib/Comment/footer/participants/participant-select/index.js +66 -55
- package/lib/Comment/index.js +33 -28
- package/lib/CreatorFormatter/index.js +8 -7
- package/lib/DTableColorPicker/ColorPickerPortal/index.js +5 -3
- package/lib/DTableColorPicker/index.js +135 -99
- package/lib/DTableCommonAddTool/index.js +10 -7
- package/lib/DTableCustomFooter/index.js +5 -3
- package/lib/DTableCustomizeCollaboratorSelect/index.js +38 -32
- package/lib/DTableCustomizeSelect/index.js +51 -44
- package/lib/DTableEmptyTip/index.js +20 -16
- package/lib/DTableFiltersPopover/index.js +71 -61
- package/lib/DTableFiltersPopover/utils/filter-item-utils.js +74 -57
- package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +64 -49
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +49 -41
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +57 -47
- package/lib/DTableFiltersPopover/widgets/filter-calendar.js +35 -31
- package/lib/DTableFiltersPopover/widgets/filter-group.js +38 -32
- package/lib/DTableFiltersPopover/widgets/filter-item.js +125 -106
- package/lib/DTableFiltersPopover/widgets/filter-list/index.js +18 -17
- package/lib/DTableFiltersPopover/widgets/rate-item.js +12 -9
- package/lib/DTableGroupSelect/index.js +52 -44
- package/lib/DTableGroupSelect/option.js +5 -3
- package/lib/DTableGroupSelect/select-option-group.js +31 -25
- package/lib/DTableModalHeader/index.js +13 -9
- package/lib/DTablePopover/index.js +9 -6
- package/lib/DTableRadio/index.js +20 -17
- package/lib/DTableRadioGroup/index.js +21 -18
- package/lib/DTableSearchInput/index.js +22 -18
- package/lib/DTableSelect/dtable-select-label.js +12 -7
- package/lib/DTableSelect/index.js +2 -1
- package/lib/DTableSelect/utils.js +34 -20
- package/lib/DTableSwitch/index.js +25 -17
- package/lib/DateEditor/index.js +25 -16
- package/lib/DateEditor/mb-editor/index.js +90 -68
- package/lib/DateEditor/pc-editor.js +38 -34
- package/lib/DateFormatter/index.js +5 -3
- package/lib/DeleteTip/index.js +29 -20
- package/lib/DepartmentMultipleSelectEditor/index.js +57 -49
- package/lib/DepartmentSelectFilter/index.js +8 -1
- package/lib/DepartmentSingleSelectEditor/index.js +22 -13
- package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +75 -55
- package/lib/DepartmentSingleSelectEditor/pc-editor/department-single-select.js +78 -61
- package/lib/DepartmentSingleSelectEditor/pc-editor/index.js +14 -11
- package/lib/DepartmentSingleSelectFormatter/index.js +13 -9
- package/lib/DigitalSignEditor/index.js +22 -13
- package/lib/DigitalSignEditor/mb-editor/index.js +39 -24
- package/lib/DigitalSignEditor/pc-editor/index.js +44 -30
- package/lib/DigitalSignEditor/signature-board/index.js +19 -15
- package/lib/DigitalSignFormatter/index.js +23 -19
- package/lib/Drawer/index.js +4 -1
- package/lib/DurationEditor/index.js +2 -1
- package/lib/DurationFormatter/index.js +5 -3
- package/lib/EditEditorButton/index.js +5 -3
- package/lib/EmailEditor/index.js +2 -1
- package/lib/EmailFormatter/index.js +5 -3
- package/lib/FieldDisplaySetting/field-item.js +25 -19
- package/lib/FieldDisplaySetting/index.js +47 -38
- package/lib/FileEditor/files-previewer/index.js +22 -13
- package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +43 -28
- package/lib/FileEditor/files-previewer/mb-previewer/index.js +24 -21
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/dropdown-menu.js +30 -24
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/file-name-editor/index.js +13 -11
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/index.js +81 -63
- package/lib/FileEditor/files-previewer/pc-previewer/index.js +81 -65
- package/lib/FileEditor/index.js +22 -13
- package/lib/FileEditor/mb-editor/index.js +43 -31
- package/lib/FileEditor/pc-editor/addition-previewer/index.js +27 -20
- package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.js +107 -81
- package/lib/FileEditor/pc-editor/index.js +46 -36
- package/lib/FileFormatter/index.js +40 -36
- package/lib/FileItemFormatter/index.js +2 -1
- package/lib/FileUploader/index.js +22 -20
- package/lib/FormulaFormatter/index.js +21 -14
- package/lib/GeolocationEditor/index.js +28 -19
- package/lib/GeolocationEditor/mb-editor/country-editor.js +42 -27
- package/lib/GeolocationEditor/mb-editor/index.js +22 -14
- package/lib/GeolocationEditor/mb-editor/location-editor.js +54 -34
- package/lib/GeolocationEditor/mb-editor/map-editor/index.js +102 -74
- package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.js +144 -110
- package/lib/GeolocationEditor/mb-editor/province-city-editor.js +42 -27
- package/lib/GeolocationEditor/mb-editor/province-editor.js +42 -27
- package/lib/GeolocationEditor/pc-editor/country-editor.js +37 -30
- package/lib/GeolocationEditor/pc-editor/index.js +26 -17
- package/lib/GeolocationEditor/pc-editor/location-editor.js +121 -95
- package/lib/GeolocationEditor/pc-editor/map-editor/index.js +99 -74
- package/lib/GeolocationEditor/pc-editor/map-editor/large-editor/index.js +99 -76
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/index.js +119 -91
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +102 -82
- package/lib/GeolocationEditor/pc-editor/province-city-editor.js +89 -69
- package/lib/GeolocationEditor/pc-editor/province-editor.js +30 -25
- package/lib/GeolocationEditor/pc-editor/selector-header-item.js +9 -5
- package/lib/GeolocationEditor/pc-editor/selector-list.js +15 -13
- package/lib/GeolocationFormatter/index.js +5 -3
- package/lib/HtmlLongTextFormatter/index.js +2 -1
- package/lib/Icon/index.js +8 -5
- package/lib/IconButton/index.js +9 -6
- package/lib/ImageEditor/images-previewer/image-preview/index.js +52 -44
- package/lib/ImageEditor/images-previewer/index.js +35 -32
- package/lib/ImageEditor/index.js +22 -13
- package/lib/ImageEditor/mb-editor/index.js +43 -31
- package/lib/ImageEditor/pc-editor/addition-previewer/image-link/index.js +19 -15
- package/lib/ImageEditor/pc-editor/addition-previewer/index.js +32 -24
- package/lib/ImageEditor/pc-editor/addition-previewer/local-image-addition/index.js +101 -76
- package/lib/ImageEditor/pc-editor/images-previewer/index.js +33 -30
- package/lib/ImageEditor/pc-editor/index.js +44 -32
- package/lib/ImageFormatter/images-lazy-load.js +12 -10
- package/lib/ImageFormatter/index.js +40 -34
- package/lib/ImagePreviewerLightbox/index.js +12 -8
- package/lib/ImageThumbnail/index.js +46 -38
- package/lib/InputItem/custom-input.js +23 -18
- package/lib/InputItem/custom-keyboard.js +65 -44
- package/lib/InputItem/index.js +66 -56
- package/lib/InputItem/input.js +5 -3
- package/lib/LastModifierFormatter/index.js +8 -7
- package/lib/LinkEditor/index.js +38 -32
- package/lib/LinkEditor/link-editor-option.js +25 -20
- package/lib/LinkEditor/mb-popover/index.js +53 -41
- package/lib/LinkEditor/pc-popover/index.js +41 -33
- package/lib/LinkFormatter/index.js +13 -10
- package/lib/List/index.js +15 -9
- package/lib/List/list-item.js +32 -23
- package/lib/Loading/index.js +2 -1
- package/lib/LongTextFormatter/index.js +3 -2
- package/lib/MBEditorHeader/index.js +19 -14
- package/lib/MTimeFormatter/index.js +5 -3
- package/lib/MobileFullScreenPage/body/index.js +5 -3
- package/lib/MobileFullScreenPage/header/index.js +21 -16
- package/lib/MobileFullScreenPage/index.js +11 -8
- package/lib/MobileModal/index.js +6 -3
- package/lib/MobileOperationSheet/index.js +28 -18
- package/lib/MobileSelector/empty/index.js +5 -3
- package/lib/MobileSelector/index.js +18 -12
- package/lib/MobileSelector/option/index.js +17 -12
- package/lib/MobileSelector/options/index.js +5 -3
- package/lib/MobileSelector/search/index.js +10 -8
- package/lib/MobileUpload/index.js +87 -67
- package/lib/Modal/alert.js +8 -5
- package/lib/Modal/modal.js +19 -15
- package/lib/Modal/operation.js +2 -1
- package/lib/Modal/prompt.js +74 -54
- package/lib/MultipleSelectEditor/index.js +4 -2
- package/lib/MultipleSelectFormatter/index.js +8 -7
- package/lib/NotificationPopover/index.js +43 -32
- package/lib/NumberEditor/index.js +2 -1
- package/lib/NumberFormatter/index.js +5 -3
- package/lib/Picker/AbstractPicker.js +26 -22
- package/lib/Picker/index.js +2 -1
- package/lib/Popover/index.js +8 -5
- package/lib/Popover/item.js +22 -15
- package/lib/Progress/index.js +12 -10
- package/lib/Radio/Radio.js +11 -7
- package/lib/Radio/RadioItem.js +9 -3
- package/lib/RateFormatter/index.js +7 -6
- package/lib/RoleStatusEditor/index.js +36 -31
- package/lib/RowExpand/index.js +16 -9
- package/lib/RowExpandDialog/body/index.js +52 -41
- package/lib/RowExpandDialog/column-content/index.js +34 -25
- package/lib/RowExpandDialog/header/index.js +28 -21
- package/lib/RowExpandDialog/index.js +40 -27
- package/lib/RowExpandEditor/add-btn/index.js +16 -9
- package/lib/RowExpandEditor/add-btn/mb-add-btn/index.js +5 -3
- package/lib/RowExpandEditor/add-btn/pc-add-btn/index.js +8 -5
- package/lib/RowExpandEditor/checkbox-editor/index.js +16 -9
- package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.js +10 -8
- package/lib/RowExpandEditor/checkbox-editor/pc-editor.js +2 -1
- package/lib/RowExpandEditor/collaborator-editor/index.js +16 -9
- package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.js +19 -17
- package/lib/RowExpandEditor/collaborator-editor/pc-editor/index.js +52 -47
- package/lib/RowExpandEditor/date-editor/index.js +16 -9
- package/lib/RowExpandEditor/date-editor/mb-editor.js +20 -15
- package/lib/RowExpandEditor/date-editor/pc-editor.js +24 -21
- package/lib/RowExpandEditor/department-editor/index.js +16 -9
- package/lib/RowExpandEditor/department-editor/mb-editor.js +27 -22
- package/lib/RowExpandEditor/department-editor/pc-editor.js +35 -29
- package/lib/RowExpandEditor/digital-sign-editor/index.js +16 -9
- package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +19 -16
- package/lib/RowExpandEditor/digital-sign-editor/pc-editor/index.js +34 -32
- package/lib/RowExpandEditor/duration-editor/index.js +16 -9
- package/lib/RowExpandEditor/duration-editor/mb-editor.js +15 -12
- package/lib/RowExpandEditor/duration-editor/pc-editor.js +17 -13
- package/lib/RowExpandEditor/email-editor/index.js +16 -9
- package/lib/RowExpandEditor/email-editor/mb-editor/index.js +19 -17
- package/lib/RowExpandEditor/email-editor/pc-editor/index.js +20 -18
- package/lib/RowExpandEditor/file-editor/index.js +16 -9
- package/lib/RowExpandEditor/file-editor/mb-editor/index.js +21 -16
- package/lib/RowExpandEditor/file-editor/pc-editor/index.js +22 -20
- package/lib/RowExpandEditor/geolocation-editor/index.js +16 -9
- package/lib/RowExpandEditor/geolocation-editor/mb-editor/index.js +12 -9
- package/lib/RowExpandEditor/geolocation-editor/pc-editor/index.js +20 -17
- package/lib/RowExpandEditor/image-editor/index.js +16 -9
- package/lib/RowExpandEditor/image-editor/mb-editor/index.js +21 -16
- package/lib/RowExpandEditor/image-editor/pc-editor/index.js +29 -25
- package/lib/RowExpandEditor/index.js +4 -2
- package/lib/RowExpandEditor/long-text-editor/index.js +16 -9
- package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.js +27 -16
- package/lib/RowExpandEditor/long-text-editor/mb-editor/index.js +19 -16
- package/lib/RowExpandEditor/long-text-editor/pc-editor/index.js +22 -18
- package/lib/RowExpandEditor/multiple-select-editor/index.js +16 -9
- package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +26 -23
- package/lib/RowExpandEditor/multiple-select-editor/pc-editor/index.js +81 -67
- package/lib/RowExpandEditor/number-editor/index.js +16 -9
- package/lib/RowExpandEditor/number-editor/mb-editor/index.js +10 -7
- package/lib/RowExpandEditor/number-editor/pc-editor.js +6 -4
- package/lib/RowExpandEditor/rate-editor/index.js +16 -9
- package/lib/RowExpandEditor/rate-editor/mb-editor.js +10 -8
- package/lib/RowExpandEditor/rate-editor/pc-editor.js +11 -9
- package/lib/RowExpandEditor/right-angle/index.js +8 -6
- package/lib/RowExpandEditor/single-select-editor/index.js +16 -9
- package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +30 -23
- package/lib/RowExpandEditor/single-select-editor/pc-editor/index.js +42 -34
- package/lib/RowExpandEditor/text-editor/index.js +16 -9
- package/lib/RowExpandEditor/text-editor/mb-editor/index.js +11 -9
- package/lib/RowExpandEditor/text-editor/pc-editor/index.js +16 -12
- package/lib/RowExpandEditor/url-editor/index.js +16 -9
- package/lib/RowExpandEditor/url-editor/mb-editor/index.js +19 -17
- package/lib/RowExpandEditor/url-editor/pc-editor/index.js +20 -18
- package/lib/RowExpandFormatter/department-formatter/index.js +14 -5
- package/lib/RowExpandFormatter/department-formatter/mb-formatter.js +2 -1
- package/lib/RowExpandFormatter/department-formatter/pc-formatter.js +15 -11
- package/lib/RowExpandFormatter/email-formatter/index.js +11 -8
- package/lib/RowExpandFormatter/file-formatter/index.js +15 -14
- package/lib/RowExpandFormatter/file-formatter/row-expand-file-item-formatter.js +43 -36
- package/lib/RowExpandFormatter/formula-formatter/index.js +37 -29
- package/lib/RowExpandFormatter/image-formatter/index.js +30 -27
- package/lib/RowExpandFormatter/image-formatter/row-expand-image-item-formatter.js +47 -39
- package/lib/RowExpandFormatter/index.js +131 -114
- package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +2 -1
- package/lib/RowExpandFormatter/link-formatter/index.js +70 -67
- package/lib/RowExpandFormatter/rate-formatter/index.js +7 -6
- package/lib/RowExpandFormatter/url-formatter/index.js +11 -8
- package/lib/RowExpandView/body/index.js +38 -32
- package/lib/RowExpandView/column-content/index.js +10 -5
- package/lib/RowExpandView/index.js +27 -16
- package/lib/SelectItem/index.js +16 -12
- package/lib/SelectOptionGroup/index.js +39 -32
- package/lib/SelectOptionGroup/option.js +5 -3
- package/lib/SelectedDepartments/index.js +54 -44
- package/lib/SimpleLongTextFormatter/index.js +39 -30
- package/lib/SimpleLongTextFormatter/widgets/LongTextPreview.js +11 -8
- package/lib/SimpleLongTextFormatter/widgets/dtable-markdown-viewer.js +3 -2
- package/lib/SingleSelectEditor/index.js +4 -2
- package/lib/SingleSelectFormatter/index.js +6 -4
- package/lib/SvgIcon/index.js +4 -1
- package/lib/TabBar/Tab.js +27 -20
- package/lib/TabBar/index.js +25 -21
- package/lib/Tabs/index.js +8 -5
- package/lib/TextEditor/index.js +21 -18
- package/lib/TextFormatter/index.js +5 -3
- package/lib/TextareaItem/index.js +35 -26
- package/lib/Toast/index.js +16 -10
- package/lib/UploadProgress/index.js +2 -1
- package/lib/UrlEditor/index.js +2 -1
- package/lib/UrlFormatter/index.js +5 -3
- package/lib/formatterConfig/base-formatter-config.js +24 -23
- package/lib/formatterConfig/index.js +3 -2
- package/lib/index.js +7 -0
- package/lib/locales/de.json +5 -1
- package/lib/locales/en.json +5 -1
- package/lib/locales/es.json +6 -2
- package/lib/locales/fr.json +5 -1
- package/lib/locales/pt.json +5 -1
- package/lib/locales/ru.json +5 -1
- package/lib/locales/zh-CN.json +5 -1
- package/lib/select-editor/index.js +22 -13
- package/lib/select-editor/mb-editor/index.js +22 -16
- package/lib/select-editor/pc-editor/index.js +74 -60
- package/lib/toaster/alert.js +25 -16
- package/lib/toaster/toast.js +27 -23
- package/lib/toaster/toastManager.js +16 -13
- package/lib/toaster/toaster.js +2 -1
- package/package.json +2 -2
package/lib/FileEditor/index.js
CHANGED
|
@@ -11,25 +11,34 @@ var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
|
11
11
|
var _pcEditor = _interopRequireDefault(require("./pc-editor"));
|
|
12
12
|
var _mbEditor = _interopRequireDefault(require("./mb-editor"));
|
|
13
13
|
require("./index.css");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
15
|
const FileEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
15
16
|
let {
|
|
16
17
|
isMobile,
|
|
17
18
|
...props
|
|
18
19
|
} = _ref;
|
|
19
|
-
if (isMobile === false) return /*#__PURE__*/
|
|
20
|
+
if (isMobile === false) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
|
|
21
|
+
...props,
|
|
20
22
|
ref: ref
|
|
21
|
-
})
|
|
22
|
-
if (isMobile === true) return /*#__PURE__*/
|
|
23
|
+
});
|
|
24
|
+
if (isMobile === true) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
|
|
25
|
+
...props,
|
|
23
26
|
ref: ref
|
|
24
|
-
})
|
|
25
|
-
return /*#__PURE__*/
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
});
|
|
28
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
29
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
30
|
+
query: "(min-width: 768px)",
|
|
31
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
|
|
32
|
+
...props,
|
|
33
|
+
ref: ref
|
|
34
|
+
})
|
|
35
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
36
|
+
query: "(max-width: 768px)",
|
|
37
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
|
|
38
|
+
...props,
|
|
39
|
+
ref: ref
|
|
40
|
+
})
|
|
41
|
+
})]
|
|
42
|
+
});
|
|
34
43
|
});
|
|
35
44
|
var _default = exports.default = FileEditor;
|
|
@@ -15,6 +15,7 @@ var _toaster = _interopRequireDefault(require("../../toaster"));
|
|
|
15
15
|
var _utils = require("../../utils/utils");
|
|
16
16
|
var _lang = require("../../lang");
|
|
17
17
|
require("./index.css");
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
19
|
const {
|
|
19
20
|
Header,
|
|
20
21
|
Body
|
|
@@ -101,36 +102,47 @@ const MBFileEditor = _ref => {
|
|
|
101
102
|
setUploading(false);
|
|
102
103
|
}
|
|
103
104
|
}, [uploadingFilesCount, uploadedFilesCount, onChange]);
|
|
104
|
-
return /*#__PURE__*/
|
|
105
|
-
className: "dtable-ui-mobile-file-editor"
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
105
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_MobileFullScreenPage.default, {
|
|
106
|
+
className: "dtable-ui-mobile-file-editor",
|
|
107
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(Header, {
|
|
108
|
+
onLeftClick: onToggle,
|
|
109
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
110
|
+
"aria-hidden": "true",
|
|
111
|
+
className: "dtable-font dtable-icon-return"
|
|
112
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
113
|
+
children: column.name
|
|
114
|
+
})]
|
|
115
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Body, {
|
|
116
|
+
children: (0, _utils.isIPhone)() && (0, _utils.isQQBuiltInBrowser)() ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
117
|
+
className: "dtable-ui-file-open-external-browser",
|
|
118
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
119
|
+
className: "seatable-tip-danger",
|
|
120
|
+
children: '不支持 QQ 内置浏览器上传图片或者文件'
|
|
121
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
122
|
+
className: "image-container",
|
|
123
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
124
|
+
src: mediaUrl + 'img/qq-upload-tip.png',
|
|
125
|
+
alt: "Open browser tip"
|
|
126
|
+
})
|
|
127
|
+
})]
|
|
128
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
129
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_filesPreviewer.default, {
|
|
130
|
+
value: value,
|
|
131
|
+
togglePreviewer: openEditor,
|
|
132
|
+
closeEditor: closeEditor,
|
|
133
|
+
deleteFile: deleteFile,
|
|
134
|
+
resetFileValue: resetFileValue
|
|
135
|
+
}), isShowEditor && /*#__PURE__*/(0, _jsxRuntime.jsx)(_MobileUpload.default, {
|
|
136
|
+
type: "file",
|
|
137
|
+
onClose: closeEditor,
|
|
138
|
+
onChange: onFilesChange
|
|
139
|
+
}), isUploading && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ActivityIndicator.default, {
|
|
140
|
+
toast: true,
|
|
141
|
+
text: (0, _lang.getLocale)('Files_are_uploading'),
|
|
142
|
+
animating: isUploading
|
|
143
|
+
})]
|
|
144
|
+
})
|
|
145
|
+
})]
|
|
146
|
+
});
|
|
135
147
|
};
|
|
136
148
|
var _default = exports.default = MBFileEditor;
|
|
@@ -9,6 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _localFileAddition = _interopRequireDefault(require("./local-file-addition"));
|
|
10
10
|
var _lang = require("../../../lang");
|
|
11
11
|
require("./index.css");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
13
|
class AdditionPreviewer extends _react.default.Component {
|
|
13
14
|
constructor(props) {
|
|
14
15
|
super(props);
|
|
@@ -27,26 +28,32 @@ class AdditionPreviewer extends _react.default.Component {
|
|
|
27
28
|
let {
|
|
28
29
|
activeTab
|
|
29
30
|
} = this.state;
|
|
30
|
-
return /*#__PURE__*/
|
|
31
|
-
className: "dtable-ui-image-addition-container"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
31
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
32
|
+
className: "dtable-ui-image-addition-container",
|
|
33
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
34
|
+
className: "dtable-ui-image-addition-left",
|
|
35
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
36
|
+
className: "dtable-ui-image-addition-nav",
|
|
37
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
38
|
+
className: "dtable-ui-addition-item ".concat(activeTab === 'localFiles' ? 'dtable-ui-addition-item-selected' : ''),
|
|
39
|
+
onClick: this.toggle.bind(this, 'localFiles'),
|
|
40
|
+
children: (0, _lang.getLocale)('Local_Files')
|
|
41
|
+
})
|
|
42
|
+
})
|
|
43
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
44
|
+
className: "dtable-ui-image-addition-right",
|
|
45
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
46
|
+
className: "dtable-ui-image-addition-right-container",
|
|
47
|
+
children: activeTab === 'localFiles' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_localFileAddition.default, {
|
|
48
|
+
config: this.props.config,
|
|
49
|
+
uploadLocalFileValue: this.props.uploadLocalFileValue,
|
|
50
|
+
deleteFile: this.props.deleteFile,
|
|
51
|
+
fileUploadCompleted: this.props.fileUploadCompleted,
|
|
52
|
+
uploadFile: this.props.uploadFile
|
|
53
|
+
})
|
|
54
|
+
})
|
|
55
|
+
})]
|
|
56
|
+
});
|
|
50
57
|
}
|
|
51
58
|
}
|
|
52
59
|
var _default = exports.default = AdditionPreviewer;
|
|
@@ -14,6 +14,7 @@ var _url = require("../../../../utils/url");
|
|
|
14
14
|
var _FileUploader = _interopRequireDefault(require("../../../../FileUploader"));
|
|
15
15
|
var _lang = require("../../../../lang");
|
|
16
16
|
require("./index.css");
|
|
17
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
18
|
class LocalFileAddition extends _react.default.Component {
|
|
18
19
|
constructor(props) {
|
|
19
20
|
super(props);
|
|
@@ -116,36 +117,45 @@ class LocalFileAddition extends _react.default.Component {
|
|
|
116
117
|
if (Array.isArray(thumbnailSrcList) && thumbnailSrcList.length > 0) {
|
|
117
118
|
let thumbnailList = thumbnailSrcList.map((fileThumbnailItem, index) => {
|
|
118
119
|
let uploadFile = fileThumbnailItem.percent === 100 && !fileThumbnailItem.isErrorTip;
|
|
119
|
-
return /*#__PURE__*/
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
120
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Fragment, {
|
|
121
|
+
children: fileThumbnailItem.isUploading && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
122
|
+
className: "dtable-ui-image-wrapper",
|
|
123
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
124
|
+
className: "dtable-ui-image-upload-percent",
|
|
125
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
126
|
+
src: fileThumbnailItem.fileIconUrl,
|
|
127
|
+
style: {
|
|
128
|
+
position: 'absolute',
|
|
129
|
+
zIndex: "".concat(uploadFile ? 3 : 1),
|
|
130
|
+
maxHeight: '100%'
|
|
131
|
+
},
|
|
132
|
+
alt: ""
|
|
133
|
+
}), fileThumbnailItem.percent < 100 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_UploadProgress.default, {
|
|
134
|
+
uploadPercent: fileThumbnailItem.percent || 0
|
|
135
|
+
}), uploadFile && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
136
|
+
className: "dtable-ui-image-upload-success",
|
|
137
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
138
|
+
className: "dtable-ui-image-upload-success-scale",
|
|
139
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
140
|
+
className: "dtable-ui-image-upload-success-tip",
|
|
141
|
+
children: (0, _lang.getLocale)('Indexing')
|
|
142
|
+
})
|
|
143
|
+
})
|
|
144
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
145
|
+
className: "dtable-ui-image-upload-mask"
|
|
146
|
+
}), fileThumbnailItem.isErrorTip && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
147
|
+
className: "dtable-ui-image-upload-error-tip",
|
|
148
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
149
|
+
children: (0, _lang.getLocale)('Network_Error')
|
|
150
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
151
|
+
className: "dtable-ui-image-upload-again",
|
|
152
|
+
onClick: event => this.fileUploadAgain(event, fileThumbnailItem),
|
|
153
|
+
children: (0, _lang.getLocale)('Re_upload')
|
|
154
|
+
})]
|
|
155
|
+
})]
|
|
156
|
+
})
|
|
157
|
+
})
|
|
158
|
+
}, "dtable-ui-image-wrapper-circle".concat(index));
|
|
149
159
|
});
|
|
150
160
|
fileArr.push(...thumbnailList);
|
|
151
161
|
}
|
|
@@ -162,35 +172,39 @@ class LocalFileAddition extends _react.default.Component {
|
|
|
162
172
|
let {
|
|
163
173
|
fileIconUrl
|
|
164
174
|
} = (0, _url.getFileThumbnailInfo)(fileItem, config);
|
|
165
|
-
return /*#__PURE__*/
|
|
166
|
-
key: 'dtable-ui-image-wrapper-' + index,
|
|
175
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
167
176
|
className: "dtable-ui-image-wrapper",
|
|
168
177
|
id: "file-content-tip-".concat(index),
|
|
169
178
|
onMouseEnter: event => this.showDeleteIcon(event, index),
|
|
170
|
-
onMouseLeave: this.hideDeleteIcon
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
179
|
+
onMouseLeave: this.hideDeleteIcon,
|
|
180
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
181
|
+
className: "dtable-ui-image-content",
|
|
182
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
183
|
+
src: fileIconUrl,
|
|
184
|
+
alt: "",
|
|
185
|
+
style: {
|
|
186
|
+
maxHeight: '100%'
|
|
187
|
+
}
|
|
188
|
+
})
|
|
189
|
+
}), this.state.isShowDeleteIcon && this.state.enterFileIndex === index && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
190
|
+
className: "dtable-delete-image-icon",
|
|
191
|
+
onClick: event => this.deleteFile(event, index),
|
|
192
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
193
|
+
className: "image-delete-span",
|
|
194
|
+
children: "x"
|
|
195
|
+
})
|
|
196
|
+
}), this.state.isShowDeleteIcon && this.state.enterFileIndex === index && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Tooltip, {
|
|
197
|
+
toggle: this.tooltipToggle,
|
|
198
|
+
delay: {
|
|
199
|
+
show: 0,
|
|
200
|
+
hide: 0
|
|
201
|
+
},
|
|
202
|
+
target: "file-content-tip-".concat(index),
|
|
203
|
+
placement: "bottom",
|
|
204
|
+
isOpen: this.state.tooltipOpen,
|
|
205
|
+
children: fileItem.name
|
|
206
|
+
})]
|
|
207
|
+
}, 'dtable-ui-image-wrapper-' + index);
|
|
194
208
|
});
|
|
195
209
|
return uploadedFileList;
|
|
196
210
|
};
|
|
@@ -198,28 +212,37 @@ class LocalFileAddition extends _react.default.Component {
|
|
|
198
212
|
let {
|
|
199
213
|
isFileTipShow
|
|
200
214
|
} = this.state;
|
|
201
|
-
let editorContent = fileArr.length === 0 ? /*#__PURE__*/
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
215
|
+
let editorContent = fileArr.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Fragment, {
|
|
216
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
217
|
+
className: "dtable-ui-image-tip-addition ".concat(isFileTipShow ? 'dtable-ui-image-drop-active' : ''),
|
|
218
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
219
|
+
className: "dtable-ui-dtable-ui-image-add-icon",
|
|
220
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
221
|
+
"aria-hidden": "true",
|
|
222
|
+
className: "dtable-font dtable-icon-add-files"
|
|
223
|
+
})
|
|
224
|
+
}), isFileTipShow ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
225
|
+
className: "dtable-ui-image-add-span",
|
|
226
|
+
children: (0, _lang.getLocale)('Drag_and_drop_to_add_a_file')
|
|
227
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
228
|
+
className: "dtable-ui-image-add-span",
|
|
229
|
+
children: (0, _lang.getLocale)('Drag_and_drop_files_or_click_here_to_add')
|
|
230
|
+
})]
|
|
231
|
+
})
|
|
232
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
233
|
+
className: "dtable-ui-image-add-box",
|
|
234
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
235
|
+
className: "dtable-ui-image-add-button ".concat(isFileTipShow ? 'dtable-ui-image-wrapper-drop-active' : ''),
|
|
236
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
237
|
+
"aria-hidden": "true",
|
|
238
|
+
className: "dtable-font dtable-icon-add-table"
|
|
239
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
240
|
+
className: "dtable-ui-image-add-span",
|
|
241
|
+
children: (0, _lang.getLocale)('Upload')
|
|
242
|
+
})]
|
|
243
|
+
})
|
|
244
|
+
});
|
|
245
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_FileUploader.default, {
|
|
223
246
|
uploadType: "file",
|
|
224
247
|
isSupportDragDrop: true,
|
|
225
248
|
className: fileArr.length === 0 ? (0, _classnames.default)('dtable-ui-image-upload-container', {
|
|
@@ -231,8 +254,9 @@ class LocalFileAddition extends _react.default.Component {
|
|
|
231
254
|
updateUploadFileList: this.updateUploadFileList,
|
|
232
255
|
onFileUploadFailed: this.onFileUploadFailed,
|
|
233
256
|
ref: ref => this.uploaderFileRef = ref,
|
|
234
|
-
uploadFile: this.props.uploadFile
|
|
235
|
-
|
|
257
|
+
uploadFile: this.props.uploadFile,
|
|
258
|
+
children: editorContent
|
|
259
|
+
});
|
|
236
260
|
};
|
|
237
261
|
this.state = {
|
|
238
262
|
isFileTipShow: false,
|
|
@@ -246,7 +270,9 @@ class LocalFileAddition extends _react.default.Component {
|
|
|
246
270
|
}
|
|
247
271
|
render() {
|
|
248
272
|
let fileArr = this.renderMultipleFilesArr();
|
|
249
|
-
return /*#__PURE__*/
|
|
273
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
|
|
274
|
+
children: [fileArr, this.renderUploadFileWrapper(fileArr)]
|
|
275
|
+
});
|
|
250
276
|
}
|
|
251
277
|
}
|
|
252
278
|
var _default = exports.default = LocalFileAddition;
|
|
@@ -16,6 +16,7 @@ var _constants2 = require("../constants");
|
|
|
16
16
|
var _utils = require("../../utils/utils");
|
|
17
17
|
var _toaster = _interopRequireDefault(require("../../toaster"));
|
|
18
18
|
require("./index.css");
|
|
19
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
20
|
class PCFileEditor extends _react.default.Component {
|
|
20
21
|
constructor(props) {
|
|
21
22
|
var _this;
|
|
@@ -139,14 +140,19 @@ class PCFileEditor extends _react.default.Component {
|
|
|
139
140
|
// return (<span>{getLocale('Add_files')}</span>);
|
|
140
141
|
// }
|
|
141
142
|
if (editorView === _constants.FILE_EDITOR_STATUS.PREVIEWER) {
|
|
142
|
-
return /*#__PURE__*/
|
|
143
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
144
|
+
children: (0, _lang.getLocale)('All_files')
|
|
145
|
+
});
|
|
143
146
|
}
|
|
144
|
-
return /*#__PURE__*/
|
|
145
|
-
onClick: this.showImageListPreviewer
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
147
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
148
|
+
onClick: this.showImageListPreviewer,
|
|
149
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
150
|
+
"aria-hidden": "true",
|
|
151
|
+
className: "dtable-font dtable-icon-return mr-2"
|
|
152
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
153
|
+
children: (0, _lang.getLocale)('Add_files')
|
|
154
|
+
})]
|
|
155
|
+
});
|
|
150
156
|
};
|
|
151
157
|
this.showImageListPreviewer = () => {
|
|
152
158
|
let {
|
|
@@ -237,38 +243,42 @@ class PCFileEditor extends _react.default.Component {
|
|
|
237
243
|
};
|
|
238
244
|
}
|
|
239
245
|
render() {
|
|
240
|
-
return /*#__PURE__*/
|
|
246
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactstrap.Modal, {
|
|
241
247
|
className: "dtable-ui-image-editor-dialog dtable-ui-file-editor-dialog",
|
|
242
248
|
contentClassName: "dtable-ui-image-editor-modal",
|
|
243
249
|
isOpen: this.state.isOpen,
|
|
244
|
-
toggle: this.toggle
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
250
|
+
toggle: this.toggle,
|
|
251
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableModalHeader.default, {
|
|
252
|
+
toggle: this.toggle,
|
|
253
|
+
children: this.renderHeader()
|
|
254
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.ModalBody, {
|
|
255
|
+
className: "p-0",
|
|
256
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
257
|
+
className: "dtable-ui-image-editor-container dtable-ui-file-editor-container",
|
|
258
|
+
children: [this.state.editorView === _constants.FILE_EDITOR_STATUS.PREVIEWER && /*#__PURE__*/(0, _jsxRuntime.jsx)(_filesPreviewer.default, {
|
|
259
|
+
value: this.state.value,
|
|
260
|
+
config: this.props.config,
|
|
261
|
+
togglePreviewer: this.togglePreviewer,
|
|
262
|
+
deleteFile: this.deleteFile,
|
|
263
|
+
deleteFiles: this.deleteFilesByPreviewer,
|
|
264
|
+
renameFile: this.props.renameFile ? this.onRenameFile : null,
|
|
265
|
+
resetFileValue: this.resetFileValue,
|
|
266
|
+
rotateImage: this.props.rotateImage ? this.onRotateImage : null,
|
|
267
|
+
getDownLoadFiles: this.props.getDownLoadFiles || (() => {})
|
|
268
|
+
}), this.state.editorView === _constants.FILE_EDITOR_STATUS.ADDITION && /*#__PURE__*/(0, _jsxRuntime.jsx)(_additionPreviewer.default, {
|
|
269
|
+
config: this.props.config,
|
|
270
|
+
deleteImage: this.deleteImage,
|
|
271
|
+
handleFilesChange: this.handleFilesChange,
|
|
272
|
+
uploadLocalFileValue: this.state.uploadLocalFileValue,
|
|
273
|
+
togglePreviewer: this.togglePreviewer,
|
|
274
|
+
fileUploadCompleted: this.fileUploadCompleted,
|
|
275
|
+
addUploadedFile: this.addUploadedFile,
|
|
276
|
+
showImageListPreviewer: this.showImageListPreviewer,
|
|
277
|
+
uploadFile: this.uploadFile
|
|
278
|
+
})]
|
|
279
|
+
})
|
|
280
|
+
})]
|
|
281
|
+
});
|
|
272
282
|
}
|
|
273
283
|
}
|
|
274
284
|
var _default = exports.default = PCFileEditor;
|