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
|
@@ -15,6 +15,7 @@ var _RowExpandFormatter = _interopRequireDefault(require("../../RowExpandFormatt
|
|
|
15
15
|
var _constants = require("../../constants");
|
|
16
16
|
var _utils = require("../../utils/utils");
|
|
17
17
|
require("./index.css");
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
19
|
class Body extends _react.default.Component {
|
|
19
20
|
constructor(_props) {
|
|
20
21
|
super(_props);
|
|
@@ -159,7 +160,8 @@ class Body extends _react.default.Component {
|
|
|
159
160
|
formatter
|
|
160
161
|
} = component || {};
|
|
161
162
|
if (editable) {
|
|
162
|
-
return /*#__PURE__*/
|
|
163
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_RowExpandEditor.default, {
|
|
164
|
+
...props,
|
|
163
165
|
column: column,
|
|
164
166
|
row: row,
|
|
165
167
|
component: editor,
|
|
@@ -170,22 +172,25 @@ class Body extends _react.default.Component {
|
|
|
170
172
|
onCommit: value => onChange(column, value),
|
|
171
173
|
onEditorOpen: this.onEditorOpen,
|
|
172
174
|
onEditorClose: this.onEditorClose
|
|
173
|
-
})
|
|
175
|
+
});
|
|
174
176
|
}
|
|
175
|
-
return /*#__PURE__*/
|
|
177
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_RowExpandFormatter.default, {
|
|
178
|
+
...props,
|
|
176
179
|
column: column,
|
|
177
180
|
row: row,
|
|
178
181
|
component: formatter,
|
|
179
182
|
downloadImage: getDownLoadFiles ? this.downloadImage : null
|
|
180
|
-
})
|
|
183
|
+
});
|
|
181
184
|
};
|
|
182
185
|
this.renderColumnContent = (row, column, columnIndex) => {
|
|
183
186
|
const isEditorFocus = columnIndex === this.state.tabIndex && column.editable;
|
|
184
|
-
return /*#__PURE__*/
|
|
185
|
-
ref: isEditorFocus ? this.focusDom : null
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
187
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
188
|
+
ref: isEditorFocus ? this.focusDom : null,
|
|
189
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_columnContent.default, {
|
|
190
|
+
column: column,
|
|
191
|
+
children: this.renderColumnValue(row, column, columnIndex, isEditorFocus)
|
|
192
|
+
})
|
|
193
|
+
});
|
|
189
194
|
};
|
|
190
195
|
this.renderChildren = () => {
|
|
191
196
|
const {
|
|
@@ -199,7 +204,9 @@ class Body extends _react.default.Component {
|
|
|
199
204
|
};
|
|
200
205
|
const CustomChildren = children;
|
|
201
206
|
if ( /*#__PURE__*/_react.default.isValidElement(CustomChildren)) return /*#__PURE__*/_react.default.cloneElement(CustomChildren, props);
|
|
202
|
-
if ((0, _utils.isFunction)(CustomChildren)) return /*#__PURE__*/
|
|
207
|
+
if ((0, _utils.isFunction)(CustomChildren)) return /*#__PURE__*/(0, _jsxRuntime.jsx)(CustomChildren, {
|
|
208
|
+
...props
|
|
209
|
+
});
|
|
203
210
|
return children;
|
|
204
211
|
};
|
|
205
212
|
this.state = {
|
|
@@ -227,37 +234,41 @@ class Body extends _react.default.Component {
|
|
|
227
234
|
row,
|
|
228
235
|
placeholder
|
|
229
236
|
} = this.props;
|
|
230
|
-
return /*#__PURE__*/
|
|
231
|
-
className: "dtable-ui-row-expand-body"
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
237
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactstrap.ModalBody, {
|
|
238
|
+
className: "dtable-ui-row-expand-body",
|
|
239
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
240
|
+
className: "dtable-ui-row-expand-body-content",
|
|
241
|
+
ref: ref => this.contentRef = ref,
|
|
242
|
+
children: [columns.length === 0 && placeholder && /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
243
|
+
children: placeholder
|
|
244
|
+
}), columns.map((column, index) => {
|
|
245
|
+
const {
|
|
246
|
+
type,
|
|
247
|
+
data
|
|
248
|
+
} = column;
|
|
249
|
+
let isHasMore = false;
|
|
250
|
+
if (type === _dtableUtils.CellType.LINK_FORMULA) {
|
|
251
|
+
let {
|
|
252
|
+
array_type
|
|
253
|
+
} = data || {};
|
|
254
|
+
const value = this.getCellValue({
|
|
255
|
+
row,
|
|
256
|
+
column
|
|
257
|
+
});
|
|
258
|
+
const cellValue = (0, _utils.getFormulaArrayValue)(value, !(0, _utils.isArrayFormatColumn)(array_type));
|
|
259
|
+
if (cellValue.length >= 10) {
|
|
260
|
+
isHasMore = true;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
264
|
+
className: (0, _classnames.default)('dtable-ui-row-expand-item', {
|
|
265
|
+
'is-has-more': isHasMore
|
|
266
|
+
}),
|
|
267
|
+
children: this.renderColumnContent(row, column, index)
|
|
268
|
+
}, column.key);
|
|
269
|
+
})]
|
|
270
|
+
}), this.renderChildren()]
|
|
271
|
+
});
|
|
261
272
|
}
|
|
262
273
|
}
|
|
263
274
|
var _default = exports.default = Body;
|
|
@@ -9,6 +9,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
var _reactstrap = require("reactstrap");
|
|
10
10
|
var _dtableUtils = require("dtable-utils");
|
|
11
11
|
require("./index.css");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
13
|
const ColumnContent = _ref => {
|
|
13
14
|
let {
|
|
14
15
|
column,
|
|
@@ -21,30 +22,38 @@ const ColumnContent = _ref => {
|
|
|
21
22
|
key,
|
|
22
23
|
description
|
|
23
24
|
} = column;
|
|
24
|
-
return /*#__PURE__*/
|
|
25
|
-
className: "dtable-ui-row-expand-column-content pb-4"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
25
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactstrap.Row, {
|
|
26
|
+
className: "dtable-ui-row-expand-column-content pb-4",
|
|
27
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactstrap.Col, {
|
|
28
|
+
md: 3,
|
|
29
|
+
className: "dtable-ui-row-expand-column-content-info d-flex",
|
|
30
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
31
|
+
className: "dtable-ui-header-icon",
|
|
32
|
+
id: "header-icon-".concat(key),
|
|
33
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
34
|
+
className: _dtableUtils.COLUMNS_ICON_CONFIG[type]
|
|
35
|
+
})
|
|
36
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
37
|
+
className: "dtable-ui-row-expand-column-name",
|
|
38
|
+
children: name || ''
|
|
39
|
+
}), description && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
40
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
41
|
+
className: "dtable-font dtable-icon-description dtable-ui-column-tip-icon ml-2",
|
|
42
|
+
ref: descriptionRef
|
|
43
|
+
}), descriptionRef.current && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.UncontrolledTooltip, {
|
|
44
|
+
innerClassName: "dtable-ui-column-description-tip",
|
|
45
|
+
popperClassName: "dtable-ui-row-expand-column-tip",
|
|
46
|
+
target: descriptionRef.current,
|
|
47
|
+
placement: "bottom",
|
|
48
|
+
fade: false,
|
|
49
|
+
children: description
|
|
50
|
+
})]
|
|
51
|
+
})]
|
|
52
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Col, {
|
|
53
|
+
md: 9,
|
|
54
|
+
className: "d-flex align-items-center dtable-ui-row-expand-column-content-value",
|
|
55
|
+
children: children
|
|
56
|
+
})]
|
|
57
|
+
});
|
|
49
58
|
};
|
|
50
59
|
var _default = exports.default = ColumnContent;
|
|
@@ -12,6 +12,7 @@ var _lang = require("../../lang");
|
|
|
12
12
|
var _utils = require("../../utils/utils");
|
|
13
13
|
var _IconButton = _interopRequireDefault(require("../../IconButton"));
|
|
14
14
|
require("./index.css");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
16
|
const Header = _ref => {
|
|
16
17
|
let {
|
|
17
18
|
title,
|
|
@@ -28,28 +29,34 @@ const Header = _ref => {
|
|
|
28
29
|
};
|
|
29
30
|
const CustomTitle = title;
|
|
30
31
|
if ( /*#__PURE__*/_react.default.isValidElement(CustomTitle)) return /*#__PURE__*/_react.default.cloneElement(CustomTitle, props);
|
|
31
|
-
if ((0, _utils.isFunction)(CustomTitle)) return /*#__PURE__*/
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
if ((0, _utils.isFunction)(CustomTitle)) return /*#__PURE__*/(0, _jsxRuntime.jsx)(CustomTitle, {
|
|
33
|
+
...props
|
|
34
|
+
});
|
|
35
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
36
|
+
className: "dtable-ui-row-expand-header-title text-truncate",
|
|
37
|
+
children: title
|
|
38
|
+
});
|
|
35
39
|
}, [columns, row, title]);
|
|
36
|
-
return /*#__PURE__*/
|
|
40
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.ModalHeader, {
|
|
37
41
|
className: "d-print-none dtable-ui-row-expand-header",
|
|
38
|
-
close: /*#__PURE__*/
|
|
39
|
-
className: "dtable-ui-row-expand-header-right-btns"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
42
|
+
close: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
43
|
+
className: "dtable-ui-row-expand-header-right-btns",
|
|
44
|
+
children: [copyURL && /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconButton.default, {
|
|
45
|
+
icon: "url",
|
|
46
|
+
onClick: () => copyURL(),
|
|
47
|
+
"aria-label": (0, _lang.getLocale)('Get_URL'),
|
|
48
|
+
title: (0, _lang.getLocale)('Get_URL')
|
|
49
|
+
}), children, /*#__PURE__*/(0, _jsxRuntime.jsx)(_IconButton.default, {
|
|
50
|
+
icon: "x",
|
|
51
|
+
onClick: onToggle,
|
|
52
|
+
title: (0, _lang.getLocale)('Close_expanded_record'),
|
|
53
|
+
"aria-label": (0, _lang.getLocale)('Close_expanded_record')
|
|
54
|
+
})]
|
|
55
|
+
}),
|
|
56
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
57
|
+
className: "dtable-ui-row-expand-header-left-btns",
|
|
58
|
+
children: renderTitle()
|
|
59
|
+
})
|
|
60
|
+
});
|
|
54
61
|
};
|
|
55
62
|
var _default = exports.default = Header;
|
|
@@ -17,6 +17,7 @@ var _body = _interopRequireDefault(require("./body"));
|
|
|
17
17
|
var _lang = require("../lang");
|
|
18
18
|
var _cellComparer = require("../utils/cell-comparer");
|
|
19
19
|
require("./index.css");
|
|
20
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
21
|
const RowExpandDialog = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
21
22
|
let {
|
|
22
23
|
saveImmediately = true,
|
|
@@ -198,7 +199,7 @@ const RowExpandDialog = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
198
199
|
});
|
|
199
200
|
}
|
|
200
201
|
}), [row, columns]);
|
|
201
|
-
return /*#__PURE__*/
|
|
202
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Modal, {
|
|
202
203
|
isOpen: true,
|
|
203
204
|
toggle: onToggle,
|
|
204
205
|
className: (0, _classnames.default)('dtable-ui-row-expand-dialog', className),
|
|
@@ -208,32 +209,44 @@ const RowExpandDialog = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
208
209
|
modalClassName: "dtable-ui-row-expand-modal",
|
|
209
210
|
fade: false,
|
|
210
211
|
innerRef: modalRef,
|
|
211
|
-
keyboard: false
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
212
|
+
keyboard: false,
|
|
213
|
+
children: isAnimationEnd && /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
214
|
+
children: isLoading ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
215
|
+
className: "w-100 -h-100 d-flex align-items-center justify-content-center",
|
|
216
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loading.default, {})
|
|
217
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
218
|
+
className: "dtable-ui-row-expand-details",
|
|
219
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_header.default, {
|
|
220
|
+
title: title,
|
|
221
|
+
row: row,
|
|
222
|
+
columns: columns,
|
|
223
|
+
copyURL: copyURL,
|
|
224
|
+
onToggle: toggle,
|
|
225
|
+
children: children[0]
|
|
226
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_body.default, {
|
|
227
|
+
...otherProps,
|
|
228
|
+
row: row,
|
|
229
|
+
columns: columns,
|
|
230
|
+
valueKey: valueKey,
|
|
231
|
+
onChange: onChange,
|
|
232
|
+
uploadFile: uploadFile,
|
|
233
|
+
onToggle: onToggle,
|
|
234
|
+
children: children[1]
|
|
235
|
+
}), (!saveImmediately || isInsertingRow) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactstrap.ModalFooter, {
|
|
236
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Button, {
|
|
237
|
+
onClick: toggle,
|
|
238
|
+
color: "secondary",
|
|
239
|
+
children: (0, _lang.getLocale)('Cancel')
|
|
240
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Button, {
|
|
241
|
+
onClick: onSubmit,
|
|
242
|
+
disabled: isSaving || !isChangedRef.current,
|
|
243
|
+
color: "primary",
|
|
244
|
+
children: (0, _lang.getLocale)('Submit')
|
|
245
|
+
})]
|
|
246
|
+
})]
|
|
247
|
+
})
|
|
248
|
+
})
|
|
249
|
+
});
|
|
237
250
|
});
|
|
238
251
|
RowExpandDialog.Header = _header.default;
|
|
239
252
|
RowExpandDialog.Body = _body.default;
|
|
@@ -10,15 +10,22 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
11
11
|
var _pcAddBtn = _interopRequireDefault(require("./pc-add-btn"));
|
|
12
12
|
var _mbAddBtn = _interopRequireDefault(require("./mb-add-btn"));
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
const RowExpandAddBtn = /*#__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)(_pcAddBtn.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)(_mbAddBtn.default, {
|
|
25
|
+
...props,
|
|
26
|
+
ref: ref
|
|
27
|
+
})
|
|
28
|
+
})]
|
|
29
|
+
});
|
|
23
30
|
});
|
|
24
31
|
var _default = exports.default = RowExpandAddBtn;
|
|
@@ -9,11 +9,13 @@ exports.default = void 0;
|
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
11
|
require("./index.css");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
13
|
const RowExpandMBAddBtn = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
13
|
-
return /*#__PURE__*/
|
|
14
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
14
15
|
ref: ref,
|
|
15
16
|
onClick: props.onClick,
|
|
16
|
-
className: (0, _classnames.default)('dtable-ui-mobile-row-expand-add-btn', props.className)
|
|
17
|
-
|
|
17
|
+
className: (0, _classnames.default)('dtable-ui-mobile-row-expand-add-btn', props.className),
|
|
18
|
+
children: props.text
|
|
19
|
+
});
|
|
18
20
|
});
|
|
19
21
|
var _default = exports.default = RowExpandMBAddBtn;
|
|
@@ -10,17 +10,20 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
11
|
var _constants = require("../../../constants");
|
|
12
12
|
require("./index.css");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
const RowExpandPCAddBtn = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
14
|
-
return /*#__PURE__*/
|
|
15
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
15
16
|
ref: ref,
|
|
16
17
|
tabIndex: 0,
|
|
17
18
|
onClick: props.onClick,
|
|
18
19
|
onFocus: props.onFocus,
|
|
19
20
|
role: "button",
|
|
20
21
|
className: (0, _classnames.default)('dtable-ui-row-expand-add-btn d-print-none', props.className),
|
|
21
|
-
style: props.isFocus ? _constants.ROW_EXPAND_BTN_FOCUS_STYLE : {}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
style: props.isFocus ? _constants.ROW_EXPAND_BTN_FOCUS_STYLE : {},
|
|
23
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
24
|
+
className: "d-print-none",
|
|
25
|
+
children: props.text
|
|
26
|
+
})
|
|
27
|
+
});
|
|
25
28
|
});
|
|
26
29
|
var _default = exports.default = RowExpandPCAddBtn;
|
|
@@ -11,15 +11,22 @@ 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 RowExpandCheckboxEditor = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
15
|
-
return /*#__PURE__*/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
17
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
18
|
+
query: "(min-width: 768px)",
|
|
19
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
|
|
20
|
+
...props,
|
|
21
|
+
ref: ref
|
|
22
|
+
})
|
|
23
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
24
|
+
query: "(max-width: 768px)",
|
|
25
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
|
|
26
|
+
...props,
|
|
27
|
+
ref: ref
|
|
28
|
+
})
|
|
29
|
+
})]
|
|
30
|
+
});
|
|
24
31
|
});
|
|
25
32
|
var _default = exports.default = RowExpandCheckboxEditor;
|
|
@@ -9,6 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
10
|
var _CheckboxEditor = _interopRequireDefault(require("../../../CheckboxEditor"));
|
|
11
11
|
require("./index.css");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
13
|
class RowExpandMBCheckboxEditor extends _react.default.Component {
|
|
13
14
|
constructor(props) {
|
|
14
15
|
super(props);
|
|
@@ -23,14 +24,15 @@ class RowExpandMBCheckboxEditor extends _react.default.Component {
|
|
|
23
24
|
value,
|
|
24
25
|
className
|
|
25
26
|
} = this.props;
|
|
26
|
-
return /*#__PURE__*/
|
|
27
|
-
className: (0, _classnames.default)('dtable-ui-mobile-row-expand-checkbox-editor-container', className)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
28
|
+
className: (0, _classnames.default)('dtable-ui-mobile-row-expand-checkbox-editor-container', className),
|
|
29
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CheckboxEditor.default, {
|
|
30
|
+
className: "dtable-ui-row-expand-checkbox-editor mt-0",
|
|
31
|
+
column: column,
|
|
32
|
+
value: value,
|
|
33
|
+
onCommit: this.onCommit
|
|
34
|
+
})
|
|
35
|
+
});
|
|
34
36
|
}
|
|
35
37
|
}
|
|
36
38
|
var _default = exports.default = RowExpandMBCheckboxEditor;
|
|
@@ -8,6 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _CheckboxEditor = _interopRequireDefault(require("../../CheckboxEditor"));
|
|
10
10
|
var _constants = require("../../constants");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
class RowExpandPCCheckboxEditor extends _react.default.Component {
|
|
12
13
|
constructor() {
|
|
13
14
|
super(...arguments);
|
|
@@ -27,7 +28,7 @@ class RowExpandPCCheckboxEditor extends _react.default.Component {
|
|
|
27
28
|
column,
|
|
28
29
|
value
|
|
29
30
|
} = this.props;
|
|
30
|
-
return /*#__PURE__*/
|
|
31
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_CheckboxEditor.default, {
|
|
31
32
|
className: "dtable-ui-row-expand-checkbox-editor mt-2",
|
|
32
33
|
column: column,
|
|
33
34
|
value: value,
|
|
@@ -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 RowExpandCollaboratorEditor = /*#__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 = RowExpandCollaboratorEditor;
|
|
@@ -12,6 +12,7 @@ var _CollaboratorItem = _interopRequireDefault(require("../../../CollaboratorIte
|
|
|
12
12
|
var _rightAngle = _interopRequireDefault(require("../../right-angle"));
|
|
13
13
|
var _addBtn = _interopRequireDefault(require("../../add-btn"));
|
|
14
14
|
require("./index.css");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
16
|
class RowExpandMBCollaboratorEditor extends _react.default.Component {
|
|
16
17
|
constructor(_props) {
|
|
17
18
|
super(_props);
|
|
@@ -78,24 +79,22 @@ class RowExpandMBCollaboratorEditor extends _react.default.Component {
|
|
|
78
79
|
const {
|
|
79
80
|
email
|
|
80
81
|
} = collaborator;
|
|
81
|
-
return /*#__PURE__*/
|
|
82
|
-
key: email,
|
|
82
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_CollaboratorItem.default, {
|
|
83
83
|
collaborator: collaborator
|
|
84
|
-
});
|
|
84
|
+
}, email);
|
|
85
85
|
}
|
|
86
86
|
collaborator = {
|
|
87
87
|
name: (0, _lang.getLocale)('Unknown'),
|
|
88
88
|
avatar_url: '',
|
|
89
89
|
email: index + ''
|
|
90
90
|
};
|
|
91
|
-
return /*#__PURE__*/
|
|
92
|
-
key: email,
|
|
91
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_CollaboratorItem.default, {
|
|
93
92
|
className: "dtable-ui-unknown-collaborator",
|
|
94
93
|
collaborator: collaborator
|
|
95
|
-
});
|
|
94
|
+
}, email);
|
|
96
95
|
});
|
|
97
96
|
}
|
|
98
|
-
return /*#__PURE__*/
|
|
97
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_addBtn.default, {
|
|
99
98
|
text: (0, _lang.getLocale)('Add_collaborator')
|
|
100
99
|
});
|
|
101
100
|
};
|
|
@@ -148,16 +147,19 @@ class RowExpandMBCollaboratorEditor extends _react.default.Component {
|
|
|
148
147
|
showEditor,
|
|
149
148
|
value
|
|
150
149
|
} = this.state;
|
|
151
|
-
return /*#__PURE__*/
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
150
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
151
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
152
|
+
className: "dtable-ui dtable-ui-mobile-row-expand-collaborators position-relative",
|
|
153
|
+
onClick: this.openEditor,
|
|
154
|
+
children: [this.renderCollaborators(value), /*#__PURE__*/(0, _jsxRuntime.jsx)(_rightAngle.default, {})]
|
|
155
|
+
}), showEditor && /*#__PURE__*/(0, _jsxRuntime.jsx)(_CollaboratorEditor.default, {
|
|
156
|
+
value: value,
|
|
157
|
+
column: column,
|
|
158
|
+
collaborators: collaborators,
|
|
159
|
+
onCommit: this.onChange,
|
|
160
|
+
onClose: this.closeEditor
|
|
161
|
+
})]
|
|
162
|
+
});
|
|
161
163
|
}
|
|
162
164
|
}
|
|
163
165
|
var _default = exports.default = RowExpandMBCollaboratorEditor;
|