dtable-ui-component 0.1.73 → 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/assets/{dtable-fonts → dtable-font}/dtable-font.eot +0 -0
- package/assets/{dtable-fonts → dtable-font}/dtable-font.svg +0 -0
- package/assets/{dtable-fonts → dtable-font}/dtable-font.ttf +0 -0
- package/assets/{dtable-fonts → dtable-font}/dtable-font.woff +0 -0
- package/assets/{dtable-fonts → dtable-font}/dtable-font.woff2 +0 -0
- package/assets/dtable-font.css +6 -6
- 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 +4 -4
- 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 → lib}/assets/images/avatar/default_avatar.png +0 -0
- package/{es/components/cell-factory/cell-formatter-factory.js → lib/cellFormatterFactory/index.js} +3 -3
- package/{es → lib}/constants/cell-types.js +0 -0
- package/lib/constants/index.js +49 -0
- package/lib/css/cell-editor.css +6 -0
- package/lib/css/cell-formatter.css +4 -0
- package/lib/css/mb-cell-editor.css +55 -0
- package/lib/formatterConfig/index.js +31 -0
- package/lib/index.js +45 -0
- package/{es → lib}/lang/index.js +0 -0
- package/{es → lib}/locals/de.js +0 -0
- package/{es → lib}/locals/en.js +0 -0
- package/{es → lib}/locals/fr.js +0 -0
- package/{es → lib}/locals/zh-CN.js +0 -0
- 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/{es → lib}/utils/editor-utils.js +0 -0
- package/{es → lib}/utils/number-precision.js +1 -0
- package/lib/utils/utils.js +25 -0
- package/{es → lib}/utils/value-format-utils.js +3 -2
- package/package.json +5 -5
- package/es/app.css +0 -20
- package/es/app.js +0 -91
- 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/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/utils/utils.js +0 -116
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
@import url('../../css/cell-editor.css');
|
|
2
|
+
|
|
3
|
+
.dtable-ui-link-editor-popover .link-options-search {
|
|
4
|
+
padding: 10px 10px 0 10px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.dtable-ui-link-editor-popover .link-options-search input {
|
|
8
|
+
height: 28px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.dtable-ui-link-editor-popover .link-options-container {
|
|
12
|
+
min-height: 160px;
|
|
13
|
+
max-height: 200px;
|
|
14
|
+
margin: 10px 0;
|
|
15
|
+
padding: 0 10px;
|
|
16
|
+
overflow: auto;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* option item */
|
|
20
|
+
.dtable-ui-link-editor-popover .link-option-item {
|
|
21
|
+
display: flex;
|
|
22
|
+
height: 30px;
|
|
23
|
+
padding-left: 12px;
|
|
24
|
+
font-size: 14px;
|
|
25
|
+
line-height: 30px;
|
|
26
|
+
margin-left: 10px;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.dtable-ui-link-editor-popover .link-option-item:hover {
|
|
31
|
+
background-color: #f5f5f5;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.dtable-ui-link-editor-popover .option-info {
|
|
35
|
+
flex: 1;
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.dtable-ui-link-editor-popover .option-info .option-name {
|
|
41
|
+
max-width: 250px;
|
|
42
|
+
white-space: nowrap;
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
text-overflow: ellipsis;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.dtable-ui-link-editor-popover .option-checked {
|
|
48
|
+
width: 20px;
|
|
49
|
+
text-align: center;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.dtable-ui-link-editor-popover .option-checked .dtable-font {
|
|
53
|
+
font-size: 12px;
|
|
54
|
+
color: #798d99;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.dtable-ui-link-editor-popover .select-options-add {
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
padding: 0 10px;
|
|
61
|
+
height: 30px;
|
|
62
|
+
border-top: 1px solid #ccc;
|
|
63
|
+
}
|
|
@@ -5,6 +5,7 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
5
5
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { getLocale } from '../../lang';
|
|
8
|
+
import './index.css';
|
|
8
9
|
|
|
9
10
|
var PCLinkEditorPopover = /*#__PURE__*/function (_React$Component) {
|
|
10
11
|
_inherits(PCLinkEditorPopover, _React$Component);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@import url('../css/cell-formatter.css');
|
|
2
|
+
|
|
3
|
+
.dtable-ui.link-formmatter {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
flex-wrap: nowrap;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.dtable-ui.link-formatter .link-item {
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
height: 20px;
|
|
13
|
+
max-width: 230px;
|
|
14
|
+
padding: 0 8px 0 2px;
|
|
15
|
+
align-items: center;
|
|
16
|
+
font-size: 13px;
|
|
17
|
+
margin-right: 10px;
|
|
18
|
+
border-radius: 3px;
|
|
19
|
+
background: #eceff4;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.dtable-ui.link-formatter .link-item .link-name {
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
white-space: nowrap;
|
|
26
|
+
text-overflow: ellipsis;
|
|
27
|
+
}
|
|
@@ -5,8 +5,8 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
5
5
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import cn from 'astro-classname';
|
|
8
|
-
import * as CellTypes from '
|
|
9
|
-
import { getNumberDisplayString, getDateDisplayString } from '
|
|
8
|
+
import * as CellTypes from '../constants/cell-types';
|
|
9
|
+
import { getNumberDisplayString, getDateDisplayString } from '../utils/value-format-utils';
|
|
10
10
|
|
|
11
11
|
// link value is get form parant's interface
|
|
12
12
|
var LinkFormatter = /*#__PURE__*/function (_React$Component) {
|
|
File without changes
|
package/{es/components/cell-formatter/long-text-formatter.js → lib/LongTextFormatter/index.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'astro-classname';
|
|
3
|
-
import HtmlLongTextFormatter from '
|
|
4
|
-
import SimpleLongTextFormatter from '
|
|
3
|
+
import HtmlLongTextFormatter from '../HtmlLongTextFormatter';
|
|
4
|
+
import SimpleLongTextFormatter from '../SimpleLongTextFormatter';
|
|
5
5
|
|
|
6
6
|
function LongTextFormatter(props) {
|
|
7
7
|
var isSample = props.isSample,
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import url('../css/cell-formatter.css');
|
|
@@ -5,6 +5,7 @@ import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import cn from 'astro-classname';
|
|
7
7
|
import moment from 'moment';
|
|
8
|
+
import './index.css';
|
|
8
9
|
|
|
9
10
|
var MTimeFormatter = /*#__PURE__*/function (_React$Component) {
|
|
10
11
|
_inherits(MTimeFormatter, _React$Component);
|
|
File without changes
|
package/{es/components/cell-editor/multiple-select-editor.js → lib/MultipleSelectEditor/index.js}
RENAMED
|
@@ -4,11 +4,10 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
4
4
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
5
|
import React, { Fragment } from 'react';
|
|
6
6
|
import MediaQuery from 'react-responsive';
|
|
7
|
-
import { getLocale } from '
|
|
8
|
-
import EditEditorButton from '../
|
|
9
|
-
import SelectEditorOption from '../
|
|
10
|
-
import
|
|
11
|
-
import MBSingleSelectPopover from '../cell-editor-popover/mb-select-editor-popover';
|
|
7
|
+
import { getLocale } from '../lang';
|
|
8
|
+
import EditEditorButton from '../EditEditorButton';
|
|
9
|
+
import { SelectEditorOption, PCSelectEditorPopover, MBSelectEditorPopover } from '../select-editor';
|
|
10
|
+
import './index.css';
|
|
12
11
|
|
|
13
12
|
var MultipleSelectEditor = /*#__PURE__*/function (_React$Component) {
|
|
14
13
|
_inherits(MultipleSelectEditor, _React$Component);
|
|
@@ -213,7 +212,7 @@ var MultipleSelectEditor = /*#__PURE__*/function (_React$Component) {
|
|
|
213
212
|
onAddNewOption: this.onAddNewOption
|
|
214
213
|
})), /*#__PURE__*/React.createElement(MediaQuery, {
|
|
215
214
|
query: "(max-width: 767.8px)"
|
|
216
|
-
}, /*#__PURE__*/React.createElement(
|
|
215
|
+
}, /*#__PURE__*/React.createElement(MBSelectEditorPopover, {
|
|
217
216
|
isReadOnly: this.props.isReadOnly,
|
|
218
217
|
value: this.state.newValue,
|
|
219
218
|
column: this.props.column,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import url('../css/cell-formatter.css');
|
|
@@ -4,7 +4,8 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
4
4
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import cn from 'astro-classname';
|
|
7
|
-
import SelectItem from '../
|
|
7
|
+
import SelectItem from '../SelectItem';
|
|
8
|
+
import './index.css';
|
|
8
9
|
|
|
9
10
|
var MultipleSelectFormatter = /*#__PURE__*/function (_React$PureComponent) {
|
|
10
11
|
_inherits(MultipleSelectFormatter, _React$PureComponent);
|
|
@@ -4,8 +4,8 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
4
4
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import isHotkey from 'is-hotkey';
|
|
7
|
-
import { NUMBER_TYPES } from '
|
|
8
|
-
import { getNumberDisplayString, formatStringToNumber, formatNumberString } from '
|
|
7
|
+
import { NUMBER_TYPES } from '../constants';
|
|
8
|
+
import { getNumberDisplayString, formatStringToNumber, formatNumberString } from '../utils/value-format-utils';
|
|
9
9
|
|
|
10
10
|
var NumberEditor = /*#__PURE__*/function (_React$Component) {
|
|
11
11
|
_inherits(NumberEditor, _React$Component);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import url('../css/cell-formatter.css');
|
|
@@ -4,7 +4,8 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
4
4
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import cn from 'astro-classname';
|
|
7
|
-
import { getNumberDisplayString } from '
|
|
7
|
+
import { getNumberDisplayString } from '../utils/value-format-utils';
|
|
8
|
+
import './index.css';
|
|
8
9
|
|
|
9
10
|
var NumberFormatter = /*#__PURE__*/function (_React$Component) {
|
|
10
11
|
_inherits(NumberFormatter, _React$Component);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import url('../css/cell-formatter.css');
|
|
@@ -4,6 +4,7 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
4
4
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import cn from 'astro-classname';
|
|
7
|
+
import './index.css';
|
|
7
8
|
|
|
8
9
|
var RateFormatter = /*#__PURE__*/function (_React$Component) {
|
|
9
10
|
_inherits(RateFormatter, _React$Component);
|
|
File without changes
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
@import url('../css/cell-formatter.css');
|
|
2
|
+
|
|
3
|
+
.dtable-ui.long-text-formatter {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
height: 28px;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
text-overflow: ellipsis;
|
|
9
|
+
white-space: nowrap;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.dtable-ui.long-text-formatter.article {
|
|
13
|
+
display: block;
|
|
14
|
+
height: auto;
|
|
15
|
+
overflow: auto;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.dtable-ui.long-text-formatter .long-text-links,
|
|
19
|
+
.dtable-ui.long-text-formatter .long-text-check-list {
|
|
20
|
+
display: inline-block;
|
|
21
|
+
height: 20px;
|
|
22
|
+
padding: 2px;
|
|
23
|
+
margin: 4px;
|
|
24
|
+
color: #9c9c9c;
|
|
25
|
+
background-color: #f0f0f0;
|
|
26
|
+
border-radius: 3px;
|
|
27
|
+
line-height: 16px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.dtable-ui.long-text-formatter .long-text-check-list .dtable-font,
|
|
31
|
+
.dtable-ui.long-text-formatter .long-text-links .dtable-font {
|
|
32
|
+
margin-right: 4px;
|
|
33
|
+
font-size: 12px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.dtable-ui.long-text-formatter .long-text-check-list .long-text-check-list-completed {
|
|
37
|
+
color: #61BD4F;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.dtable-ui.long-text-formatter .long-text-images {
|
|
41
|
+
margin-right: -10px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.dtable-ui.long-text-formatter .long-text-images img {
|
|
45
|
+
max-width: 28px;
|
|
46
|
+
max-height: 28px;
|
|
47
|
+
border: 1px solid #f0f0f0;
|
|
48
|
+
box-sizing: border-box;
|
|
49
|
+
border-radius: 3px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.dtable-ui.long-text-formatter .long-text-images .image-number {
|
|
53
|
+
display: inline-block;
|
|
54
|
+
min-width: 14px;
|
|
55
|
+
padding: 0 3px;
|
|
56
|
+
line-height: 14px;
|
|
57
|
+
font-style: normal;
|
|
58
|
+
font-size: 12px;
|
|
59
|
+
border-radius: 6px;
|
|
60
|
+
background-color: #999;
|
|
61
|
+
color: #fff;
|
|
62
|
+
transform: translate(-50%, 9px) scale(0.8);
|
|
63
|
+
}
|
|
@@ -3,7 +3,8 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
|
3
3
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
4
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import getPreviewContent from '
|
|
6
|
+
import getPreviewContent from './normalize-long-text-value';
|
|
7
|
+
import './index.css';
|
|
7
8
|
|
|
8
9
|
var SimpleLongTextFormatter = /*#__PURE__*/function (_React$Component) {
|
|
9
10
|
_inherits(SimpleLongTextFormatter, _React$Component);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var hrefReg = /\[.+\]\(\S+\)|<img src=(\S+)
|
|
2
|
-
var imageReg1 = /^<img src="(\S+)"
|
|
1
|
+
var hrefReg = /\[.+\]\(\S+\)|<img( width=[\\|/]?"(\d)+[\\|/|]?")? src="(\S+)" .?\/>|!\[\]\(\S+\)|!\[\]\((\S+)\)|<\S+>/g;
|
|
2
|
+
var imageReg1 = /^<img( width=[\\|/]?"(\d)+[\\|/|]?")? src="(\S+)" .?\/>/;
|
|
3
3
|
var imageReg2 = /^!\[\]\((\S+)\)/;
|
|
4
4
|
var linkReg1 = /^\[.+\]\(\S+\)/;
|
|
5
5
|
var linkReg2 = /^<\S+>$/;
|
|
@@ -17,7 +17,7 @@ var getLinks = function getLinks(hrefList) {
|
|
|
17
17
|
var imageSrcList1 = href.match(imageReg2);
|
|
18
18
|
|
|
19
19
|
if (imageSrcList) {
|
|
20
|
-
hrefObj.images.push(imageSrcList[
|
|
20
|
+
hrefObj.images.push(imageSrcList[3]);
|
|
21
21
|
} else if (imageSrcList1) {
|
|
22
22
|
hrefObj.images.push(imageSrcList1[1]);
|
|
23
23
|
}
|
|
@@ -39,7 +39,7 @@ var getPreviewContent = function getPreviewContent(markdownContent) {
|
|
|
39
39
|
preview += newMarkdownContent[index];
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
if (preview.length ===
|
|
42
|
+
if (preview.length === 150) {
|
|
43
43
|
break;
|
|
44
44
|
}
|
|
45
45
|
}
|
package/{es/components/cell-editor/single-select-editor.js → lib/SingleSelectEditor/index.js}
RENAMED
|
@@ -4,11 +4,10 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
4
4
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
5
|
import React, { Fragment } from 'react';
|
|
6
6
|
import MediaQuery from 'react-responsive';
|
|
7
|
-
import { getLocale } from '
|
|
8
|
-
import EditEditorButton from '../
|
|
9
|
-
import SelectEditorOption from '../
|
|
10
|
-
import
|
|
11
|
-
import MBSingleSelectPopover from '../cell-editor-popover/mb-select-editor-popover';
|
|
7
|
+
import { getLocale } from '../lang';
|
|
8
|
+
import EditEditorButton from '../EditEditorButton';
|
|
9
|
+
import { SelectEditorOption, PCSelectEditorPopover, MBSelectEditorPopover } from '../select-editor';
|
|
10
|
+
import './index.css';
|
|
12
11
|
|
|
13
12
|
var SingleSelectEditor = /*#__PURE__*/function (_React$Component) {
|
|
14
13
|
_inherits(SingleSelectEditor, _React$Component);
|
|
@@ -178,7 +177,7 @@ var SingleSelectEditor = /*#__PURE__*/function (_React$Component) {
|
|
|
178
177
|
onAddNewOption: this.onAddNewOption
|
|
179
178
|
})), /*#__PURE__*/React.createElement(MediaQuery, {
|
|
180
179
|
query: "(max-width: 767.8px)"
|
|
181
|
-
}, /*#__PURE__*/React.createElement(
|
|
180
|
+
}, /*#__PURE__*/React.createElement(MBSelectEditorPopover, {
|
|
182
181
|
isReadOnly: this.props.isReadOnly,
|
|
183
182
|
value: [this.state.newValue],
|
|
184
183
|
column: this.props.column,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import url('../css/cell-formatter.css');
|
|
@@ -4,7 +4,8 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
4
4
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import cn from 'astro-classname';
|
|
7
|
-
import SelectItem from '../
|
|
7
|
+
import SelectItem from '../SelectItem';
|
|
8
|
+
import './index.css';
|
|
8
9
|
|
|
9
10
|
var SingleSelectFormatter = /*#__PURE__*/function (_React$PureComponent) {
|
|
10
11
|
_inherits(SingleSelectFormatter, _React$PureComponent);
|
|
@@ -42,7 +42,7 @@ var TextEditor = /*#__PURE__*/function (_React$Component) {
|
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
-
_this.
|
|
45
|
+
_this.onEditorHandle = function () {
|
|
46
46
|
if (_this.props.isReadOnly) {
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
@@ -97,7 +97,7 @@ var TextEditor = /*#__PURE__*/function (_React$Component) {
|
|
|
97
97
|
className: "text-editor-container"
|
|
98
98
|
}, !this.state.isEditorShow && /*#__PURE__*/React.createElement("div", {
|
|
99
99
|
className: "form-control",
|
|
100
|
-
onClick: this.
|
|
100
|
+
onClick: this.onEditorHandle
|
|
101
101
|
}, this.state.newValue), this.state.isEditorShow && /*#__PURE__*/React.createElement("input", {
|
|
102
102
|
ref: this.setInputRef,
|
|
103
103
|
type: "text",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import url('../css/cell-formatter.css');
|
|
@@ -4,6 +4,7 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
4
4
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import cn from 'astro-classname';
|
|
7
|
+
import './index.css';
|
|
7
8
|
|
|
8
9
|
var TextFormatter = /*#__PURE__*/function (_React$Component) {
|
|
9
10
|
_inherits(TextFormatter, _React$Component);
|
|
@@ -4,6 +4,7 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
4
4
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import cn from 'astro-classname';
|
|
7
|
+
import './index.css';
|
|
7
8
|
|
|
8
9
|
var UrlFormatter = /*#__PURE__*/function (_React$Component) {
|
|
9
10
|
_inherits(UrlFormatter, _React$Component);
|
|
File without changes
|
package/{es/components/cell-factory/cell-formatter-factory.js → lib/cellFormatterFactory/index.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
|
-
import
|
|
3
|
+
import formatterConfig from '../formatterConfig';
|
|
4
4
|
|
|
5
5
|
var CellFormatterFactory = /*#__PURE__*/function () {
|
|
6
6
|
function CellFormatterFactory() {
|
|
@@ -10,8 +10,8 @@ var CellFormatterFactory = /*#__PURE__*/function () {
|
|
|
10
10
|
_createClass(CellFormatterFactory, [{
|
|
11
11
|
key: "createFormatter",
|
|
12
12
|
value: function createFormatter(formatterType) {
|
|
13
|
-
if (
|
|
14
|
-
return
|
|
13
|
+
if (formatterConfig[formatterType]) {
|
|
14
|
+
return formatterConfig[formatterType];
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
return null;
|
|
File without changes
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
|
|
3
|
+
var _DURATION_ZERO_DISPLA, _DURATION_DECIMAL_DIG;
|
|
4
|
+
|
|
5
|
+
import * as CellType from './cell-types';
|
|
6
|
+
var NUMBER_TYPES = {
|
|
7
|
+
'NUMBER': 'number',
|
|
8
|
+
'NUMBER_WITH_COMMAS': 'number-with-commas',
|
|
9
|
+
'PERCENT': 'percent',
|
|
10
|
+
'YUAN': 'yuan',
|
|
11
|
+
'EURO': 'euro',
|
|
12
|
+
'DOLLAR': 'dollar'
|
|
13
|
+
};
|
|
14
|
+
var DATE_TYPES = {
|
|
15
|
+
'D/M/YYYY': 'D/M/YYYY',
|
|
16
|
+
'D/M/YYYY HH:mm': 'D/M/YYYY HH:mm',
|
|
17
|
+
'M/D/YYYY': 'M/D/YY',
|
|
18
|
+
'M/D/YYYY HH:mm': 'M/D/YYYY HH:mm',
|
|
19
|
+
'YYYY-MM-DD': 'YYYY-MM-DD',
|
|
20
|
+
'YYYY-MM-DD HH:mm': 'YYYY-MM-DD HH:mm'
|
|
21
|
+
};
|
|
22
|
+
var FORMULA_RESULT_TYPE = {
|
|
23
|
+
NUMBER: 'number',
|
|
24
|
+
STRING: 'string',
|
|
25
|
+
DATE: 'date',
|
|
26
|
+
BOOL: 'bool',
|
|
27
|
+
ARRAY: 'array'
|
|
28
|
+
};
|
|
29
|
+
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];
|
|
30
|
+
var ARRAY_FORMAL_COLUMNS = [CellType.IMAGE, CellType.FILE, CellType.MULTIPLE_SELECT, CellType.COLLABORATOR];
|
|
31
|
+
var SIMPLE_CELL_FORMULA_RESULTS = [FORMULA_RESULT_TYPE.NUMBER, FORMULA_RESULT_TYPE.STRING, FORMULA_RESULT_TYPE.DATE, FORMULA_RESULT_TYPE.BOOL];
|
|
32
|
+
var COLLABORATOR_COLUMN_TYPES = [CellType.COLLABORATOR, CellType.CREATOR, CellType.LAST_MODIFIER];
|
|
33
|
+
var ARRAY_FORMAL_COLUMNS_TYPES = [CellType.IMAGE, CellType.FILE, CellType.MULTIPLE_SELECT, CellType.COLLABORATOR];
|
|
34
|
+
var DEFAULT_NUMBER_FORMAT = 'number';
|
|
35
|
+
var DEFAULT_DATE_FORMAT = 'YYYY-MM-DD';
|
|
36
|
+
var DURATION_FORMATS_MAP = {
|
|
37
|
+
H_MM: 'h:mm',
|
|
38
|
+
H_MM_SS: 'h:mm:ss'
|
|
39
|
+
};
|
|
40
|
+
var DURATION_FORMATS = [{
|
|
41
|
+
name: DURATION_FORMATS_MAP.H_MM,
|
|
42
|
+
type: DURATION_FORMATS_MAP.H_MM
|
|
43
|
+
}, {
|
|
44
|
+
name: DURATION_FORMATS_MAP.H_MM_SS,
|
|
45
|
+
type: DURATION_FORMATS_MAP.H_MM_SS
|
|
46
|
+
}];
|
|
47
|
+
var DURATION_ZERO_DISPLAY = (_DURATION_ZERO_DISPLA = {}, _defineProperty(_DURATION_ZERO_DISPLA, DURATION_FORMATS_MAP.H_MM, '0:00'), _defineProperty(_DURATION_ZERO_DISPLA, DURATION_FORMATS_MAP.H_MM_SS, '0:00'), _DURATION_ZERO_DISPLA);
|
|
48
|
+
var DURATION_DECIMAL_DIGITS = (_DURATION_DECIMAL_DIG = {}, _defineProperty(_DURATION_DECIMAL_DIG, DURATION_FORMATS_MAP.H_MM, 0), _defineProperty(_DURATION_DECIMAL_DIG, DURATION_FORMATS_MAP.H_MM_SS, 0), _DURATION_DECIMAL_DIG);
|
|
49
|
+
export { CellType, NUMBER_TYPES, DATE_TYPES, FORMULA_RESULT_TYPE, SIMPLE_CELL_COLUMNS, ARRAY_FORMAL_COLUMNS, SIMPLE_CELL_FORMULA_RESULTS, COLLABORATOR_COLUMN_TYPES, ARRAY_FORMAL_COLUMNS_TYPES, DEFAULT_NUMBER_FORMAT, DEFAULT_DATE_FORMAT, DURATION_FORMATS_MAP, DURATION_FORMATS, DURATION_ZERO_DISPLAY, DURATION_DECIMAL_DIGITS };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
@media screen and (max-width: 767.8px) {
|
|
2
|
+
.dtable-ui-mb-editor-popover {
|
|
3
|
+
position: fixed;
|
|
4
|
+
top: 0;
|
|
5
|
+
left: 0;
|
|
6
|
+
right: 0;
|
|
7
|
+
bottom: 0;
|
|
8
|
+
display: flex;
|
|
9
|
+
background-color: #f5f5f5;
|
|
10
|
+
z-index: 9;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.dtable-ui-mb-editor-header {
|
|
14
|
+
position: fixed;
|
|
15
|
+
left: 0;
|
|
16
|
+
top: 0;
|
|
17
|
+
width: 100%;
|
|
18
|
+
height: 50px;
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
background-color: #fff;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.dtable-ui-mb-editor-header .editor-header-left-content {
|
|
25
|
+
min-width: 50px;
|
|
26
|
+
padding: 13px 16px;
|
|
27
|
+
font-size: 14px;
|
|
28
|
+
color: #888;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.dtable-ui-mb-editor-header .editor-header-title {
|
|
32
|
+
flex: 1;
|
|
33
|
+
font-size: 18px;
|
|
34
|
+
text-align: center;
|
|
35
|
+
text-overflow: ellipsis;
|
|
36
|
+
color: #333;
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
white-space: nowrap;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.dtable-ui-mb-editor-header .editor-header-right-content {
|
|
42
|
+
min-width: 50px;
|
|
43
|
+
padding: 13px 16px;
|
|
44
|
+
font-size: 14px;
|
|
45
|
+
color: #888;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.dtable-ui-mb-editor-body {
|
|
49
|
+
flex: 1;
|
|
50
|
+
display: flex;
|
|
51
|
+
flex-direction: column;
|
|
52
|
+
margin-top: 50px;
|
|
53
|
+
overflow: auto;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
|
|
3
|
+
var _FormatterConfig;
|
|
4
|
+
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { CellType } from '../constants';
|
|
7
|
+
import CheckboxFormatter from '../CheckboxFormatter';
|
|
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;
|