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
|
@@ -11,6 +11,7 @@ var _lang = require("../../../lang");
|
|
|
11
11
|
var _ImageThumbnail = _interopRequireDefault(require("../../../ImageThumbnail"));
|
|
12
12
|
var _ImageEditor = _interopRequireDefault(require("../../../ImageEditor"));
|
|
13
13
|
require("./index.css");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
15
|
class RowExpandMBImageEditor extends _react.default.Component {
|
|
15
16
|
constructor(props) {
|
|
16
17
|
super(props);
|
|
@@ -47,15 +48,14 @@ class RowExpandMBImageEditor extends _react.default.Component {
|
|
|
47
48
|
config
|
|
48
49
|
} = this.props;
|
|
49
50
|
return value.map((src, index) => {
|
|
50
|
-
return /*#__PURE__*/
|
|
51
|
-
key: "image-".concat(index),
|
|
51
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageThumbnail.default, {
|
|
52
52
|
index: index,
|
|
53
53
|
src: src,
|
|
54
54
|
className: "dtable-ui-mobile-row-expand-img-item",
|
|
55
55
|
config: config,
|
|
56
56
|
onClick: this.toggleEditor,
|
|
57
57
|
deleteImage: this.deleteImage
|
|
58
|
-
});
|
|
58
|
+
}, "image-".concat(index));
|
|
59
59
|
});
|
|
60
60
|
};
|
|
61
61
|
const {
|
|
@@ -91,19 +91,24 @@ class RowExpandMBImageEditor extends _react.default.Component {
|
|
|
91
91
|
isShowEditor,
|
|
92
92
|
value
|
|
93
93
|
} = this.state;
|
|
94
|
-
return /*#__PURE__*/
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
94
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
95
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
96
|
+
className: "dtable-ui-mobile-row-expand-image position-relative",
|
|
97
|
+
children: value.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_addBtn.default, {
|
|
98
|
+
onClick: this.toggleEditor,
|
|
99
|
+
text: (0, _lang.getLocale)('Add_images')
|
|
100
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
101
|
+
children: this.renderImages()
|
|
102
|
+
})
|
|
103
|
+
}), isShowEditor && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageEditor.default, {
|
|
104
|
+
value: value,
|
|
105
|
+
column: column,
|
|
106
|
+
config: config,
|
|
107
|
+
onToggle: this.closeEditor,
|
|
108
|
+
onCommit: this.onCommit,
|
|
109
|
+
uploadFile: uploadFile
|
|
110
|
+
})]
|
|
111
|
+
});
|
|
107
112
|
}
|
|
108
113
|
}
|
|
109
114
|
var _default = exports.default = RowExpandMBImageEditor;
|
|
@@ -13,6 +13,7 @@ var _ImagePreviewerLightbox = _interopRequireDefault(require("../../../ImagePrev
|
|
|
13
13
|
var _ImageThumbnail = _interopRequireDefault(require("../../../ImageThumbnail"));
|
|
14
14
|
var _ImageEditor = _interopRequireDefault(require("../../../ImageEditor"));
|
|
15
15
|
require("./index.css");
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
17
|
class RowExpandPCImageEditor extends _react.default.Component {
|
|
17
18
|
constructor(props) {
|
|
18
19
|
super(props);
|
|
@@ -88,14 +89,13 @@ class RowExpandPCImageEditor extends _react.default.Component {
|
|
|
88
89
|
config
|
|
89
90
|
} = this.props;
|
|
90
91
|
return value.map((imageSrc, index) => {
|
|
91
|
-
return /*#__PURE__*/
|
|
92
|
-
key: "image-".concat(index),
|
|
92
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageThumbnail.default, {
|
|
93
93
|
index: index,
|
|
94
94
|
src: imageSrc,
|
|
95
95
|
onClick: this.setLargeImageIndex,
|
|
96
96
|
deleteImage: this.deleteImage,
|
|
97
97
|
config: config
|
|
98
|
-
});
|
|
98
|
+
}, "image-".concat(index));
|
|
99
99
|
});
|
|
100
100
|
};
|
|
101
101
|
this.state = {
|
|
@@ -143,28 +143,32 @@ class RowExpandPCImageEditor extends _react.default.Component {
|
|
|
143
143
|
largeImageIndex
|
|
144
144
|
} = this.state;
|
|
145
145
|
let value = this.getValue();
|
|
146
|
-
return /*#__PURE__*/
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
146
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
147
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
148
|
+
className: "dtable-ui-row-expand-image-editor mt-2",
|
|
149
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_addBtn.default, {
|
|
150
|
+
isFocus: isEditorFocus,
|
|
151
|
+
text: (0, _lang.getLocale)('Add_images'),
|
|
152
|
+
onFocus: this.onFocus,
|
|
153
|
+
onClick: this.onToggle
|
|
154
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
155
|
+
className: "dtable-ui-row-expand-image-container",
|
|
156
|
+
children: Array.isArray(value) && value.length > 0 && this.getImageArray(value)
|
|
157
|
+
})]
|
|
158
|
+
}), isShowImageEditor && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageEditor.default, {
|
|
159
|
+
value: value,
|
|
160
|
+
isInModal: true,
|
|
161
|
+
onToggle: this.onToggle,
|
|
162
|
+
onCommit: this.onCommit,
|
|
163
|
+
uploadFile: this.props.uploadFile
|
|
164
|
+
}), largeImageIndex > -1 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImagePreviewerLightbox.default, {
|
|
165
|
+
imageItems: value,
|
|
166
|
+
imageIndex: largeImageIndex,
|
|
167
|
+
closeImagePopup: this.hideLargeImage,
|
|
168
|
+
moveToPrevImage: this.moveToPrevImage,
|
|
169
|
+
moveToNextImage: this.moveToNextImage
|
|
170
|
+
})]
|
|
171
|
+
});
|
|
168
172
|
}
|
|
169
173
|
}
|
|
170
174
|
var _default = exports.default = RowExpandPCImageEditor;
|
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _constants = require("./constants");
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
11
|
const RowExpandEditor = _ref => {
|
|
11
12
|
let {
|
|
12
13
|
column,
|
|
@@ -24,9 +25,10 @@ const RowExpandEditor = _ref => {
|
|
|
24
25
|
valueKey
|
|
25
26
|
} = props;
|
|
26
27
|
const value = row[column[valueKey]];
|
|
27
|
-
return /*#__PURE__*/
|
|
28
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Editor, {
|
|
29
|
+
...props,
|
|
28
30
|
value: value,
|
|
29
31
|
column: column
|
|
30
|
-
})
|
|
32
|
+
});
|
|
31
33
|
};
|
|
32
34
|
var _default = exports.default = RowExpandEditor;
|
|
@@ -10,15 +10,22 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
11
11
|
var _pcEditor = _interopRequireDefault(require("./pc-editor"));
|
|
12
12
|
var _mbEditor = _interopRequireDefault(require("./mb-editor"));
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
const RowExpandLongTextEditor = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
14
|
-
return /*#__PURE__*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
16
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
17
|
+
query: "(min-width: 768px)",
|
|
18
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
|
|
19
|
+
...props,
|
|
20
|
+
ref: ref
|
|
21
|
+
})
|
|
22
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
23
|
+
query: "(max-width: 768px)",
|
|
24
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
|
|
25
|
+
...props,
|
|
26
|
+
ref: ref
|
|
27
|
+
})
|
|
28
|
+
})]
|
|
29
|
+
});
|
|
23
30
|
});
|
|
24
31
|
var _default = exports.default = RowExpandLongTextEditor;
|
|
@@ -12,6 +12,7 @@ var _TextareaItem = _interopRequireDefault(require("../../../../TextareaItem"));
|
|
|
12
12
|
var _MobileFullScreenPage = _interopRequireDefault(require("../../../../MobileFullScreenPage"));
|
|
13
13
|
var _lang = require("../../../../lang");
|
|
14
14
|
require("./index.css");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
16
|
const {
|
|
16
17
|
Header,
|
|
17
18
|
Body
|
|
@@ -53,22 +54,32 @@ const Editor = _ref => {
|
|
|
53
54
|
onSave();
|
|
54
55
|
onToggle();
|
|
55
56
|
}, [onSave, onToggle]);
|
|
56
|
-
return /*#__PURE__*/
|
|
57
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_MobileFullScreenPage.default, {
|
|
57
58
|
className: "dtable-ui-mobile-long-text-editor",
|
|
58
|
-
onClose: onToggle
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
59
|
+
onClose: onToggle,
|
|
60
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(Header, {
|
|
61
|
+
onLeftClick: onToggle,
|
|
62
|
+
onRightClick: handleSave,
|
|
63
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
64
|
+
children: (0, _lang.getLocale)('Close')
|
|
65
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
66
|
+
children: title
|
|
67
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
68
|
+
style: {
|
|
69
|
+
color: '#f09f3f'
|
|
70
|
+
},
|
|
71
|
+
children: (0, _lang.getLocale)('Submit')
|
|
72
|
+
})]
|
|
73
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Body, {
|
|
74
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
75
|
+
className: "dtable-ui-mobile-long-text-editor-container",
|
|
76
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextareaItem.default, {
|
|
77
|
+
rows: rowCounts,
|
|
78
|
+
value: value,
|
|
79
|
+
onChange: handleTextChange
|
|
80
|
+
})
|
|
81
|
+
})
|
|
82
|
+
})]
|
|
83
|
+
});
|
|
73
84
|
};
|
|
74
85
|
var _default = exports.default = Editor;
|
|
@@ -11,6 +11,7 @@ var _lang = require("../../../lang");
|
|
|
11
11
|
var _addBtn = _interopRequireDefault(require("../../add-btn"));
|
|
12
12
|
var _editor = _interopRequireDefault(require("./editor"));
|
|
13
13
|
require("./index.css");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
15
|
class RowExpandMBLongTextEditor extends _react.default.Component {
|
|
15
16
|
constructor(props) {
|
|
16
17
|
super(props);
|
|
@@ -70,22 +71,24 @@ class RowExpandMBLongTextEditor extends _react.default.Component {
|
|
|
70
71
|
innerHtml,
|
|
71
72
|
isShowEditor
|
|
72
73
|
} = this.state;
|
|
73
|
-
return /*#__PURE__*/
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
74
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
75
|
+
children: [innerHtml ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
76
|
+
className: "dtable-ui-mobile-long-text-formatter article py-2",
|
|
77
|
+
onClick: this.openEditor.bind(this),
|
|
78
|
+
dangerouslySetInnerHTML: {
|
|
79
|
+
__html: this.state.innerHtml
|
|
80
|
+
}
|
|
81
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_addBtn.default, {
|
|
82
|
+
className: "py-4",
|
|
83
|
+
onClick: this.openEditor,
|
|
84
|
+
text: (0, _lang.getLocale)('Edit_long_text')
|
|
85
|
+
}), isShowEditor && /*#__PURE__*/(0, _jsxRuntime.jsx)(_editor.default, {
|
|
86
|
+
onChange: this.onCommit,
|
|
87
|
+
value: innerHtml,
|
|
88
|
+
onToggle: this.closeEditor,
|
|
89
|
+
title: column.name
|
|
90
|
+
})]
|
|
91
|
+
});
|
|
89
92
|
}
|
|
90
93
|
}
|
|
91
94
|
var _default = exports.default = RowExpandMBLongTextEditor;
|
|
@@ -15,6 +15,7 @@ var _constants = require("../../../constants");
|
|
|
15
15
|
var _cell = require("../../../utils/cell");
|
|
16
16
|
var _lang = require("../../../lang");
|
|
17
17
|
require("./index.css");
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
19
|
class RowExpandPCLongTextEditor extends _react.default.Component {
|
|
19
20
|
constructor(props) {
|
|
20
21
|
super(props);
|
|
@@ -100,24 +101,27 @@ class RowExpandPCLongTextEditor extends _react.default.Component {
|
|
|
100
101
|
value
|
|
101
102
|
} = this.state;
|
|
102
103
|
if (isLoading) return null;
|
|
103
|
-
return /*#__PURE__*/
|
|
104
|
-
fallback: /*#__PURE__*/
|
|
105
|
-
className: "d-center-middle"
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
104
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Suspense, {
|
|
105
|
+
fallback: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
106
|
+
className: "d-center-middle",
|
|
107
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loading.default, {})
|
|
108
|
+
}),
|
|
109
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactI18next.I18nextProvider, {
|
|
110
|
+
i18n: longTextEditorI18n,
|
|
111
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_seafileEditor.LongTextInlineEditor, {
|
|
112
|
+
ref: this.editorRef,
|
|
113
|
+
lang: _lang.LANGUAGE,
|
|
114
|
+
headerName: column.name,
|
|
115
|
+
value: value || '',
|
|
116
|
+
autoSave: true,
|
|
117
|
+
saveDelay: 20 * 1000,
|
|
118
|
+
isCheckBrowser: true,
|
|
119
|
+
onClick: this.onClick,
|
|
120
|
+
editorApi: longTextEditorAPI,
|
|
121
|
+
onSaveEditorValue: this.onSaveEditorValue
|
|
122
|
+
})
|
|
123
|
+
})
|
|
124
|
+
});
|
|
121
125
|
}
|
|
122
126
|
}
|
|
123
127
|
var _default = exports.default = RowExpandPCLongTextEditor;
|
|
@@ -10,15 +10,22 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
11
11
|
var _pcEditor = _interopRequireDefault(require("./pc-editor"));
|
|
12
12
|
var _mbEditor = _interopRequireDefault(require("./mb-editor"));
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
const RowExpandMultipleSelectEditor = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
14
|
-
return /*#__PURE__*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
16
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
17
|
+
query: "(min-width: 768px)",
|
|
18
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
|
|
19
|
+
...props,
|
|
20
|
+
ref: ref
|
|
21
|
+
})
|
|
22
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
23
|
+
query: "(max-width: 768px)",
|
|
24
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
|
|
25
|
+
...props,
|
|
26
|
+
ref: ref
|
|
27
|
+
})
|
|
28
|
+
})]
|
|
29
|
+
});
|
|
23
30
|
});
|
|
24
31
|
var _default = exports.default = RowExpandMultipleSelectEditor;
|
|
@@ -14,6 +14,7 @@ var _rightAngle = _interopRequireDefault(require("../../right-angle"));
|
|
|
14
14
|
var _objectUtils = _interopRequireDefault(require("../../../utils/object-utils"));
|
|
15
15
|
var _constants = require("../../../constants");
|
|
16
16
|
var _addBtn = _interopRequireDefault(require("../../add-btn"));
|
|
17
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
18
|
class RowExpandMBMultipleSelectEditor extends _react.default.Component {
|
|
18
19
|
constructor(_props) {
|
|
19
20
|
super(_props);
|
|
@@ -73,38 +74,37 @@ class RowExpandMBMultipleSelectEditor extends _react.default.Component {
|
|
|
73
74
|
const selectedOptionIds = selectedOptions.map(option => option[this.key]);
|
|
74
75
|
const invalidOptionIds = value.filter(optionId => !selectedOptionIds.includes(optionId));
|
|
75
76
|
displayOptions = selectedOptions.map((option, optionIdx) => {
|
|
76
|
-
return /*#__PURE__*/
|
|
77
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectItem.default, {
|
|
77
78
|
option: option,
|
|
78
|
-
key: optionIdx,
|
|
79
79
|
isShowRemove: true,
|
|
80
80
|
onRemove: this.removeOption.bind(this, option)
|
|
81
|
-
});
|
|
81
|
+
}, optionIdx);
|
|
82
82
|
}).concat(invalidOptionIds.map((optionId, index) => {
|
|
83
83
|
const option = {
|
|
84
84
|
name: (0, _lang.getLocale)(_constants.DELETED_OPTION_TIPS),
|
|
85
85
|
color: _constants.DELETED_OPTION_BACKGROUND_COLOR
|
|
86
86
|
};
|
|
87
|
-
return /*#__PURE__*/
|
|
87
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectItem.default, {
|
|
88
88
|
option: option,
|
|
89
|
-
key: "deleted-".concat(index),
|
|
90
89
|
isShowRemove: true,
|
|
91
90
|
onRemove: this.removeOption.bind(this, {
|
|
92
91
|
[this.key]: optionId
|
|
93
92
|
})
|
|
94
|
-
});
|
|
93
|
+
}, "deleted-".concat(index));
|
|
95
94
|
}));
|
|
96
95
|
}
|
|
97
|
-
if (displayOptions.length === 0) return /*#__PURE__*/
|
|
96
|
+
if (displayOptions.length === 0) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_addBtn.default, {
|
|
98
97
|
text: (0, _lang.getLocale)('Select_option(s)')
|
|
99
98
|
});
|
|
100
|
-
return /*#__PURE__*/
|
|
99
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
101
100
|
style: {
|
|
102
101
|
minHeight: 50,
|
|
103
102
|
padding: '10px 0',
|
|
104
103
|
display: 'flex',
|
|
105
104
|
flexWrap: 'wrap'
|
|
106
|
-
}
|
|
107
|
-
|
|
105
|
+
},
|
|
106
|
+
children: displayOptions
|
|
107
|
+
});
|
|
108
108
|
};
|
|
109
109
|
this.state = {
|
|
110
110
|
value: _props.value || [],
|
|
@@ -136,19 +136,22 @@ class RowExpandMBMultipleSelectEditor extends _react.default.Component {
|
|
|
136
136
|
showEditor,
|
|
137
137
|
value
|
|
138
138
|
} = this.state;
|
|
139
|
-
return /*#__PURE__*/
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
139
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
140
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
141
|
+
className: "dtable-ui dtable-ui-mobile-row-expand-options-editor position-relative",
|
|
142
|
+
onClick: this.openEditor,
|
|
143
|
+
children: [this.renderOptions(), /*#__PURE__*/(0, _jsxRuntime.jsx)(_rightAngle.default, {})]
|
|
144
|
+
}), showEditor && /*#__PURE__*/(0, _jsxRuntime.jsx)(_MultipleSelectEditor.default, {
|
|
145
|
+
value: value,
|
|
146
|
+
column: column,
|
|
147
|
+
valueKey: this.key,
|
|
148
|
+
options: this.options,
|
|
149
|
+
onCommit: this.onChange,
|
|
150
|
+
onClose: this.closeEditor,
|
|
151
|
+
isSupportNewOption: isSupportNewOption,
|
|
152
|
+
onAddNewOption: onAddNewOption
|
|
153
|
+
})]
|
|
154
|
+
});
|
|
152
155
|
}
|
|
153
156
|
}
|
|
154
157
|
var _default = exports.default = RowExpandMBMultipleSelectEditor;
|