dtable-ui-component 6.0.49 → 6.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ActionSheet/index.js +94 -68
- package/lib/ActivityIndicator/index.js +36 -28
- package/lib/AsyncUserSelect/index.css +122 -0
- package/lib/AsyncUserSelect/index.js +260 -0
- package/lib/AsyncUserSelect/user-item.js +55 -0
- package/lib/AutoNumberFormatter/index.js +5 -3
- package/lib/Badge/index.js +12 -8
- package/lib/ButtonFormatter/index.js +15 -10
- package/lib/CTimeFormatter/index.js +5 -3
- package/lib/CheckboxEditor/index.js +22 -13
- package/lib/CheckboxEditor/mb-editor.js +7 -5
- package/lib/CheckboxEditor/pc-editor.js +7 -5
- package/lib/CheckboxFormatter/index.js +7 -5
- package/lib/CollaboratorEditor/index.js +24 -15
- package/lib/CollaboratorEditor/mb-editor/index.js +19 -13
- package/lib/CollaboratorEditor/pc-editor/index.js +50 -42
- package/lib/CollaboratorFormatter/index.js +8 -7
- package/lib/CollaboratorItem/index.js +21 -16
- package/lib/CollapsibleSettingLayout/index.js +17 -12
- package/lib/Comment/body/comment.js +78 -62
- package/lib/Comment/body/index.js +14 -11
- package/lib/Comment/footer/btns/index.js +68 -53
- package/lib/Comment/footer/index.js +29 -27
- package/lib/Comment/footer/input/index.js +44 -39
- package/lib/Comment/footer/input/participant/index.js +18 -13
- package/lib/Comment/footer/participants/index.js +31 -28
- package/lib/Comment/footer/participants/participant/index.js +18 -15
- package/lib/Comment/footer/participants/participant-select/index.js +66 -55
- package/lib/Comment/index.js +33 -28
- package/lib/CreatorFormatter/index.js +8 -7
- package/lib/DTableColorPicker/ColorPickerPortal/index.js +5 -3
- package/lib/DTableColorPicker/index.js +135 -99
- package/lib/DTableCommonAddTool/index.js +10 -7
- package/lib/DTableCustomFooter/index.js +5 -3
- package/lib/DTableCustomizeCollaboratorSelect/index.js +38 -32
- package/lib/DTableCustomizeSelect/index.js +51 -44
- package/lib/DTableEmptyTip/index.js +20 -16
- package/lib/DTableFiltersPopover/index.js +71 -61
- package/lib/DTableFiltersPopover/utils/filter-item-utils.js +74 -57
- package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +64 -49
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +49 -41
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +57 -47
- package/lib/DTableFiltersPopover/widgets/filter-calendar.js +35 -31
- package/lib/DTableFiltersPopover/widgets/filter-group.js +38 -32
- package/lib/DTableFiltersPopover/widgets/filter-item.js +125 -106
- package/lib/DTableFiltersPopover/widgets/filter-list/index.js +18 -17
- package/lib/DTableFiltersPopover/widgets/rate-item.js +12 -9
- package/lib/DTableGroupSelect/index.js +52 -44
- package/lib/DTableGroupSelect/option.js +5 -3
- package/lib/DTableGroupSelect/select-option-group.js +31 -25
- package/lib/DTableModalHeader/index.js +13 -9
- package/lib/DTablePopover/index.js +9 -6
- package/lib/DTableRadio/index.js +20 -17
- package/lib/DTableRadioGroup/index.js +21 -18
- package/lib/DTableSearchInput/index.js +22 -18
- package/lib/DTableSelect/dtable-select-label.js +12 -7
- package/lib/DTableSelect/index.js +2 -1
- package/lib/DTableSelect/utils.js +34 -20
- package/lib/DTableSwitch/index.js +25 -17
- package/lib/DateEditor/index.js +25 -16
- package/lib/DateEditor/mb-editor/index.js +90 -68
- package/lib/DateEditor/pc-editor.js +38 -34
- package/lib/DateFormatter/index.js +5 -3
- package/lib/DeleteTip/index.js +29 -20
- package/lib/DepartmentMultipleSelectEditor/index.js +57 -49
- package/lib/DepartmentSelectFilter/index.js +8 -1
- package/lib/DepartmentSingleSelectEditor/index.js +22 -13
- package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +75 -55
- package/lib/DepartmentSingleSelectEditor/pc-editor/department-single-select.js +78 -61
- package/lib/DepartmentSingleSelectEditor/pc-editor/index.js +14 -11
- package/lib/DepartmentSingleSelectFormatter/index.js +13 -9
- package/lib/DigitalSignEditor/index.js +22 -13
- package/lib/DigitalSignEditor/mb-editor/index.js +39 -24
- package/lib/DigitalSignEditor/pc-editor/index.js +44 -30
- package/lib/DigitalSignEditor/signature-board/index.js +19 -15
- package/lib/DigitalSignFormatter/index.js +23 -19
- package/lib/Drawer/index.js +4 -1
- package/lib/DurationEditor/index.js +2 -1
- package/lib/DurationFormatter/index.js +5 -3
- package/lib/EditEditorButton/index.js +5 -3
- package/lib/EmailEditor/index.js +2 -1
- package/lib/EmailFormatter/index.js +5 -3
- package/lib/FieldDisplaySetting/field-item.js +25 -19
- package/lib/FieldDisplaySetting/index.js +47 -38
- package/lib/FileEditor/files-previewer/index.js +22 -13
- package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +43 -28
- package/lib/FileEditor/files-previewer/mb-previewer/index.js +24 -21
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/dropdown-menu.js +30 -24
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/file-name-editor/index.js +13 -11
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/index.js +81 -63
- package/lib/FileEditor/files-previewer/pc-previewer/index.js +81 -65
- package/lib/FileEditor/index.js +22 -13
- package/lib/FileEditor/mb-editor/index.js +43 -31
- package/lib/FileEditor/pc-editor/addition-previewer/index.js +27 -20
- package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.js +107 -81
- package/lib/FileEditor/pc-editor/index.js +46 -36
- package/lib/FileFormatter/index.js +40 -36
- package/lib/FileItemFormatter/index.js +2 -1
- package/lib/FileUploader/index.js +22 -20
- package/lib/FormulaFormatter/index.js +21 -14
- package/lib/GeolocationEditor/index.js +28 -19
- package/lib/GeolocationEditor/mb-editor/country-editor.js +42 -27
- package/lib/GeolocationEditor/mb-editor/index.js +22 -14
- package/lib/GeolocationEditor/mb-editor/location-editor.js +54 -34
- package/lib/GeolocationEditor/mb-editor/map-editor/index.js +102 -74
- package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.js +144 -110
- package/lib/GeolocationEditor/mb-editor/province-city-editor.js +42 -27
- package/lib/GeolocationEditor/mb-editor/province-editor.js +42 -27
- package/lib/GeolocationEditor/pc-editor/country-editor.js +37 -30
- package/lib/GeolocationEditor/pc-editor/index.js +26 -17
- package/lib/GeolocationEditor/pc-editor/location-editor.js +121 -95
- package/lib/GeolocationEditor/pc-editor/map-editor/index.js +99 -74
- package/lib/GeolocationEditor/pc-editor/map-editor/large-editor/index.js +99 -76
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/index.js +119 -91
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +102 -82
- package/lib/GeolocationEditor/pc-editor/province-city-editor.js +89 -69
- package/lib/GeolocationEditor/pc-editor/province-editor.js +30 -25
- package/lib/GeolocationEditor/pc-editor/selector-header-item.js +9 -5
- package/lib/GeolocationEditor/pc-editor/selector-list.js +15 -13
- package/lib/GeolocationFormatter/index.js +5 -3
- package/lib/HtmlLongTextFormatter/index.js +2 -1
- package/lib/Icon/index.js +8 -5
- package/lib/IconButton/index.js +9 -6
- package/lib/ImageEditor/images-previewer/image-preview/index.js +52 -44
- package/lib/ImageEditor/images-previewer/index.js +35 -32
- package/lib/ImageEditor/index.js +22 -13
- package/lib/ImageEditor/mb-editor/index.js +43 -31
- package/lib/ImageEditor/pc-editor/addition-previewer/image-link/index.js +19 -15
- package/lib/ImageEditor/pc-editor/addition-previewer/index.js +32 -24
- package/lib/ImageEditor/pc-editor/addition-previewer/local-image-addition/index.js +101 -76
- package/lib/ImageEditor/pc-editor/images-previewer/index.js +33 -30
- package/lib/ImageEditor/pc-editor/index.js +44 -32
- package/lib/ImageFormatter/images-lazy-load.js +12 -10
- package/lib/ImageFormatter/index.js +40 -34
- package/lib/ImagePreviewerLightbox/index.js +12 -8
- package/lib/ImageThumbnail/index.js +46 -38
- package/lib/InputItem/custom-input.js +23 -18
- package/lib/InputItem/custom-keyboard.js +65 -44
- package/lib/InputItem/index.js +66 -56
- package/lib/InputItem/input.js +5 -3
- package/lib/LastModifierFormatter/index.js +8 -7
- package/lib/LinkEditor/index.js +38 -32
- package/lib/LinkEditor/link-editor-option.js +25 -20
- package/lib/LinkEditor/mb-popover/index.js +53 -41
- package/lib/LinkEditor/pc-popover/index.js +41 -33
- package/lib/LinkFormatter/index.js +13 -10
- package/lib/List/index.js +15 -9
- package/lib/List/list-item.js +32 -23
- package/lib/Loading/index.js +2 -1
- package/lib/LongTextFormatter/index.js +3 -2
- package/lib/MBEditorHeader/index.js +19 -14
- package/lib/MTimeFormatter/index.js +5 -3
- package/lib/MobileFullScreenPage/body/index.js +5 -3
- package/lib/MobileFullScreenPage/header/index.js +21 -16
- package/lib/MobileFullScreenPage/index.js +11 -8
- package/lib/MobileModal/index.js +6 -3
- package/lib/MobileOperationSheet/index.js +28 -18
- package/lib/MobileSelector/empty/index.js +5 -3
- package/lib/MobileSelector/index.js +18 -12
- package/lib/MobileSelector/option/index.js +17 -12
- package/lib/MobileSelector/options/index.js +5 -3
- package/lib/MobileSelector/search/index.js +10 -8
- package/lib/MobileUpload/index.js +87 -67
- package/lib/Modal/alert.js +8 -5
- package/lib/Modal/modal.js +19 -15
- package/lib/Modal/operation.js +2 -1
- package/lib/Modal/prompt.js +74 -54
- package/lib/MultipleSelectEditor/index.js +4 -2
- package/lib/MultipleSelectFormatter/index.js +8 -7
- package/lib/NotificationPopover/index.js +43 -32
- package/lib/NumberEditor/index.js +2 -1
- package/lib/NumberFormatter/index.js +5 -3
- package/lib/Picker/AbstractPicker.js +26 -22
- package/lib/Picker/index.js +2 -1
- package/lib/Popover/index.js +8 -5
- package/lib/Popover/item.js +22 -15
- package/lib/Progress/index.js +12 -10
- package/lib/Radio/Radio.js +11 -7
- package/lib/Radio/RadioItem.js +9 -3
- package/lib/RateFormatter/index.js +7 -6
- package/lib/RoleStatusEditor/index.js +36 -31
- package/lib/RowExpand/index.js +16 -9
- package/lib/RowExpandDialog/body/index.js +52 -41
- package/lib/RowExpandDialog/column-content/index.js +34 -25
- package/lib/RowExpandDialog/header/index.js +28 -21
- package/lib/RowExpandDialog/index.js +40 -27
- package/lib/RowExpandEditor/add-btn/index.js +16 -9
- package/lib/RowExpandEditor/add-btn/mb-add-btn/index.js +5 -3
- package/lib/RowExpandEditor/add-btn/pc-add-btn/index.js +8 -5
- package/lib/RowExpandEditor/checkbox-editor/index.js +16 -9
- package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.js +10 -8
- package/lib/RowExpandEditor/checkbox-editor/pc-editor.js +2 -1
- package/lib/RowExpandEditor/collaborator-editor/index.js +16 -9
- package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.js +19 -17
- package/lib/RowExpandEditor/collaborator-editor/pc-editor/index.js +52 -47
- package/lib/RowExpandEditor/date-editor/index.js +16 -9
- package/lib/RowExpandEditor/date-editor/mb-editor.js +20 -15
- package/lib/RowExpandEditor/date-editor/pc-editor.js +24 -21
- package/lib/RowExpandEditor/department-editor/index.js +16 -9
- package/lib/RowExpandEditor/department-editor/mb-editor.js +27 -22
- package/lib/RowExpandEditor/department-editor/pc-editor.js +35 -29
- package/lib/RowExpandEditor/digital-sign-editor/index.js +16 -9
- package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +19 -16
- package/lib/RowExpandEditor/digital-sign-editor/pc-editor/index.js +34 -32
- package/lib/RowExpandEditor/duration-editor/index.js +16 -9
- package/lib/RowExpandEditor/duration-editor/mb-editor.js +15 -12
- package/lib/RowExpandEditor/duration-editor/pc-editor.js +17 -13
- package/lib/RowExpandEditor/email-editor/index.js +16 -9
- package/lib/RowExpandEditor/email-editor/mb-editor/index.js +19 -17
- package/lib/RowExpandEditor/email-editor/pc-editor/index.js +20 -18
- package/lib/RowExpandEditor/file-editor/index.js +16 -9
- package/lib/RowExpandEditor/file-editor/mb-editor/index.js +21 -16
- package/lib/RowExpandEditor/file-editor/pc-editor/index.js +22 -20
- package/lib/RowExpandEditor/geolocation-editor/index.js +16 -9
- package/lib/RowExpandEditor/geolocation-editor/mb-editor/index.js +12 -9
- package/lib/RowExpandEditor/geolocation-editor/pc-editor/index.js +20 -17
- package/lib/RowExpandEditor/image-editor/index.js +16 -9
- package/lib/RowExpandEditor/image-editor/mb-editor/index.js +21 -16
- package/lib/RowExpandEditor/image-editor/pc-editor/index.js +29 -25
- package/lib/RowExpandEditor/index.js +4 -2
- package/lib/RowExpandEditor/long-text-editor/index.js +16 -9
- package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.js +27 -16
- package/lib/RowExpandEditor/long-text-editor/mb-editor/index.js +19 -16
- package/lib/RowExpandEditor/long-text-editor/pc-editor/index.js +22 -18
- package/lib/RowExpandEditor/multiple-select-editor/index.js +16 -9
- package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +26 -23
- package/lib/RowExpandEditor/multiple-select-editor/pc-editor/index.js +81 -67
- package/lib/RowExpandEditor/number-editor/index.js +16 -9
- package/lib/RowExpandEditor/number-editor/mb-editor/index.js +10 -7
- package/lib/RowExpandEditor/number-editor/pc-editor.js +6 -4
- package/lib/RowExpandEditor/rate-editor/index.js +16 -9
- package/lib/RowExpandEditor/rate-editor/mb-editor.js +10 -8
- package/lib/RowExpandEditor/rate-editor/pc-editor.js +11 -9
- package/lib/RowExpandEditor/right-angle/index.js +8 -6
- package/lib/RowExpandEditor/single-select-editor/index.js +16 -9
- package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +30 -23
- package/lib/RowExpandEditor/single-select-editor/pc-editor/index.js +42 -34
- package/lib/RowExpandEditor/text-editor/index.js +16 -9
- package/lib/RowExpandEditor/text-editor/mb-editor/index.js +11 -9
- package/lib/RowExpandEditor/text-editor/pc-editor/index.js +16 -12
- package/lib/RowExpandEditor/url-editor/index.js +16 -9
- package/lib/RowExpandEditor/url-editor/mb-editor/index.js +19 -17
- package/lib/RowExpandEditor/url-editor/pc-editor/index.js +20 -18
- package/lib/RowExpandFormatter/department-formatter/index.js +14 -5
- package/lib/RowExpandFormatter/department-formatter/mb-formatter.js +2 -1
- package/lib/RowExpandFormatter/department-formatter/pc-formatter.js +15 -11
- package/lib/RowExpandFormatter/email-formatter/index.js +11 -8
- package/lib/RowExpandFormatter/file-formatter/index.js +15 -14
- package/lib/RowExpandFormatter/file-formatter/row-expand-file-item-formatter.js +43 -36
- package/lib/RowExpandFormatter/formula-formatter/index.js +37 -29
- package/lib/RowExpandFormatter/image-formatter/index.js +30 -27
- package/lib/RowExpandFormatter/image-formatter/row-expand-image-item-formatter.js +47 -39
- package/lib/RowExpandFormatter/index.js +131 -114
- package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +2 -1
- package/lib/RowExpandFormatter/link-formatter/index.js +70 -67
- package/lib/RowExpandFormatter/rate-formatter/index.js +7 -6
- package/lib/RowExpandFormatter/url-formatter/index.js +11 -8
- package/lib/RowExpandView/body/index.js +38 -32
- package/lib/RowExpandView/column-content/index.js +10 -5
- package/lib/RowExpandView/index.js +27 -16
- package/lib/SelectItem/index.js +16 -12
- package/lib/SelectOptionGroup/index.js +39 -32
- package/lib/SelectOptionGroup/option.js +5 -3
- package/lib/SelectedDepartments/index.js +54 -44
- package/lib/SimpleLongTextFormatter/index.js +39 -30
- package/lib/SimpleLongTextFormatter/widgets/LongTextPreview.js +11 -8
- package/lib/SimpleLongTextFormatter/widgets/dtable-markdown-viewer.js +3 -2
- package/lib/SingleSelectEditor/index.js +4 -2
- package/lib/SingleSelectFormatter/index.js +6 -4
- package/lib/SvgIcon/index.js +4 -1
- package/lib/TabBar/Tab.js +27 -20
- package/lib/TabBar/index.js +25 -21
- package/lib/Tabs/index.js +8 -5
- package/lib/TextEditor/index.js +21 -18
- package/lib/TextFormatter/index.js +5 -3
- package/lib/TextareaItem/index.js +35 -26
- package/lib/Toast/index.js +16 -10
- package/lib/UploadProgress/index.js +2 -1
- package/lib/UrlEditor/index.js +2 -1
- package/lib/UrlFormatter/index.js +5 -3
- package/lib/formatterConfig/base-formatter-config.js +24 -23
- package/lib/formatterConfig/index.js +3 -2
- package/lib/index.js +7 -0
- package/lib/locales/de.json +5 -1
- package/lib/locales/en.json +5 -1
- package/lib/locales/es.json +6 -2
- package/lib/locales/fr.json +5 -1
- package/lib/locales/pt.json +5 -1
- package/lib/locales/ru.json +5 -1
- package/lib/locales/zh-CN.json +5 -1
- package/lib/select-editor/index.js +22 -13
- package/lib/select-editor/mb-editor/index.js +22 -16
- package/lib/select-editor/pc-editor/index.js +74 -60
- package/lib/toaster/alert.js +25 -16
- package/lib/toaster/toast.js +27 -23
- package/lib/toaster/toastManager.js +16 -13
- package/lib/toaster/toaster.js +2 -1
- package/package.json +2 -2
|
@@ -15,6 +15,7 @@ var _ClickOutside = _interopRequireDefault(require("../ClickOutside"));
|
|
|
15
15
|
var _utils = require("./utils");
|
|
16
16
|
var _ColorPickerPortal = _interopRequireDefault(require("./ColorPickerPortal"));
|
|
17
17
|
require("./index.css");
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
19
|
const DEFAULT_COLORS = ['#ffffff', '#f5f5f5', '#eef6f9', '#333333', '#ff0000', '#ffff00', '#0000ff', '#00ff00'];
|
|
19
20
|
const COLOR_PICKER_MODE = {
|
|
20
21
|
HEX: 'hex',
|
|
@@ -236,117 +237,152 @@ const DTableColorPicker = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
236
237
|
};
|
|
237
238
|
const renderDefaultContainer = () => {
|
|
238
239
|
const colors = defaultColors ? defaultColors.slice(0, 8) : DEFAULT_COLORS;
|
|
239
|
-
return /*#__PURE__*/
|
|
240
|
-
className: "default-color-setting"
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
240
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
241
|
+
className: "default-color-setting",
|
|
242
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
243
|
+
children: (0, _lang.getLocale)('Default')
|
|
244
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
245
|
+
className: "default-colors-container d-flex mt-2 mb-2",
|
|
246
|
+
children: colors.map((color, index) => {
|
|
247
|
+
const isLight = (0, _utils.isLightColor)(color);
|
|
248
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
249
|
+
className: "color-item mr-2 ".concat(isLight ? '' : 'dark'),
|
|
250
|
+
onClick: () => onSelectDefaultColor(color),
|
|
251
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
252
|
+
className: "colorinput-color d-flex align-items-center justify-content-center",
|
|
253
|
+
style: {
|
|
254
|
+
backgroundColor: color
|
|
255
|
+
},
|
|
256
|
+
children: color === "".concat((0, _utils.rgbaToHex)(value)) && alphaVal === 100 && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
257
|
+
className: "dtable-icon-color-check dtable-font dtable-icon-check-mark"
|
|
258
|
+
})
|
|
259
|
+
})
|
|
260
|
+
}, "default-color-".concat(index));
|
|
261
|
+
})
|
|
262
|
+
})]
|
|
263
|
+
});
|
|
258
264
|
};
|
|
259
265
|
const renderCustomContainer = () => {
|
|
260
|
-
return /*#__PURE__*/
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
266
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
267
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
268
|
+
children: (0, _lang.getLocale)('Custom')
|
|
269
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactColor.ChromePicker, {
|
|
270
|
+
className: "mt-2",
|
|
271
|
+
color: value,
|
|
272
|
+
onChange: onChangeChromePicker
|
|
273
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
274
|
+
className: "color-setting d-flex align-items-center ".concat(colorMode),
|
|
275
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
276
|
+
className: "mode-btn d-flex",
|
|
277
|
+
onClick: onChangeMode,
|
|
278
|
+
children: [colorMode === COLOR_PICKER_MODE.HEX ? 'HEX' : 'RGB', /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
279
|
+
className: "dtable-font dtable-icon-right"
|
|
280
|
+
})]
|
|
281
|
+
}), colorMode === COLOR_PICKER_MODE.HEX ? renderHexContainer() : renderRgbContainer(), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Input, {
|
|
282
|
+
className: "alpha-input",
|
|
283
|
+
type: "text",
|
|
284
|
+
value: alphaVal + '%',
|
|
285
|
+
onBlur: onAlphaInputBlur,
|
|
286
|
+
onKeyDown: e => onKeyDown(e, onAlphaInputBlur),
|
|
287
|
+
onChange: onChangeAlpha
|
|
288
|
+
})]
|
|
289
|
+
})]
|
|
290
|
+
});
|
|
279
291
|
};
|
|
280
292
|
const renderHexContainer = () => {
|
|
281
|
-
return /*#__PURE__*/
|
|
282
|
-
className: "hex-container ml-2"
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
293
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
294
|
+
className: "hex-container ml-2",
|
|
295
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
296
|
+
children: "#"
|
|
297
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Input, {
|
|
298
|
+
className: "hex-input",
|
|
299
|
+
type: "text",
|
|
300
|
+
value: hexVal,
|
|
301
|
+
onBlur: onHexInputBlur,
|
|
302
|
+
onKeyDown: e => onKeyDown(e, onHexInputBlur),
|
|
303
|
+
onChange: onChangeHex
|
|
304
|
+
})]
|
|
305
|
+
});
|
|
291
306
|
};
|
|
292
307
|
const renderRgbContainer = () => {
|
|
293
|
-
return /*#__PURE__*/
|
|
294
|
-
className: "rgb-container"
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
308
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
309
|
+
className: "rgb-container",
|
|
310
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
311
|
+
children: "R"
|
|
312
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Input, {
|
|
313
|
+
className: "rgb-input",
|
|
314
|
+
type: "text",
|
|
315
|
+
value: redVal,
|
|
316
|
+
onBlur: () => onRgbInputBlur(RGB_COLORS_MAP.RED),
|
|
317
|
+
onChange: e => onChangeRgb(e, RGB_COLORS_MAP.RED)
|
|
318
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
319
|
+
children: "G"
|
|
320
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Input, {
|
|
321
|
+
className: "rgb-input",
|
|
322
|
+
type: "text",
|
|
323
|
+
value: greenVal,
|
|
324
|
+
onBlur: () => onRgbInputBlur(RGB_COLORS_MAP.GREEN),
|
|
325
|
+
onChange: e => onChangeRgb(e, RGB_COLORS_MAP.GREEN)
|
|
326
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
327
|
+
children: "B"
|
|
328
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Input, {
|
|
329
|
+
className: "rgb-input",
|
|
330
|
+
type: "text",
|
|
331
|
+
value: blueVal,
|
|
332
|
+
onBlur: () => onRgbInputBlur(RGB_COLORS_MAP.BLUE),
|
|
333
|
+
onChange: e => onChangeRgb(e, RGB_COLORS_MAP.BLUE)
|
|
334
|
+
})]
|
|
335
|
+
});
|
|
314
336
|
};
|
|
315
337
|
const renderUsedContainer = () => {
|
|
316
|
-
return /*#__PURE__*/
|
|
317
|
-
className: "current-used-container mt-2"
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
338
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
339
|
+
className: "current-used-container mt-2",
|
|
340
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
341
|
+
children: (0, _lang.getLocale)('Recently_used')
|
|
342
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
343
|
+
className: "current-used-colors d-flex mt-2",
|
|
344
|
+
children: currentUsedColors.length > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
345
|
+
children: currentUsedColors.map((color, index) => {
|
|
346
|
+
const isLight = (0, _utils.isLightColor)(color);
|
|
347
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
348
|
+
className: "color-item mr-2 ".concat(isLight ? '' : 'dark'),
|
|
349
|
+
onClick: () => onSelectDefaultColor(color),
|
|
350
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
351
|
+
className: "colorinput-color d-flex align-items-center justify-content-center",
|
|
352
|
+
style: {
|
|
353
|
+
backgroundColor: color
|
|
354
|
+
}
|
|
355
|
+
})
|
|
356
|
+
}, "default-color-".concat(index));
|
|
357
|
+
})
|
|
358
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
359
|
+
className: "blank-placeholder d-flex align-items-center justify-content-center",
|
|
360
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
361
|
+
children: "/"
|
|
362
|
+
})
|
|
363
|
+
})
|
|
364
|
+
})]
|
|
365
|
+
});
|
|
335
366
|
};
|
|
336
|
-
const colorPicker = /*#__PURE__*/
|
|
337
|
-
onClickOutside: onClosePopover
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
367
|
+
const colorPicker = /*#__PURE__*/(0, _jsxRuntime.jsx)(_ClickOutside.default, {
|
|
368
|
+
onClickOutside: onClosePopover,
|
|
369
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
370
|
+
style: popoverStyle,
|
|
371
|
+
ref: colorPickerRef,
|
|
372
|
+
className: "dtable-color-picker",
|
|
373
|
+
children: [renderDefaultContainer(), renderCustomContainer(), renderUsedContainer()]
|
|
374
|
+
})
|
|
375
|
+
});
|
|
343
376
|
if (useProtal && target && scrollContainerId) {
|
|
344
|
-
return /*#__PURE__*/
|
|
377
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ColorPickerPortal.default, {
|
|
345
378
|
target: target,
|
|
346
379
|
scrollContainerId: scrollContainerId,
|
|
347
|
-
throttleDelay: throttleDelay
|
|
348
|
-
|
|
380
|
+
throttleDelay: throttleDelay,
|
|
381
|
+
children: colorPicker
|
|
382
|
+
});
|
|
349
383
|
}
|
|
350
|
-
return /*#__PURE__*/
|
|
384
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
385
|
+
children: colorPicker
|
|
386
|
+
});
|
|
351
387
|
});
|
|
352
388
|
var _default = exports.default = DTableColorPicker;
|
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
require("./index.css");
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
11
|
function DTableCommonAddTool(_ref) {
|
|
11
12
|
let {
|
|
12
13
|
callBack,
|
|
@@ -16,14 +17,16 @@ function DTableCommonAddTool(_ref) {
|
|
|
16
17
|
hideIcon,
|
|
17
18
|
style
|
|
18
19
|
} = _ref;
|
|
19
|
-
return /*#__PURE__*/
|
|
20
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
20
21
|
className: "dtable-ui add-item-btn ".concat(className ? className : ''),
|
|
21
22
|
style: style,
|
|
22
|
-
onClick: e => callBack(e)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
onClick: e => callBack(e),
|
|
24
|
+
children: [!hideIcon && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
25
|
+
className: "dtable-font dtable-icon-add-table ".concat(addIconClassName || '')
|
|
26
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
27
|
+
className: "add-new-option text-truncate",
|
|
28
|
+
children: footerName
|
|
29
|
+
})]
|
|
30
|
+
});
|
|
28
31
|
}
|
|
29
32
|
var _default = exports.default = DTableCommonAddTool;
|
|
@@ -7,13 +7,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
require("./index.css");
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
11
|
// DTableCustomFooter is used in geolocation editor and digital sign editor
|
|
11
12
|
const DTableCustomFooter = _ref => {
|
|
12
13
|
let {
|
|
13
14
|
children
|
|
14
15
|
} = _ref;
|
|
15
|
-
return /*#__PURE__*/
|
|
16
|
-
className: "dtable-custom-footer"
|
|
17
|
-
|
|
16
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
17
|
+
className: "dtable-custom-footer",
|
|
18
|
+
children: children
|
|
19
|
+
});
|
|
18
20
|
};
|
|
19
21
|
var _default = exports.default = DTableCustomFooter;
|
|
@@ -12,6 +12,7 @@ var _reactstrap = require("reactstrap");
|
|
|
12
12
|
var _dtableUtils = require("dtable-utils");
|
|
13
13
|
var _SelectOptionGroup = _interopRequireDefault(require("../SelectOptionGroup"));
|
|
14
14
|
require("./index.css");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
16
|
class CollaboratorSelect extends _react.Component {
|
|
16
17
|
constructor(props) {
|
|
17
18
|
super(props);
|
|
@@ -65,7 +66,7 @@ class CollaboratorSelect extends _react.Component {
|
|
|
65
66
|
isUsePopover
|
|
66
67
|
} = this.props;
|
|
67
68
|
if (!isUsePopover) {
|
|
68
|
-
return /*#__PURE__*/
|
|
69
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectOptionGroup.default, {
|
|
69
70
|
value: value,
|
|
70
71
|
top: top,
|
|
71
72
|
left: left,
|
|
@@ -83,30 +84,31 @@ class CollaboratorSelect extends _react.Component {
|
|
|
83
84
|
isShowSelected: true
|
|
84
85
|
});
|
|
85
86
|
}
|
|
86
|
-
return /*#__PURE__*/
|
|
87
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Popover, {
|
|
87
88
|
placement: "bottom",
|
|
88
89
|
isOpen: true,
|
|
89
90
|
target: this.id,
|
|
90
91
|
fade: false,
|
|
91
92
|
hideArrow: true,
|
|
92
|
-
className: "dtable-customize-collaborator-select dtable-select"
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
93
|
+
className: "dtable-customize-collaborator-select dtable-select",
|
|
94
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectOptionGroup.default, {
|
|
95
|
+
value: value,
|
|
96
|
+
top: top,
|
|
97
|
+
left: left,
|
|
98
|
+
minWidth: this.btnWidth + 8 // 8px is padding
|
|
99
|
+
,
|
|
100
|
+
options: options,
|
|
101
|
+
onSelectOption: this.props.onSelectOption,
|
|
102
|
+
searchable: searchable,
|
|
103
|
+
searchPlaceholder: searchPlaceholder,
|
|
104
|
+
noOptionsPlaceholder: noOptionsPlaceholder,
|
|
105
|
+
closeSelect: this.closeSelect,
|
|
106
|
+
getFilterOptions: this.getFilterOptions,
|
|
107
|
+
supportMultipleSelect: this.props.supportMultipleSelect,
|
|
108
|
+
stopClickEvent: true,
|
|
109
|
+
isShowSelected: true
|
|
110
|
+
})
|
|
111
|
+
});
|
|
110
112
|
};
|
|
111
113
|
this.state = {
|
|
112
114
|
isShowSelectOptions: false
|
|
@@ -127,7 +129,7 @@ class CollaboratorSelect extends _react.Component {
|
|
|
127
129
|
placeholder,
|
|
128
130
|
isLocked
|
|
129
131
|
} = this.props;
|
|
130
|
-
return /*#__PURE__*/
|
|
132
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("button", {
|
|
131
133
|
ref: node => this.selector = node,
|
|
132
134
|
className: (0, _classnames.default)('dtable-select custom-select collaborator-select', {
|
|
133
135
|
'focus': this.state.isShowSelectOptions
|
|
@@ -135,17 +137,21 @@ class CollaboratorSelect extends _react.Component {
|
|
|
135
137
|
'disabled': isLocked
|
|
136
138
|
}, className),
|
|
137
139
|
id: this.id,
|
|
138
|
-
onClick: this.onSelectToggle
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
140
|
+
onClick: this.onSelectToggle,
|
|
141
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
142
|
+
className: "selected-option",
|
|
143
|
+
ref: node => this.selectedOptionRef = node,
|
|
144
|
+
children: [value.label ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
145
|
+
className: "selected-option-show",
|
|
146
|
+
children: value.label
|
|
147
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
148
|
+
className: "select-placeholder",
|
|
149
|
+
children: placeholder
|
|
150
|
+
}), !isLocked && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
151
|
+
className: "dtable-font dtable-icon-down3"
|
|
152
|
+
})]
|
|
153
|
+
}), this.state.isShowSelectOptions && this.renderOptionGroup()]
|
|
154
|
+
});
|
|
149
155
|
}
|
|
150
156
|
}
|
|
151
157
|
CollaboratorSelect.defaultProps = {
|
|
@@ -11,6 +11,7 @@ var _SelectOptionGroup = _interopRequireDefault(require("../SelectOptionGroup"))
|
|
|
11
11
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
12
|
var _ModalPortal = _interopRequireDefault(require("../ModalPortal"));
|
|
13
13
|
require("./index.css");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
15
|
class DTableCustomizeSelect extends _react.Component {
|
|
15
16
|
constructor(props) {
|
|
16
17
|
super(props);
|
|
@@ -95,56 +96,62 @@ class DTableCustomizeSelect extends _react.Component {
|
|
|
95
96
|
addOptionAble,
|
|
96
97
|
component
|
|
97
98
|
} = this.props;
|
|
98
|
-
return /*#__PURE__*/
|
|
99
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
99
100
|
ref: node => this.selector = node,
|
|
100
101
|
className: (0, _classnames.default)('dtable-select custom-select', {
|
|
101
102
|
'focus': this.state.isShowSelectOptions
|
|
102
103
|
}, {
|
|
103
104
|
'disabled': isLocked
|
|
104
105
|
}, className),
|
|
105
|
-
onClick: this.onSelectToggle
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
106
|
+
onClick: this.onSelectToggle,
|
|
107
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
108
|
+
className: "selected-option",
|
|
109
|
+
children: [value && value.label ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
110
|
+
className: "selected-option-show",
|
|
111
|
+
children: value.label
|
|
112
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
113
|
+
className: "select-placeholder",
|
|
114
|
+
children: placeholder
|
|
115
|
+
}), !isLocked && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
116
|
+
className: "dtable-font dtable-icon-down3"
|
|
117
|
+
})]
|
|
118
|
+
}), this.state.isShowSelectOptions && !isInModal && /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectOptionGroup.default, {
|
|
119
|
+
value: value,
|
|
120
|
+
addOptionAble: addOptionAble,
|
|
121
|
+
component: component,
|
|
122
|
+
isShowSelected: this.props.isShowSelected,
|
|
123
|
+
top: this.getSelectedOptionTop(),
|
|
124
|
+
options: options,
|
|
125
|
+
onSelectOption: this.props.onSelectOption,
|
|
126
|
+
searchable: searchable,
|
|
127
|
+
searchPlaceholder: searchPlaceholder,
|
|
128
|
+
noOptionsPlaceholder: noOptionsPlaceholder,
|
|
129
|
+
onClickOutside: this.onClick,
|
|
130
|
+
closeSelect: this.closeSelect,
|
|
131
|
+
getFilterOptions: this.getFilterOptions,
|
|
132
|
+
supportMultipleSelect: this.props.supportMultipleSelect
|
|
133
|
+
}), this.state.isShowSelectOptions && isInModal && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ModalPortal.default, {
|
|
134
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectOptionGroup.default, {
|
|
135
|
+
className: className,
|
|
136
|
+
value: value,
|
|
137
|
+
addOptionAble: addOptionAble,
|
|
138
|
+
component: component,
|
|
139
|
+
isShowSelected: this.props.isShowSelected,
|
|
140
|
+
position: this.selector.getBoundingClientRect(),
|
|
141
|
+
isInModal: isInModal,
|
|
142
|
+
top: this.getSelectedOptionTop(),
|
|
143
|
+
options: options,
|
|
144
|
+
onSelectOption: this.props.onSelectOption,
|
|
145
|
+
searchable: searchable,
|
|
146
|
+
searchPlaceholder: searchPlaceholder,
|
|
147
|
+
noOptionsPlaceholder: noOptionsPlaceholder,
|
|
148
|
+
onClickOutside: this.onClick,
|
|
149
|
+
closeSelect: this.closeSelect,
|
|
150
|
+
getFilterOptions: this.getFilterOptions,
|
|
151
|
+
supportMultipleSelect: this.props.supportMultipleSelect
|
|
152
|
+
})
|
|
153
|
+
})]
|
|
154
|
+
});
|
|
148
155
|
}
|
|
149
156
|
}
|
|
150
157
|
var _default = exports.default = DTableCustomizeSelect;
|
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
require("./index.css");
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
11
|
class DTableEmptyTip extends _react.default.Component {
|
|
11
12
|
render() {
|
|
12
13
|
const {
|
|
@@ -14,22 +15,25 @@ class DTableEmptyTip extends _react.default.Component {
|
|
|
14
15
|
title,
|
|
15
16
|
type
|
|
16
17
|
} = this.props;
|
|
17
|
-
return /*#__PURE__*/
|
|
18
|
-
className: "empty-tip"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
18
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
19
|
+
className: "empty-tip",
|
|
20
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
21
|
+
src: this.props.src,
|
|
22
|
+
alt: "",
|
|
23
|
+
width: "100",
|
|
24
|
+
height: "100",
|
|
25
|
+
className: "no-items-img-tip"
|
|
26
|
+
}), title && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
27
|
+
className: "empty-tip-title",
|
|
28
|
+
children: title
|
|
29
|
+
}), text && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
30
|
+
className: "empty-tip-text",
|
|
31
|
+
style: {
|
|
32
|
+
color: type === 'error' ? 'red' : '#666'
|
|
33
|
+
},
|
|
34
|
+
children: text
|
|
35
|
+
}), this.props.children && this.props.children]
|
|
36
|
+
});
|
|
33
37
|
}
|
|
34
38
|
}
|
|
35
39
|
var _default = exports.default = DTableEmptyTip;
|