dtable-ui-component 6.0.54 → 6.0.55-beta.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 +21 -21
- package/lib/ActivityIndicator/index.js +9 -9
- package/lib/AsyncUserSelect/index.js +3 -3
- package/lib/Badge/index.js +10 -10
- package/lib/CheckboxEditor/mb-editor.js +2 -10
- package/lib/CheckboxEditor/pc-editor.js +2 -10
- package/lib/CheckboxFormatter/index.js +4 -13
- package/lib/CollaboratorEditor/pc-editor/index.js +1 -1
- package/lib/CollapsibleSettingLayout/index.js +1 -1
- package/lib/Comment/body/comment.js +1 -1
- package/lib/Comment/footer/index.js +1 -1
- package/lib/Comment/footer/input/index.js +5 -5
- package/lib/Comment/footer/input/participant/index.js +1 -1
- package/lib/Comment/footer/participants/participant-select/index.js +2 -2
- package/lib/Comment/utils/utilities.js +1 -1
- package/lib/DTableColorPicker/ColorPickerPortal/index.js +4 -4
- package/lib/DTableColorPicker/index.js +6 -6
- package/lib/DTableColorPicker/utils.js +1 -1
- package/lib/DTableColumnIcon/index.js +71 -0
- package/lib/DTableCommonAddTool/index.js +2 -2
- package/lib/DTableFiltersPopover/index.js +1 -1
- package/lib/DTableFiltersPopover/utils/filter-item-utils.js +7 -4
- package/lib/DTableFiltersPopover/utils/index.js +92 -27
- package/lib/DTableFiltersPopover/widgets/filter-group.js +2 -2
- package/lib/DTableFiltersPopover/widgets/filter-item.js +2 -2
- package/lib/DTableFiltersPopover/widgets/filter-list/index.css +4 -2
- package/lib/DTableFiltersPopover/widgets/filter-list/index.js +1 -1
- package/lib/DTableFiltersPopover/widgets/rate-item.js +2 -2
- package/lib/DTableGroupSelect/select-option-group.js +1 -1
- package/lib/{SvgIcon → DTableIcon}/index.css +2 -2
- package/lib/DTableIcon/index.js +44 -0
- package/lib/DTableIcon/svg-icon.js +56 -0
- package/lib/DTableRadioGroup/index.js +3 -3
- package/lib/DTableSearchInput/index.js +1 -1
- package/lib/DTableSelect/dtable-select-label.js +1 -1
- package/lib/DTableSelect/utils.js +3 -0
- package/lib/DTableSwitch/index.css +2 -1
- package/lib/DateEditor/pc-editor.js +1 -1
- package/lib/DatePicker/utils.js +4 -4
- package/lib/DepartmentMultipleSelectEditor/index.js +3 -3
- package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +2 -2
- package/lib/DepartmentSingleSelectEditor/pc-editor/department-single-select.js +2 -2
- package/lib/DigitalSignEditor/service.js +1 -1
- package/lib/DigitalSignEditor/signature-board/index.js +2 -2
- package/lib/DigitalSignFormatter/utils.js +1 -1
- package/lib/FieldDisplaySetting/field-item.js +9 -4
- package/lib/FieldDisplaySetting/index.js +6 -6
- package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +2 -2
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/index.js +3 -3
- package/lib/FileEditor/pc-editor/addition-previewer/index.js +1 -1
- package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.js +6 -6
- package/lib/FileFormatter/index.js +1 -1
- package/lib/FileItemFormatter/index.js +1 -1
- package/lib/FileUploader/index.js +1 -1
- package/lib/FormulaFormatter/index.js +4 -4
- package/lib/GeolocationEditor/index.js +3 -3
- package/lib/GeolocationEditor/map-editor-utils.js +2 -2
- package/lib/GeolocationEditor/pc-editor/country-editor.js +2 -2
- package/lib/GeolocationEditor/pc-editor/location-editor.js +2 -2
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/index.js +20 -3
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +20 -3
- package/lib/GeolocationEditor/pc-editor/province-city-editor.js +1 -1
- package/lib/GeolocationEditor/pc-editor/province-editor.js +3 -3
- package/lib/GeolocationEditor/pc-editor/selector-list.js +1 -1
- package/lib/HtmlLongTextFormatter/index.js +1 -1
- package/lib/Icon/index.js +2 -2
- package/lib/Icon/load-sprite.js +13 -2
- package/lib/IconButton/index.js +1 -1
- package/lib/ImageEditor/images-previewer/image-preview/index.js +1 -1
- package/lib/ImageEditor/pc-editor/addition-previewer/index.js +2 -2
- package/lib/ImageEditor/pc-editor/addition-previewer/local-image-addition/index.js +5 -5
- package/lib/ImageEditor/pc-editor/images-previewer/index.js +1 -1
- package/lib/ImageFormatter/index.js +1 -1
- package/lib/ImageThumbnail/index.js +2 -2
- package/lib/InputItem/custom-input.js +9 -9
- package/lib/InputItem/custom-keyboard.js +5 -5
- package/lib/InputItem/index.js +21 -21
- package/lib/List/index.js +3 -3
- package/lib/List/list-item.js +23 -23
- package/lib/MBEditorHeader/index.js +1 -1
- package/lib/MobileFullScreenPage/body/index.js +1 -1
- package/lib/MobileFullScreenPage/header/index.js +4 -4
- package/lib/MobileFullScreenPage/index.js +1 -1
- package/lib/Modal/alert.js +3 -3
- package/lib/Modal/modal.js +8 -8
- package/lib/Modal/operation.js +1 -1
- package/lib/Modal/prompt.js +11 -11
- package/lib/MultipleSelectFormatter/index.js +1 -1
- package/lib/PhoneNumberLink/index.js +29 -0
- package/lib/Popover/index.js +1 -1
- package/lib/Popover/item.js +7 -7
- package/lib/Progress/index.js +6 -6
- package/lib/Radio/Radio.js +1 -1
- package/lib/Radio/RadioItem.js +2 -2
- package/lib/RateFormatter/index.js +3 -3
- package/lib/RoleStatusEditor/index.js +1 -1
- package/lib/RowExpandDialog/body/index.js +1 -1
- package/lib/RowExpandDialog/column-content/index.css +4 -2
- package/lib/RowExpandDialog/column-content/index.js +7 -4
- package/lib/RowExpandDialog/header/index.js +1 -1
- package/lib/RowExpandDialog/index.js +3 -3
- package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +1 -1
- package/lib/RowExpandEditor/digital-sign-editor/pc-editor/index.js +1 -1
- package/lib/RowExpandEditor/email-editor/mb-editor/index.js +1 -1
- package/lib/RowExpandEditor/email-editor/pc-editor/index.js +1 -1
- package/lib/RowExpandEditor/image-editor/mb-editor/index.js +1 -1
- package/lib/RowExpandEditor/image-editor/pc-editor/index.js +1 -1
- package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +1 -1
- package/lib/RowExpandEditor/multiple-select-editor/pc-editor/index.js +5 -5
- package/lib/RowExpandEditor/rate-editor/mb-editor.js +1 -1
- package/lib/RowExpandEditor/rate-editor/pc-editor.js +2 -2
- package/lib/RowExpandEditor/single-select-editor/pc-editor/index.js +3 -3
- package/lib/RowExpandEditor/url-editor/mb-editor/index.js +1 -1
- package/lib/RowExpandEditor/url-editor/pc-editor/index.js +1 -1
- package/lib/RowExpandFormatter/constants.js +2 -2
- package/lib/RowExpandFormatter/email-formatter/index.css +1 -29
- package/lib/RowExpandFormatter/email-formatter/index.js +4 -4
- package/lib/RowExpandFormatter/file-formatter/row-expand-file-item-formatter.js +2 -2
- package/lib/RowExpandFormatter/formula-formatter/index.css +2 -0
- package/lib/RowExpandFormatter/formula-formatter/index.js +22 -19
- package/lib/RowExpandFormatter/image-formatter/row-expand-image-item-formatter.js +2 -2
- package/lib/RowExpandFormatter/index.css +2 -0
- package/lib/RowExpandFormatter/index.js +2 -1
- package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +1 -1
- package/lib/RowExpandFormatter/link-formatter/index.js +6 -6
- package/lib/RowExpandFormatter/rate-formatter/index.js +3 -3
- package/lib/RowExpandFormatter/text/index.css +2 -0
- package/lib/RowExpandFormatter/text/index.js +49 -0
- package/lib/RowExpandFormatter/url-formatter/index.css +1 -0
- package/lib/RowExpandFormatter/url-formatter/index.js +4 -4
- package/lib/RowExpandView/body/index.css +4 -0
- package/lib/RowExpandView/body/index.js +1 -1
- package/lib/SelectOptionGroup/index.css +5 -2
- package/lib/SelectOptionGroup/index.js +1 -1
- package/lib/SelectedDepartments/index.js +3 -3
- package/lib/SimpleLongTextFormatter/index.js +2 -2
- package/lib/TabBar/Tab.js +6 -6
- package/lib/TabBar/index.js +3 -3
- package/lib/TextareaItem/index.js +19 -19
- package/lib/Toast/index.js +5 -5
- package/lib/assets/icons/telephone.svg +14 -0
- package/lib/css/row-expand.css +27 -0
- package/lib/index.js +21 -7
- package/lib/select-editor/pc-editor/index.js +2 -2
- package/lib/toaster/alert.js +1 -1
- package/lib/toaster/toast.js +1 -1
- package/lib/toaster/toastManager.js +1 -1
- package/lib/toaster/toaster.js +1 -1
- package/lib/utils/class.js +3 -3
- package/lib/utils/object-utils.js +1 -1
- package/lib/utils/url.js +4 -4
- package/package.json +14 -30
- package/lib/SvgIcon/index.js +0 -38
|
@@ -7,8 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _dtableUtils = require("dtable-utils");
|
|
11
10
|
var _DTableSwitch = _interopRequireDefault(require("../DTableSwitch"));
|
|
11
|
+
var _DTableColumnIcon = _interopRequireDefault(require("../DTableColumnIcon"));
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
13
|
function FieldItem(_ref) {
|
|
14
14
|
let {
|
|
@@ -63,10 +63,15 @@ function FieldItem(_ref) {
|
|
|
63
63
|
onMoveField(droppedColumnKey, field.key);
|
|
64
64
|
};
|
|
65
65
|
const placeholder = () => {
|
|
66
|
+
const {
|
|
67
|
+
type,
|
|
68
|
+
data
|
|
69
|
+
} = field;
|
|
66
70
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
67
71
|
className: "field-switch",
|
|
68
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
69
|
-
|
|
72
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableColumnIcon.default, {
|
|
73
|
+
columnType: type,
|
|
74
|
+
columnDisplayType: data === null || data === void 0 ? void 0 : data.display_type
|
|
70
75
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
71
76
|
children: field.name
|
|
72
77
|
})]
|
|
@@ -74,7 +79,7 @@ function FieldItem(_ref) {
|
|
|
74
79
|
};
|
|
75
80
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
76
81
|
ref: fieldItemRef,
|
|
77
|
-
className:
|
|
82
|
+
className: `field-item-container ${isCollapsed ? 'd-none' : ''}`,
|
|
78
83
|
onDrop: onDrop,
|
|
79
84
|
onDragEnter: onTableDragEnter,
|
|
80
85
|
onDragOver: onDragOver,
|
|
@@ -30,17 +30,17 @@ function FieldDisplaySetting(_ref) {
|
|
|
30
30
|
setCollapsed(!isCollapsed);
|
|
31
31
|
};
|
|
32
32
|
const defaultStyle = {
|
|
33
|
-
transition:
|
|
33
|
+
transition: `all ${DURATION}ms cubic-bezier(.645,.045,.355,1)`,
|
|
34
34
|
opacity: 0
|
|
35
35
|
};
|
|
36
36
|
const transitionStyles = {
|
|
37
37
|
entering: {
|
|
38
38
|
opacity: 1,
|
|
39
|
-
height:
|
|
39
|
+
height: `${fields.length * FIELD_ITEM_HEIGHT + BANNER_HEIGHT}px`
|
|
40
40
|
},
|
|
41
41
|
entered: {
|
|
42
42
|
opacity: 1,
|
|
43
|
-
height:
|
|
43
|
+
height: `${fields.length * FIELD_ITEM_HEIGHT + BANNER_HEIGHT}px`
|
|
44
44
|
},
|
|
45
45
|
exiting: {
|
|
46
46
|
opacity: 0,
|
|
@@ -60,7 +60,7 @@ function FieldDisplaySetting(_ref) {
|
|
|
60
60
|
className: "mb-0",
|
|
61
61
|
children: textProperties.titleValue
|
|
62
62
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
63
|
-
className:
|
|
63
|
+
className: `dtable-font dtable-icon-right expand-button ${isCollapsed ? '' : 'revolving'}`
|
|
64
64
|
})]
|
|
65
65
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactTransitionGroup.Transition, {
|
|
66
66
|
nodeRef: nodeRef,
|
|
@@ -74,7 +74,7 @@ function FieldDisplaySetting(_ref) {
|
|
|
74
74
|
...transitionStyles[state]
|
|
75
75
|
},
|
|
76
76
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
77
|
-
className:
|
|
77
|
+
className: `field-setting-banner ${isCollapsed ? 'd-none' : 'd-flex'} align-items-center justify-content-between h-5 mt-2 mb-2`,
|
|
78
78
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Label, {
|
|
79
79
|
className: "mb-0",
|
|
80
80
|
children: textProperties.bannerValue
|
|
@@ -91,7 +91,7 @@ function FieldDisplaySetting(_ref) {
|
|
|
91
91
|
isCollapsed: isCollapsed,
|
|
92
92
|
onClickField: onClickField,
|
|
93
93
|
onMoveField: onMoveField
|
|
94
|
-
},
|
|
94
|
+
}, `${field.key}-${index}`);
|
|
95
95
|
})
|
|
96
96
|
})]
|
|
97
97
|
})
|
|
@@ -104,7 +104,7 @@ class FilePreviewer extends _react.default.Component {
|
|
|
104
104
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
105
105
|
className: "dtable-ui-file-editor-previewer-info",
|
|
106
106
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
107
|
-
className:
|
|
107
|
+
className: `dtable-ui-file-editor-previewer-item-name ${fileItem.type === 'dir' ? 'dtable-ui-file-editor-previewer-item-name-height' : ''}`,
|
|
108
108
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
109
109
|
children: fileItem.name
|
|
110
110
|
})
|
|
@@ -112,7 +112,7 @@ class FilePreviewer extends _react.default.Component {
|
|
|
112
112
|
className: "dtable-ui-file-editor-preview-item-detail d-flex",
|
|
113
113
|
children: [uploadTime && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
114
114
|
className: "file-upload-time",
|
|
115
|
-
children:
|
|
115
|
+
children: `${uploadTime}, `
|
|
116
116
|
}), fileItem.size > -1 && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
117
117
|
children: (0, _utils.bytesToSize)(fileItem.size)
|
|
118
118
|
})]
|
|
@@ -99,7 +99,7 @@ class FilePreviewer extends _react.default.Component {
|
|
|
99
99
|
const errorMessage = '';
|
|
100
100
|
const uploadTime = (0, _utils.getFileUploadTime)(fileItem);
|
|
101
101
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
102
|
-
className:
|
|
102
|
+
className: `dtable-ui-file-editor-previewer-box ${highlight ? 'dtable-ui-file-editor-previewer-box-highlight' : ''}`,
|
|
103
103
|
onMouseEnter: this.fileItemMouseEnter,
|
|
104
104
|
onMouseLeave: this.fileItemMouseLeave,
|
|
105
105
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
@@ -123,7 +123,7 @@ class FilePreviewer extends _react.default.Component {
|
|
|
123
123
|
renameFile: this.props.renameFile,
|
|
124
124
|
closeRenameFile: this.closeRenameFile
|
|
125
125
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
126
|
-
className:
|
|
126
|
+
className: `dtable-ui-file-editor-previewer-item-name ${fileItem.type === 'dir' ? 'dtable-ui-file-editor-previewer-item-name-height' : ''}`,
|
|
127
127
|
ref: ref => this.renameRef = ref,
|
|
128
128
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
129
129
|
onClick: this.props.renameFile ? this.handleFileClick : () => {},
|
|
@@ -133,7 +133,7 @@ class FilePreviewer extends _react.default.Component {
|
|
|
133
133
|
className: "dtable-ui-file-editor-preview-item-detail d-flex",
|
|
134
134
|
children: [uploadTime && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
135
135
|
className: "file-upload-time",
|
|
136
|
-
children:
|
|
136
|
+
children: `${uploadTime}, `
|
|
137
137
|
}), fileItem.size > -1 && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
138
138
|
children: (0, _utils.bytesToSize)(fileItem.size)
|
|
139
139
|
})]
|
|
@@ -35,7 +35,7 @@ class AdditionPreviewer extends _react.default.Component {
|
|
|
35
35
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
36
36
|
className: "dtable-ui-image-addition-nav",
|
|
37
37
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
38
|
-
className:
|
|
38
|
+
className: `dtable-ui-addition-item ${activeTab === 'localFiles' ? 'dtable-ui-addition-item-selected' : ''}`,
|
|
39
39
|
onClick: this.toggle.bind(this, 'localFiles'),
|
|
40
40
|
children: (0, _lang.getLocale)('Local_Files')
|
|
41
41
|
})
|
|
@@ -126,7 +126,7 @@ class LocalFileAddition extends _react.default.Component {
|
|
|
126
126
|
src: fileThumbnailItem.fileIconUrl,
|
|
127
127
|
style: {
|
|
128
128
|
position: 'absolute',
|
|
129
|
-
zIndex:
|
|
129
|
+
zIndex: `${uploadFile ? 3 : 1}`,
|
|
130
130
|
maxHeight: '100%'
|
|
131
131
|
},
|
|
132
132
|
alt: ""
|
|
@@ -155,7 +155,7 @@ class LocalFileAddition extends _react.default.Component {
|
|
|
155
155
|
})]
|
|
156
156
|
})
|
|
157
157
|
})
|
|
158
|
-
},
|
|
158
|
+
}, `dtable-ui-image-wrapper-circle${index}`);
|
|
159
159
|
});
|
|
160
160
|
fileArr.push(...thumbnailList);
|
|
161
161
|
}
|
|
@@ -174,7 +174,7 @@ class LocalFileAddition extends _react.default.Component {
|
|
|
174
174
|
} = (0, _url.getFileThumbnailInfo)(fileItem, config);
|
|
175
175
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
176
176
|
className: "dtable-ui-image-wrapper",
|
|
177
|
-
id:
|
|
177
|
+
id: `file-content-tip-${index}`,
|
|
178
178
|
onMouseEnter: event => this.showDeleteIcon(event, index),
|
|
179
179
|
onMouseLeave: this.hideDeleteIcon,
|
|
180
180
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
@@ -199,7 +199,7 @@ class LocalFileAddition extends _react.default.Component {
|
|
|
199
199
|
show: 0,
|
|
200
200
|
hide: 0
|
|
201
201
|
},
|
|
202
|
-
target:
|
|
202
|
+
target: `file-content-tip-${index}`,
|
|
203
203
|
placement: "bottom",
|
|
204
204
|
isOpen: this.state.tooltipOpen,
|
|
205
205
|
children: fileItem.name
|
|
@@ -214,7 +214,7 @@ class LocalFileAddition extends _react.default.Component {
|
|
|
214
214
|
} = this.state;
|
|
215
215
|
let editorContent = fileArr.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Fragment, {
|
|
216
216
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
217
|
-
className:
|
|
217
|
+
className: `dtable-ui-image-tip-addition ${isFileTipShow ? 'dtable-ui-image-drop-active' : ''}`,
|
|
218
218
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
219
219
|
className: "dtable-ui-dtable-ui-image-add-icon",
|
|
220
220
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
@@ -232,7 +232,7 @@ class LocalFileAddition extends _react.default.Component {
|
|
|
232
232
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
233
233
|
className: "dtable-ui-image-add-box",
|
|
234
234
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
235
|
-
className:
|
|
235
|
+
className: `dtable-ui-image-add-button ${isFileTipShow ? 'dtable-ui-image-wrapper-drop-active' : ''}`,
|
|
236
236
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
237
237
|
"aria-hidden": "true",
|
|
238
238
|
className: "dtable-font dtable-icon-add-table"
|
|
@@ -20,7 +20,7 @@ const FileItemFormatter = _ref => {
|
|
|
20
20
|
} = (0, _url.getFileThumbnailInfo)(file, config);
|
|
21
21
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
22
22
|
onClick: () => openFile && openFile(file),
|
|
23
|
-
className:
|
|
23
|
+
className: `file-item-icon ${isImage ? 'img' : ''}`,
|
|
24
24
|
src: fileIconUrl,
|
|
25
25
|
alt: (file === null || file === void 0 ? void 0 : file.name) || ''
|
|
26
26
|
});
|
|
@@ -137,7 +137,7 @@ class FileUploader extends _react.default.Component {
|
|
|
137
137
|
for (let i = 0; i < allFileLen; i++) {
|
|
138
138
|
let file = files[i];
|
|
139
139
|
if (isPasteUpload && file.name === 'image.png') {
|
|
140
|
-
let newName =
|
|
140
|
+
let newName = `image-${(0, _dayjs.default)().format('YYYY-MM-DD-HH-mm')}.png`;
|
|
141
141
|
file = new File([file], newName, {
|
|
142
142
|
type: file.type
|
|
143
143
|
});
|
|
@@ -36,7 +36,7 @@ class FormulaFormatter extends _react.default.Component {
|
|
|
36
36
|
} = this.props;
|
|
37
37
|
const gridCellClassName = this.getGridCellClassName(resultType);
|
|
38
38
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
39
|
-
className:
|
|
39
|
+
className: `dtable-ui cell-formatter-container formula-formatter ${containerClassName} ${gridCellClassName}`,
|
|
40
40
|
title: cellValue,
|
|
41
41
|
"aria-label": cellValue,
|
|
42
42
|
children: cellValue
|
|
@@ -72,7 +72,7 @@ class FormulaFormatter extends _react.default.Component {
|
|
|
72
72
|
if (!Array.isArray(value)) {
|
|
73
73
|
cellValue = (0, _cellValueValidator.default)(value, array_type) ? [value] : [];
|
|
74
74
|
}
|
|
75
|
-
const contentItemClassName =
|
|
75
|
+
const contentItemClassName = `formula-formatter-content-item ${_isSimpleCellFormatterColumn ? 'simple-cell-formatter' : ''}`;
|
|
76
76
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
77
77
|
className: "dtable-ui formula-formatter multiple",
|
|
78
78
|
children: cellValue.map((v, index) => {
|
|
@@ -80,7 +80,7 @@ class FormulaFormatter extends _react.default.Component {
|
|
|
80
80
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
81
81
|
className: contentItemClassName,
|
|
82
82
|
children: this.createColumnFormatter(Formatter, formatterProps)
|
|
83
|
-
},
|
|
83
|
+
}, `formula-formatter-content-item-${index}`);
|
|
84
84
|
})
|
|
85
85
|
});
|
|
86
86
|
};
|
|
@@ -114,7 +114,7 @@ class FormulaFormatter extends _react.default.Component {
|
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
116
|
createColumnFormatter(Formatter, formatterProps) {
|
|
117
|
-
if (
|
|
117
|
+
if (/*#__PURE__*/_react.default.isValidElement(Formatter)) {
|
|
118
118
|
return /*#__PURE__*/_react.default.cloneElement(Formatter, {
|
|
119
119
|
...formatterProps
|
|
120
120
|
});
|
|
@@ -33,7 +33,7 @@ const GeolocationEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
33
33
|
server = '',
|
|
34
34
|
mediaUrl = ''
|
|
35
35
|
} = config || {};
|
|
36
|
-
return fetch(
|
|
36
|
+
return fetch(`${server}${mediaUrl}geo-data/cn-location.json`.replaceAll('//', '/')).then(res => {
|
|
37
37
|
// get locations from server
|
|
38
38
|
return res.json();
|
|
39
39
|
}).catch(() => {
|
|
@@ -55,11 +55,11 @@ const GeolocationEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
55
55
|
server = ''
|
|
56
56
|
} = config;
|
|
57
57
|
const geoFileName = lang === 'cn' ? 'cn-region-location' : 'en-region-location';
|
|
58
|
-
return fetch(
|
|
58
|
+
return fetch(`${server}${mediaUrl}geo-data/${geoFileName}.json`.replaceAll('//', '/')).then(res => {
|
|
59
59
|
return res.json();
|
|
60
60
|
}).catch(() => {
|
|
61
61
|
// get locations from local
|
|
62
|
-
return fetch(
|
|
62
|
+
return fetch(`./geo-data/${geoFileName}.json`).then(res => {
|
|
63
63
|
return res.json();
|
|
64
64
|
});
|
|
65
65
|
}).then(res => {
|
|
@@ -105,9 +105,9 @@ const loadMapSource = (mapType, mapKey, callback) => {
|
|
|
105
105
|
let script = document.createElement('script');
|
|
106
106
|
script.type = 'text/javascript';
|
|
107
107
|
if (mapType === MAP_TYPES.B_MAP) {
|
|
108
|
-
scriptUrl =
|
|
108
|
+
scriptUrl = `https://api.map.baidu.com/api?v=3.0&ak=${mapKey}&callback=renderBaiduMap`;
|
|
109
109
|
} else if (mapType === MAP_TYPES.G_MAP) {
|
|
110
|
-
scriptUrl =
|
|
110
|
+
scriptUrl = `https://maps.googleapis.com/maps/api/js?key=${mapKey}&callback=renderGoogleMap&libraries=&v=weekly`;
|
|
111
111
|
} else {
|
|
112
112
|
scriptUrl = 'https://minemap.minedata.cn/minemapapi/v2.1.1/minemap.js';
|
|
113
113
|
let link = document.createElement('link');
|
|
@@ -159,14 +159,14 @@ class CountryEditor extends _react.Component {
|
|
|
159
159
|
let countryList = this.filteredCountry[continent].map((country, index) => {
|
|
160
160
|
const isHighlight = highlightIndexes[0] === continentIndex && highlightIndexes[1] === index;
|
|
161
161
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
162
|
-
className:
|
|
162
|
+
className: `geolocation-region-editor-country ${isHighlight ? 'geolocation-region-editor-province-highlight' : ''}`,
|
|
163
163
|
onMouseEnter: () => this.onMenuMouseEnter(continentIndex, index),
|
|
164
164
|
onMouseLeave: () => this.onMenuMouseLeave(continentIndex, index),
|
|
165
165
|
title: country,
|
|
166
166
|
"aria-label": country,
|
|
167
167
|
onClick: () => this.onClick(country),
|
|
168
168
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
169
|
-
className:
|
|
169
|
+
className: `icon ${value === country ? 'dtable-font dtable-icon-check-mark' : ''}`
|
|
170
170
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
171
171
|
className: "country-name",
|
|
172
172
|
children: country
|
|
@@ -191,7 +191,7 @@ class LocationEditor extends _react.Component {
|
|
|
191
191
|
this.locations = {};
|
|
192
192
|
this.state = {
|
|
193
193
|
isShowSelector: false,
|
|
194
|
-
location:
|
|
194
|
+
location: `${this.value.province || ''}${this.value.city || ''}${this.value.district || ''}`,
|
|
195
195
|
selectedProvince: null,
|
|
196
196
|
selectedCity: null,
|
|
197
197
|
selectedCounty: null,
|
|
@@ -243,7 +243,7 @@ class LocationEditor extends _react.Component {
|
|
|
243
243
|
className: "dtable-ui-geolocation-editor-item-right",
|
|
244
244
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
245
245
|
onClick: this.onToggleSelector,
|
|
246
|
-
className:
|
|
246
|
+
className: `dtable-ui-geolocation-editor-selector text-truncate ${isShowSelector ? 'focus' : ''}`,
|
|
247
247
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
248
248
|
className: "selected-option-show",
|
|
249
249
|
children: location ? location : (0, _lang.getLocale)('Select_province_city_district')
|
|
@@ -125,7 +125,7 @@ class MapSelectionEditor extends _react.Component {
|
|
|
125
125
|
backgroundColor: '#ffffff',
|
|
126
126
|
boxShadow: '1px 2px 1px rgba(0,0,0,.15)',
|
|
127
127
|
padding: '3px 10px',
|
|
128
|
-
transform:
|
|
128
|
+
transform: `translate(-50%, ${translateY})`,
|
|
129
129
|
borderRadius: '3px',
|
|
130
130
|
fontWeight: '500',
|
|
131
131
|
left: '7px'
|
|
@@ -167,9 +167,26 @@ class MapSelectionEditor extends _react.Component {
|
|
|
167
167
|
} = value;
|
|
168
168
|
const tagContent = Array.isArray(tag) && tag.length > 0 ? tag[0] : '';
|
|
169
169
|
if (title) {
|
|
170
|
-
return
|
|
170
|
+
return `
|
|
171
|
+
<div class='dtable-ui-selection-label-content' id='dtable-ui-selection-label-content'>
|
|
172
|
+
<i class='dtable-font dtable-icon-down3'></i>
|
|
173
|
+
<span class='label-title text-truncate' title=${title}>${title}</span>
|
|
174
|
+
${tagContent && `<span class='label-tag'>${tagContent}</span>`}
|
|
175
|
+
<span class='dtable-font dtable-icon-x' id='selection-label-close'></span>
|
|
176
|
+
<span class='label-address-tip'>${(0, _lang.getLocale)('Address')}</span>
|
|
177
|
+
<span class='label-address text-truncate' title=${address}>${address}</span>
|
|
178
|
+
<div class='label-submit btn btn-primary' id='selection-label-submit'>${(0, _lang.getLocale)('Fill_in')}</div>
|
|
179
|
+
</div>
|
|
180
|
+
`;
|
|
171
181
|
}
|
|
172
|
-
return
|
|
182
|
+
return `
|
|
183
|
+
<div class='dtable-ui-selection-label-content simple' id='dtable-ui-selection-label-content'>
|
|
184
|
+
<i class='dtable-font dtable-icon-down3'></i>
|
|
185
|
+
<span class='dtable-font dtable-icon-x' id='selection-label-close'></span>
|
|
186
|
+
<span class='label-address text-truncate simple' title=${address}>${address}</span>
|
|
187
|
+
<div class='label-submit btn btn-primary' id='selection-label-submit'>${(0, _lang.getLocale)('Fill_in')}</div>
|
|
188
|
+
</div>
|
|
189
|
+
`;
|
|
173
190
|
};
|
|
174
191
|
this.getInitValue = () => {
|
|
175
192
|
const {
|
|
@@ -113,7 +113,7 @@ class LargeMapSelectionEditorDialog extends _react.default.Component {
|
|
|
113
113
|
backgroundColor: '#ffffff',
|
|
114
114
|
boxShadow: '1px 2px 1px rgba(0,0,0,.15)',
|
|
115
115
|
padding: '3px 10px',
|
|
116
|
-
transform:
|
|
116
|
+
transform: `translate(-50%, ${translateY})`,
|
|
117
117
|
borderRadius: '3px',
|
|
118
118
|
fontWeight: '500',
|
|
119
119
|
left: '7px'
|
|
@@ -155,9 +155,26 @@ class LargeMapSelectionEditorDialog extends _react.default.Component {
|
|
|
155
155
|
} = value;
|
|
156
156
|
const tagContent = Array.isArray(tag) && tag.length > 0 ? tag[0] : '';
|
|
157
157
|
if (title) {
|
|
158
|
-
return
|
|
158
|
+
return `
|
|
159
|
+
<div class='dtable-ui-selection-label-content' id='dtable-ui-selection-label-content'>
|
|
160
|
+
<i class='dtable-font dtable-icon-down3'></i>
|
|
161
|
+
<span class='label-title text-truncate' title=${title}>${title}</span>
|
|
162
|
+
${tagContent && `<span class='label-tag'>${tagContent}</span>`}
|
|
163
|
+
<span class='dtable-font dtable-icon-x' id='selection-label-close'></span>
|
|
164
|
+
<span class='label-address-tip'>${(0, _lang.getLocale)('Address')}</span>
|
|
165
|
+
<span class='label-address text-truncate' title=${address}>${address}</span>
|
|
166
|
+
<div class='label-submit btn btn-primary' id='selection-label-submit'>${(0, _lang.getLocale)('Fill_in')}</div>
|
|
167
|
+
</div>
|
|
168
|
+
`;
|
|
159
169
|
} else {
|
|
160
|
-
return
|
|
170
|
+
return `
|
|
171
|
+
<div class='dtable-ui-selection-label-content simple' id='dtable-ui-selection-label-content'>
|
|
172
|
+
<i class='dtable-font dtable-icon-down3'></i>
|
|
173
|
+
<span class='dtable-font dtable-icon-x' id='selection-label-close'></span>
|
|
174
|
+
<span class='label-address text-truncate simple' title=${address}>${address}</span>
|
|
175
|
+
<div class='label-submit btn btn-primary' id='selection-label-submit'>${(0, _lang.getLocale)('Fill_in')}</div>
|
|
176
|
+
</div>
|
|
177
|
+
`;
|
|
161
178
|
}
|
|
162
179
|
};
|
|
163
180
|
this.getInitValue = () => {
|
|
@@ -197,7 +197,7 @@ class ProvinceCityEditor extends _react.Component {
|
|
|
197
197
|
className: "dtable-ui-geolocation-editor-item-right",
|
|
198
198
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
199
199
|
onClick: this.onToggleSelector,
|
|
200
|
-
className:
|
|
200
|
+
className: `dtable-ui-geolocation-editor-selector text-truncate ${isShowSelector ? 'focus' : ''}`,
|
|
201
201
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
202
202
|
className: "selected-option-show",
|
|
203
203
|
children: location ? location : (0, _lang.getLocale)('Select_province_city')
|
|
@@ -130,7 +130,7 @@ class ProvinceEditor extends _react.Component {
|
|
|
130
130
|
} = this.state;
|
|
131
131
|
let provinceList = this.filteredProvince.map((item, index) => {
|
|
132
132
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
133
|
-
className:
|
|
133
|
+
className: `geolocation-region-editor-province ${highlightIndex === index ? 'geolocation-region-editor-province-highlight' : ''}`,
|
|
134
134
|
title: item.name,
|
|
135
135
|
"aria-label": item.name,
|
|
136
136
|
onClick: () => this.onClick(item.name),
|
|
@@ -140,12 +140,12 @@ class ProvinceEditor extends _react.Component {
|
|
|
140
140
|
className: "province-name",
|
|
141
141
|
children: item.name
|
|
142
142
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
143
|
-
className:
|
|
143
|
+
className: `icon ${value === item.name ? 'province-selected-icon dtable-font dtable-icon-check-mark' : ''}`
|
|
144
144
|
})]
|
|
145
145
|
}, item.alphabetic + index);
|
|
146
146
|
});
|
|
147
147
|
if (provinceList.length === 0) {
|
|
148
|
-
provinceList.push(
|
|
148
|
+
provinceList.push(/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
149
149
|
className: "country-list-empty",
|
|
150
150
|
children: (0, _lang.getLocale)('No_options')
|
|
151
151
|
}, 'province-null'));
|
|
@@ -25,7 +25,7 @@ class SelectorList extends _react.default.Component {
|
|
|
25
25
|
onDoubleClick: () => {
|
|
26
26
|
doubleClickHandler && doubleClickHandler(item);
|
|
27
27
|
},
|
|
28
|
-
className:
|
|
28
|
+
className: `dtable-ui-geolocation-selector-list-item ${type === 'province' ? 'province-item' : ''} ${isSelected ? 'selected-list-item' : ''}`,
|
|
29
29
|
children: item.name
|
|
30
30
|
}, type + '-item-' + index);
|
|
31
31
|
})
|
|
@@ -68,7 +68,7 @@ class HtmlLongTextFormatter extends _react.Component {
|
|
|
68
68
|
const className = (0, _classnames.default)('dtable-ui cell-formatter-container long-text-formatter', containerClassName);
|
|
69
69
|
if (!innerHtml) return null;
|
|
70
70
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
71
|
-
className:
|
|
71
|
+
className: `${className} article`,
|
|
72
72
|
dangerouslySetInnerHTML: {
|
|
73
73
|
__html: innerHtml
|
|
74
74
|
}
|
package/lib/Icon/index.js
CHANGED
|
@@ -22,12 +22,12 @@ class Icon extends React.Component {
|
|
|
22
22
|
size,
|
|
23
23
|
...restProps
|
|
24
24
|
} = this.props;
|
|
25
|
-
const cls = (0, _classnames.default)(className, 'am-icon',
|
|
25
|
+
const cls = (0, _classnames.default)(className, 'am-icon', `am-icon-${type}`, `am-icon-${size}`);
|
|
26
26
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
|
|
27
27
|
className: cls,
|
|
28
28
|
...restProps,
|
|
29
29
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("use", {
|
|
30
|
-
xlinkHref:
|
|
30
|
+
xlinkHref: `#${type}`
|
|
31
31
|
})
|
|
32
32
|
});
|
|
33
33
|
}
|
package/lib/Icon/load-sprite.js
CHANGED
|
@@ -7,7 +7,18 @@ exports.default = void 0;
|
|
|
7
7
|
/* tslint:disable:max-line-length */
|
|
8
8
|
// inspried by https://github.com/kisenka/svg-sprite-loader/blob/master/runtime/browser-sprite.js
|
|
9
9
|
// Much simplified, do make sure run this after document ready
|
|
10
|
-
const svgSprite = contents =>
|
|
10
|
+
const svgSprite = contents => `
|
|
11
|
+
<svg
|
|
12
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
14
|
+
id="__ANTD_MOBILE_SVG_SPRITE_NODE__"
|
|
15
|
+
style="display:none;overflow:hidden;width:0;height:0"
|
|
16
|
+
>
|
|
17
|
+
<defs>
|
|
18
|
+
${contents}
|
|
19
|
+
</defs>
|
|
20
|
+
</svg>
|
|
21
|
+
`;
|
|
11
22
|
|
|
12
23
|
// both minified by https://github.com/svg/svgo
|
|
13
24
|
const icons = {
|
|
@@ -39,7 +50,7 @@ const icons = {
|
|
|
39
50
|
const renderSvgSprite = () => {
|
|
40
51
|
const symbols = Object.keys(icons).map(iconName => {
|
|
41
52
|
const svgContent = icons[iconName].split('svg')[1];
|
|
42
|
-
return
|
|
53
|
+
return `<symbol id=${iconName}${svgContent}symbol>`;
|
|
43
54
|
}).join('');
|
|
44
55
|
return svgSprite(symbols);
|
|
45
56
|
};
|
package/lib/IconButton/index.js
CHANGED
|
@@ -22,7 +22,7 @@ const IconButton = _ref => {
|
|
|
22
22
|
}),
|
|
23
23
|
...otherProperties,
|
|
24
24
|
children: [icon && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
25
|
-
className: (0, _classnames.default)('seatable-icon dtable-font',
|
|
25
|
+
className: (0, _classnames.default)('seatable-icon dtable-font', `dtable-icon-${icon}`),
|
|
26
26
|
"aria-hidden": "true"
|
|
27
27
|
}), children]
|
|
28
28
|
});
|
|
@@ -94,7 +94,7 @@ class ImagePreviewer extends _react.default.Component {
|
|
|
94
94
|
const {
|
|
95
95
|
mediaUrl
|
|
96
96
|
} = props.config || {};
|
|
97
|
-
this.imageLoadingFailedUrl =
|
|
97
|
+
this.imageLoadingFailedUrl = `${mediaUrl}img/image-loading-failed.png`;
|
|
98
98
|
this.ref = null;
|
|
99
99
|
}
|
|
100
100
|
componentDidMount() {
|
|
@@ -42,11 +42,11 @@ class AdditionPreviewer extends _react.default.Component {
|
|
|
42
42
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
43
43
|
className: "dtable-ui-image-addition-nav",
|
|
44
44
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
45
|
-
className:
|
|
45
|
+
className: `dtable-ui-addition-item ${activeTab === 'localPicture' ? 'dtable-ui-addition-item-selected' : ''}`,
|
|
46
46
|
onClick: this.toggle.bind(this, 'localPicture'),
|
|
47
47
|
children: (0, _lang.getLocale)('Local_Images')
|
|
48
48
|
}), this.props.saveImageLink && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
49
|
-
className:
|
|
49
|
+
className: `dtable-ui-addition-item ${activeTab === 'imageLink' ? 'dtable-ui-addition-item-selected' : ''}`,
|
|
50
50
|
onClick: this.toggle.bind(this, 'imageLink'),
|
|
51
51
|
children: (0, _lang.getLocale)('Image_Link')
|
|
52
52
|
})]
|
|
@@ -133,7 +133,7 @@ class LocalImageAddition extends _react.default.Component {
|
|
|
133
133
|
src: fileThumbnailItem.fileIconUrl,
|
|
134
134
|
style: {
|
|
135
135
|
position: 'absolute',
|
|
136
|
-
zIndex:
|
|
136
|
+
zIndex: `${fileThumbnailItem.percent === 100 ? 3 : 1}`,
|
|
137
137
|
maxHeight: '100%'
|
|
138
138
|
},
|
|
139
139
|
alt: ""
|
|
@@ -162,7 +162,7 @@ class LocalImageAddition extends _react.default.Component {
|
|
|
162
162
|
})]
|
|
163
163
|
})
|
|
164
164
|
})
|
|
165
|
-
},
|
|
165
|
+
}, `dtable-ui-image-wrapper-circle${index}`);
|
|
166
166
|
});
|
|
167
167
|
imageArr.push(...thumbnailList);
|
|
168
168
|
}
|
|
@@ -206,11 +206,11 @@ class LocalImageAddition extends _react.default.Component {
|
|
|
206
206
|
isImageTipShow
|
|
207
207
|
} = this.state;
|
|
208
208
|
let editorContent;
|
|
209
|
-
let className = imageArr.length === 0 ?
|
|
209
|
+
let className = imageArr.length === 0 ? `dtable-ui-image-upload-container ${isImageTipShow ? 'dtable-ui-image-upload-container-active' : ''}` : 'dtable-ui-image-wrapper';
|
|
210
210
|
if (imageArr.length === 0) {
|
|
211
211
|
editorContent = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
|
|
212
212
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
213
|
-
className:
|
|
213
|
+
className: `dtable-ui-image-tip-addition ${isImageTipShow ? 'dtable-ui-image-drop-active' : ''}`,
|
|
214
214
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
215
215
|
className: "dtable-ui-dtable-ui-image-add-icon",
|
|
216
216
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
@@ -233,7 +233,7 @@ class LocalImageAddition extends _react.default.Component {
|
|
|
233
233
|
editorContent = /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
234
234
|
className: "dtable-ui-image-add-box",
|
|
235
235
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
236
|
-
className:
|
|
236
|
+
className: `dtable-ui-image-add-button ${isImageTipShow ? 'dtable-ui-image-wrapper-drop-active' : ''}`,
|
|
237
237
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
238
238
|
"aria-hidden": "true",
|
|
239
239
|
className: "dtable-font dtable-icon-add-table"
|
|
@@ -108,7 +108,7 @@ class ImagesPreviewer extends _react.default.Component {
|
|
|
108
108
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
109
109
|
className: "dtable-ui-image-previewer-container",
|
|
110
110
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
111
|
-
className:
|
|
111
|
+
className: `dtable-ui-image-previewer-wrapper ${value.length === 0 && _constants.isMobile ? 'd-none' : ''}`,
|
|
112
112
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
113
113
|
className: "dtable-ui-image-previewer-content",
|
|
114
114
|
children: value.length > 0 && value.map((imageItemUrl, index) => {
|