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
|
@@ -13,6 +13,7 @@ var _SingleSelectEditor = _interopRequireDefault(require("../../../SingleSelectE
|
|
|
13
13
|
var _lang = require("../../../lang");
|
|
14
14
|
var _objectUtils = _interopRequireDefault(require("../../../utils/object-utils"));
|
|
15
15
|
require("./index.css");
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
17
|
class RowExpandPCSingleSelectEditor extends _react.default.Component {
|
|
17
18
|
constructor(_props) {
|
|
18
19
|
super(_props);
|
|
@@ -106,7 +107,7 @@ class RowExpandPCSingleSelectEditor extends _react.default.Component {
|
|
|
106
107
|
backgroundColor: _constants.DELETED_OPTION_BACKGROUND_COLOR
|
|
107
108
|
};
|
|
108
109
|
const optionName = option ? option.name : (0, _lang.getLocale)(_constants.DELETED_OPTION_TIPS);
|
|
109
|
-
return /*#__PURE__*/
|
|
110
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
110
111
|
tabIndex: 0,
|
|
111
112
|
onFocus: this.onFocus,
|
|
112
113
|
onClick: this.onToggleSelect,
|
|
@@ -114,23 +115,29 @@ class RowExpandPCSingleSelectEditor extends _react.default.Component {
|
|
|
114
115
|
className: (0, _classnames.default)('dtable-ui dtable-ui-row-expand-select-editor custom-select', {
|
|
115
116
|
'focus': isEditorFocus,
|
|
116
117
|
["".concat(classNamePrefix, "-select-editor")]: classNamePrefix
|
|
118
|
+
}),
|
|
119
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
120
|
+
className: (0, _classnames.default)('dtable-ui-row-expand-select-editor-inner', {
|
|
121
|
+
["".concat(classNamePrefix, "-select-editor-inner")]: classNamePrefix
|
|
122
|
+
}),
|
|
123
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
124
|
+
className: (0, _classnames.default)('', {
|
|
125
|
+
["".concat(classNamePrefix, "-select-editor-inner-container")]: classNamePrefix
|
|
126
|
+
}),
|
|
127
|
+
children: [value && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
128
|
+
className: "dtable-ui-select-option",
|
|
129
|
+
style: optionStyle,
|
|
130
|
+
title: optionName,
|
|
131
|
+
children: optionName
|
|
132
|
+
}), !value && placeholder && /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
133
|
+
children: placeholder
|
|
134
|
+
})]
|
|
135
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
136
|
+
"aria-hidden": "true",
|
|
137
|
+
className: "dtable-font dtable-icon-down3"
|
|
138
|
+
})]
|
|
117
139
|
})
|
|
118
|
-
}
|
|
119
|
-
className: (0, _classnames.default)('dtable-ui-row-expand-select-editor-inner', {
|
|
120
|
-
["".concat(classNamePrefix, "-select-editor-inner")]: classNamePrefix
|
|
121
|
-
})
|
|
122
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
123
|
-
className: (0, _classnames.default)('', {
|
|
124
|
-
["".concat(classNamePrefix, "-select-editor-inner-container")]: classNamePrefix
|
|
125
|
-
})
|
|
126
|
-
}, value && /*#__PURE__*/_react.default.createElement("div", {
|
|
127
|
-
className: "dtable-ui-select-option",
|
|
128
|
-
style: optionStyle,
|
|
129
|
-
title: optionName
|
|
130
|
-
}, optionName), !value && placeholder && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, placeholder)), /*#__PURE__*/_react.default.createElement("i", {
|
|
131
|
-
"aria-hidden": "true",
|
|
132
|
-
className: "dtable-font dtable-icon-down3"
|
|
133
|
-
})));
|
|
140
|
+
});
|
|
134
141
|
};
|
|
135
142
|
this.state = {
|
|
136
143
|
value: _props.value,
|
|
@@ -183,24 +190,25 @@ class RowExpandPCSingleSelectEditor extends _react.default.Component {
|
|
|
183
190
|
isShowEditor,
|
|
184
191
|
value
|
|
185
192
|
} = this.state;
|
|
186
|
-
return /*#__PURE__*/
|
|
193
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
187
194
|
className: "position-relative w-100",
|
|
188
|
-
ref: ref => this.ref = ref
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
195
|
+
ref: ref => this.ref = ref,
|
|
196
|
+
children: [this.renderOption(), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
197
|
+
ref: ref => this.targetRef = ref
|
|
198
|
+
}), isShowEditor && /*#__PURE__*/(0, _jsxRuntime.jsx)(_SingleSelectEditor.default, {
|
|
199
|
+
isInModal: true,
|
|
200
|
+
options: this.options,
|
|
201
|
+
column: column,
|
|
202
|
+
value: value,
|
|
203
|
+
valueKey: this.key,
|
|
204
|
+
target: this.targetRef,
|
|
205
|
+
classNamePrefix: classNamePrefix,
|
|
206
|
+
onCommit: this.onChange,
|
|
207
|
+
isSupportNewOption: isSupportNewOption,
|
|
208
|
+
onAddNewOption: onAddNewOption,
|
|
209
|
+
onClose: this.closeEditor
|
|
210
|
+
})]
|
|
211
|
+
});
|
|
204
212
|
}
|
|
205
213
|
}
|
|
206
214
|
var _default = exports.default = RowExpandPCSingleSelectEditor;
|
|
@@ -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 RowExpandTextEditor = /*#__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 = RowExpandTextEditor;
|
|
@@ -8,6 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _TextEditor = _interopRequireDefault(require("../../../TextEditor"));
|
|
10
10
|
require("./index.css");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
class RowExpandMBTextEditor extends _react.default.Component {
|
|
12
13
|
constructor(props) {
|
|
13
14
|
super(props);
|
|
@@ -23,15 +24,16 @@ class RowExpandMBTextEditor extends _react.default.Component {
|
|
|
23
24
|
column,
|
|
24
25
|
value
|
|
25
26
|
} = this.props;
|
|
26
|
-
return /*#__PURE__*/
|
|
27
|
-
className: "dtable-ui-mobile-row-expand-input-editor-container"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
27
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
28
|
+
className: "dtable-ui-mobile-row-expand-input-editor-container",
|
|
29
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextEditor.default, {
|
|
30
|
+
ref: ref => this.editor = ref,
|
|
31
|
+
readOnly: readOnly,
|
|
32
|
+
column: column,
|
|
33
|
+
value: value,
|
|
34
|
+
onCommit: this.onCommit
|
|
35
|
+
})
|
|
36
|
+
});
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
39
|
var _default = exports.default = RowExpandMBTextEditor;
|
|
@@ -13,6 +13,7 @@ var _cell = require("../../../utils/cell");
|
|
|
13
13
|
var _constants = require("../../../constants");
|
|
14
14
|
var _lang = require("../../../lang");
|
|
15
15
|
require("./index.css");
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
17
|
class RowExpandPCTextEditor extends _react.default.Component {
|
|
17
18
|
constructor(props) {
|
|
18
19
|
super(props);
|
|
@@ -118,19 +119,22 @@ class RowExpandPCTextEditor extends _react.default.Component {
|
|
|
118
119
|
const {
|
|
119
120
|
inconformityFormat
|
|
120
121
|
} = this.state;
|
|
121
|
-
return /*#__PURE__*/
|
|
122
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
122
123
|
className: "dtable-ui-row-expand-simple-text-editor-container",
|
|
123
|
-
ref: this.setEditorRef
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
124
|
+
ref: this.setEditorRef,
|
|
125
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TextEditor.default, {
|
|
126
|
+
ref: ref => this.editor = ref,
|
|
127
|
+
className: inconformityFormat ? 'is-invalid' : '',
|
|
128
|
+
readOnly: readOnly,
|
|
129
|
+
column: column,
|
|
130
|
+
value: value,
|
|
131
|
+
onKeyDown: this.onKeyDown,
|
|
132
|
+
onInputClick: this.onInputClick,
|
|
133
|
+
onCommit: this.onCommit
|
|
134
|
+
}), inconformityFormat && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.FormFeedback, {
|
|
135
|
+
children: _lang.getLocale.get('Input_does_not_meet_specifications')
|
|
136
|
+
})]
|
|
137
|
+
});
|
|
134
138
|
}
|
|
135
139
|
}
|
|
136
140
|
var _default = exports.default = RowExpandPCTextEditor;
|
|
@@ -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 RowExpandUrlEditor = /*#__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 = RowExpandUrlEditor;
|
|
@@ -10,6 +10,7 @@ var _toaster = _interopRequireDefault(require("../../../toaster"));
|
|
|
10
10
|
var _utils = require("../../../utils/utils");
|
|
11
11
|
var _lang = require("../../../lang");
|
|
12
12
|
require("./index.css");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
class RowExpandMBUrlEditor extends _react.default.Component {
|
|
14
15
|
constructor(props) {
|
|
15
16
|
super(props);
|
|
@@ -65,23 +66,24 @@ class RowExpandMBUrlEditor extends _react.default.Component {
|
|
|
65
66
|
const {
|
|
66
67
|
value
|
|
67
68
|
} = this.state;
|
|
68
|
-
return /*#__PURE__*/
|
|
69
|
-
className: "dtable-ui-mobile-row-expand-input-editor-container position-relative dtable-ui-mobile-row-expand-url-editor-container"
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
69
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
70
|
+
className: "dtable-ui-mobile-row-expand-input-editor-container position-relative dtable-ui-mobile-row-expand-url-editor-container",
|
|
71
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
72
|
+
type: "text",
|
|
73
|
+
onFocus: this.onFocus,
|
|
74
|
+
onBlur: this.onBlur,
|
|
75
|
+
onCut: this.onCut,
|
|
76
|
+
onPaste: this.onPaste,
|
|
77
|
+
onChange: this.onChange,
|
|
78
|
+
className: "form-control dtable-ui-mobile-row-expand-url-input",
|
|
79
|
+
value: value || '',
|
|
80
|
+
onKeyDown: this.onKeyDown
|
|
81
|
+
}), value && value.trim() && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
82
|
+
"aria-hidden": "true",
|
|
83
|
+
className: "dtable-font dtable-icon-url dtable-ui-mobile-row-expand-jump-link",
|
|
84
|
+
onClick: this.onOpenUrlLink
|
|
85
|
+
})]
|
|
86
|
+
});
|
|
85
87
|
}
|
|
86
88
|
}
|
|
87
89
|
var _default = exports.default = RowExpandMBUrlEditor;
|
|
@@ -11,6 +11,7 @@ var _utils = require("../../../utils/utils");
|
|
|
11
11
|
var _constants = require("../../../constants");
|
|
12
12
|
var _lang = require("../../../lang");
|
|
13
13
|
require("./index.css");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
15
|
class RowExpandPCUrlEditor extends _react.default.Component {
|
|
15
16
|
constructor(props) {
|
|
16
17
|
super(props);
|
|
@@ -107,24 +108,25 @@ class RowExpandPCUrlEditor extends _react.default.Component {
|
|
|
107
108
|
let {
|
|
108
109
|
value
|
|
109
110
|
} = this.state;
|
|
110
|
-
return /*#__PURE__*/
|
|
111
|
-
className: "dtable-ui-row-expand-url-editor"
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
111
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
112
|
+
className: "dtable-ui-row-expand-url-editor",
|
|
113
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
114
|
+
ref: ref => this.urlInputRef = ref,
|
|
115
|
+
type: "text",
|
|
116
|
+
onFocus: this.onFocus,
|
|
117
|
+
onBlur: this.onBlur,
|
|
118
|
+
onCut: this.onCut,
|
|
119
|
+
onPaste: this.onPaste,
|
|
120
|
+
onChange: this.onChange,
|
|
121
|
+
className: "form-control dtable-ui-row-expand-url-input",
|
|
122
|
+
value: value || '',
|
|
123
|
+
onKeyDown: this.onKeyDown
|
|
124
|
+
}), value && value.trim() && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
125
|
+
"aria-hidden": "true",
|
|
126
|
+
className: "dtable-font dtable-icon-url dtable-ui-row-expand-jump-link",
|
|
127
|
+
onClick: this.onOpenUrlLink
|
|
128
|
+
})]
|
|
129
|
+
});
|
|
128
130
|
}
|
|
129
131
|
}
|
|
130
132
|
var _default = exports.default = RowExpandPCUrlEditor;
|
|
@@ -9,11 +9,20 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
10
10
|
var _pcFormatter = _interopRequireDefault(require("./pc-formatter"));
|
|
11
11
|
var _mbFormatter = _interopRequireDefault(require("./mb-formatter"));
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
13
|
const RowExpandDepartmentFormatter = props => {
|
|
13
|
-
return /*#__PURE__*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
15
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
16
|
+
query: '(min-width: 768px)',
|
|
17
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcFormatter.default, {
|
|
18
|
+
...props
|
|
19
|
+
})
|
|
20
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
21
|
+
query: '(max-width: 768px)',
|
|
22
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbFormatter.default, {
|
|
23
|
+
...props
|
|
24
|
+
})
|
|
25
|
+
})]
|
|
26
|
+
});
|
|
18
27
|
};
|
|
19
28
|
var _default = exports.default = RowExpandDepartmentFormatter;
|
|
@@ -7,12 +7,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _DepartmentSingleSelectFormatter = _interopRequireDefault(require("../../DepartmentSingleSelectFormatter"));
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
11
|
function RowExpandMBDepartmentFormatter(_ref) {
|
|
11
12
|
let {
|
|
12
13
|
value,
|
|
13
14
|
departments
|
|
14
15
|
} = _ref;
|
|
15
|
-
return /*#__PURE__*/
|
|
16
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_DepartmentSingleSelectFormatter.default, {
|
|
16
17
|
value: value,
|
|
17
18
|
departments: departments
|
|
18
19
|
});
|
|
@@ -7,21 +7,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _DepartmentSingleSelectFormatter = _interopRequireDefault(require("../../DepartmentSingleSelectFormatter"));
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
11
|
function RowExpandPCDepartmentFormatter(_ref) {
|
|
11
12
|
let {
|
|
12
13
|
value,
|
|
13
14
|
departments
|
|
14
15
|
} = _ref;
|
|
15
|
-
return /*#__PURE__*/
|
|
16
|
-
className: "position-relative w-100"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
17
|
+
className: "position-relative w-100",
|
|
18
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
19
|
+
tabIndex: 0,
|
|
20
|
+
className: "dtable-ui-row-expand-select-formatter custom-select",
|
|
21
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
22
|
+
className: "dtable-ui-row-expand-select-formatter-inner",
|
|
23
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DepartmentSingleSelectFormatter.default, {
|
|
24
|
+
value: value,
|
|
25
|
+
departments: departments
|
|
26
|
+
})
|
|
27
|
+
})
|
|
28
|
+
})
|
|
29
|
+
});
|
|
26
30
|
}
|
|
27
31
|
var _default = exports.default = RowExpandPCDepartmentFormatter;
|
|
@@ -9,6 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
10
|
var _editorUtils = require("../../utils/editor-utils");
|
|
11
11
|
require("./index.css");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
13
|
class RowExpandEmailFormatter extends _react.default.Component {
|
|
13
14
|
constructor() {
|
|
14
15
|
super(...arguments);
|
|
@@ -26,14 +27,16 @@ class RowExpandEmailFormatter extends _react.default.Component {
|
|
|
26
27
|
value
|
|
27
28
|
} = this.props;
|
|
28
29
|
let classname = (0, _classnames.default)('dtable-ui cell-formatter-container email-formatter', containerClassName);
|
|
29
|
-
return /*#__PURE__*/
|
|
30
|
-
className: classname
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
31
|
+
className: classname,
|
|
32
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
33
|
+
className: "email-formatter-value text-truncate",
|
|
34
|
+
children: value
|
|
35
|
+
}), (0, _editorUtils.getTrimmedString)(value) && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
36
|
+
className: "dtable-font dtable-icon-email row-expand-jump-link",
|
|
37
|
+
onClick: this.onOpenEmailLink
|
|
38
|
+
})]
|
|
39
|
+
});
|
|
37
40
|
}
|
|
38
41
|
}
|
|
39
42
|
var _default = exports.default = RowExpandEmailFormatter;
|
|
@@ -9,6 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
10
|
var _rowExpandFileItemFormatter = _interopRequireDefault(require("./row-expand-file-item-formatter"));
|
|
11
11
|
require("./index.css");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
13
|
class RowExpandFileFormatter extends _react.default.PureComponent {
|
|
13
14
|
render() {
|
|
14
15
|
let {
|
|
@@ -23,20 +24,20 @@ class RowExpandFileFormatter extends _react.default.PureComponent {
|
|
|
23
24
|
if (!Array.isArray(value) || value.length === 0) {
|
|
24
25
|
return null;
|
|
25
26
|
}
|
|
26
|
-
return /*#__PURE__*/
|
|
27
|
-
className: (0, _classnames.default)('dtable-ui cell-formatter-container row-expand-file-formatter', containerClassName)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
})
|
|
39
|
-
})
|
|
27
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
28
|
+
className: (0, _classnames.default)('dtable-ui cell-formatter-container row-expand-file-formatter', containerClassName),
|
|
29
|
+
children: value.map((item, index) => {
|
|
30
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_rowExpandFileItemFormatter.default, {
|
|
31
|
+
file: item,
|
|
32
|
+
index: index,
|
|
33
|
+
column: column,
|
|
34
|
+
config: config,
|
|
35
|
+
downloadFile: downloadFile,
|
|
36
|
+
deleteFile: deleteFile,
|
|
37
|
+
readOnly: readOnly
|
|
38
|
+
}, index);
|
|
39
|
+
})
|
|
40
|
+
});
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
43
|
exports.default = RowExpandFileFormatter;
|
|
@@ -11,6 +11,7 @@ var _reactstrap = require("reactstrap");
|
|
|
11
11
|
var _lang = require("../../lang");
|
|
12
12
|
var _url = require("../../utils/url");
|
|
13
13
|
var _DeleteTip = _interopRequireDefault(require("../../DeleteTip"));
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
15
|
class RowExpandFileItemFormatter extends _react.Component {
|
|
15
16
|
constructor(props) {
|
|
16
17
|
super(props);
|
|
@@ -58,42 +59,48 @@ class RowExpandFileItemFormatter extends _react.Component {
|
|
|
58
59
|
const {
|
|
59
60
|
fileIconUrl
|
|
60
61
|
} = (0, _url.getFileThumbnailInfo)(file, config);
|
|
61
|
-
return /*#__PURE__*/
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
62
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
63
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
64
|
+
className: "row-expand-item-file",
|
|
65
|
+
id: id,
|
|
66
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
67
|
+
src: fileIconUrl,
|
|
68
|
+
id: "item-file-".concat(index),
|
|
69
|
+
alt: file.name
|
|
70
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
71
|
+
className: "dtable-ui-file-icons-choice",
|
|
72
|
+
children: [downloadFile && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
73
|
+
className: "file-icon",
|
|
74
|
+
onClick: e => this.props.downloadFile(file, e),
|
|
75
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
76
|
+
className: "dtable-font dtable-icon-download"
|
|
77
|
+
})
|
|
78
|
+
}), !readOnly && deleteFile && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
79
|
+
className: "file-icon",
|
|
80
|
+
onClick: this.onClickDelete,
|
|
81
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
82
|
+
className: "dtable-font dtable-icon-fork-number"
|
|
83
|
+
})
|
|
84
|
+
})]
|
|
85
|
+
})]
|
|
86
|
+
}, "file-".concat(index)), this.state.isDeleteTipOpen && /*#__PURE__*/(0, _jsxRuntime.jsx)(_DeleteTip.default, {
|
|
87
|
+
position: this.position,
|
|
88
|
+
toggle: this.closeDeleteTip,
|
|
89
|
+
handleDelete: this.onDelete,
|
|
90
|
+
deleteTip: (0, _lang.getLocale)('Are_you_sure_you_want_to_delete_this_file')
|
|
91
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Tooltip, {
|
|
92
|
+
placement: "bottom",
|
|
93
|
+
isOpen: this.state.isTooltipOpen,
|
|
94
|
+
toggle: this.toggleTooltip,
|
|
95
|
+
target: id,
|
|
96
|
+
delay: {
|
|
97
|
+
show: 0,
|
|
98
|
+
hide: 0
|
|
99
|
+
},
|
|
100
|
+
fade: false,
|
|
101
|
+
children: file.name
|
|
102
|
+
})]
|
|
103
|
+
});
|
|
97
104
|
}
|
|
98
105
|
}
|
|
99
106
|
exports.default = RowExpandFileItemFormatter;
|