dtable-ui-component 0.1.75-beta2 → 0.1.75-beta3
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/es/AutoNumberFormatter/index.css +1 -0
- package/es/AutoNumberFormatter/index.js +36 -0
- package/es/ButtonFormatter/index.css +13 -0
- package/es/ButtonFormatter/index.js +56 -0
- package/es/CTimeFormatter/index.css +1 -0
- package/es/CTimeFormatter/index.js +58 -0
- package/es/CheckboxFormatter/index.css +1 -0
- package/es/CheckboxFormatter/index.js +45 -0
- package/es/CollaboratorFormatter/index.css +1 -0
- package/es/CollaboratorFormatter/index.js +91 -0
- package/es/CollaboratorItem/index.css +49 -0
- package/es/CollaboratorItem/index.js +64 -0
- package/es/CreatorFormatter/index.css +1 -0
- package/es/CreatorFormatter/index.js +87 -0
- package/es/DateFormatter/index.css +1 -0
- package/es/DateFormatter/index.js +60 -0
- package/es/DurationFormatter/index.css +1 -0
- package/es/DurationFormatter/index.js +38 -0
- package/es/EmailFormatter/index.css +5 -0
- package/es/EmailFormatter/index.js +36 -0
- package/es/FileFormatter/index.css +29 -0
- package/es/FileFormatter/index.js +64 -0
- package/es/FileItemFormatter/index.js +50 -0
- package/es/FileUploader/index.js +53 -0
- package/es/FormulaFormatter/index.css +19 -0
- package/es/FormulaFormatter/index.js +164 -0
- package/es/GeolocationFormatter/index.css +1 -0
- package/es/GeolocationFormatter/index.js +53 -0
- package/es/ImageFormatter/images-lazy-load.js +150 -0
- package/es/ImageFormatter/index.css +34 -0
- package/es/ImageFormatter/index.js +154 -0
- package/es/ImagePreviewerLightbox/index.css +87 -0
- package/es/ImagePreviewerLightbox/index.js +119 -0
- package/es/LastModifierFormatter/index.css +1 -0
- package/es/LastModifierFormatter/index.js +87 -0
- package/es/LinkFormatter/index.css +27 -0
- package/es/LinkFormatter/index.js +144 -0
- package/es/Loading/index.css +54 -0
- package/es/Loading/index.js +7 -0
- package/es/LongTextFormatter/html-long-text-formatter.js +96 -0
- package/es/LongTextFormatter/index.css +63 -0
- package/es/LongTextFormatter/index.js +29 -0
- package/es/LongTextFormatter/simple-long-text-formatter.js +104 -0
- package/es/MTimeFormatter/index.css +1 -0
- package/es/MTimeFormatter/index.js +58 -0
- package/es/ModalPortal/index.js +44 -0
- package/es/MultipleSelectFormatter/index.css +1 -0
- package/es/MultipleSelectFormatter/index.js +70 -0
- package/es/NumberFormatter/index.css +1 -0
- package/es/NumberFormatter/index.js +47 -0
- package/es/RateFormatter/index.css +1 -0
- package/es/RateFormatter/index.js +80 -0
- package/es/SelectItem/index.js +58 -0
- package/es/SingleSelectFormatter/index.css +1 -0
- package/es/SingleSelectFormatter/index.js +70 -0
- package/es/TextFormatter/index.css +1 -0
- package/es/TextFormatter/index.js +56 -0
- package/es/UrlFormatter/index.css +5 -0
- package/es/UrlFormatter/index.js +36 -0
- package/es/app.css +20 -0
- package/es/app.js +91 -0
- package/es/assets/images/avatar/default_avatar.png +0 -0
- package/es/assets/images/file/192/excel.png +0 -0
- package/es/assets/images/file/192/file.png +0 -0
- package/es/assets/images/file/192/music.png +0 -0
- package/es/assets/images/file/192/pdf.png +0 -0
- package/es/assets/images/file/192/pic.png +0 -0
- package/es/assets/images/file/192/ppt.png +0 -0
- package/es/assets/images/file/192/txt.png +0 -0
- package/es/assets/images/file/192/video.png +0 -0
- package/es/assets/images/file/192/word.png +0 -0
- package/es/assets/images/file/24/excel.png +0 -0
- package/es/assets/images/file/24/file.png +0 -0
- package/es/assets/images/file/24/music.png +0 -0
- package/es/assets/images/file/24/pdf.png +0 -0
- package/es/assets/images/file/24/pic.png +0 -0
- package/es/assets/images/file/24/ppt.png +0 -0
- package/es/assets/images/file/24/txt.png +0 -0
- package/es/assets/images/file/24/video.png +0 -0
- package/es/assets/images/file/24/word.png +0 -0
- package/es/assets/images/folder/folder-192.png +0 -0
- package/es/assets/images/folder/folder-24.png +0 -0
- package/es/cellFormatterFactory/index.js +25 -0
- package/es/components/cell-editor/checkbox-editor.js +104 -0
- package/es/components/cell-editor/collaborator-editor.js +236 -0
- package/es/components/cell-editor/date-editor.js +151 -0
- package/es/components/cell-editor/index.js +9 -0
- package/es/components/cell-editor/link-editor.js +303 -0
- package/es/components/cell-editor/multiple-select-editor.js +237 -0
- package/es/components/cell-editor/number-editor.js +154 -0
- package/es/components/cell-editor/single-select-editor.js +202 -0
- package/es/components/cell-editor/text-editor.js +122 -0
- package/es/components/cell-editor-dialog/pc-file-editor-dialog.js +46 -0
- package/es/components/cell-editor-dialog/pc-files-addition/index.js +0 -0
- package/es/components/cell-editor-dialog/pc-files-addition/pc-file-uploaded-item.js +0 -0
- package/es/components/cell-editor-dialog/pc-files-preview/index.js +0 -0
- package/es/components/cell-editor-dialog/pc-files-preview/pc-file-item-preview.js +0 -0
- package/es/components/cell-editor-popover/mb-collaborator-editor-popover.js +177 -0
- package/es/components/cell-editor-popover/mb-date-editor-popover.js +245 -0
- package/es/components/cell-editor-popover/mb-link-editor-popover.js +170 -0
- package/es/components/cell-editor-popover/mb-select-editor-popover.js +230 -0
- package/es/components/cell-editor-popover/pc-collaborator-editor-popover.js +109 -0
- package/es/components/cell-editor-popover/pc-date-editor-popover.js +142 -0
- package/es/components/cell-editor-popover/pc-link-editor-popover.js +114 -0
- package/es/components/cell-editor-popover/pc-select-editor-popover.js +143 -0
- package/es/components/common/collaborator-item.js +63 -0
- package/es/components/common/edit-editor-button.js +56 -0
- package/es/components/common/link-editor-option.js +113 -0
- package/es/components/common/mobile/mb-editor-header.js +48 -0
- package/es/components/common/select-editor-option.js +106 -0
- package/es/constants/cell-types.js +25 -0
- package/es/constants/index.js +49 -0
- package/es/css/cell-editor.css +614 -0
- package/es/css/cell-formatter.css +4 -0
- package/es/css/custom-rc-calendar.css +118 -0
- package/es/formatterConfig/index.js +31 -0
- package/es/index.js +31 -0
- package/es/lang/index.js +50 -0
- package/es/locals/de.js +2 -0
- package/es/locals/en.js +17 -0
- package/es/locals/fr.js +2 -0
- package/es/locals/zh-CN.js +17 -0
- package/{lib/toast → es/toaster}/alert.js +0 -0
- package/{lib/toast → es/toaster}/index.js +0 -0
- package/{lib/toast → es/toaster}/toast.js +0 -0
- package/{lib/toast → es/toaster}/toastManager.js +0 -0
- package/{lib/toast → es/toaster}/toaster.js +0 -0
- package/es/utils/cell-value-validator.js +31 -0
- package/es/utils/column-utils.js +7 -0
- package/es/utils/editor-utils.js +71 -0
- package/es/utils/markdown2html.js +62 -0
- package/es/utils/normalize-long-text-value.js +69 -0
- package/es/utils/number-precision.js +164 -0
- package/es/utils/unified/index.js +470 -0
- package/es/utils/utils.js +116 -0
- package/es/utils/value-format-utils.js +497 -0
- package/es/utils/vfile/core.js +172 -0
- package/es/utils/vfile/index.js +48 -0
- package/lib/AutoNumberFormatter/index.js +38 -27
- package/lib/ButtonFormatter/index.js +59 -47
- package/lib/CTimeFormatter/index.js +53 -39
- package/lib/CheckboxFormatter/index.js +48 -35
- package/lib/CollaboratorFormatter/index.js +64 -42
- package/lib/CollaboratorItem/index.js +61 -44
- package/lib/CreatorFormatter/index.js +62 -42
- package/lib/DateFormatter/index.js +55 -40
- package/lib/DurationFormatter/index.js +42 -29
- package/lib/EmailFormatter/index.js +38 -27
- package/lib/FileFormatter/index.js +65 -50
- package/lib/FileItemFormatter/index.js +44 -31
- package/lib/FileUploader/index.js +44 -34
- package/lib/FormulaFormatter/index.js +102 -81
- package/lib/GeolocationFormatter/index.js +50 -35
- package/lib/ImageFormatter/images-lazy-load.js +81 -73
- package/lib/ImageFormatter/index.js +109 -90
- package/lib/ImagePreviewerLightbox/index.js +60 -27
- package/lib/LastModifierFormatter/index.js +62 -42
- package/lib/LinkFormatter/index.js +80 -59
- package/lib/Loading/index.js +13 -4
- package/lib/LongTextFormatter/html-long-text-formatter.js +60 -49
- package/lib/LongTextFormatter/index.js +28 -9
- package/lib/LongTextFormatter/simple-long-text-formatter.js +58 -52
- package/lib/MTimeFormatter/index.js +53 -39
- package/lib/ModalPortal/index.js +37 -30
- package/lib/MultipleSelectFormatter/index.js +55 -39
- package/lib/NumberFormatter/index.js +50 -35
- package/lib/RateFormatter/index.js +52 -37
- package/lib/SelectItem/index.js +46 -31
- package/lib/SingleSelectFormatter/index.js +54 -38
- package/lib/TextFormatter/index.js +44 -31
- package/lib/UrlFormatter/index.js +38 -27
- package/lib/app.js +80 -75
- package/lib/cellFormatterFactory/index.js +20 -17
- package/lib/components/cell-editor/checkbox-editor.js +66 -59
- package/lib/components/cell-editor/collaborator-editor.js +126 -113
- package/lib/components/cell-editor/date-editor.js +119 -99
- package/lib/components/cell-editor/index.js +40 -9
- package/lib/components/cell-editor/link-editor.js +140 -122
- package/lib/components/cell-editor/multiple-select-editor.js +127 -114
- package/lib/components/cell-editor/number-editor.js +86 -78
- package/lib/components/cell-editor/single-select-editor.js +120 -106
- package/lib/components/cell-editor/text-editor.js +72 -65
- package/lib/components/cell-editor-dialog/pc-file-editor-dialog.js +51 -31
- package/lib/components/cell-editor-dialog/pc-files-addition/index.js +1 -0
- package/lib/components/cell-editor-dialog/pc-files-addition/pc-file-uploaded-item.js +1 -0
- package/lib/components/cell-editor-dialog/pc-files-preview/index.js +1 -0
- package/lib/components/cell-editor-dialog/pc-files-preview/pc-file-item-preview.js +1 -0
- package/lib/components/cell-editor-popover/mb-collaborator-editor-popover.js +111 -105
- package/lib/components/cell-editor-popover/mb-date-editor-popover.js +157 -140
- package/lib/components/cell-editor-popover/mb-link-editor-popover.js +109 -103
- package/lib/components/cell-editor-popover/mb-select-editor-popover.js +155 -142
- package/lib/components/cell-editor-popover/pc-collaborator-editor-popover.js +89 -74
- package/lib/components/cell-editor-popover/pc-date-editor-popover.js +102 -88
- package/lib/components/cell-editor-popover/pc-link-editor-popover.js +91 -77
- package/lib/components/cell-editor-popover/pc-select-editor-popover.js +105 -91
- package/lib/components/common/collaborator-item.js +59 -43
- package/lib/components/common/edit-editor-button.js +39 -28
- package/lib/components/common/link-editor-option.js +71 -63
- package/lib/components/common/mobile/mb-editor-header.js +52 -39
- package/lib/components/common/select-editor-option.js +74 -58
- package/lib/constants/cell-types.js +54 -25
- package/lib/constants/index.js +28 -5
- package/lib/formatterConfig/index.js +59 -28
- package/lib/index.js +139 -31
- package/lib/lang/index.js +27 -11
- package/lib/locals/de.js +6 -1
- package/lib/locals/en.js +6 -1
- package/lib/locals/fr.js +6 -1
- package/lib/locals/zh-CN.js +6 -1
- package/lib/toaster/alert.js +164 -0
- package/lib/toaster/index.js +12 -0
- package/lib/toaster/toast.js +223 -0
- package/lib/toaster/toastManager.js +189 -0
- package/lib/toaster/toaster.js +92 -0
- package/lib/utils/cell-value-validator.js +9 -5
- package/lib/utils/column-utils.js +13 -5
- package/lib/utils/editor-utils.js +13 -3
- package/lib/utils/markdown2html.js +7 -1
- package/lib/utils/normalize-long-text-value.js +6 -1
- package/lib/utils/number-precision.js +32 -13
- package/lib/utils/utils.js +33 -8
- package/lib/utils/value-format-utils.js +110 -58
- package/package.json +5 -5
|
@@ -1,48 +1,61 @@
|
|
|
1
|
-
|
|
2
|
-
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
-
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
|
-
import React from 'react';
|
|
1
|
+
"use strict";
|
|
6
2
|
|
|
7
|
-
var
|
|
8
|
-
_inherits(MBEditorHeader, _React$Component);
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
9
4
|
|
|
10
|
-
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.default = void 0;
|
|
11
7
|
|
|
12
|
-
|
|
13
|
-
|
|
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
|
+
};
|
|
14
22
|
|
|
15
|
-
|
|
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;
|
|
16
28
|
}
|
|
17
29
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}]);
|
|
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
|
+
};
|
|
44
55
|
|
|
45
56
|
return MBEditorHeader;
|
|
46
|
-
}(
|
|
57
|
+
}(_react.default.Component);
|
|
47
58
|
|
|
48
|
-
|
|
59
|
+
MBEditorHeader.propTypes = propTypes;
|
|
60
|
+
var _default = MBEditorHeader;
|
|
61
|
+
exports.default = _default;
|
|
@@ -1,33 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
-
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
|
-
import React from 'react';
|
|
1
|
+
"use strict";
|
|
6
2
|
|
|
7
|
-
var
|
|
8
|
-
|
|
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"));
|
|
9
13
|
|
|
10
|
-
|
|
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);
|
|
11
33
|
|
|
12
34
|
function SelectEditorOption() {
|
|
13
35
|
var _this;
|
|
14
36
|
|
|
15
|
-
_classCallCheck(this, SelectEditorOption);
|
|
16
|
-
|
|
17
37
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
18
38
|
args[_key] = arguments[_key];
|
|
19
39
|
}
|
|
20
40
|
|
|
21
|
-
_this =
|
|
22
|
-
|
|
23
|
-
_this.onDeleteOption = function (event) {
|
|
41
|
+
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
|
42
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onDeleteOption", function (event) {
|
|
24
43
|
event.nativeEvent.stopImmediatePropagation();
|
|
25
44
|
event.stopPropagation();
|
|
26
45
|
|
|
27
46
|
_this.props.onDeleteSelectOption(_this.props.option);
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
_this.getContainerStyle = function () {
|
|
47
|
+
});
|
|
48
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getContainerStyle", function () {
|
|
31
49
|
var option = _this.props.option;
|
|
32
50
|
return {
|
|
33
51
|
display: 'inline-flex',
|
|
@@ -39,9 +57,8 @@ var SelectEditorOption = /*#__PURE__*/function (_React$Component) {
|
|
|
39
57
|
fontSize: '13px',
|
|
40
58
|
backgroundColor: option.color
|
|
41
59
|
};
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
_this.getOptionStyle = function (option) {
|
|
60
|
+
});
|
|
61
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getOptionStyle", function (option) {
|
|
45
62
|
var textColor = option.textColor || null;
|
|
46
63
|
return {
|
|
47
64
|
flex: 1,
|
|
@@ -50,9 +67,8 @@ var SelectEditorOption = /*#__PURE__*/function (_React$Component) {
|
|
|
50
67
|
margin: '0 4px 0 2px',
|
|
51
68
|
color: textColor
|
|
52
69
|
};
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
_this.getOperationStyle = function (option) {
|
|
70
|
+
});
|
|
71
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getOperationStyle", function (option) {
|
|
56
72
|
var textColor = option.textColor || null;
|
|
57
73
|
return {
|
|
58
74
|
height: '20px',
|
|
@@ -61,46 +77,46 @@ var SelectEditorOption = /*#__PURE__*/function (_React$Component) {
|
|
|
61
77
|
color: textColor === '#FFFFFF' ? '#FFFFFF' : '#909090',
|
|
62
78
|
transform: 'scale(.8)'
|
|
63
79
|
};
|
|
64
|
-
};
|
|
65
|
-
|
|
80
|
+
});
|
|
66
81
|
return _this;
|
|
67
82
|
}
|
|
68
83
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}]);
|
|
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
|
+
};
|
|
99
113
|
|
|
100
114
|
return SelectEditorOption;
|
|
101
|
-
}(
|
|
115
|
+
}(_react.default.Component);
|
|
102
116
|
|
|
103
|
-
SelectEditorOption
|
|
117
|
+
(0, _defineProperty2.default)(SelectEditorOption, "defaultProps", {
|
|
104
118
|
isShowRemoveIcon: false
|
|
105
|
-
};
|
|
106
|
-
|
|
119
|
+
});
|
|
120
|
+
SelectEditorOption.propTypes = propTypes;
|
|
121
|
+
var _default = SelectEditorOption;
|
|
122
|
+
exports.default = _default;
|
|
@@ -1,25 +1,54 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.URL = exports.TEXT = exports.SINGLE_SELECT = exports.RATE = exports.NUMBER = exports.MULTIPLE_SELECT = exports.MTIME = exports.LONG_TEXT = exports.LINK_FORMULA = exports.LINK = exports.LAST_MODIFIER = exports.IMAGE = exports.GEOLOCATION = exports.FORMULA = exports.FILE = exports.EMAIL = exports.DURATION = exports.DEFAULT = exports.DATE = exports.CTIME = exports.CREATOR = exports.COLLABORATOR = exports.CHECKBOX = exports.BUTTON = exports.AUTO_NUMBER = void 0;
|
|
5
|
+
var DEFAULT = 'default';
|
|
6
|
+
exports.DEFAULT = DEFAULT;
|
|
7
|
+
var NUMBER = 'number';
|
|
8
|
+
exports.NUMBER = NUMBER;
|
|
9
|
+
var TEXT = 'text';
|
|
10
|
+
exports.TEXT = TEXT;
|
|
11
|
+
var CHECKBOX = 'checkbox';
|
|
12
|
+
exports.CHECKBOX = CHECKBOX;
|
|
13
|
+
var DATE = 'date';
|
|
14
|
+
exports.DATE = DATE;
|
|
15
|
+
var SINGLE_SELECT = 'single-select';
|
|
16
|
+
exports.SINGLE_SELECT = SINGLE_SELECT;
|
|
17
|
+
var LONG_TEXT = 'long-text';
|
|
18
|
+
exports.LONG_TEXT = LONG_TEXT;
|
|
19
|
+
var IMAGE = 'image';
|
|
20
|
+
exports.IMAGE = IMAGE;
|
|
21
|
+
var FILE = 'file';
|
|
22
|
+
exports.FILE = FILE;
|
|
23
|
+
var MULTIPLE_SELECT = 'multiple-select';
|
|
24
|
+
exports.MULTIPLE_SELECT = MULTIPLE_SELECT;
|
|
25
|
+
var COLLABORATOR = 'collaborator';
|
|
26
|
+
exports.COLLABORATOR = COLLABORATOR;
|
|
27
|
+
var LINK = 'link';
|
|
28
|
+
exports.LINK = LINK;
|
|
29
|
+
var FORMULA = 'formula';
|
|
30
|
+
exports.FORMULA = FORMULA;
|
|
31
|
+
var LINK_FORMULA = 'link-formula';
|
|
32
|
+
exports.LINK_FORMULA = LINK_FORMULA;
|
|
33
|
+
var CREATOR = 'creator';
|
|
34
|
+
exports.CREATOR = CREATOR;
|
|
35
|
+
var CTIME = 'ctime';
|
|
36
|
+
exports.CTIME = CTIME;
|
|
37
|
+
var LAST_MODIFIER = 'last-modifier';
|
|
38
|
+
exports.LAST_MODIFIER = LAST_MODIFIER;
|
|
39
|
+
var MTIME = 'mtime';
|
|
40
|
+
exports.MTIME = MTIME;
|
|
41
|
+
var GEOLOCATION = 'geolocation';
|
|
42
|
+
exports.GEOLOCATION = GEOLOCATION;
|
|
43
|
+
var AUTO_NUMBER = 'auto-number';
|
|
44
|
+
exports.AUTO_NUMBER = AUTO_NUMBER;
|
|
45
|
+
var URL = 'url';
|
|
46
|
+
exports.URL = URL;
|
|
47
|
+
var EMAIL = 'email';
|
|
48
|
+
exports.EMAIL = EMAIL;
|
|
49
|
+
var DURATION = 'duration';
|
|
50
|
+
exports.DURATION = DURATION;
|
|
51
|
+
var RATE = 'rate';
|
|
52
|
+
exports.RATE = RATE;
|
|
53
|
+
var BUTTON = 'button';
|
|
54
|
+
exports.BUTTON = BUTTON;
|
package/lib/constants/index.js
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.SIMPLE_CELL_FORMULA_RESULTS = exports.SIMPLE_CELL_COLUMNS = exports.NUMBER_TYPES = exports.FORMULA_RESULT_TYPE = exports.DURATION_ZERO_DISPLAY = exports.DURATION_FORMATS_MAP = exports.DURATION_FORMATS = exports.DURATION_DECIMAL_DIGITS = exports.DEFAULT_NUMBER_FORMAT = exports.DEFAULT_DATE_FORMAT = exports.DATE_TYPES = exports.CellType = exports.COLLABORATOR_COLUMN_TYPES = exports.ARRAY_FORMAL_COLUMNS_TYPES = exports.ARRAY_FORMAL_COLUMNS = void 0;
|
|
5
|
+
|
|
6
|
+
var CellType = _interopRequireWildcard(require("./cell-types"));
|
|
7
|
+
|
|
8
|
+
exports.CellType = CellType;
|
|
2
9
|
|
|
3
10
|
var _DURATION_ZERO_DISPLA, _DURATION_DECIMAL_DIG;
|
|
4
11
|
|
|
5
|
-
|
|
12
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
|
+
|
|
14
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
+
|
|
6
16
|
var NUMBER_TYPES = {
|
|
7
17
|
'NUMBER': 'number',
|
|
8
18
|
'NUMBER_WITH_COMMAS': 'number-with-commas',
|
|
@@ -11,6 +21,7 @@ var NUMBER_TYPES = {
|
|
|
11
21
|
'EURO': 'euro',
|
|
12
22
|
'DOLLAR': 'dollar'
|
|
13
23
|
};
|
|
24
|
+
exports.NUMBER_TYPES = NUMBER_TYPES;
|
|
14
25
|
var DATE_TYPES = {
|
|
15
26
|
'D/M/YYYY': 'D/M/YYYY',
|
|
16
27
|
'D/M/YYYY HH:mm': 'D/M/YYYY HH:mm',
|
|
@@ -19,6 +30,7 @@ var DATE_TYPES = {
|
|
|
19
30
|
'YYYY-MM-DD': 'YYYY-MM-DD',
|
|
20
31
|
'YYYY-MM-DD HH:mm': 'YYYY-MM-DD HH:mm'
|
|
21
32
|
};
|
|
33
|
+
exports.DATE_TYPES = DATE_TYPES;
|
|
22
34
|
var FORMULA_RESULT_TYPE = {
|
|
23
35
|
NUMBER: 'number',
|
|
24
36
|
STRING: 'string',
|
|
@@ -26,17 +38,26 @@ var FORMULA_RESULT_TYPE = {
|
|
|
26
38
|
BOOL: 'bool',
|
|
27
39
|
ARRAY: 'array'
|
|
28
40
|
};
|
|
41
|
+
exports.FORMULA_RESULT_TYPE = FORMULA_RESULT_TYPE;
|
|
29
42
|
var SIMPLE_CELL_COLUMNS = [CellType.TEXT, CellType.NUMBER, CellType.DATE, CellType.CTIME, CellType.MTIME, CellType.GEOLOCATION, CellType.AUTO_NUMBER, CellType.URL, CellType.EMAIL, CellType.DURATION, CellType.CHECKBOX, CellType.RATE];
|
|
43
|
+
exports.SIMPLE_CELL_COLUMNS = SIMPLE_CELL_COLUMNS;
|
|
30
44
|
var ARRAY_FORMAL_COLUMNS = [CellType.IMAGE, CellType.FILE, CellType.MULTIPLE_SELECT, CellType.COLLABORATOR];
|
|
45
|
+
exports.ARRAY_FORMAL_COLUMNS = ARRAY_FORMAL_COLUMNS;
|
|
31
46
|
var SIMPLE_CELL_FORMULA_RESULTS = [FORMULA_RESULT_TYPE.NUMBER, FORMULA_RESULT_TYPE.STRING, FORMULA_RESULT_TYPE.DATE, FORMULA_RESULT_TYPE.BOOL];
|
|
47
|
+
exports.SIMPLE_CELL_FORMULA_RESULTS = SIMPLE_CELL_FORMULA_RESULTS;
|
|
32
48
|
var COLLABORATOR_COLUMN_TYPES = [CellType.COLLABORATOR, CellType.CREATOR, CellType.LAST_MODIFIER];
|
|
49
|
+
exports.COLLABORATOR_COLUMN_TYPES = COLLABORATOR_COLUMN_TYPES;
|
|
33
50
|
var ARRAY_FORMAL_COLUMNS_TYPES = [CellType.IMAGE, CellType.FILE, CellType.MULTIPLE_SELECT, CellType.COLLABORATOR];
|
|
51
|
+
exports.ARRAY_FORMAL_COLUMNS_TYPES = ARRAY_FORMAL_COLUMNS_TYPES;
|
|
34
52
|
var DEFAULT_NUMBER_FORMAT = 'number';
|
|
53
|
+
exports.DEFAULT_NUMBER_FORMAT = DEFAULT_NUMBER_FORMAT;
|
|
35
54
|
var DEFAULT_DATE_FORMAT = 'YYYY-MM-DD';
|
|
55
|
+
exports.DEFAULT_DATE_FORMAT = DEFAULT_DATE_FORMAT;
|
|
36
56
|
var DURATION_FORMATS_MAP = {
|
|
37
57
|
H_MM: 'h:mm',
|
|
38
58
|
H_MM_SS: 'h:mm:ss'
|
|
39
59
|
};
|
|
60
|
+
exports.DURATION_FORMATS_MAP = DURATION_FORMATS_MAP;
|
|
40
61
|
var DURATION_FORMATS = [{
|
|
41
62
|
name: DURATION_FORMATS_MAP.H_MM,
|
|
42
63
|
type: DURATION_FORMATS_MAP.H_MM
|
|
@@ -44,6 +65,8 @@ var DURATION_FORMATS = [{
|
|
|
44
65
|
name: DURATION_FORMATS_MAP.H_MM_SS,
|
|
45
66
|
type: DURATION_FORMATS_MAP.H_MM_SS
|
|
46
67
|
}];
|
|
47
|
-
|
|
48
|
-
var
|
|
49
|
-
|
|
68
|
+
exports.DURATION_FORMATS = DURATION_FORMATS;
|
|
69
|
+
var DURATION_ZERO_DISPLAY = (_DURATION_ZERO_DISPLA = {}, _DURATION_ZERO_DISPLA[DURATION_FORMATS_MAP.H_MM] = '0:00', _DURATION_ZERO_DISPLA[DURATION_FORMATS_MAP.H_MM_SS] = '0:00', _DURATION_ZERO_DISPLA);
|
|
70
|
+
exports.DURATION_ZERO_DISPLAY = DURATION_ZERO_DISPLAY;
|
|
71
|
+
var DURATION_DECIMAL_DIGITS = (_DURATION_DECIMAL_DIG = {}, _DURATION_DECIMAL_DIG[DURATION_FORMATS_MAP.H_MM] = 0, _DURATION_DECIMAL_DIG[DURATION_FORMATS_MAP.H_MM_SS] = 0, _DURATION_DECIMAL_DIG);
|
|
72
|
+
exports.DURATION_DECIMAL_DIGITS = DURATION_DECIMAL_DIGITS;
|
|
@@ -1,31 +1,62 @@
|
|
|
1
|
-
|
|
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 _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _constants = require("../constants");
|
|
11
|
+
|
|
12
|
+
var _CheckboxFormatter = _interopRequireDefault(require("../CheckboxFormatter"));
|
|
13
|
+
|
|
14
|
+
var _ImageFormatter = _interopRequireDefault(require("../ImageFormatter"));
|
|
15
|
+
|
|
16
|
+
var _LongTextFormatter = _interopRequireDefault(require("../LongTextFormatter"));
|
|
17
|
+
|
|
18
|
+
var _TextFormatter = _interopRequireDefault(require("../TextFormatter"));
|
|
19
|
+
|
|
20
|
+
var _SingleSelectFormatter = _interopRequireDefault(require("../SingleSelectFormatter"));
|
|
21
|
+
|
|
22
|
+
var _MultipleSelectFormatter = _interopRequireDefault(require("../MultipleSelectFormatter"));
|
|
23
|
+
|
|
24
|
+
var _FileFormatter = _interopRequireDefault(require("../FileFormatter"));
|
|
25
|
+
|
|
26
|
+
var _LinkFormatter = _interopRequireDefault(require("../LinkFormatter"));
|
|
27
|
+
|
|
28
|
+
var _CollaboratorFormatter = _interopRequireDefault(require("../CollaboratorFormatter"));
|
|
29
|
+
|
|
30
|
+
var _NumberFormatter = _interopRequireDefault(require("../NumberFormatter"));
|
|
31
|
+
|
|
32
|
+
var _DateFormatter = _interopRequireDefault(require("../DateFormatter"));
|
|
33
|
+
|
|
34
|
+
var _CreatorFormatter = _interopRequireDefault(require("../CreatorFormatter"));
|
|
35
|
+
|
|
36
|
+
var _CTimeFormatter = _interopRequireDefault(require("../CTimeFormatter"));
|
|
37
|
+
|
|
38
|
+
var _LastModifierFormatter = _interopRequireDefault(require("../LastModifierFormatter"));
|
|
39
|
+
|
|
40
|
+
var _MTimeFormatter = _interopRequireDefault(require("../MTimeFormatter"));
|
|
41
|
+
|
|
42
|
+
var _GeolocationFormatter = _interopRequireDefault(require("../GeolocationFormatter"));
|
|
43
|
+
|
|
44
|
+
var _FormulaFormatter = _interopRequireDefault(require("../FormulaFormatter"));
|
|
45
|
+
|
|
46
|
+
var _AutoNumberFormatter = _interopRequireDefault(require("../AutoNumberFormatter"));
|
|
47
|
+
|
|
48
|
+
var _UrlFormatter = _interopRequireDefault(require("../UrlFormatter"));
|
|
49
|
+
|
|
50
|
+
var _EmailFormatter = _interopRequireDefault(require("../EmailFormatter"));
|
|
51
|
+
|
|
52
|
+
var _DurationFormatter = _interopRequireDefault(require("../DurationFormatter"));
|
|
53
|
+
|
|
54
|
+
var _RateFormatter = _interopRequireDefault(require("../RateFormatter"));
|
|
55
|
+
|
|
56
|
+
var _ButtonFormatter = _interopRequireDefault(require("../ButtonFormatter"));
|
|
2
57
|
|
|
3
58
|
var _FormatterConfig;
|
|
4
59
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import ImageFormatter from '../ImageFormatter';
|
|
9
|
-
import LongTextFormatter from '../LongTextFormatter';
|
|
10
|
-
import TextCellFormatter from '../TextFormatter';
|
|
11
|
-
import SingleSelectFormatter from '../SingleSelectFormatter';
|
|
12
|
-
import MultipleSelectFormatter from '../MultipleSelectFormatter';
|
|
13
|
-
import FileFormatter from '../FileFormatter';
|
|
14
|
-
import LinkFormatter from '../LinkFormatter';
|
|
15
|
-
import CollaboratorFormatter from '../CollaboratorFormatter';
|
|
16
|
-
import NumberFormatter from '../NumberFormatter';
|
|
17
|
-
import DateFormatter from '../DateFormatter';
|
|
18
|
-
import CreatorFormatter from '../CreatorFormatter';
|
|
19
|
-
import CTimeFormatter from '../CTimeFormatter';
|
|
20
|
-
import LastModifierFormatter from '../LastModifierFormatter';
|
|
21
|
-
import MTimeFormatter from '../MTimeFormatter';
|
|
22
|
-
import GeolocationFormatter from '../GeolocationFormatter';
|
|
23
|
-
import FormulaFormatter from '../FormulaFormatter';
|
|
24
|
-
import AutoNumberFormatter from '../AutoNumberFormatter';
|
|
25
|
-
import UrlFormatter from '../UrlFormatter';
|
|
26
|
-
import EmailFormatter from '../EmailFormatter';
|
|
27
|
-
import DurationFormatter from '../DurationFormatter';
|
|
28
|
-
import RateFormatter from '../RateFormatter';
|
|
29
|
-
import ButtonFormatter from '../ButtonFormatter';
|
|
30
|
-
var FormatterConfig = (_FormatterConfig = {}, _defineProperty(_FormatterConfig, CellType.DEFAULT, /*#__PURE__*/React.createElement(TextCellFormatter, null)), _defineProperty(_FormatterConfig, CellType.TEXT, /*#__PURE__*/React.createElement(TextCellFormatter, null)), _defineProperty(_FormatterConfig, CellType.CHECKBOX, /*#__PURE__*/React.createElement(CheckboxFormatter, null)), _defineProperty(_FormatterConfig, CellType.LONG_TEXT, /*#__PURE__*/React.createElement(LongTextFormatter, null)), _defineProperty(_FormatterConfig, CellType.SINGLE_SELECT, /*#__PURE__*/React.createElement(SingleSelectFormatter, null)), _defineProperty(_FormatterConfig, CellType.IMAGE, /*#__PURE__*/React.createElement(ImageFormatter, null)), _defineProperty(_FormatterConfig, CellType.FILE, /*#__PURE__*/React.createElement(FileFormatter, null)), _defineProperty(_FormatterConfig, CellType.MULTIPLE_SELECT, /*#__PURE__*/React.createElement(MultipleSelectFormatter, null)), _defineProperty(_FormatterConfig, CellType.COLLABORATOR, /*#__PURE__*/React.createElement(CollaboratorFormatter, null)), _defineProperty(_FormatterConfig, CellType.NUMBER, /*#__PURE__*/React.createElement(NumberFormatter, null)), _defineProperty(_FormatterConfig, CellType.DATE, /*#__PURE__*/React.createElement(DateFormatter, null)), _defineProperty(_FormatterConfig, CellType.LINK, /*#__PURE__*/React.createElement(LinkFormatter, null)), _defineProperty(_FormatterConfig, CellType.CREATOR, /*#__PURE__*/React.createElement(CreatorFormatter, null)), _defineProperty(_FormatterConfig, CellType.CTIME, /*#__PURE__*/React.createElement(CTimeFormatter, null)), _defineProperty(_FormatterConfig, CellType.LAST_MODIFIER, /*#__PURE__*/React.createElement(LastModifierFormatter, null)), _defineProperty(_FormatterConfig, CellType.MTIME, /*#__PURE__*/React.createElement(MTimeFormatter, null)), _defineProperty(_FormatterConfig, CellType.GEOLOCATION, /*#__PURE__*/React.createElement(GeolocationFormatter, null)), _defineProperty(_FormatterConfig, CellType.FORMULA, /*#__PURE__*/React.createElement(FormulaFormatter, null)), _defineProperty(_FormatterConfig, CellType.AUTO_NUMBER, /*#__PURE__*/React.createElement(AutoNumberFormatter, null)), _defineProperty(_FormatterConfig, CellType.URL, /*#__PURE__*/React.createElement(UrlFormatter, null)), _defineProperty(_FormatterConfig, CellType.EMAIL, /*#__PURE__*/React.createElement(EmailFormatter, null)), _defineProperty(_FormatterConfig, CellType.DURATION, /*#__PURE__*/React.createElement(DurationFormatter, null)), _defineProperty(_FormatterConfig, CellType.RATE, /*#__PURE__*/React.createElement(RateFormatter, null)), _defineProperty(_FormatterConfig, CellType.BUTTON, /*#__PURE__*/React.createElement(ButtonFormatter, null)), _FormatterConfig);
|
|
31
|
-
export default FormatterConfig;
|
|
60
|
+
var FormatterConfig = (_FormatterConfig = {}, _FormatterConfig[_constants.CellType.DEFAULT] = /*#__PURE__*/_react.default.createElement(_TextFormatter.default, null), _FormatterConfig[_constants.CellType.TEXT] = /*#__PURE__*/_react.default.createElement(_TextFormatter.default, null), _FormatterConfig[_constants.CellType.CHECKBOX] = /*#__PURE__*/_react.default.createElement(_CheckboxFormatter.default, null), _FormatterConfig[_constants.CellType.LONG_TEXT] = /*#__PURE__*/_react.default.createElement(_LongTextFormatter.default, null), _FormatterConfig[_constants.CellType.SINGLE_SELECT] = /*#__PURE__*/_react.default.createElement(_SingleSelectFormatter.default, null), _FormatterConfig[_constants.CellType.IMAGE] = /*#__PURE__*/_react.default.createElement(_ImageFormatter.default, null), _FormatterConfig[_constants.CellType.FILE] = /*#__PURE__*/_react.default.createElement(_FileFormatter.default, null), _FormatterConfig[_constants.CellType.MULTIPLE_SELECT] = /*#__PURE__*/_react.default.createElement(_MultipleSelectFormatter.default, null), _FormatterConfig[_constants.CellType.COLLABORATOR] = /*#__PURE__*/_react.default.createElement(_CollaboratorFormatter.default, null), _FormatterConfig[_constants.CellType.NUMBER] = /*#__PURE__*/_react.default.createElement(_NumberFormatter.default, null), _FormatterConfig[_constants.CellType.DATE] = /*#__PURE__*/_react.default.createElement(_DateFormatter.default, null), _FormatterConfig[_constants.CellType.LINK] = /*#__PURE__*/_react.default.createElement(_LinkFormatter.default, null), _FormatterConfig[_constants.CellType.CREATOR] = /*#__PURE__*/_react.default.createElement(_CreatorFormatter.default, null), _FormatterConfig[_constants.CellType.CTIME] = /*#__PURE__*/_react.default.createElement(_CTimeFormatter.default, null), _FormatterConfig[_constants.CellType.LAST_MODIFIER] = /*#__PURE__*/_react.default.createElement(_LastModifierFormatter.default, null), _FormatterConfig[_constants.CellType.MTIME] = /*#__PURE__*/_react.default.createElement(_MTimeFormatter.default, null), _FormatterConfig[_constants.CellType.GEOLOCATION] = /*#__PURE__*/_react.default.createElement(_GeolocationFormatter.default, null), _FormatterConfig[_constants.CellType.FORMULA] = /*#__PURE__*/_react.default.createElement(_FormulaFormatter.default, null), _FormatterConfig[_constants.CellType.AUTO_NUMBER] = /*#__PURE__*/_react.default.createElement(_AutoNumberFormatter.default, null), _FormatterConfig[_constants.CellType.URL] = /*#__PURE__*/_react.default.createElement(_UrlFormatter.default, null), _FormatterConfig[_constants.CellType.EMAIL] = /*#__PURE__*/_react.default.createElement(_EmailFormatter.default, null), _FormatterConfig[_constants.CellType.DURATION] = /*#__PURE__*/_react.default.createElement(_DurationFormatter.default, null), _FormatterConfig[_constants.CellType.RATE] = /*#__PURE__*/_react.default.createElement(_RateFormatter.default, null), _FormatterConfig[_constants.CellType.BUTTON] = /*#__PURE__*/_react.default.createElement(_ButtonFormatter.default, null), _FormatterConfig);
|
|
61
|
+
var _default = FormatterConfig;
|
|
62
|
+
exports.default = _default;
|