dtable-ui-component 7.0.0-xia.1 → 7.0.0-xia.2
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 +14 -16
- package/lib/ActivityIndicator/index.js +7 -8
- package/lib/AsyncUserSelect/index.js +40 -19
- package/lib/AsyncUserSelect/user-item.js +5 -6
- package/lib/AutoNumberFormatter/index.js +3 -4
- package/lib/Badge/index.js +9 -11
- package/lib/ButtonFormatter/index.js +6 -8
- package/lib/CTimeFormatter/index.js +3 -4
- package/lib/CheckboxEditor/index.js +1 -3
- package/lib/CheckboxEditor/mb-editor.js +9 -20
- package/lib/CheckboxEditor/pc-editor.js +12 -24
- package/lib/CheckboxFormatter/index.js +4 -5
- package/lib/CollaboratorEditor/index.js +2 -4
- package/lib/CollaboratorEditor/mb-editor/index.js +11 -19
- package/lib/CollaboratorEditor/pc-editor/index.js +25 -34
- package/lib/CollaboratorFormatter/index.js +8 -10
- package/lib/CollaboratorItem/index.js +4 -5
- package/lib/CollapsibleSettingLayout/index.js +9 -7
- package/lib/Comment/body/comment.js +10 -18
- package/lib/Comment/body/index.js +2 -4
- package/lib/Comment/footer/btns/index.js +4 -7
- package/lib/Comment/footer/index.js +9 -20
- package/lib/Comment/footer/input/index.js +29 -50
- package/lib/Comment/footer/input/participant/index.js +4 -5
- package/lib/Comment/footer/participants/index.js +4 -5
- package/lib/Comment/footer/participants/participant/index.js +1 -3
- package/lib/Comment/footer/participants/participant-select/index.js +8 -24
- package/lib/Comment/index.js +39 -57
- package/lib/Comment/utils/utilities.js +15 -21
- package/lib/CreatorFormatter/index.js +6 -8
- package/lib/DTableColorPicker/ColorPickerPortal/index.js +22 -18
- package/lib/DTableColorPicker/index.js +55 -40
- package/lib/DTableColorPicker/utils.js +4 -6
- package/lib/DTableColumnIcon/index.js +6 -7
- package/lib/DTableCommonAddTool/index.js +6 -8
- package/lib/DTableCustomFooter/index.js +1 -3
- package/lib/DTableCustomizeCollaboratorSelect/index.js +17 -20
- package/lib/DTableCustomizeSelect/index.js +19 -24
- package/lib/DTableDropdownItem/index.js +16 -18
- package/lib/DTableDropdownMenu/index.js +8 -10
- package/lib/DTableEmptyTip/index.js +4 -5
- package/lib/DTableFiltersPopover/index.js +26 -41
- package/lib/DTableFiltersPopover/utils/filter-item-utils.js +1 -3
- package/lib/DTableFiltersPopover/utils/index.js +63 -113
- package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +8 -9
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +16 -13
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +18 -15
- package/lib/DTableFiltersPopover/widgets/filter-calendar.js +8 -14
- package/lib/DTableFiltersPopover/widgets/filter-group.js +34 -55
- package/lib/DTableFiltersPopover/widgets/filter-item.js +107 -170
- package/lib/DTableFiltersPopover/widgets/filter-list/index.js +136 -161
- package/lib/DTableFiltersPopover/widgets/rate-item.js +15 -20
- package/lib/DTableGroupSelect/index.js +11 -15
- package/lib/DTableGroupSelect/select-option-group.js +23 -32
- package/lib/DTableIcon/index.js +6 -7
- package/lib/DTableIcon/svg-icon.js +5 -7
- package/lib/DTableModalHeader/index.js +4 -13
- package/lib/DTablePopover/index.js +11 -15
- package/lib/DTableRadio/index.js +10 -9
- package/lib/DTableRadioGroup/index.js +8 -17
- package/lib/DTableSearchInput/index.js +19 -29
- package/lib/DTableSelect/dtable-select-label.js +6 -5
- package/lib/DTableSelect/index.js +21 -22
- package/lib/DTableSelect/utils.js +7 -15
- package/lib/DTableSubDropdownMenu/index.js +8 -10
- package/lib/DTableSubDropdownToggle/index.js +12 -12
- package/lib/DTableSwitch/index.js +12 -11
- package/lib/DTableToolTip/index.js +7 -8
- package/lib/DateEditor/index.js +20 -15
- package/lib/DateEditor/mb-editor/index.js +18 -31
- package/lib/DateEditor/pc-editor.js +26 -45
- package/lib/DateFormatter/index.js +4 -5
- package/lib/DatePicker/index.js +9 -15
- package/lib/DatePicker/utils.js +1 -3
- package/lib/DeleteTip/index.js +5 -6
- package/lib/DepartmentMultipleSelectEditor/index.js +25 -23
- package/lib/DepartmentSelectFilter/index.js +6 -8
- package/lib/DepartmentSingleSelectEditor/index.js +1 -3
- package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +48 -47
- package/lib/DepartmentSingleSelectEditor/pc-editor/department-single-select.js +36 -58
- package/lib/DepartmentSingleSelectEditor/pc-editor/index.js +13 -19
- package/lib/DepartmentSingleSelectFormatter/index.js +4 -6
- package/lib/DigitalSignEditor/index.js +1 -3
- package/lib/DigitalSignEditor/mb-editor/index.js +12 -20
- package/lib/DigitalSignEditor/pc-editor/index.js +17 -24
- package/lib/DigitalSignEditor/service.js +2 -4
- package/lib/DigitalSignEditor/signature-board/index.js +5 -8
- package/lib/DigitalSignEditor/utils.js +2 -4
- package/lib/DigitalSignFormatter/index.js +12 -15
- package/lib/DigitalSignFormatter/utils.js +4 -5
- package/lib/DurationEditor/index.js +21 -31
- package/lib/DurationFormatter/index.js +4 -5
- package/lib/EditEditorButton/index.js +1 -3
- package/lib/EmailFormatter/index.js +3 -4
- package/lib/FieldDisplaySetting/field-item.js +12 -12
- package/lib/FieldDisplaySetting/index.js +11 -9
- package/lib/FileEditor/files-previewer/index.js +1 -3
- package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +10 -18
- package/lib/FileEditor/files-previewer/mb-previewer/index.js +7 -8
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/dropdown-menu.js +3 -4
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/file-name-editor/index.js +5 -6
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/index.js +14 -21
- package/lib/FileEditor/files-previewer/pc-previewer/index.js +29 -57
- package/lib/FileEditor/index.js +1 -3
- package/lib/FileEditor/mb-editor/index.js +28 -20
- package/lib/FileEditor/pc-editor/addition-previewer/index.js +1 -3
- package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.js +11 -25
- package/lib/FileEditor/pc-editor/index.js +19 -27
- package/lib/FileFormatter/index.js +26 -19
- package/lib/FileItemFormatter/index.js +6 -9
- package/lib/FileUploader/index.js +28 -45
- package/lib/FormulaFormatter/index.js +15 -29
- package/lib/GeolocationEditor/index.js +11 -12
- package/lib/GeolocationEditor/map-editor-utils.js +17 -15
- package/lib/GeolocationEditor/mb-editor/country-editor.js +17 -14
- package/lib/GeolocationEditor/mb-editor/index.js +4 -6
- package/lib/GeolocationEditor/mb-editor/location-editor.js +18 -15
- package/lib/GeolocationEditor/mb-editor/map-editor/index.js +41 -68
- package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.js +50 -89
- package/lib/GeolocationEditor/mb-editor/province-city-editor.js +17 -14
- package/lib/GeolocationEditor/mb-editor/province-editor.js +17 -14
- package/lib/GeolocationEditor/pc-editor/country-editor.js +10 -23
- package/lib/GeolocationEditor/pc-editor/index.js +12 -20
- package/lib/GeolocationEditor/pc-editor/location-editor.js +26 -31
- package/lib/GeolocationEditor/pc-editor/map-editor/index.js +34 -54
- package/lib/GeolocationEditor/pc-editor/map-editor/large-editor/index.js +36 -60
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/index.js +35 -62
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +36 -65
- package/lib/GeolocationEditor/pc-editor/province-city-editor.js +19 -25
- package/lib/GeolocationEditor/pc-editor/province-editor.js +6 -13
- package/lib/GeolocationEditor/pc-editor/selector-header-item.js +5 -6
- package/lib/GeolocationEditor/pc-editor/selector-list.js +6 -7
- package/lib/GeolocationFormatter/index.js +4 -5
- package/lib/HtmlLongTextFormatter/index.js +4 -12
- package/lib/Icon/index.js +3 -5
- package/lib/IconButton/index.js +4 -6
- package/lib/ImageEditor/images-previewer/image-preview/index.js +12 -21
- package/lib/ImageEditor/images-previewer/index.js +3 -9
- package/lib/ImageEditor/index.js +1 -3
- package/lib/ImageEditor/mb-editor/index.js +28 -20
- package/lib/ImageEditor/pc-editor/addition-previewer/image-link/index.js +2 -6
- package/lib/ImageEditor/pc-editor/addition-previewer/index.js +1 -3
- package/lib/ImageEditor/pc-editor/addition-previewer/local-image-addition/index.js +7 -21
- package/lib/ImageEditor/pc-editor/images-previewer/index.js +3 -9
- package/lib/ImageEditor/pc-editor/index.js +11 -16
- package/lib/ImageFormatter/images-lazy-load.js +19 -11
- package/lib/ImageFormatter/index.js +11 -13
- package/lib/ImagePreviewerLightbox/index.js +15 -13
- package/lib/ImageThumbnail/index.js +10 -13
- package/lib/InputItem/custom-input.js +26 -46
- package/lib/InputItem/custom-keyboard.js +15 -18
- package/lib/InputItem/index.js +34 -50
- package/lib/InputItem/input.js +2 -4
- package/lib/LastModifierFormatter/index.js +6 -8
- package/lib/LinkEditor/index.js +33 -53
- package/lib/LinkEditor/link-editor-option.js +3 -4
- package/lib/LinkEditor/mb-popover/index.js +9 -22
- package/lib/LinkEditor/pc-popover/index.js +5 -10
- package/lib/LinkFormatter/index.js +21 -37
- package/lib/List/index.js +6 -8
- package/lib/List/list-item.js +22 -28
- package/lib/LongTextFormatter/index.js +4 -5
- package/lib/MBEditorHeader/index.js +7 -8
- package/lib/MTimeFormatter/index.js +3 -4
- package/lib/MobileFullScreenPage/body/index.js +3 -5
- package/lib/MobileFullScreenPage/header/index.js +4 -6
- package/lib/MobileFullScreenPage/index.js +13 -11
- package/lib/MobileModal/index.js +1 -3
- package/lib/MobileOperationSheet/index.js +7 -8
- package/lib/MobileSelector/empty/index.js +1 -3
- package/lib/MobileSelector/index.js +5 -7
- package/lib/MobileSelector/option/index.js +3 -5
- package/lib/MobileSelector/options/index.js +1 -3
- package/lib/MobileSelector/search/index.js +3 -5
- package/lib/MobileUpload/index.js +4 -5
- package/lib/Modal/modal.js +14 -15
- package/lib/Modal/prompt.js +4 -4
- package/lib/MultipleSelectEditor/index.js +1 -3
- package/lib/MultipleSelectFormatter/index.js +6 -8
- package/lib/NotificationPopover/index.js +4 -5
- package/lib/NumberEditor/index.js +12 -21
- package/lib/NumberFormatter/index.js +4 -5
- package/lib/PhoneNumberLink/index.js +2 -4
- package/lib/Picker/AbstractPicker.js +23 -27
- package/lib/Popover/index.js +3 -4
- package/lib/Popover/item.js +7 -9
- package/lib/Progress/index.js +9 -8
- package/lib/Radio/Radio.js +4 -8
- package/lib/Radio/RadioItem.js +8 -12
- package/lib/RateFormatter/index.js +13 -13
- package/lib/RoleStatusEditor/index.js +18 -17
- package/lib/RowExpandDialog/body/index.js +32 -49
- package/lib/RowExpandDialog/column-content/index.js +5 -9
- package/lib/RowExpandDialog/header/index.js +6 -8
- package/lib/RowExpandDialog/index.js +49 -34
- package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.js +4 -5
- package/lib/RowExpandEditor/checkbox-editor/pc-editor.js +8 -10
- package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.js +22 -33
- package/lib/RowExpandEditor/collaborator-editor/pc-editor/index.js +26 -40
- package/lib/RowExpandEditor/date-editor/mb-editor.js +12 -18
- package/lib/RowExpandEditor/date-editor/pc-editor.js +15 -20
- package/lib/RowExpandEditor/department-editor/mb-editor.js +16 -11
- package/lib/RowExpandEditor/department-editor/pc-editor.js +19 -14
- package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +20 -34
- package/lib/RowExpandEditor/digital-sign-editor/pc-editor/index.js +21 -35
- package/lib/RowExpandEditor/duration-editor/mb-editor.js +10 -17
- package/lib/RowExpandEditor/duration-editor/pc-editor.js +13 -19
- package/lib/RowExpandEditor/email-editor/mb-editor/index.js +9 -19
- package/lib/RowExpandEditor/email-editor/pc-editor/index.js +13 -24
- package/lib/RowExpandEditor/file-editor/mb-editor/index.js +18 -31
- package/lib/RowExpandEditor/file-editor/pc-editor/index.js +16 -23
- package/lib/RowExpandEditor/geolocation-editor/mb-editor/index.js +17 -29
- package/lib/RowExpandEditor/geolocation-editor/pc-editor/index.js +13 -26
- package/lib/RowExpandEditor/image-editor/mb-editor/index.js +15 -25
- package/lib/RowExpandEditor/image-editor/pc-editor/index.js +13 -23
- package/lib/RowExpandEditor/index.js +4 -8
- package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.js +17 -18
- package/lib/RowExpandEditor/long-text-editor/mb-editor/index.js +10 -16
- package/lib/RowExpandEditor/long-text-editor/pc-editor/index.js +16 -23
- package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +11 -19
- package/lib/RowExpandEditor/multiple-select-editor/pc-editor/index.js +22 -33
- package/lib/RowExpandEditor/number-editor/mb-editor/index.js +8 -14
- package/lib/RowExpandEditor/number-editor/pc-editor.js +13 -20
- package/lib/RowExpandEditor/rate-editor/mb-editor.js +12 -25
- package/lib/RowExpandEditor/rate-editor/pc-editor.js +20 -36
- package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +17 -28
- package/lib/RowExpandEditor/single-select-editor/pc-editor/index.js +22 -34
- package/lib/RowExpandEditor/text-editor/mb-editor/index.js +4 -5
- package/lib/RowExpandEditor/text-editor/pc-editor/index.js +15 -26
- package/lib/RowExpandEditor/url-editor/mb-editor/index.js +5 -13
- package/lib/RowExpandEditor/url-editor/pc-editor/index.js +9 -18
- package/lib/RowExpandFormatter/department-formatter/mb-formatter.js +2 -4
- package/lib/RowExpandFormatter/department-formatter/pc-formatter.js +2 -4
- package/lib/RowExpandFormatter/email-formatter/index.js +4 -7
- package/lib/RowExpandFormatter/file-formatter/index.js +8 -9
- package/lib/RowExpandFormatter/file-formatter/row-expand-file-item-formatter.js +10 -12
- package/lib/RowExpandFormatter/formula-formatter/index.js +19 -34
- package/lib/RowExpandFormatter/image-formatter/index.js +9 -11
- package/lib/RowExpandFormatter/image-formatter/row-expand-image-item-formatter.js +7 -8
- package/lib/RowExpandFormatter/index.js +27 -41
- package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +8 -14
- package/lib/RowExpandFormatter/link-formatter/index.js +11 -19
- package/lib/RowExpandFormatter/link-formatter/value-display-utils.js +3 -5
- package/lib/RowExpandFormatter/rate-formatter/index.js +11 -12
- package/lib/RowExpandFormatter/text/index.js +4 -5
- package/lib/RowExpandFormatter/url-formatter/index.js +4 -7
- package/lib/RowExpandView/body/index.js +22 -35
- package/lib/RowExpandView/column-content/index.js +3 -7
- package/lib/RowExpandView/index.js +42 -30
- package/lib/SelectItem/index.js +5 -7
- package/lib/SelectOptionGroup/index.js +30 -40
- package/lib/SelectedDepartments/index.js +7 -9
- package/lib/SimpleLongTextFormatter/index.js +10 -16
- package/lib/SimpleLongTextFormatter/normalize-long-text-value.js +3 -4
- package/lib/SimpleLongTextFormatter/widgets/LongTextPreview.js +12 -21
- package/lib/SimpleLongTextFormatter/widgets/dtable-markdown-viewer.js +3 -4
- package/lib/SingleSelectEditor/index.js +1 -3
- package/lib/SingleSelectFormatter/index.js +8 -9
- package/lib/TabBar/Tab.js +14 -16
- package/lib/TabBar/index.js +18 -21
- package/lib/Tabs/index.js +1 -3
- package/lib/TextEditor/index.js +14 -23
- package/lib/TextFormatter/index.js +3 -4
- package/lib/TextareaItem/index.js +19 -26
- package/lib/Toast/index.js +3 -4
- package/lib/UrlFormatter/index.js +3 -4
- package/lib/common/editor-base.js +7 -12
- package/lib/hooks/common-hooks.js +2 -4
- package/lib/select-editor/index.js +1 -3
- package/lib/select-editor/mb-editor/index.js +17 -28
- package/lib/select-editor/pc-editor/index.js +27 -42
- package/lib/toaster/alert.js +6 -7
- package/lib/toaster/toast.js +2 -3
- package/lib/toaster/toastManager.js +2 -4
- package/lib/utils/cell.js +8 -11
- package/lib/utils/column-utils.js +8 -14
- package/lib/utils/departments.js +1 -3
- package/lib/utils/url.js +24 -31
- package/lib/utils/utils.js +2 -6
- package/package.json +1 -1
- package/lib/DTableModalHeader/index.css +0 -5
|
@@ -40,19 +40,17 @@ class RowExpandFileItemFormatter extends _react.Component {
|
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
|
-
const
|
|
44
|
-
file,
|
|
45
|
-
column,
|
|
46
|
-
index,
|
|
47
|
-
readOnly,
|
|
48
|
-
downloadFile,
|
|
49
|
-
deleteFile,
|
|
50
|
-
config
|
|
51
|
-
} = this.props;
|
|
43
|
+
const _this$props = this.props,
|
|
44
|
+
file = _this$props.file,
|
|
45
|
+
column = _this$props.column,
|
|
46
|
+
index = _this$props.index,
|
|
47
|
+
readOnly = _this$props.readOnly,
|
|
48
|
+
downloadFile = _this$props.downloadFile,
|
|
49
|
+
deleteFile = _this$props.deleteFile,
|
|
50
|
+
config = _this$props.config;
|
|
52
51
|
const id = 'file-list-preview-item' + column.key + index;
|
|
53
|
-
const
|
|
54
|
-
fileIconUrl
|
|
55
|
-
} = (0, _url.getFileThumbnailInfo)(file, config);
|
|
52
|
+
const _getFileThumbnailInfo = (0, _url.getFileThumbnailInfo)(file, config),
|
|
53
|
+
fileIconUrl = _getFileThumbnailInfo.fileIconUrl;
|
|
56
54
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
57
55
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
58
56
|
className: "row-expand-item-file",
|
|
@@ -50,12 +50,8 @@ class RowExpandFormulaFormatter extends _react.default.Component {
|
|
|
50
50
|
window.location.href = "mailto:".concat(email.trim());
|
|
51
51
|
};
|
|
52
52
|
this.renderBorder = dom => {
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
} = this.props;
|
|
56
|
-
const {
|
|
57
|
-
result_type
|
|
58
|
-
} = column.data;
|
|
53
|
+
const column = this.props.column;
|
|
54
|
+
const result_type = column.data.result_type;
|
|
59
55
|
let style = {
|
|
60
56
|
minHeight: '38px'
|
|
61
57
|
};
|
|
@@ -71,9 +67,7 @@ class RowExpandFormulaFormatter extends _react.default.Component {
|
|
|
71
67
|
});
|
|
72
68
|
};
|
|
73
69
|
this.renderCellValue = (cellValue, resultType) => {
|
|
74
|
-
const
|
|
75
|
-
containerClassName
|
|
76
|
-
} = this.props;
|
|
70
|
+
const containerClassName = this.props.containerClassName;
|
|
77
71
|
const customClassName = this.getGridCellClassName(resultType);
|
|
78
72
|
const className = "dtable-ui cell-formatter-container formula-formatter ".concat(containerClassName, " ").concat(customClassName);
|
|
79
73
|
return this.renderBorder(/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
@@ -87,16 +81,14 @@ class RowExpandFormulaFormatter extends _react.default.Component {
|
|
|
87
81
|
return this.renderCellValue(errorValue, resultType);
|
|
88
82
|
};
|
|
89
83
|
this.renderOtherColumnFormatter = () => {
|
|
90
|
-
const
|
|
91
|
-
value,
|
|
92
|
-
column,
|
|
93
|
-
collaborators,
|
|
94
|
-
departments
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
array_data
|
|
99
|
-
} = column.data;
|
|
84
|
+
const _this$props = this.props,
|
|
85
|
+
value = _this$props.value,
|
|
86
|
+
column = _this$props.column,
|
|
87
|
+
collaborators = _this$props.collaborators,
|
|
88
|
+
departments = _this$props.departments;
|
|
89
|
+
const _column$data = column.data,
|
|
90
|
+
array_type = _column$data.array_type,
|
|
91
|
+
array_data = _column$data.array_data;
|
|
100
92
|
if (!array_type || array_type === _dtableUtils.CellType.LINK) {
|
|
101
93
|
return null;
|
|
102
94
|
}
|
|
@@ -156,9 +148,7 @@ class RowExpandFormulaFormatter extends _react.default.Component {
|
|
|
156
148
|
switch (array_type) {
|
|
157
149
|
case _dtableUtils.CellType.DURATION:
|
|
158
150
|
{
|
|
159
|
-
const
|
|
160
|
-
duration_format
|
|
161
|
-
} = array_data;
|
|
151
|
+
const duration_format = array_data.duration_format;
|
|
162
152
|
return {
|
|
163
153
|
format: duration_format
|
|
164
154
|
};
|
|
@@ -203,18 +193,13 @@ class RowExpandFormulaFormatter extends _react.default.Component {
|
|
|
203
193
|
}
|
|
204
194
|
}
|
|
205
195
|
render() {
|
|
206
|
-
let
|
|
207
|
-
column,
|
|
208
|
-
collaborators,
|
|
209
|
-
value
|
|
210
|
-
|
|
211
|
-
const
|
|
212
|
-
data
|
|
213
|
-
} = column;
|
|
214
|
-
const {
|
|
215
|
-
array_type,
|
|
216
|
-
result_type
|
|
217
|
-
} = data;
|
|
196
|
+
let _this$props2 = this.props,
|
|
197
|
+
column = _this$props2.column,
|
|
198
|
+
collaborators = _this$props2.collaborators,
|
|
199
|
+
value = _this$props2.value;
|
|
200
|
+
const data = column.data;
|
|
201
|
+
const array_type = data.array_type,
|
|
202
|
+
result_type = data.result_type;
|
|
218
203
|
if (_dtableUtils.DISPLAY_INTERNAL_ERRORS.includes(value)) {
|
|
219
204
|
return this.renderInternalErrorValue(value, result_type);
|
|
220
205
|
}
|
|
@@ -48,17 +48,15 @@ class RowExpandImageFormatter extends _react.default.Component {
|
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
render() {
|
|
51
|
-
const
|
|
52
|
-
value,
|
|
53
|
-
server,
|
|
54
|
-
containerClassName,
|
|
55
|
-
readOnly,
|
|
56
|
-
column
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
previewImageIndex
|
|
61
|
-
} = this.state;
|
|
51
|
+
const _this$props = this.props,
|
|
52
|
+
value = _this$props.value,
|
|
53
|
+
server = _this$props.server,
|
|
54
|
+
containerClassName = _this$props.containerClassName,
|
|
55
|
+
readOnly = _this$props.readOnly,
|
|
56
|
+
column = _this$props.column;
|
|
57
|
+
const _this$state = this.state,
|
|
58
|
+
isPreviewImage = _this$state.isPreviewImage,
|
|
59
|
+
previewImageIndex = _this$state.previewImageIndex;
|
|
62
60
|
if (!Array.isArray(value) || value.length === 0) {
|
|
63
61
|
return null;
|
|
64
62
|
}
|
|
@@ -49,14 +49,13 @@ class RowExpandImageItemFormatter extends _react.Component {
|
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
|
-
const
|
|
53
|
-
url,
|
|
54
|
-
column,
|
|
55
|
-
index,
|
|
56
|
-
readOnly,
|
|
57
|
-
downloadFile,
|
|
58
|
-
deleteFile
|
|
59
|
-
} = this.props;
|
|
52
|
+
const _this$props = this.props,
|
|
53
|
+
url = _this$props.url,
|
|
54
|
+
column = _this$props.column,
|
|
55
|
+
index = _this$props.index,
|
|
56
|
+
readOnly = _this$props.readOnly,
|
|
57
|
+
downloadFile = _this$props.downloadFile,
|
|
58
|
+
deleteFile = _this$props.deleteFile;
|
|
60
59
|
const id = 'image-list-preview-item' + column.key + index;
|
|
61
60
|
const name = decodeURI(url.slice(url.lastIndexOf('/') + 1));
|
|
62
61
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
@@ -16,9 +16,7 @@ class RowExpandFormatter extends _react.default.Component {
|
|
|
16
16
|
constructor(_props) {
|
|
17
17
|
super(_props);
|
|
18
18
|
this.updateCollaborators = () => {
|
|
19
|
-
const
|
|
20
|
-
column
|
|
21
|
-
} = this.props;
|
|
19
|
+
const column = this.props.column;
|
|
22
20
|
if (![_dtableUtils.CellType.CREATOR, _dtableUtils.CellType.LAST_MODIFIER, _dtableUtils.CellType.COLLABORATOR].includes(column.type)) return;
|
|
23
21
|
const collaborators = this.getCollaborators();
|
|
24
22
|
this.setState({
|
|
@@ -26,12 +24,10 @@ class RowExpandFormatter extends _react.default.Component {
|
|
|
26
24
|
});
|
|
27
25
|
};
|
|
28
26
|
this.calculateCollaboratorData = props => {
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
queryCollaborators
|
|
34
|
-
} = props;
|
|
27
|
+
const row = props.row,
|
|
28
|
+
column = props.column,
|
|
29
|
+
valueKey = props.valueKey,
|
|
30
|
+
queryCollaborators = props.queryCollaborators;
|
|
35
31
|
if (column.type === _dtableUtils.CellType.CREATOR || column.type === _dtableUtils.CellType.LAST_MODIFIER) {
|
|
36
32
|
const email = row[column[valueKey]];
|
|
37
33
|
queryCollaborators && queryCollaborators(email);
|
|
@@ -43,10 +39,9 @@ class RowExpandFormatter extends _react.default.Component {
|
|
|
43
39
|
}
|
|
44
40
|
};
|
|
45
41
|
this.getCollaborators = () => {
|
|
46
|
-
const
|
|
47
|
-
getCollaborators,
|
|
48
|
-
collaborators
|
|
49
|
-
} = this.props;
|
|
42
|
+
const _this$props = this.props,
|
|
43
|
+
getCollaborators = _this$props.getCollaborators,
|
|
44
|
+
collaborators = _this$props.collaborators;
|
|
50
45
|
if (getCollaborators) return getCollaborators();
|
|
51
46
|
return collaborators || [];
|
|
52
47
|
};
|
|
@@ -56,17 +51,13 @@ class RowExpandFormatter extends _react.default.Component {
|
|
|
56
51
|
});
|
|
57
52
|
};
|
|
58
53
|
this.renderFormatter = () => {
|
|
59
|
-
let
|
|
60
|
-
column,
|
|
61
|
-
row,
|
|
62
|
-
valueKey
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
} = column;
|
|
67
|
-
const {
|
|
68
|
-
collaborators
|
|
69
|
-
} = this.state;
|
|
54
|
+
let _this$props2 = this.props,
|
|
55
|
+
column = _this$props2.column,
|
|
56
|
+
row = _this$props2.row,
|
|
57
|
+
valueKey = _this$props2.valueKey;
|
|
58
|
+
let _column = column,
|
|
59
|
+
columnType = _column.type;
|
|
60
|
+
const collaborators = this.state.collaborators;
|
|
70
61
|
const containerClassName = "dtable-ui-row-expand-".concat(columnType, "-formatter");
|
|
71
62
|
let cellValue = row[column[valueKey]];
|
|
72
63
|
const Formatter = this.component[columnType];
|
|
@@ -177,8 +168,8 @@ class RowExpandFormatter extends _react.default.Component {
|
|
|
177
168
|
}
|
|
178
169
|
case _dtableUtils.CellType.MULTIPLE_SELECT:
|
|
179
170
|
{
|
|
180
|
-
var
|
|
181
|
-
const options = ((
|
|
171
|
+
var _column2, _column2$data;
|
|
172
|
+
const options = ((_column2 = column) === null || _column2 === void 0 ? void 0 : (_column2$data = _column2.data) === null || _column2$data === void 0 ? void 0 : _column2$data.options) || [];
|
|
182
173
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
183
174
|
className: "form-control d-flex align-items-center w-100 h-auto",
|
|
184
175
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Formatter, {
|
|
@@ -190,8 +181,8 @@ class RowExpandFormatter extends _react.default.Component {
|
|
|
190
181
|
}
|
|
191
182
|
case _dtableUtils.CellType.SINGLE_SELECT:
|
|
192
183
|
{
|
|
193
|
-
var
|
|
194
|
-
const options = ((
|
|
184
|
+
var _column3, _column3$data;
|
|
185
|
+
const options = ((_column3 = column) === null || _column3 === void 0 ? void 0 : (_column3$data = _column3.data) === null || _column3$data === void 0 ? void 0 : _column3$data.options) || [];
|
|
195
186
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
196
187
|
className: "form-control d-flex align-items-center w-100",
|
|
197
188
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Formatter, {
|
|
@@ -224,12 +215,12 @@ class RowExpandFormatter extends _react.default.Component {
|
|
|
224
215
|
}
|
|
225
216
|
case _dtableUtils.CellType.CHECKBOX:
|
|
226
217
|
{
|
|
227
|
-
var _column$
|
|
218
|
+
var _column$data;
|
|
228
219
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
229
220
|
className: "checkbox-formatter-container",
|
|
230
221
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Formatter, {
|
|
231
222
|
value: cellValue,
|
|
232
|
-
checkboxStyle: ((_column$
|
|
223
|
+
checkboxStyle: ((_column$data = column.data) === null || _column$data === void 0 ? void 0 : _column$data.checkbox_style) || {}
|
|
233
224
|
})
|
|
234
225
|
});
|
|
235
226
|
}
|
|
@@ -256,14 +247,11 @@ class RowExpandFormatter extends _react.default.Component {
|
|
|
256
247
|
case _dtableUtils.CellType.LINK:
|
|
257
248
|
{
|
|
258
249
|
// handle link column do not have column.data.display_column
|
|
259
|
-
const
|
|
260
|
-
data
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
array_type,
|
|
265
|
-
array_data
|
|
266
|
-
} = data;
|
|
250
|
+
const _column4 = column,
|
|
251
|
+
data = _column4.data;
|
|
252
|
+
const display_column_key = data.display_column_key,
|
|
253
|
+
array_type = data.array_type,
|
|
254
|
+
array_data = data.array_data;
|
|
267
255
|
if (!data.display_column) {
|
|
268
256
|
column = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, column), {}, {
|
|
269
257
|
data: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, data), {}, {
|
|
@@ -392,9 +380,7 @@ class RowExpandFormatter extends _react.default.Component {
|
|
|
392
380
|
}
|
|
393
381
|
}
|
|
394
382
|
render() {
|
|
395
|
-
const
|
|
396
|
-
className
|
|
397
|
-
} = this.props;
|
|
383
|
+
const className = this.props.className;
|
|
398
384
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
399
385
|
className: (0, _classnames.default)('dtable-ui dtable-ui-row-expand-formatter', className),
|
|
400
386
|
children: this.renderFormatter()
|
|
@@ -14,13 +14,10 @@ class CollaboratorItemFormatter extends _react.Component {
|
|
|
14
14
|
constructor(_props) {
|
|
15
15
|
super(_props);
|
|
16
16
|
this.calculateCollaboratorData = props => {
|
|
17
|
-
const
|
|
18
|
-
context,
|
|
19
|
-
collaborators
|
|
20
|
-
|
|
21
|
-
const {
|
|
22
|
-
cellValue
|
|
23
|
-
} = props;
|
|
17
|
+
const _this$props = this.props,
|
|
18
|
+
context = _this$props.context,
|
|
19
|
+
collaborators = _this$props.collaborators;
|
|
20
|
+
const cellValue = props.cellValue;
|
|
24
21
|
if (!cellValue) {
|
|
25
22
|
this.setState({
|
|
26
23
|
isDataLoaded: true,
|
|
@@ -106,13 +103,10 @@ class CollaboratorItemFormatter extends _react.Component {
|
|
|
106
103
|
this.calculateCollaboratorData(nextProps);
|
|
107
104
|
}
|
|
108
105
|
render() {
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
collaborator,
|
|
114
|
-
isDataLoaded
|
|
115
|
-
} = this.state;
|
|
106
|
+
const cellValue = this.props.cellValue;
|
|
107
|
+
const _this$state = this.state,
|
|
108
|
+
collaborator = _this$state.collaborator,
|
|
109
|
+
isDataLoaded = _this$state.isDataLoaded;
|
|
116
110
|
if (!isDataLoaded || !cellValue || !collaborator) {
|
|
117
111
|
return this.props.renderEmpty();
|
|
118
112
|
}
|
|
@@ -20,28 +20,21 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
20
20
|
class RowExpandLinkFormatter extends _react.Component {
|
|
21
21
|
render() {
|
|
22
22
|
const props = this.props;
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} = props;
|
|
29
|
-
const {
|
|
30
|
-
data
|
|
31
|
-
} = column;
|
|
23
|
+
const column = props.column,
|
|
24
|
+
value = props.value,
|
|
25
|
+
containerClassName = props.containerClassName,
|
|
26
|
+
collaborators = props.collaborators;
|
|
27
|
+
const data = column.data;
|
|
32
28
|
if (!Array.isArray(value) || value.length === 0) {
|
|
33
29
|
return props.renderEmpty();
|
|
34
30
|
}
|
|
35
|
-
let {
|
|
36
|
-
display_column
|
|
37
|
-
} = data || {};
|
|
31
|
+
let _ref = data || {},
|
|
32
|
+
displayColumn = _ref.display_column;
|
|
38
33
|
if (!displayColumn) {
|
|
39
34
|
return props.renderEmpty();
|
|
40
35
|
}
|
|
41
|
-
let
|
|
42
|
-
|
|
43
|
-
data: displayColumnData
|
|
44
|
-
} = displayColumn;
|
|
36
|
+
let displayColumnType = displayColumn.type,
|
|
37
|
+
displayColumnData = displayColumn.data;
|
|
45
38
|
if (displayColumnType === 'string') {
|
|
46
39
|
displayColumnType = _dtableUtils.CellType.TEXT;
|
|
47
40
|
}
|
|
@@ -74,9 +67,8 @@ class RowExpandLinkFormatter extends _react.Component {
|
|
|
74
67
|
className: containerClassName,
|
|
75
68
|
children: cellValue.map((value, index) => {
|
|
76
69
|
if (!value || typeof value !== 'string') return null;
|
|
77
|
-
const {
|
|
78
|
-
format
|
|
79
|
-
} = displayColumnData || {};
|
|
70
|
+
const _ref2 = displayColumnData || {},
|
|
71
|
+
format = _ref2.format;
|
|
80
72
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_DateFormatter.default, {
|
|
81
73
|
value: value,
|
|
82
74
|
format: format,
|
|
@@ -8,11 +8,9 @@ var _dtableUtils = require("dtable-utils");
|
|
|
8
8
|
const DOWNLOAD_NAME_COLUMN_TYPES = [_dtableUtils.CellType.TEXT, _dtableUtils.CellType.NUMBER, _dtableUtils.CellType.DATE, _dtableUtils.CellType.COLLABORATOR, _dtableUtils.CellType.CREATOR, _dtableUtils.CellType.AUTO_NUMBER];
|
|
9
9
|
const getCellDisplayValue = (record, column, collaborators) => {
|
|
10
10
|
if (!column || !DOWNLOAD_NAME_COLUMN_TYPES.includes(column.type)) return '';
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
data
|
|
15
|
-
} = column;
|
|
11
|
+
const key = column.key,
|
|
12
|
+
type = column.type,
|
|
13
|
+
data = column.data;
|
|
16
14
|
return (0, _dtableUtils.getCellValueDisplayString)(record, type, key, {
|
|
17
15
|
data,
|
|
18
16
|
collaborators,
|
|
@@ -13,15 +13,16 @@ class RateExpendRateFormatter extends _react.default.Component {
|
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments);
|
|
15
15
|
this.getRateList = () => {
|
|
16
|
-
const
|
|
17
|
-
data,
|
|
18
|
-
value
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
rate_max_number = 5,
|
|
22
|
-
rate_style_color =
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
const _this$props = this.props,
|
|
17
|
+
data = _this$props.data,
|
|
18
|
+
value = _this$props.value;
|
|
19
|
+
const _ref = data || {},
|
|
20
|
+
_ref$rate_max_number = _ref.rate_max_number,
|
|
21
|
+
rate_max_number = _ref$rate_max_number === void 0 ? 5 : _ref$rate_max_number,
|
|
22
|
+
_ref$rate_style_color = _ref.rate_style_color,
|
|
23
|
+
rate_style_color = _ref$rate_style_color === void 0 ? '#e5e5e5' : _ref$rate_style_color,
|
|
24
|
+
_ref$rate_style_type = _ref.rate_style_type,
|
|
25
|
+
rate_style_type = _ref$rate_style_type === void 0 ? 'dtable-icon-rate' : _ref$rate_style_type;
|
|
25
26
|
let rateList = [];
|
|
26
27
|
for (let i = 0; i < rate_max_number; i++) {
|
|
27
28
|
let style = {
|
|
@@ -36,9 +37,7 @@ class RateExpendRateFormatter extends _react.default.Component {
|
|
|
36
37
|
};
|
|
37
38
|
}
|
|
38
39
|
render() {
|
|
39
|
-
const
|
|
40
|
-
containerClassName
|
|
41
|
-
} = this.props;
|
|
40
|
+
const containerClassName = this.props.containerClassName;
|
|
42
41
|
const className = (0, _classnames.default)('dtable-ui cell-formatter-container rate-formatter', containerClassName);
|
|
43
42
|
const rateList = this.getRateList();
|
|
44
43
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
@@ -26,11 +26,10 @@ class TextFormatter extends _react.default.Component {
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
const
|
|
30
|
-
containerClassName,
|
|
31
|
-
value,
|
|
32
|
-
column
|
|
33
|
-
} = this.props;
|
|
29
|
+
const _this$props = this.props,
|
|
30
|
+
containerClassName = _this$props.containerClassName,
|
|
31
|
+
value = _this$props.value,
|
|
32
|
+
column = _this$props.column;
|
|
34
33
|
const isDisplayAsAsPhoneNumber = column ? (0, _dtableUtils.checkIsDisplayAsPhoneNumberColumn)(column) : false;
|
|
35
34
|
const classname = (0, _classnames.default)('dtable-ui cell-formatter-container text-formatter', containerClassName, {
|
|
36
35
|
'row-expand-jump-link-container': isDisplayAsAsPhoneNumber
|
|
@@ -16,9 +16,7 @@ class UrlFormatter extends _react.default.Component {
|
|
|
16
16
|
constructor() {
|
|
17
17
|
super(...arguments);
|
|
18
18
|
this.onOpenUrlLink = () => {
|
|
19
|
-
const
|
|
20
|
-
value
|
|
21
|
-
} = this.props;
|
|
19
|
+
const value = this.props.value;
|
|
22
20
|
const url = (0, _editorUtils.getTrimmedString)(value);
|
|
23
21
|
const validUrl = (0, _utils.isValidUrl)(url) ? url : "http://".concat(url);
|
|
24
22
|
try {
|
|
@@ -35,10 +33,9 @@ class UrlFormatter extends _react.default.Component {
|
|
|
35
33
|
};
|
|
36
34
|
}
|
|
37
35
|
render() {
|
|
38
|
-
const
|
|
39
|
-
containerClassName,
|
|
40
|
-
value
|
|
41
|
-
} = this.props;
|
|
36
|
+
const _this$props = this.props,
|
|
37
|
+
containerClassName = _this$props.containerClassName,
|
|
38
|
+
value = _this$props.value;
|
|
42
39
|
const classname = (0, _classnames.default)('dtable-ui cell-formatter-container url-formatter row-expand-jump-link-container', containerClassName);
|
|
43
40
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
44
41
|
className: classname,
|
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
10
11
|
var _react = _interopRequireDefault(require("react"));
|
|
11
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
13
|
var _dtableUtils = require("dtable-utils");
|
|
@@ -24,41 +25,31 @@ class Body extends _react.default.Component {
|
|
|
24
25
|
this.props.getDownLoadFiles([{
|
|
25
26
|
url: imageItemUrl
|
|
26
27
|
}]).then(res => {
|
|
27
|
-
const
|
|
28
|
+
const _res$data$urls = (0, _slicedToArray2.default)(res.data.urls, 1),
|
|
29
|
+
downloadUrl = _res$data$urls[0];
|
|
28
30
|
(0, _utils.downloadFile)(downloadUrl);
|
|
29
31
|
}).catch(error => {
|
|
30
32
|
// todo
|
|
31
33
|
});
|
|
32
34
|
};
|
|
33
35
|
this.getCellValue = _ref => {
|
|
34
|
-
let
|
|
35
|
-
|
|
36
|
-
column
|
|
37
|
-
} = _ref;
|
|
36
|
+
let row = _ref.row,
|
|
37
|
+
column = _ref.column;
|
|
38
38
|
if (!row || !column) return null;
|
|
39
|
-
const
|
|
40
|
-
valueKey
|
|
41
|
-
} = this.props;
|
|
39
|
+
const valueKey = this.props.valueKey;
|
|
42
40
|
return row[column[valueKey]];
|
|
43
41
|
};
|
|
44
42
|
this.renderColumnValue = (row, column) => {
|
|
45
43
|
const _this$props = this.props,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
className
|
|
50
|
-
} = _this$props,
|
|
44
|
+
component = _this$props.component,
|
|
45
|
+
onChange = _this$props.onChange,
|
|
46
|
+
className = _this$props.className,
|
|
51
47
|
props = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
} = column;
|
|
58
|
-
const {
|
|
59
|
-
editor,
|
|
60
|
-
formatter
|
|
61
|
-
} = component || {};
|
|
48
|
+
const getDownLoadFiles = props.getDownLoadFiles;
|
|
49
|
+
const editable = column.editable;
|
|
50
|
+
const _ref2 = component || {},
|
|
51
|
+
editor = _ref2.editor,
|
|
52
|
+
formatter = _ref2.formatter;
|
|
62
53
|
if (editable) {
|
|
63
54
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_RowExpandEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
64
55
|
column: column,
|
|
@@ -77,25 +68,21 @@ class Body extends _react.default.Component {
|
|
|
77
68
|
};
|
|
78
69
|
}
|
|
79
70
|
render() {
|
|
80
|
-
const
|
|
81
|
-
columns,
|
|
82
|
-
row,
|
|
83
|
-
placeholder
|
|
84
|
-
} = this.props;
|
|
71
|
+
const _this$props2 = this.props,
|
|
72
|
+
columns = _this$props2.columns,
|
|
73
|
+
row = _this$props2.row,
|
|
74
|
+
placeholder = _this$props2.placeholder;
|
|
85
75
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
86
76
|
className: "dtable-ui-row-expand-body dtable-ui-mobile-row-expand-body",
|
|
87
77
|
children: [columns.length === 0 && placeholder && /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
88
78
|
children: placeholder
|
|
89
79
|
}), columns.map(column => {
|
|
90
|
-
const
|
|
91
|
-
|
|
92
|
-
data
|
|
93
|
-
} = column;
|
|
80
|
+
const type = column.type,
|
|
81
|
+
data = column.data;
|
|
94
82
|
let isHasMore = false;
|
|
95
83
|
if (type === _dtableUtils.CellType.LINK_FORMULA) {
|
|
96
|
-
let {
|
|
97
|
-
array_type
|
|
98
|
-
} = data || {};
|
|
84
|
+
let _ref3 = data || {},
|
|
85
|
+
array_type = _ref3.array_type;
|
|
99
86
|
const value = this.getCellValue({
|
|
100
87
|
row,
|
|
101
88
|
column
|
|
@@ -10,13 +10,9 @@ var _reactstrap = require("reactstrap");
|
|
|
10
10
|
require("./index.css");
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
12
|
const ColumnContent = _ref => {
|
|
13
|
-
let
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} = _ref;
|
|
17
|
-
const {
|
|
18
|
-
name
|
|
19
|
-
} = column;
|
|
13
|
+
let column = _ref.column,
|
|
14
|
+
children = _ref.children;
|
|
15
|
+
const name = column.name;
|
|
20
16
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
21
17
|
className: "dtable-ui-mobile-row-expand-item",
|
|
22
18
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|