dtable-ui-component 0.1.75-beta1 → 0.1.75-beta10
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/README.md +15 -2
- package/lib/AutoNumberFormatter/index.css +1 -0
- package/{es/components/cell-formatter/auto-number-formatter.js → lib/AutoNumberFormatter/index.js} +1 -0
- package/lib/ButtonFormatter/index.css +13 -0
- package/{es/components/cell-formatter/button-formatter.js → lib/ButtonFormatter/index.js} +1 -0
- package/lib/CTimeFormatter/index.css +1 -0
- package/{es/components/cell-formatter/ctime-formatter.js → lib/CTimeFormatter/index.js} +1 -0
- package/{es/components/cell-editor/checkbox-editor.js → lib/CheckboxEditor/index.js} +0 -0
- package/lib/CheckboxFormatter/index.css +1 -0
- package/{es/components/cell-formatter/checkbox-formatter.js → lib/CheckboxFormatter/index.js} +1 -0
- package/lib/CollaboratorEditor/index.css +48 -0
- package/{es/components/cell-editor/collaborator-editor.js → lib/CollaboratorEditor/index.js} +6 -5
- package/lib/CollaboratorEditor/mb-collaborator-editor-popover/index.css +86 -0
- package/{es/components/cell-editor-popover/mb-collaborator-editor-popover.js → lib/CollaboratorEditor/mb-collaborator-editor-popover/index.js} +2 -1
- package/lib/CollaboratorEditor/pc-collaborator-editor-popover/index.css +1 -0
- package/{es/components/cell-editor-popover/pc-collaborator-editor-popover.js → lib/CollaboratorEditor/pc-collaborator-editor-popover/index.js} +2 -1
- package/lib/CollaboratorFormatter/index.css +1 -0
- package/{es/components/cell-formatter/collaborator-formatter.js → lib/CollaboratorFormatter/index.js} +3 -2
- package/lib/CollaboratorItem/index.css +49 -0
- package/{es/components/common/collaborator-item.js → lib/CollaboratorItem/index.js} +1 -0
- package/lib/CreatorFormatter/index.css +1 -0
- package/{es/components/cell-formatter/creator-formatter.js → lib/CreatorFormatter/index.js} +3 -2
- package/lib/DateEditor/index.css +4 -0
- package/{es/components/cell-editor/date-editor.js → lib/DateEditor/index.js} +5 -4
- package/{es/css → lib/DateEditor/mb-date-editor-popover}/custom-rc-calendar.css +0 -0
- package/lib/DateEditor/mb-date-editor-popover/index.css +45 -0
- package/{es/components/cell-editor-popover/mb-date-editor-popover.js → lib/DateEditor/mb-date-editor-popover/index.js} +10 -10
- package/{es/components/cell-editor-popover → lib/DateEditor}/pc-date-editor-popover.js +2 -2
- package/lib/DateFormatter/index.css +1 -0
- package/{es/components/cell-formatter/date-formatter.js → lib/DateFormatter/index.js} +2 -1
- package/lib/DurationFormatter/index.css +1 -0
- package/{es/components/cell-formatter/duration-formatter.js → lib/DurationFormatter/index.js} +2 -1
- package/{es/components/common/edit-editor-button.js → lib/EditEditorButton/index.js} +0 -0
- package/lib/EmailFormatter/index.css +5 -0
- package/{es/components/cell-formatter/email-formatter.js → lib/EmailFormatter/index.js} +1 -0
- package/{es/components/cell-editor-dialog/pc-file-editor-dialog.js → lib/FileEditor/index.js} +10 -10
- package/{es/components/cell-editor-dialog → lib/FileEditor}/pc-files-addition/index.js +0 -0
- package/{es/components/cell-editor-dialog → lib/FileEditor}/pc-files-addition/pc-file-uploaded-item.js +0 -0
- package/{es/components/cell-editor-dialog → lib/FileEditor}/pc-files-preview/index.js +0 -0
- package/{es/components/cell-editor-dialog → lib/FileEditor}/pc-files-preview/pc-file-item-preview.js +0 -0
- package/lib/FileFormatter/index.css +29 -0
- package/{es/components/cell-formatter/file-formatter.js → lib/FileFormatter/index.js} +2 -1
- package/{es/assets/images → lib/FileItemFormatter/assets}/file/192/excel.png +0 -0
- package/{es/assets/images → lib/FileItemFormatter/assets}/file/192/file.png +0 -0
- package/{es/assets/images → lib/FileItemFormatter/assets}/file/192/music.png +0 -0
- package/{es/assets/images → lib/FileItemFormatter/assets}/file/192/pdf.png +0 -0
- package/{es/assets/images → lib/FileItemFormatter/assets}/file/192/pic.png +0 -0
- package/{es/assets/images → lib/FileItemFormatter/assets}/file/192/ppt.png +0 -0
- package/{es/assets/images → lib/FileItemFormatter/assets}/file/192/txt.png +0 -0
- package/{es/assets/images → lib/FileItemFormatter/assets}/file/192/video.png +0 -0
- package/{es/assets/images → lib/FileItemFormatter/assets}/file/192/word.png +0 -0
- package/{es/assets/images → lib/FileItemFormatter/assets}/file/24/excel.png +0 -0
- package/{es/assets/images → lib/FileItemFormatter/assets}/file/24/file.png +0 -0
- package/{es/assets/images → lib/FileItemFormatter/assets}/file/24/music.png +0 -0
- package/{es/assets/images → lib/FileItemFormatter/assets}/file/24/pdf.png +0 -0
- package/{es/assets/images → lib/FileItemFormatter/assets}/file/24/pic.png +0 -0
- package/{es/assets/images → lib/FileItemFormatter/assets}/file/24/ppt.png +0 -0
- package/{es/assets/images → lib/FileItemFormatter/assets}/file/24/txt.png +0 -0
- package/{es/assets/images → lib/FileItemFormatter/assets}/file/24/video.png +0 -0
- package/{es/assets/images → lib/FileItemFormatter/assets}/file/24/word.png +0 -0
- package/{es/assets/images → lib/FileItemFormatter/assets}/folder/folder-192.png +0 -0
- package/{es/assets/images → lib/FileItemFormatter/assets}/folder/folder-24.png +0 -0
- package/{es/components/cell-formatter/widgets/file-item-formatter.js → lib/FileItemFormatter/index.js} +2 -2
- package/lib/FileItemFormatter/utils.js +72 -0
- package/{es/components/file-uploader → lib/FileUploader}/index.js +0 -0
- package/{es/utils → lib/FormulaFormatter}/cell-value-validator.js +1 -2
- package/lib/FormulaFormatter/index.css +19 -0
- package/{es/components/cell-formatter/formula-formatter.js → lib/FormulaFormatter/index.js} +7 -8
- package/{es/utils/column-utils.js → lib/FormulaFormatter/utils.js} +5 -1
- package/lib/GeolocationFormatter/index.css +1 -0
- package/{es/components/cell-formatter/geolocation-formatter.js → lib/GeolocationFormatter/index.js} +2 -1
- package/lib/HtmlLongTextFormatter/index.css +63 -0
- package/{es/components/cell-formatter/widgets/long-text-formatter/html-long-text-formatter.js → lib/HtmlLongTextFormatter/index.js} +2 -1
- package/{es/utils → lib/HtmlLongTextFormatter}/markdown2html.js +0 -0
- package/{es/utils → lib/HtmlLongTextFormatter}/unified/index.js +1 -0
- package/{es/utils → lib/HtmlLongTextFormatter}/vfile/core.js +1 -0
- package/{es/utils → lib/HtmlLongTextFormatter}/vfile/index.js +0 -0
- package/{es/components/common → lib/ImageFormatter}/images-lazy-load.js +2 -2
- package/lib/ImageFormatter/index.css +34 -0
- package/{es/components/cell-formatter/image-formatter.js → lib/ImageFormatter/index.js} +4 -3
- package/lib/ImageFormatter/utils.js +7 -0
- package/{es/css/image-previewer-ligntbox.css → lib/ImagePreviewerLightbox/index.css} +0 -0
- package/{es/components/cell-formatter/widgets/image-previewer-lightbox.js → lib/ImagePreviewerLightbox/index.js} +3 -3
- package/lib/ImagePreviewerLightbox/utils.js +8 -0
- package/lib/LastModifierFormatter/index.css +1 -0
- package/{es/components/cell-formatter/last-modifier-formatter.js → lib/LastModifierFormatter/index.js} +5 -4
- package/lib/LinkEditor/index.css +9 -0
- package/{es/components/cell-editor/link-editor.js → lib/LinkEditor/index.js} +10 -9
- package/{es/components/common → lib/LinkEditor}/link-editor-option.js +0 -0
- package/lib/LinkEditor/mb-link-editor-popover/index.css +85 -0
- package/{es/components/cell-editor-popover/mb-link-editor-popover.js → lib/LinkEditor/mb-link-editor-popover/index.js} +2 -1
- package/lib/LinkEditor/pc-link-editor-popover/index.css +63 -0
- package/{es/components/cell-editor-popover/pc-link-editor-popover.js → lib/LinkEditor/pc-link-editor-popover/index.js} +1 -0
- package/lib/LinkFormatter/index.css +27 -0
- package/{es/components/cell-formatter/link-formatter.js → lib/LinkFormatter/index.js} +2 -2
- package/{es/css/loading.css → lib/Loading/index.css} +0 -0
- package/{es/components/loading.js → lib/Loading/index.js} +1 -1
- package/{es/components/cell-formatter/long-text-formatter.js → lib/LongTextFormatter/index.js} +2 -2
- package/{es/components/common/mobile/mb-editor-header.js → lib/MBEditorHeader/index.js} +0 -0
- package/lib/MTimeFormatter/index.css +1 -0
- package/{es/components/cell-formatter/mtime-formatter.js → lib/MTimeFormatter/index.js} +1 -0
- package/{es/components/common/modal-portal.js → lib/ModalPortal/index.js} +0 -0
- package/lib/MultipleSelectEditor/index.css +9 -0
- package/{es/components/cell-editor/multiple-select-editor.js → lib/MultipleSelectEditor/index.js} +5 -6
- package/lib/MultipleSelectFormatter/index.css +1 -0
- package/{es/components/cell-formatter/multiple-select-formatter.js → lib/MultipleSelectFormatter/index.js} +2 -1
- package/{es/components/cell-editor/number-editor.js → lib/NumberEditor/index.js} +2 -2
- package/lib/NumberFormatter/index.css +1 -0
- package/{es/components/cell-formatter/number-formatter.js → lib/NumberFormatter/index.js} +2 -1
- package/lib/RateFormatter/index.css +1 -0
- package/{es/components/cell-formatter/rate-formatter.js → lib/RateFormatter/index.js} +1 -0
- package/{es/components/common/select-item.js → lib/SelectItem/index.js} +0 -0
- package/lib/SimpleLongTextFormatter/index.css +63 -0
- package/{es/components/cell-formatter/widgets/long-text-formatter/simple-long-text-formatter.js → lib/SimpleLongTextFormatter/index.js} +2 -1
- package/{es/utils → lib/SimpleLongTextFormatter}/normalize-long-text-value.js +3 -3
- package/lib/SingleSelectEditor/index.css +9 -0
- package/{es/components/cell-editor/single-select-editor.js → lib/SingleSelectEditor/index.js} +5 -6
- package/lib/SingleSelectFormatter/index.css +1 -0
- package/{es/components/cell-formatter/single-select-formatter.js → lib/SingleSelectFormatter/index.js} +2 -1
- package/{es/components/cell-editor/text-editor.js → lib/TextEditor/index.js} +2 -2
- package/lib/TextFormatter/index.css +1 -0
- package/{es/components/cell-formatter/text-formatter.js → lib/TextFormatter/index.js} +1 -0
- package/lib/UrlFormatter/index.css +5 -0
- package/{es/components/cell-formatter/url-formatter.js → lib/UrlFormatter/index.js} +1 -0
- package/{es/components/cell-factory/cell-formatter-factory.js → lib/cellFormatterFactory/index.js} +3 -3
- package/lib/constants/cell-types.js +25 -54
- package/lib/constants/index.js +5 -26
- package/lib/css/cell-editor.css +0 -608
- package/lib/css/cell-formatter.css +0 -243
- package/lib/css/mb-cell-editor.css +55 -0
- package/lib/formatterConfig/index.js +31 -0
- package/lib/index.js +45 -64
- package/lib/lang/index.js +11 -27
- package/lib/locals/de.js +1 -6
- package/lib/locals/en.js +1 -6
- package/lib/locals/fr.js +1 -6
- package/lib/locals/zh-CN.js +1 -6
- package/lib/select-editor/index.js +4 -0
- package/lib/select-editor/mb-select-editor-popover/index.css +127 -0
- package/{es/components/cell-editor-popover/mb-select-editor-popover.js → lib/select-editor/mb-select-editor-popover/index.js} +12 -11
- package/lib/select-editor/pc-select-editor-popover/index.css +72 -0
- package/{es/components/cell-editor-popover/pc-select-editor-popover.js → lib/select-editor/pc-select-editor-popover/index.js} +1 -0
- package/{es/components/common → lib/select-editor}/select-editor-option.js +0 -0
- package/{es/components/toast → lib/toaster}/alert.js +0 -0
- package/{es/components/toast → lib/toaster}/index.js +0 -0
- package/{es/components/toast → lib/toaster}/toast.js +0 -0
- package/{es/components/toast → lib/toaster}/toastManager.js +0 -0
- package/{es/components/toast → lib/toaster}/toaster.js +0 -0
- package/lib/utils/editor-utils.js +3 -13
- package/lib/utils/number-precision.js +14 -31
- package/lib/utils/utils.js +3 -119
- package/lib/utils/value-format-utils.js +59 -108
- package/package.json +5 -5
- package/es/app.css +0 -20
- package/es/app.js +0 -91
- package/es/assets/images/avatar/default_avatar.png +0 -0
- package/es/components/cell-editor/index.js +0 -9
- package/es/components/cell-formatter/formatter-config.js +0 -31
- package/es/components/cell-formatter/index.js +0 -27
- package/es/constants/cell-types.js +0 -25
- package/es/constants/index.js +0 -48
- package/es/css/cell-editor.css +0 -614
- package/es/css/cell-formatter.css +0 -247
- package/es/index.js +0 -6
- package/es/lang/index.js +0 -50
- package/es/locals/de.js +0 -2
- package/es/locals/en.js +0 -17
- package/es/locals/fr.js +0 -2
- package/es/locals/zh-CN.js +0 -17
- package/es/utils/editor-utils.js +0 -71
- package/es/utils/number-precision.js +0 -163
- package/es/utils/utils.js +0 -116
- package/es/utils/value-format-utils.js +0 -495
- package/lib/app.css +0 -20
- package/lib/app.js +0 -96
- package/lib/assets/images/file/192/excel.png +0 -0
- package/lib/assets/images/file/192/file.png +0 -0
- package/lib/assets/images/file/192/music.png +0 -0
- package/lib/assets/images/file/192/pdf.png +0 -0
- package/lib/assets/images/file/192/pic.png +0 -0
- package/lib/assets/images/file/192/ppt.png +0 -0
- package/lib/assets/images/file/192/txt.png +0 -0
- package/lib/assets/images/file/192/video.png +0 -0
- package/lib/assets/images/file/192/word.png +0 -0
- package/lib/assets/images/file/24/excel.png +0 -0
- package/lib/assets/images/file/24/file.png +0 -0
- package/lib/assets/images/file/24/music.png +0 -0
- package/lib/assets/images/file/24/pdf.png +0 -0
- package/lib/assets/images/file/24/pic.png +0 -0
- package/lib/assets/images/file/24/ppt.png +0 -0
- package/lib/assets/images/file/24/txt.png +0 -0
- package/lib/assets/images/file/24/video.png +0 -0
- package/lib/assets/images/file/24/word.png +0 -0
- package/lib/assets/images/folder/folder-192.png +0 -0
- package/lib/assets/images/folder/folder-24.png +0 -0
- package/lib/components/cell-editor/checkbox-editor.js +0 -111
- package/lib/components/cell-editor/collaborator-editor.js +0 -249
- package/lib/components/cell-editor/date-editor.js +0 -171
- package/lib/components/cell-editor/index.js +0 -40
- package/lib/components/cell-editor/link-editor.js +0 -321
- package/lib/components/cell-editor/multiple-select-editor.js +0 -250
- package/lib/components/cell-editor/number-editor.js +0 -162
- package/lib/components/cell-editor/single-select-editor.js +0 -216
- package/lib/components/cell-editor/text-editor.js +0 -129
- package/lib/components/cell-editor-dialog/pc-file-editor-dialog.js +0 -66
- package/lib/components/cell-editor-dialog/pc-files-addition/index.js +0 -1
- package/lib/components/cell-editor-dialog/pc-files-addition/pc-file-uploaded-item.js +0 -1
- package/lib/components/cell-editor-dialog/pc-files-preview/index.js +0 -1
- package/lib/components/cell-editor-dialog/pc-files-preview/pc-file-item-preview.js +0 -1
- package/lib/components/cell-editor-popover/mb-collaborator-editor-popover.js +0 -183
- package/lib/components/cell-editor-popover/mb-date-editor-popover.js +0 -262
- package/lib/components/cell-editor-popover/mb-link-editor-popover.js +0 -176
- package/lib/components/cell-editor-popover/mb-select-editor-popover.js +0 -243
- package/lib/components/cell-editor-popover/pc-collaborator-editor-popover.js +0 -124
- package/lib/components/cell-editor-popover/pc-date-editor-popover.js +0 -156
- package/lib/components/cell-editor-popover/pc-link-editor-popover.js +0 -128
- package/lib/components/cell-editor-popover/pc-select-editor-popover.js +0 -157
- package/lib/components/cell-factory/cell-formatter-factory.js +0 -28
- package/lib/components/cell-formatter/auto-number-formatter.js +0 -45
- package/lib/components/cell-formatter/button-formatter.js +0 -66
- package/lib/components/cell-formatter/checkbox-formatter.js +0 -56
- package/lib/components/cell-formatter/collaborator-formatter.js +0 -111
- package/lib/components/cell-formatter/creator-formatter.js +0 -105
- package/lib/components/cell-formatter/ctime-formatter.js +0 -70
- package/lib/components/cell-formatter/date-formatter.js +0 -73
- package/lib/components/cell-formatter/duration-formatter.js +0 -49
- package/lib/components/cell-formatter/email-formatter.js +0 -45
- package/lib/components/cell-formatter/file-formatter.js +0 -77
- package/lib/components/cell-formatter/formatter-config.js +0 -66
- package/lib/components/cell-formatter/formula-formatter.js +0 -189
- package/lib/components/cell-formatter/geolocation-formatter.js +0 -66
- package/lib/components/cell-formatter/image-formatter.js +0 -171
- package/lib/components/cell-formatter/index.js +0 -112
- package/lib/components/cell-formatter/last-modifier-formatter.js +0 -105
- package/lib/components/cell-formatter/link-formatter.js +0 -165
- package/lib/components/cell-formatter/long-text-formatter.js +0 -46
- package/lib/components/cell-formatter/mtime-formatter.js +0 -70
- package/lib/components/cell-formatter/multiple-select-formatter.js +0 -84
- package/lib/components/cell-formatter/number-formatter.js +0 -60
- package/lib/components/cell-formatter/rate-formatter.js +0 -93
- package/lib/components/cell-formatter/single-select-formatter.js +0 -84
- package/lib/components/cell-formatter/text-formatter.js +0 -67
- package/lib/components/cell-formatter/url-formatter.js +0 -45
- package/lib/components/cell-formatter/widgets/file-item-formatter.js +0 -63
- package/lib/components/cell-formatter/widgets/image-previewer-lightbox.js +0 -152
- package/lib/components/cell-formatter/widgets/long-text-formatter/html-long-text-formatter.js +0 -107
- package/lib/components/cell-formatter/widgets/long-text-formatter/simple-long-text-formatter.js +0 -110
- package/lib/components/common/collaborator-item.js +0 -79
- package/lib/components/common/edit-editor-button.js +0 -67
- package/lib/components/common/images-lazy-load.js +0 -158
- package/lib/components/common/link-editor-option.js +0 -121
- package/lib/components/common/mobile/mb-editor-header.js +0 -61
- package/lib/components/common/modal-portal.js +0 -51
- package/lib/components/common/select-editor-option.js +0 -122
- package/lib/components/common/select-item.js +0 -73
- package/lib/components/file-uploader/index.js +0 -63
- package/lib/components/loading.js +0 -16
- package/lib/components/toast/alert.js +0 -164
- package/lib/components/toast/index.js +0 -12
- package/lib/components/toast/toast.js +0 -223
- package/lib/components/toast/toastManager.js +0 -189
- package/lib/components/toast/toaster.js +0 -92
- package/lib/css/custom-rc-calendar.css +0 -118
- package/lib/css/image-previewer-ligntbox.css +0 -87
- package/lib/css/loading.css +0 -54
- package/lib/utils/cell-value-validator.js +0 -41
- package/lib/utils/column-utils.js +0 -15
- package/lib/utils/markdown2html.js +0 -68
- package/lib/utils/normalize-long-text-value.js +0 -74
- package/lib/utils/unified/index.js +0 -470
- package/lib/utils/vfile/core.js +0 -172
- package/lib/utils/vfile/index.js +0 -48
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
exports.__esModule = true;
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
|
|
14
|
-
var propTypes = {
|
|
15
|
-
title: _propTypes.default.string,
|
|
16
|
-
titleClass: _propTypes.default.string,
|
|
17
|
-
leftContent: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object]),
|
|
18
|
-
rightContent: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object]),
|
|
19
|
-
onLeftClick: _propTypes.default.func,
|
|
20
|
-
onRightClick: _propTypes.default.func
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
var MBEditorHeader = /*#__PURE__*/function (_React$Component) {
|
|
24
|
-
(0, _inheritsLoose2.default)(MBEditorHeader, _React$Component);
|
|
25
|
-
|
|
26
|
-
function MBEditorHeader() {
|
|
27
|
-
return _React$Component.apply(this, arguments) || this;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
var _proto = MBEditorHeader.prototype;
|
|
31
|
-
|
|
32
|
-
_proto.render = function render() {
|
|
33
|
-
var _this$props = this.props,
|
|
34
|
-
title = _this$props.title,
|
|
35
|
-
titleClass = _this$props.titleClass,
|
|
36
|
-
leftContent = _this$props.leftContent,
|
|
37
|
-
rightContent = _this$props.rightContent,
|
|
38
|
-
onLeftClick = _this$props.onLeftClick,
|
|
39
|
-
onRightClick = _this$props.onRightClick;
|
|
40
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
41
|
-
className: "dtable-ui-mb-editor-header " + (titleClass ? titleClass : '')
|
|
42
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
43
|
-
className: "editor-header-left-content",
|
|
44
|
-
onClick: onLeftClick
|
|
45
|
-
}, leftContent), /*#__PURE__*/_react.default.createElement("span", {
|
|
46
|
-
className: "editor-header-title"
|
|
47
|
-
}, title), /*#__PURE__*/_react.default.createElement("span", {
|
|
48
|
-
className: "editor-header-right-content",
|
|
49
|
-
onClick: onRightClick,
|
|
50
|
-
style: {
|
|
51
|
-
color: '#f09f3f'
|
|
52
|
-
}
|
|
53
|
-
}, rightContent));
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
return MBEditorHeader;
|
|
57
|
-
}(_react.default.Component);
|
|
58
|
-
|
|
59
|
-
MBEditorHeader.propTypes = propTypes;
|
|
60
|
-
var _default = MBEditorHeader;
|
|
61
|
-
exports.default = _default;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
exports.__esModule = true;
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
|
-
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
13
|
-
|
|
14
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
|
-
|
|
16
|
-
var propTypes = {
|
|
17
|
-
children: _propTypes.default.object.isRequired
|
|
18
|
-
};
|
|
19
|
-
var modalRoot = document.getElementById('modal-wrapper');
|
|
20
|
-
|
|
21
|
-
var ModalPortal = /*#__PURE__*/function (_React$Component) {
|
|
22
|
-
(0, _inheritsLoose2.default)(ModalPortal, _React$Component);
|
|
23
|
-
|
|
24
|
-
function ModalPortal(props) {
|
|
25
|
-
var _this;
|
|
26
|
-
|
|
27
|
-
_this = _React$Component.call(this, props) || this;
|
|
28
|
-
_this.el = document.createElement('div');
|
|
29
|
-
return _this;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
var _proto = ModalPortal.prototype;
|
|
33
|
-
|
|
34
|
-
_proto.componentDidMount = function componentDidMount() {
|
|
35
|
-
modalRoot.appendChild(this.el);
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
39
|
-
modalRoot.removeChild(this.el);
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
_proto.render = function render() {
|
|
43
|
-
return /*#__PURE__*/_reactDom.default.createPortal(this.props.children, this.el);
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
return ModalPortal;
|
|
47
|
-
}(_react.default.Component);
|
|
48
|
-
|
|
49
|
-
ModalPortal.propTypes = propTypes;
|
|
50
|
-
var _default = ModalPortal;
|
|
51
|
-
exports.default = _default;
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
exports.__esModule = true;
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
9
|
-
|
|
10
|
-
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));
|
|
11
|
-
|
|
12
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
-
|
|
14
|
-
var _react = _interopRequireDefault(require("react"));
|
|
15
|
-
|
|
16
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* option : {
|
|
20
|
-
* id: '',
|
|
21
|
-
* name: '',
|
|
22
|
-
* color: '',
|
|
23
|
-
* }
|
|
24
|
-
*/
|
|
25
|
-
var propTypes = {
|
|
26
|
-
option: _propTypes.default.object.isRequired,
|
|
27
|
-
isShowRemoveIcon: _propTypes.default.bool,
|
|
28
|
-
onDeleteSelectOption: _propTypes.default.func
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
var SelectEditorOption = /*#__PURE__*/function (_React$Component) {
|
|
32
|
-
(0, _inheritsLoose2.default)(SelectEditorOption, _React$Component);
|
|
33
|
-
|
|
34
|
-
function SelectEditorOption() {
|
|
35
|
-
var _this;
|
|
36
|
-
|
|
37
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
38
|
-
args[_key] = arguments[_key];
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
|
42
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onDeleteOption", function (event) {
|
|
43
|
-
event.nativeEvent.stopImmediatePropagation();
|
|
44
|
-
event.stopPropagation();
|
|
45
|
-
|
|
46
|
-
_this.props.onDeleteSelectOption(_this.props.option);
|
|
47
|
-
});
|
|
48
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getContainerStyle", function () {
|
|
49
|
-
var option = _this.props.option;
|
|
50
|
-
return {
|
|
51
|
-
display: 'inline-flex',
|
|
52
|
-
justifyContent: 'center',
|
|
53
|
-
marginRight: '10px',
|
|
54
|
-
padding: '0px 10px',
|
|
55
|
-
height: '20px',
|
|
56
|
-
borderRadius: '10px',
|
|
57
|
-
fontSize: '13px',
|
|
58
|
-
backgroundColor: option.color
|
|
59
|
-
};
|
|
60
|
-
});
|
|
61
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getOptionStyle", function (option) {
|
|
62
|
-
var textColor = option.textColor || null;
|
|
63
|
-
return {
|
|
64
|
-
flex: 1,
|
|
65
|
-
display: 'flex',
|
|
66
|
-
alignContent: 'center',
|
|
67
|
-
margin: '0 4px 0 2px',
|
|
68
|
-
color: textColor
|
|
69
|
-
};
|
|
70
|
-
});
|
|
71
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getOperationStyle", function (option) {
|
|
72
|
-
var textColor = option.textColor || null;
|
|
73
|
-
return {
|
|
74
|
-
height: '20px',
|
|
75
|
-
width: '16px',
|
|
76
|
-
cursor: 'pointer',
|
|
77
|
-
color: textColor === '#FFFFFF' ? '#FFFFFF' : '#909090',
|
|
78
|
-
transform: 'scale(.8)'
|
|
79
|
-
};
|
|
80
|
-
});
|
|
81
|
-
return _this;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
var _proto = SelectEditorOption.prototype;
|
|
85
|
-
|
|
86
|
-
_proto.render = function render() {
|
|
87
|
-
var _this$props = this.props,
|
|
88
|
-
option = _this$props.option,
|
|
89
|
-
isShowRemoveIcon = _this$props.isShowRemoveIcon;
|
|
90
|
-
var containerStyle = this.getContainerStyle();
|
|
91
|
-
var optionStyle = this.getOptionStyle(option);
|
|
92
|
-
var operationStyle = this.getOperationStyle(option);
|
|
93
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
94
|
-
className: "dtable-ui select-option-item",
|
|
95
|
-
style: containerStyle
|
|
96
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
97
|
-
className: "option-info",
|
|
98
|
-
style: optionStyle
|
|
99
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
100
|
-
className: "option-name"
|
|
101
|
-
}, option.name)), isShowRemoveIcon && /*#__PURE__*/_react.default.createElement("div", {
|
|
102
|
-
className: "option-remove",
|
|
103
|
-
style: operationStyle,
|
|
104
|
-
onClick: this.onDeleteOption
|
|
105
|
-
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
106
|
-
className: "dtable-font dtable-icon-fork-number",
|
|
107
|
-
style: {
|
|
108
|
-
fontSize: '12px',
|
|
109
|
-
lineHeight: '20px'
|
|
110
|
-
}
|
|
111
|
-
})));
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
return SelectEditorOption;
|
|
115
|
-
}(_react.default.Component);
|
|
116
|
-
|
|
117
|
-
(0, _defineProperty2.default)(SelectEditorOption, "defaultProps", {
|
|
118
|
-
isShowRemoveIcon: false
|
|
119
|
-
});
|
|
120
|
-
SelectEditorOption.propTypes = propTypes;
|
|
121
|
-
var _default = SelectEditorOption;
|
|
122
|
-
exports.default = _default;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
exports.__esModule = true;
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
9
|
-
|
|
10
|
-
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));
|
|
11
|
-
|
|
12
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
-
|
|
14
|
-
var _react = _interopRequireDefault(require("react"));
|
|
15
|
-
|
|
16
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
|
-
|
|
18
|
-
var propTypes = {
|
|
19
|
-
option: _propTypes.default.shape({
|
|
20
|
-
id: _propTypes.default.string.isRequired,
|
|
21
|
-
name: _propTypes.default.string.isRequired,
|
|
22
|
-
color: _propTypes.default.string.isRequired
|
|
23
|
-
}).isRequired,
|
|
24
|
-
fontSize: _propTypes.default.number
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
var SelectItem = /*#__PURE__*/function (_React$PureComponent) {
|
|
28
|
-
(0, _inheritsLoose2.default)(SelectItem, _React$PureComponent);
|
|
29
|
-
|
|
30
|
-
function SelectItem() {
|
|
31
|
-
var _this;
|
|
32
|
-
|
|
33
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
34
|
-
args[_key] = arguments[_key];
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
_this = _React$PureComponent.call.apply(_React$PureComponent, [this].concat(args)) || this;
|
|
38
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getStyle", function (option, fontSize) {
|
|
39
|
-
return {
|
|
40
|
-
display: 'inline-block',
|
|
41
|
-
padding: '0px 10px',
|
|
42
|
-
marginRight: '8px',
|
|
43
|
-
height: '20px',
|
|
44
|
-
lineHeight: '20px',
|
|
45
|
-
textAlign: 'center',
|
|
46
|
-
borderRadius: '10px',
|
|
47
|
-
fontSize: fontSize ? fontSize + "px" : '13px',
|
|
48
|
-
backgroundColor: option.color,
|
|
49
|
-
color: option.textColor || null
|
|
50
|
-
};
|
|
51
|
-
});
|
|
52
|
-
return _this;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
var _proto = SelectItem.prototype;
|
|
56
|
-
|
|
57
|
-
_proto.render = function render() {
|
|
58
|
-
var _this$props = this.props,
|
|
59
|
-
option = _this$props.option,
|
|
60
|
-
fontSize = _this$props.fontSize;
|
|
61
|
-
var style = this.getStyle(option, fontSize);
|
|
62
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
63
|
-
className: "dtable-ui select-item",
|
|
64
|
-
style: style
|
|
65
|
-
}, option.name);
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
return SelectItem;
|
|
69
|
-
}(_react.default.PureComponent);
|
|
70
|
-
|
|
71
|
-
SelectItem.propTypes = propTypes;
|
|
72
|
-
var _default = SelectItem;
|
|
73
|
-
exports.default = _default;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
exports.__esModule = true;
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
9
|
-
|
|
10
|
-
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));
|
|
11
|
-
|
|
12
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
-
|
|
14
|
-
var _react = _interopRequireDefault(require("react"));
|
|
15
|
-
|
|
16
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
|
-
|
|
18
|
-
var propTypes = {
|
|
19
|
-
isCheckRepeat: _propTypes.default.bool,
|
|
20
|
-
onFileUploadProgress: _propTypes.default.func,
|
|
21
|
-
onFileUploadSuccss: _propTypes.default.func,
|
|
22
|
-
onFileUploadFailed: _propTypes.default.func,
|
|
23
|
-
dtableWebAPI: _propTypes.default.object.isRequired
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
var FileUploader = /*#__PURE__*/function (_React$Component) {
|
|
27
|
-
(0, _inheritsLoose2.default)(FileUploader, _React$Component);
|
|
28
|
-
|
|
29
|
-
function FileUploader(props) {
|
|
30
|
-
var _this;
|
|
31
|
-
|
|
32
|
-
_this = _React$Component.call(this, props) || this;
|
|
33
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onFilesChanged", function () {});
|
|
34
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "uploadFiles", function (fileList, isMultiple) {
|
|
35
|
-
if (isMultiple === void 0) {
|
|
36
|
-
isMultiple = false;
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "checkRepeat", function () {});
|
|
40
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "cancelUploadFile", function () {});
|
|
41
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onFileUploadProgress", function () {});
|
|
42
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onFileUploadSuccss", function () {});
|
|
43
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onFileUploadFailed", function () {});
|
|
44
|
-
_this.state = {};
|
|
45
|
-
_this.uploadFiles = [];
|
|
46
|
-
return _this;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
var _proto = FileUploader.prototype;
|
|
50
|
-
|
|
51
|
-
_proto.render = function render() {
|
|
52
|
-
return /*#__PURE__*/_react.default.createElement("input", {
|
|
53
|
-
type: "file",
|
|
54
|
-
onChange: this.onFilesChanged
|
|
55
|
-
});
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
return FileUploader;
|
|
59
|
-
}(_react.default.Component);
|
|
60
|
-
|
|
61
|
-
FileUploader.propTypes = propTypes;
|
|
62
|
-
var _default = FileUploader;
|
|
63
|
-
exports.default = _default;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
exports.__esModule = true;
|
|
6
|
-
exports.default = Loading;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
require("../css/loading.css");
|
|
11
|
-
|
|
12
|
-
function Loading() {
|
|
13
|
-
return /*#__PURE__*/_react.default.createElement("span", {
|
|
14
|
-
className: "loading-icon loading-tip"
|
|
15
|
-
});
|
|
16
|
-
}
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
exports.__esModule = true;
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
-
|
|
10
|
-
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));
|
|
11
|
-
|
|
12
|
-
var _react = _interopRequireDefault(require("react"));
|
|
13
|
-
|
|
14
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
|
-
|
|
16
|
-
var _glamor = require("glamor");
|
|
17
|
-
|
|
18
|
-
var propTypes = {
|
|
19
|
-
intent: _propTypes.default.string.isRequired,
|
|
20
|
-
title: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.node]).isRequired,
|
|
21
|
-
onRemove: _propTypes.default.func.isRequired,
|
|
22
|
-
children: _propTypes.default.string,
|
|
23
|
-
isRemoveable: _propTypes.default.bool
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
var Alert = /*#__PURE__*/function (_React$PureComponent) {
|
|
27
|
-
(0, _inheritsLoose2.default)(Alert, _React$PureComponent);
|
|
28
|
-
|
|
29
|
-
function Alert(props) {
|
|
30
|
-
var _this;
|
|
31
|
-
|
|
32
|
-
_this = _React$PureComponent.call(this, props) || this;
|
|
33
|
-
_this.containerStyle = (0, _glamor.css)({
|
|
34
|
-
borderRadius: '3px',
|
|
35
|
-
backgroundColor: '#fff',
|
|
36
|
-
padding: '10px 16px',
|
|
37
|
-
display: 'flex',
|
|
38
|
-
boxSizing: 'border-box',
|
|
39
|
-
boxShadow: 'rgba(67, 90, 111, 0.3) 0px 0px 1px, rgba(67, 90, 111, 0.47) 0px 8px 10px -4px',
|
|
40
|
-
justifyContent: 'space-between',
|
|
41
|
-
flexDirection: 'row'
|
|
42
|
-
});
|
|
43
|
-
_this.containerBorderSuccess = (0, _glamor.css)({
|
|
44
|
-
borderLeft: '3px solid rgb(71, 184, 129)'
|
|
45
|
-
});
|
|
46
|
-
_this.containerBorderWarn = (0, _glamor.css)({
|
|
47
|
-
borderLeft: '3px solid rgb(217, 130, 43)'
|
|
48
|
-
});
|
|
49
|
-
_this.containerBorderDanger = (0, _glamor.css)({
|
|
50
|
-
borderLeft: '3px solid rgb(236, 76, 71)'
|
|
51
|
-
});
|
|
52
|
-
_this.containerBorderNotify = (0, _glamor.css)({
|
|
53
|
-
borderLeft: '3px solid rgb(16, 112, 202)'
|
|
54
|
-
});
|
|
55
|
-
_this.toastTextTitle = (0, _glamor.css)({
|
|
56
|
-
fontWeight: '600',
|
|
57
|
-
fontSize: '14px',
|
|
58
|
-
color: '#435a6f',
|
|
59
|
-
margin: '0'
|
|
60
|
-
});
|
|
61
|
-
_this.toastTextChild = (0, _glamor.css)({
|
|
62
|
-
fontSize: '14px',
|
|
63
|
-
color: '#999',
|
|
64
|
-
margin: '0'
|
|
65
|
-
});
|
|
66
|
-
_this.toastClose = (0, _glamor.css)({
|
|
67
|
-
marginLeft: '15px',
|
|
68
|
-
height: '24px',
|
|
69
|
-
width: '24px',
|
|
70
|
-
lineHeight: '22px',
|
|
71
|
-
fontWeight: '700',
|
|
72
|
-
textAlign: 'center',
|
|
73
|
-
fontSize: '20px',
|
|
74
|
-
color: '#000',
|
|
75
|
-
cursor: 'pointer',
|
|
76
|
-
opacity: '0.5',
|
|
77
|
-
':hover': {
|
|
78
|
-
opacity: 1
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
_this.toastIcon = (0, _glamor.css)({
|
|
82
|
-
marginRight: '10px',
|
|
83
|
-
width: '14px',
|
|
84
|
-
height: '20px',
|
|
85
|
-
lineHeight: '20px'
|
|
86
|
-
});
|
|
87
|
-
return _this;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
var _proto = Alert.prototype;
|
|
91
|
-
|
|
92
|
-
_proto.getContainerStyle = function getContainerStyle(intent) {
|
|
93
|
-
switch (intent) {
|
|
94
|
-
case 'success':
|
|
95
|
-
return {
|
|
96
|
-
borderStyle: this.containerBorderSuccess,
|
|
97
|
-
iconColor: (0, _glamor.css)({
|
|
98
|
-
color: 'rgb(71, 184, 129)'
|
|
99
|
-
}),
|
|
100
|
-
iconClass: 'dtable-font dtable-icon-check-circle'
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
case 'warning':
|
|
104
|
-
return {
|
|
105
|
-
borderStyle: this.containerBorderWarn,
|
|
106
|
-
iconColor: (0, _glamor.css)({
|
|
107
|
-
color: 'rgb(217, 130, 43)'
|
|
108
|
-
}),
|
|
109
|
-
iconClass: 'dtable-font dtable-icon-exclamation-triangle'
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
case 'none':
|
|
113
|
-
return {
|
|
114
|
-
borderStyle: this.containerBorderNotify,
|
|
115
|
-
iconColor: (0, _glamor.css)({
|
|
116
|
-
color: 'rgb(16, 112, 202)'
|
|
117
|
-
}),
|
|
118
|
-
iconClass: 'dtable-font dtable-icon-exclamation-circle'
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
case 'danger':
|
|
122
|
-
return {
|
|
123
|
-
borderStyle: this.containerBorderDanger,
|
|
124
|
-
iconColor: (0, _glamor.css)({
|
|
125
|
-
color: 'rgb(236, 76, 71)'
|
|
126
|
-
}),
|
|
127
|
-
iconClass: 'dtable-font dtable-icon-exclamation-circle'
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
default:
|
|
131
|
-
return {
|
|
132
|
-
borderStyle: this.containerBorderSuccess,
|
|
133
|
-
iconColor: (0, _glamor.css)({
|
|
134
|
-
color: 'rgb(71, 184, 129)'
|
|
135
|
-
}),
|
|
136
|
-
iconClass: 'dtable-font dtable-icon-check-circle'
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
_proto.render = function render() {
|
|
142
|
-
var toastStyle = this.getContainerStyle(this.props.intent);
|
|
143
|
-
return /*#__PURE__*/_react.default.createElement("div", (0, _glamor.css)(toastStyle.borderStyle, this.containerStyle), /*#__PURE__*/_react.default.createElement("div", {
|
|
144
|
-
className: this.toastIcon
|
|
145
|
-
}, /*#__PURE__*/_react.default.createElement("i", (0, _extends2.default)({
|
|
146
|
-
className: toastStyle.iconClass
|
|
147
|
-
}, toastStyle.iconColor))), /*#__PURE__*/_react.default.createElement("div", {
|
|
148
|
-
className: this.toastTextContainer
|
|
149
|
-
}, /*#__PURE__*/_react.default.createElement("p", {
|
|
150
|
-
className: this.toastTextTitle
|
|
151
|
-
}, this.props.title), this.props.children ? /*#__PURE__*/_react.default.createElement("p", {
|
|
152
|
-
className: this.toastTextChild
|
|
153
|
-
}, this.props.children) : null), this.props.isRemoveable && /*#__PURE__*/_react.default.createElement("div", {
|
|
154
|
-
onClick: this.props.onRemove,
|
|
155
|
-
className: this.toastClose
|
|
156
|
-
}, /*#__PURE__*/_react.default.createElement("span", null, "\xD7")));
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
return Alert;
|
|
160
|
-
}(_react.default.PureComponent);
|
|
161
|
-
|
|
162
|
-
Alert.propTypes = propTypes;
|
|
163
|
-
var _default = Alert;
|
|
164
|
-
exports.default = _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
exports.__esModule = true;
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _toaster = _interopRequireDefault(require("./toaster"));
|
|
9
|
-
|
|
10
|
-
var toaster = new _toaster.default();
|
|
11
|
-
var _default = toaster;
|
|
12
|
-
exports.default = _default;
|