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
|
@@ -16,6 +16,7 @@ var _cellValueValidator = _interopRequireDefault(require("../../FormulaFormatter
|
|
|
16
16
|
var _toaster = _interopRequireDefault(require("../../toaster"));
|
|
17
17
|
var _lang = require("../../lang");
|
|
18
18
|
require("../../FormulaFormatter/index.css");
|
|
19
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
20
|
class RowExpandFormulaFormatter extends _react.default.Component {
|
|
20
21
|
constructor() {
|
|
21
22
|
super(...arguments);
|
|
@@ -67,10 +68,11 @@ class RowExpandFormulaFormatter extends _react.default.Component {
|
|
|
67
68
|
position: 'relative'
|
|
68
69
|
};
|
|
69
70
|
}
|
|
70
|
-
return /*#__PURE__*/
|
|
71
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
71
72
|
className: "d-flex align-items-center form-control disabled h-auto",
|
|
72
|
-
style: style
|
|
73
|
-
|
|
73
|
+
style: style,
|
|
74
|
+
children: dom
|
|
75
|
+
});
|
|
74
76
|
};
|
|
75
77
|
this.renderCellValue = (cellValue, resultType) => {
|
|
76
78
|
const {
|
|
@@ -78,11 +80,12 @@ class RowExpandFormulaFormatter extends _react.default.Component {
|
|
|
78
80
|
} = this.props;
|
|
79
81
|
const customClassName = this.getGridCellClassName(resultType);
|
|
80
82
|
const className = "dtable-ui cell-formatter-container formula-formatter ".concat(containerClassName, " ").concat(customClassName);
|
|
81
|
-
return this.renderBorder( /*#__PURE__*/
|
|
83
|
+
return this.renderBorder( /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
82
84
|
className: className,
|
|
83
85
|
title: cellValue,
|
|
84
|
-
"aria-label": cellValue
|
|
85
|
-
|
|
86
|
+
"aria-label": cellValue,
|
|
87
|
+
children: cellValue
|
|
88
|
+
}));
|
|
86
89
|
};
|
|
87
90
|
this.renderInternalErrorValue = (errorValue, resultType) => {
|
|
88
91
|
return this.renderCellValue(errorValue, resultType);
|
|
@@ -122,27 +125,28 @@ class RowExpandFormulaFormatter extends _react.default.Component {
|
|
|
122
125
|
formulaEmail = cellValue[0];
|
|
123
126
|
formulaEmail = formulaEmail ? formulaEmail.trim() : '';
|
|
124
127
|
}
|
|
125
|
-
return this.renderBorder( /*#__PURE__*/
|
|
126
|
-
className: "dtable-ui formula-formatter multiple"
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
128
|
+
return this.renderBorder( /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
129
|
+
className: "dtable-ui formula-formatter multiple",
|
|
130
|
+
children: cellValue.map((v, index) => {
|
|
131
|
+
formatterProps.value = v;
|
|
132
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
133
|
+
className: (0, _classnames.default)('formula-formatter-content-item', {
|
|
134
|
+
'simple-cell-formatter': (0, _utils.isSimpleCellFormatter)(array_type)
|
|
135
|
+
}, {
|
|
136
|
+
'formula-url-formatter-column': formulaUrl || formulaEmail
|
|
137
|
+
}),
|
|
138
|
+
children: [formulaUrl && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
139
|
+
"aria-hidden": "true",
|
|
140
|
+
className: "dtable-font dtable-icon-url formula-url-link",
|
|
141
|
+
onClick: this.onOpenUrlLink.bind(this, formulaUrl)
|
|
142
|
+
}), formulaEmail && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
143
|
+
"aria-hidden": "true",
|
|
144
|
+
className: "dtable-font dtable-icon-email formula-email-link",
|
|
145
|
+
onClick: this.onOpenEmailLink.bind(this, formulaEmail)
|
|
146
|
+
}), this.createColumnFormatter(Formatter, formatterProps)]
|
|
147
|
+
}, "formula-formatter-content-item-".concat(index));
|
|
148
|
+
})
|
|
149
|
+
}));
|
|
146
150
|
};
|
|
147
151
|
this.getFormatterProps = (array_type, array_data, collaborators, departments) => {
|
|
148
152
|
switch (array_type) {
|
|
@@ -192,9 +196,13 @@ class RowExpandFormulaFormatter extends _react.default.Component {
|
|
|
192
196
|
...formatterProps
|
|
193
197
|
});
|
|
194
198
|
} else if ((0, _utils2.isFunction)(Formatter)) {
|
|
195
|
-
return /*#__PURE__*/
|
|
199
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Formatter, {
|
|
200
|
+
...formatterProps
|
|
201
|
+
});
|
|
196
202
|
} else {
|
|
197
|
-
return /*#__PURE__*/
|
|
203
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextFormatter.default, {
|
|
204
|
+
...formatterProps
|
|
205
|
+
});
|
|
198
206
|
}
|
|
199
207
|
}
|
|
200
208
|
render() {
|
|
@@ -11,6 +11,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
11
11
|
var _rowExpandImageItemFormatter = _interopRequireDefault(require("./row-expand-image-item-formatter"));
|
|
12
12
|
var _ImagePreviewerLightbox = _interopRequireDefault(require("../../ImagePreviewerLightbox"));
|
|
13
13
|
require("./index.css");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
15
|
class RowExpandImageFormatter extends _react.default.Component {
|
|
15
16
|
constructor(props) {
|
|
16
17
|
super(props);
|
|
@@ -61,34 +62,36 @@ class RowExpandImageFormatter extends _react.default.Component {
|
|
|
61
62
|
if (!Array.isArray(value) || value.length === 0) {
|
|
62
63
|
return null;
|
|
63
64
|
}
|
|
64
|
-
return /*#__PURE__*/
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
65
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
|
|
66
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
67
|
+
className: (0, _classnames.default)('dtable-ui cell-formatter-container row-expand-image-formatter', containerClassName),
|
|
68
|
+
children: value.map((item, index) => {
|
|
69
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_rowExpandImageItemFormatter.default, {
|
|
70
|
+
url: item,
|
|
71
|
+
index: index,
|
|
72
|
+
column: column,
|
|
73
|
+
downloadFile: this.props.downloadImage,
|
|
74
|
+
deleteFile: this.props.deleteFile,
|
|
75
|
+
readOnly: readOnly,
|
|
76
|
+
onImageClick: this.onImageClick
|
|
77
|
+
}, index);
|
|
78
|
+
})
|
|
79
|
+
}), isPreviewImage && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImagePreviewerLightbox.default, {
|
|
80
|
+
imageItems: value,
|
|
81
|
+
imageIndex: previewImageIndex,
|
|
82
|
+
closeImagePopup: this.closeImagePopup,
|
|
83
|
+
moveToPrevImage: this.movePrev,
|
|
84
|
+
moveToNextImage: this.moveNext,
|
|
85
|
+
deleteImage: this.props.deleteFile,
|
|
86
|
+
downloadImage: this.props.downloadImage,
|
|
87
|
+
onRotateImage: this.props.rotateImage,
|
|
88
|
+
onViewOriginal: this.props.onViewOriginal,
|
|
74
89
|
readOnly: readOnly,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
closeImagePopup: this.closeImagePopup,
|
|
81
|
-
moveToPrevImage: this.movePrev,
|
|
82
|
-
moveToNextImage: this.moveNext,
|
|
83
|
-
deleteImage: this.props.deleteFile,
|
|
84
|
-
downloadImage: this.props.downloadImage,
|
|
85
|
-
onRotateImage: this.props.rotateImage,
|
|
86
|
-
onViewOriginal: this.props.onViewOriginal,
|
|
87
|
-
readOnly: readOnly,
|
|
88
|
-
server: server,
|
|
89
|
-
moveToPrevRowImage: this.props.moveToPrevRowImage,
|
|
90
|
-
moveToNextRowImage: this.props.moveToNextRowImage
|
|
91
|
-
}));
|
|
90
|
+
server: server,
|
|
91
|
+
moveToPrevRowImage: this.props.moveToPrevRowImage,
|
|
92
|
+
moveToNextRowImage: this.props.moveToNextRowImage
|
|
93
|
+
})]
|
|
94
|
+
});
|
|
92
95
|
}
|
|
93
96
|
}
|
|
94
97
|
exports.default = RowExpandImageFormatter;
|
|
@@ -11,6 +11,7 @@ var _reactstrap = require("reactstrap");
|
|
|
11
11
|
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
12
12
|
var _lang = require("../../lang");
|
|
13
13
|
var _DeleteTip = _interopRequireDefault(require("../../DeleteTip"));
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
15
|
class RowExpandImageItemFormatter extends _react.Component {
|
|
15
16
|
constructor(props) {
|
|
16
17
|
super(props);
|
|
@@ -64,45 +65,52 @@ class RowExpandImageItemFormatter extends _react.Component {
|
|
|
64
65
|
} = this.props;
|
|
65
66
|
const id = 'image-list-preview-item' + column.key + index;
|
|
66
67
|
const name = decodeURI(url.slice(url.lastIndexOf('/') + 1));
|
|
67
|
-
return /*#__PURE__*/
|
|
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
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
68
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
69
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
70
|
+
className: "row-expand-item-image",
|
|
71
|
+
id: id,
|
|
72
|
+
onClick: this.onClickImage,
|
|
73
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
74
|
+
src: url,
|
|
75
|
+
id: "item-image-".concat(index),
|
|
76
|
+
alt: name
|
|
77
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
78
|
+
className: "dtable-ui-image-icons-choice",
|
|
79
|
+
children: [downloadFile && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
80
|
+
className: "image-icon",
|
|
81
|
+
onClick: this.onClickDownload,
|
|
82
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
83
|
+
className: "dtable-font dtable-icon-download"
|
|
84
|
+
})
|
|
85
|
+
}), !readOnly && deleteFile && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
86
|
+
className: "image-icon",
|
|
87
|
+
onClick: this.onClickDelete,
|
|
88
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
89
|
+
className: "dtable-font dtable-icon-fork-number"
|
|
90
|
+
})
|
|
91
|
+
})]
|
|
92
|
+
})]
|
|
93
|
+
}, "image-".concat(index)), this.state.isDeleteTipOpen && /*#__PURE__*/(0, _jsxRuntime.jsx)(_DeleteTip.default, {
|
|
94
|
+
position: this.position,
|
|
95
|
+
toggle: this.closeDeleteTip,
|
|
96
|
+
handleDelete: this.onDelete,
|
|
97
|
+
deleteTip: (0, _lang.getLocale)('Are_you_sure_you_want_to_delete_this_image')
|
|
98
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
99
|
+
query: '(min-width: 768px)',
|
|
100
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Tooltip, {
|
|
101
|
+
placement: "bottom",
|
|
102
|
+
isOpen: this.state.isTooltipOpen,
|
|
103
|
+
toggle: this.toggleTooltip,
|
|
104
|
+
target: id,
|
|
105
|
+
delay: {
|
|
106
|
+
show: 0,
|
|
107
|
+
hide: 0
|
|
108
|
+
},
|
|
109
|
+
fade: false,
|
|
110
|
+
children: name
|
|
111
|
+
})
|
|
112
|
+
})]
|
|
113
|
+
});
|
|
106
114
|
}
|
|
107
115
|
}
|
|
108
116
|
exports.default = RowExpandImageItemFormatter;
|