dtable-ui-component 0.1.75-beta3 → 0.1.75-beta4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/AutoNumberFormatter/index.js +27 -38
- package/lib/ButtonFormatter/index.js +47 -59
- package/lib/CTimeFormatter/index.js +39 -53
- package/lib/CheckboxFormatter/index.js +35 -48
- package/lib/CollaboratorFormatter/index.js +42 -64
- package/lib/CollaboratorItem/index.js +44 -61
- package/lib/CreatorFormatter/index.js +42 -62
- package/lib/DateFormatter/index.js +40 -55
- package/lib/DurationFormatter/index.js +29 -42
- package/lib/EmailFormatter/index.js +27 -38
- package/lib/FileFormatter/index.js +50 -65
- package/lib/FileItemFormatter/index.js +32 -44
- package/lib/FileUploader/index.js +34 -44
- package/lib/FormulaFormatter/index.js +81 -102
- package/lib/GeolocationFormatter/index.js +35 -50
- package/lib/ImageFormatter/images-lazy-load.js +73 -81
- package/lib/ImageFormatter/index.js +90 -109
- package/lib/ImagePreviewerLightbox/index.js +27 -60
- package/lib/LastModifierFormatter/index.js +42 -62
- package/lib/LinkFormatter/index.js +59 -80
- package/lib/Loading/index.js +4 -13
- package/lib/LongTextFormatter/html-long-text-formatter.js +49 -60
- package/lib/LongTextFormatter/index.js +9 -28
- package/lib/LongTextFormatter/simple-long-text-formatter.js +52 -58
- package/lib/MTimeFormatter/index.js +39 -53
- package/lib/ModalPortal/index.js +30 -37
- package/lib/MultipleSelectFormatter/index.js +39 -55
- package/lib/NumberFormatter/index.js +35 -50
- package/lib/RateFormatter/index.js +37 -52
- package/lib/SelectItem/index.js +31 -46
- package/lib/SingleSelectFormatter/index.js +38 -54
- package/lib/TextFormatter/index.js +31 -44
- package/lib/UrlFormatter/index.js +27 -38
- package/lib/app.js +75 -80
- package/lib/cellFormatterFactory/index.js +17 -20
- package/lib/components/cell-editor/checkbox-editor.js +59 -66
- package/lib/components/cell-editor/collaborator-editor.js +113 -126
- package/lib/components/cell-editor/date-editor.js +99 -119
- package/lib/components/cell-editor/index.js +9 -40
- package/lib/components/cell-editor/link-editor.js +122 -140
- package/lib/components/cell-editor/multiple-select-editor.js +114 -127
- package/lib/components/cell-editor/number-editor.js +78 -86
- package/lib/components/cell-editor/single-select-editor.js +106 -120
- package/lib/components/cell-editor/text-editor.js +65 -72
- package/lib/components/cell-editor-dialog/pc-file-editor-dialog.js +31 -51
- 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 +105 -111
- package/lib/components/cell-editor-popover/mb-date-editor-popover.js +140 -157
- package/lib/components/cell-editor-popover/mb-link-editor-popover.js +103 -109
- package/lib/components/cell-editor-popover/mb-select-editor-popover.js +142 -155
- package/lib/components/cell-editor-popover/pc-collaborator-editor-popover.js +74 -89
- package/lib/components/cell-editor-popover/pc-date-editor-popover.js +88 -102
- package/lib/components/cell-editor-popover/pc-link-editor-popover.js +77 -91
- package/lib/components/cell-editor-popover/pc-select-editor-popover.js +91 -105
- package/lib/components/common/collaborator-item.js +43 -59
- package/lib/components/common/edit-editor-button.js +28 -39
- package/lib/components/common/link-editor-option.js +63 -71
- package/lib/components/common/mobile/mb-editor-header.js +39 -52
- package/lib/components/common/select-editor-option.js +58 -74
- package/lib/constants/cell-types.js +25 -54
- package/lib/constants/index.js +5 -28
- package/lib/formatterConfig/index.js +28 -59
- package/lib/index.js +31 -139
- 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/toaster/alert.js +92 -106
- package/lib/toaster/index.js +3 -12
- package/lib/toaster/toast.js +103 -147
- package/lib/toaster/toastManager.js +78 -97
- package/lib/toaster/toaster.js +36 -52
- package/lib/utils/cell-value-validator.js +5 -9
- package/lib/utils/column-utils.js +5 -13
- package/lib/utils/editor-utils.js +3 -13
- package/lib/utils/markdown2html.js +1 -7
- package/lib/utils/normalize-long-text-value.js +1 -6
- package/lib/utils/number-precision.js +13 -31
- package/lib/utils/utils.js +8 -33
- package/lib/utils/value-format-utils.js +58 -108
- package/package.json +5 -5
- package/es/AutoNumberFormatter/index.css +0 -1
- package/es/AutoNumberFormatter/index.js +0 -36
- package/es/ButtonFormatter/index.css +0 -13
- package/es/ButtonFormatter/index.js +0 -56
- package/es/CTimeFormatter/index.css +0 -1
- package/es/CTimeFormatter/index.js +0 -58
- package/es/CheckboxFormatter/index.css +0 -1
- package/es/CheckboxFormatter/index.js +0 -45
- package/es/CollaboratorFormatter/index.css +0 -1
- package/es/CollaboratorFormatter/index.js +0 -91
- package/es/CollaboratorItem/index.css +0 -49
- package/es/CollaboratorItem/index.js +0 -64
- package/es/CreatorFormatter/index.css +0 -1
- package/es/CreatorFormatter/index.js +0 -87
- package/es/DateFormatter/index.css +0 -1
- package/es/DateFormatter/index.js +0 -60
- package/es/DurationFormatter/index.css +0 -1
- package/es/DurationFormatter/index.js +0 -38
- package/es/EmailFormatter/index.css +0 -5
- package/es/EmailFormatter/index.js +0 -36
- package/es/FileFormatter/index.css +0 -29
- package/es/FileFormatter/index.js +0 -64
- package/es/FileItemFormatter/index.js +0 -50
- package/es/FileUploader/index.js +0 -53
- package/es/FormulaFormatter/index.css +0 -19
- package/es/FormulaFormatter/index.js +0 -164
- package/es/GeolocationFormatter/index.css +0 -1
- package/es/GeolocationFormatter/index.js +0 -53
- package/es/ImageFormatter/images-lazy-load.js +0 -150
- package/es/ImageFormatter/index.css +0 -34
- package/es/ImageFormatter/index.js +0 -154
- package/es/ImagePreviewerLightbox/index.css +0 -87
- package/es/ImagePreviewerLightbox/index.js +0 -119
- package/es/LastModifierFormatter/index.css +0 -1
- package/es/LastModifierFormatter/index.js +0 -87
- package/es/LinkFormatter/index.css +0 -27
- package/es/LinkFormatter/index.js +0 -144
- package/es/Loading/index.css +0 -54
- package/es/Loading/index.js +0 -7
- package/es/LongTextFormatter/html-long-text-formatter.js +0 -96
- package/es/LongTextFormatter/index.css +0 -63
- package/es/LongTextFormatter/index.js +0 -29
- package/es/LongTextFormatter/simple-long-text-formatter.js +0 -104
- package/es/MTimeFormatter/index.css +0 -1
- package/es/MTimeFormatter/index.js +0 -58
- package/es/ModalPortal/index.js +0 -44
- package/es/MultipleSelectFormatter/index.css +0 -1
- package/es/MultipleSelectFormatter/index.js +0 -70
- package/es/NumberFormatter/index.css +0 -1
- package/es/NumberFormatter/index.js +0 -47
- package/es/RateFormatter/index.css +0 -1
- package/es/RateFormatter/index.js +0 -80
- package/es/SelectItem/index.js +0 -58
- package/es/SingleSelectFormatter/index.css +0 -1
- package/es/SingleSelectFormatter/index.js +0 -70
- package/es/TextFormatter/index.css +0 -1
- package/es/TextFormatter/index.js +0 -56
- package/es/UrlFormatter/index.css +0 -5
- package/es/UrlFormatter/index.js +0 -36
- package/es/app.css +0 -20
- package/es/app.js +0 -91
- 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 +0 -25
- package/es/components/cell-editor/checkbox-editor.js +0 -104
- package/es/components/cell-editor/collaborator-editor.js +0 -236
- package/es/components/cell-editor/date-editor.js +0 -151
- package/es/components/cell-editor/index.js +0 -9
- package/es/components/cell-editor/link-editor.js +0 -303
- package/es/components/cell-editor/multiple-select-editor.js +0 -237
- package/es/components/cell-editor/number-editor.js +0 -154
- package/es/components/cell-editor/single-select-editor.js +0 -202
- package/es/components/cell-editor/text-editor.js +0 -122
- package/es/components/cell-editor-dialog/pc-file-editor-dialog.js +0 -46
- 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 +0 -177
- package/es/components/cell-editor-popover/mb-date-editor-popover.js +0 -245
- package/es/components/cell-editor-popover/mb-link-editor-popover.js +0 -170
- package/es/components/cell-editor-popover/mb-select-editor-popover.js +0 -230
- package/es/components/cell-editor-popover/pc-collaborator-editor-popover.js +0 -109
- package/es/components/cell-editor-popover/pc-date-editor-popover.js +0 -142
- package/es/components/cell-editor-popover/pc-link-editor-popover.js +0 -114
- package/es/components/cell-editor-popover/pc-select-editor-popover.js +0 -143
- package/es/components/common/collaborator-item.js +0 -63
- package/es/components/common/edit-editor-button.js +0 -56
- package/es/components/common/link-editor-option.js +0 -113
- package/es/components/common/mobile/mb-editor-header.js +0 -48
- package/es/components/common/select-editor-option.js +0 -106
- package/es/constants/cell-types.js +0 -25
- package/es/constants/index.js +0 -49
- package/es/css/cell-editor.css +0 -614
- package/es/css/cell-formatter.css +0 -4
- package/es/css/custom-rc-calendar.css +0 -118
- package/es/formatterConfig/index.js +0 -31
- package/es/index.js +0 -31
- 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/toaster/alert.js +0 -150
- package/es/toaster/index.js +0 -3
- package/es/toaster/toast.js +0 -179
- package/es/toaster/toastManager.js +0 -170
- package/es/toaster/toaster.js +0 -76
- package/es/utils/cell-value-validator.js +0 -31
- package/es/utils/column-utils.js +0 -7
- package/es/utils/editor-utils.js +0 -71
- package/es/utils/markdown2html.js +0 -62
- package/es/utils/normalize-long-text-value.js +0 -69
- package/es/utils/number-precision.js +0 -164
- package/es/utils/unified/index.js +0 -470
- package/es/utils/utils.js +0 -116
- package/es/utils/value-format-utils.js +0 -497
- package/es/utils/vfile/core.js +0 -172
- package/es/utils/vfile/index.js +0 -48
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar-date {
|
|
2
|
-
width: 28px;
|
|
3
|
-
height: 30px;
|
|
4
|
-
border-radius: 50%;
|
|
5
|
-
font-size: 14px;
|
|
6
|
-
line-height: 30px;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar-date-panel {
|
|
10
|
-
width: 100%;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rc-calendar-selected-day .rc-calendar-date {
|
|
14
|
-
background-color: #FcEcD9;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rc-calendar-date:hover,
|
|
18
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rc-calendar-year-panel-year:hover,
|
|
19
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rc-calendar-month-panel-cell .rc-calendar-month-panel-month:hover {
|
|
20
|
-
background-color: #FcEcD9;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rc-calendar-selected-date .rc-calendar-date,
|
|
24
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rc-calendar-selected-date .rc-calendar-date:hover,
|
|
25
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rc-calendar-year-panel-selected-cell .rc-calendar-year-panel-year,
|
|
26
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rc-calendar-month-panel-selected-cell .rc-calendar-month-panel-month {
|
|
27
|
-
background-color: #f09f3f;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rc-calendar-next-year-btn:not([href]):not([tabindex]),
|
|
31
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rc-calendar-prev-year-btn:not([href]):not([tabindex]),
|
|
32
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rc-calendar-next-month-btn:not([href]):not([tabindex]),
|
|
33
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rc-calendar-prev-month-btn:not([href]):not([tabindex]) {
|
|
34
|
-
color: #999;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rc-calendar-next-year-btn:not([href]):not([tabindex]):hover,
|
|
38
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rc-calendar-prev-year-btn:not([href]):not([tabindex]):hover,
|
|
39
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rc-calendar-next-month-btn:not([href]):not([tabindex]):hover,
|
|
40
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rc-calendar-prev-month-btn:not([href]):not([tabindex]):hover {
|
|
41
|
-
color: #666;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rc-calendar-today .rc-calendar-date {
|
|
45
|
-
border: none;
|
|
46
|
-
position: relative;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rc-calendar-today .rc-calendar-date::after {
|
|
50
|
-
content: '';
|
|
51
|
-
background: #f09f3f;
|
|
52
|
-
position: absolute;
|
|
53
|
-
width: 4px;
|
|
54
|
-
height: 4px;
|
|
55
|
-
border-radius: 50%;
|
|
56
|
-
left: 45%;
|
|
57
|
-
bottom: 0%;
|
|
58
|
-
display: inline-block;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar .rdg-editor-container input.editor-main[readonly] {
|
|
62
|
-
background-color: #fff;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar-time-picker {
|
|
66
|
-
z-index: 1;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar-right-panel-body ul li.highlight {
|
|
70
|
-
margin: 0;
|
|
71
|
-
border: none;
|
|
72
|
-
background-color: #fff;
|
|
73
|
-
font-size: 12px;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar {
|
|
77
|
-
box-shadow: none;
|
|
78
|
-
border-radius: 0px;
|
|
79
|
-
border: 1px solid #e9e9e9;
|
|
80
|
-
border-left: none;
|
|
81
|
-
border-right: none;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar-date {
|
|
85
|
-
font-size: 14px;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar-date-panel {
|
|
89
|
-
width: 100%;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar-body {
|
|
93
|
-
height: 22rem;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar-table tr {
|
|
97
|
-
height: 3rem;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar-prev-month-btn,
|
|
101
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar-next-month-btn,
|
|
102
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar-prev-year-btn,
|
|
103
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar-next-year-btn {
|
|
104
|
-
font-size: 30px;
|
|
105
|
-
width: 50px;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar-header {
|
|
109
|
-
border-bottom: none;
|
|
110
|
-
margin-top: 0.5rem;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar-year-select,
|
|
114
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar-month-select,
|
|
115
|
-
.dtable-ui.mb-date-editor-picker .rc-calendar-day-select {
|
|
116
|
-
font-size: 16px;
|
|
117
|
-
padding: 5px;
|
|
118
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
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;
|
package/es/index.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export { default as toaster } from './toaster';
|
|
2
|
-
export { setLocale } from './lang';
|
|
3
|
-
export { getDateDisplayString, getNumberDisplayString, formatStringToNumber, formatNumberString } from './utils/value-format-utils';
|
|
4
|
-
export { default as CheckboxFormatter } from './CheckboxFormatter';
|
|
5
|
-
export { default as ImageFormatter } from './ImageFormatter';
|
|
6
|
-
export { default as LongTextFormatter } from './LongTextFormatter';
|
|
7
|
-
export { default as TextFormatter } from './TextFormatter';
|
|
8
|
-
export { default as SingleSelectFormatter } from './SingleSelectFormatter';
|
|
9
|
-
export { default as MultipleSelectFormatter } from './MultipleSelectFormatter';
|
|
10
|
-
export { default as FileFormatter } from './FileFormatter';
|
|
11
|
-
export { default as LinkFormatter } from './LinkFormatter';
|
|
12
|
-
export { default as CollaboratorFormatter } from './CollaboratorFormatter';
|
|
13
|
-
export { default as NumberFormatter } from './NumberFormatter';
|
|
14
|
-
export { default as DateFormatter } from './DateFormatter';
|
|
15
|
-
export { default as CreatorFormatter } from './CreatorFormatter';
|
|
16
|
-
export { default as CTimeFormatter } from './CTimeFormatter';
|
|
17
|
-
export { default as LastModifierFormatter } from './LastModifierFormatter';
|
|
18
|
-
export { default as MTimeFormatter } from './MTimeFormatter';
|
|
19
|
-
export { default as GeolocationFormatter } from './GeolocationFormatter';
|
|
20
|
-
export { default as FormulaFormatter } from './FormulaFormatter';
|
|
21
|
-
export { default as AutoNumberFormatter } from './AutoNumberFormatter';
|
|
22
|
-
export { default as UrlFormatter } from './UrlFormatter';
|
|
23
|
-
export { default as EmailFormatter } from './EmailFormatter';
|
|
24
|
-
export { default as DurationFormatter } from './DurationFormatter';
|
|
25
|
-
export { default as RateFormatter } from './RateFormatter';
|
|
26
|
-
export { default as ButtonFormatter } from './ButtonFormatter';
|
|
27
|
-
export { default as ImagePreviewerLightbox } from './ImagePreviewerLightbox';
|
|
28
|
-
export { default as CollaboratorItem } from './CollaboratorItem';
|
|
29
|
-
export { default as FileItemFormatter } from './FileItemFormatter';
|
|
30
|
-
export { default as Loading } from './Loading';
|
|
31
|
-
export { TextEditor, NumberEditor, CheckboxEditor, SingleSelectEditor, CollaboratorEditor, DateEditor, LinkEditor } from './components/cell-editor';
|
package/es/lang/index.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import de from '../locals/de';
|
|
2
|
-
import en from '../locals/en';
|
|
3
|
-
import fr from '../locals/fr';
|
|
4
|
-
import zh_CN from '../locals/zh-CN';
|
|
5
|
-
var langData = {
|
|
6
|
-
'de': de,
|
|
7
|
-
'en': en,
|
|
8
|
-
'fr': fr,
|
|
9
|
-
'zh-cn': zh_CN
|
|
10
|
-
};
|
|
11
|
-
var LANGUAGE = 'en';
|
|
12
|
-
var LANGUAGE_MAP = {};
|
|
13
|
-
export function setLocale(args) {
|
|
14
|
-
var lang = typeof args === 'string' ? args : LANGUAGE;
|
|
15
|
-
LANGUAGE_MAP = langData[lang] || langData[LANGUAGE];
|
|
16
|
-
}
|
|
17
|
-
export function getLocale(key, def) {
|
|
18
|
-
if (!key) return def;
|
|
19
|
-
|
|
20
|
-
if (!LANGUAGE_MAP[key]) {
|
|
21
|
-
return def || key;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
return LANGUAGE_MAP[key];
|
|
25
|
-
}
|
|
26
|
-
export function substitute(str, obj) {
|
|
27
|
-
if (typeof str === 'string') {
|
|
28
|
-
if (str.indexOf('{') < 0) {
|
|
29
|
-
return str;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
return str.replace(/\\?\{([^{}]+)\}/g, function (match, name) {
|
|
33
|
-
if (match.charAt(0) === '\\') {
|
|
34
|
-
return match.slice(1);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
return obj[name] === null || obj[name] === undefined ? '' : obj[name];
|
|
38
|
-
});
|
|
39
|
-
} else if (typeof str === 'function') {
|
|
40
|
-
var val = str(obj);
|
|
41
|
-
|
|
42
|
-
if (val === obj && typeof val === 'object') {
|
|
43
|
-
val = Object.assign({}, obj);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
return val;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
return '';
|
|
50
|
-
}
|
package/es/locals/de.js
DELETED
package/es/locals/en.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
var en = {
|
|
2
|
-
Add_an_option: "Add an option",
|
|
3
|
-
Find_an_option: "Find a option",
|
|
4
|
-
No_options_available: "No options available",
|
|
5
|
-
Current_option: "Current option",
|
|
6
|
-
No_option: "No option",
|
|
7
|
-
Choose_an_option: "Choose an option",
|
|
8
|
-
Add_a_collaborator: "Add a collaborator",
|
|
9
|
-
Find_a_collaborator: "Find a collaborator",
|
|
10
|
-
No_collaborators_available: "No collaborators available",
|
|
11
|
-
Done: 'Done',
|
|
12
|
-
Choose_a_collaborator: "Choose a collaborator",
|
|
13
|
-
Please_input: "Please input",
|
|
14
|
-
Please_select: "Please select",
|
|
15
|
-
Clear: "Clear"
|
|
16
|
-
};
|
|
17
|
-
export default en;
|
package/es/locals/fr.js
DELETED
package/es/locals/zh-CN.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
var zh_CN = {
|
|
2
|
-
Add_an_option: '添加一个选项',
|
|
3
|
-
Find_an_option: "查找标签",
|
|
4
|
-
No_options_available: "没有找到标签。",
|
|
5
|
-
Current_option: "当前标签",
|
|
6
|
-
No_option: "没有标签",
|
|
7
|
-
Choose_an_option: "选择一个标签",
|
|
8
|
-
Add_a_collaborator: "添加协作者",
|
|
9
|
-
Find_a_collaborator: "查找协作者",
|
|
10
|
-
No_collaborators_available: "没有找到协作者",
|
|
11
|
-
Done: '完成',
|
|
12
|
-
Choose_a_collaborator: "选择一个协作者",
|
|
13
|
-
Please_input: "请输入",
|
|
14
|
-
Please_select: "请选择",
|
|
15
|
-
Clear: "清空"
|
|
16
|
-
};
|
|
17
|
-
export default zh_CN;
|
package/es/toaster/alert.js
DELETED
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
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';
|
|
6
|
-
import { css } from 'glamor';
|
|
7
|
-
|
|
8
|
-
var Alert = /*#__PURE__*/function (_React$PureComponent) {
|
|
9
|
-
_inherits(Alert, _React$PureComponent);
|
|
10
|
-
|
|
11
|
-
var _super = _createSuper(Alert);
|
|
12
|
-
|
|
13
|
-
function Alert(props) {
|
|
14
|
-
var _this;
|
|
15
|
-
|
|
16
|
-
_classCallCheck(this, Alert);
|
|
17
|
-
|
|
18
|
-
_this = _super.call(this, props);
|
|
19
|
-
_this.containerStyle = css({
|
|
20
|
-
borderRadius: '3px',
|
|
21
|
-
backgroundColor: '#fff',
|
|
22
|
-
padding: '10px 16px',
|
|
23
|
-
display: 'flex',
|
|
24
|
-
boxSizing: 'border-box',
|
|
25
|
-
boxShadow: 'rgba(67, 90, 111, 0.3) 0px 0px 1px, rgba(67, 90, 111, 0.47) 0px 8px 10px -4px',
|
|
26
|
-
justifyContent: 'space-between',
|
|
27
|
-
flexDirection: 'row'
|
|
28
|
-
});
|
|
29
|
-
_this.containerBorderSuccess = css({
|
|
30
|
-
borderLeft: '3px solid rgb(71, 184, 129)'
|
|
31
|
-
});
|
|
32
|
-
_this.containerBorderWarn = css({
|
|
33
|
-
borderLeft: '3px solid rgb(217, 130, 43)'
|
|
34
|
-
});
|
|
35
|
-
_this.containerBorderDanger = css({
|
|
36
|
-
borderLeft: '3px solid rgb(236, 76, 71)'
|
|
37
|
-
});
|
|
38
|
-
_this.containerBorderNotify = css({
|
|
39
|
-
borderLeft: '3px solid rgb(16, 112, 202)'
|
|
40
|
-
});
|
|
41
|
-
_this.toastTextTitle = css({
|
|
42
|
-
fontWeight: '600',
|
|
43
|
-
fontSize: '14px',
|
|
44
|
-
color: '#435a6f',
|
|
45
|
-
margin: '0'
|
|
46
|
-
});
|
|
47
|
-
_this.toastTextChild = css({
|
|
48
|
-
fontSize: '14px',
|
|
49
|
-
color: '#999',
|
|
50
|
-
margin: '0'
|
|
51
|
-
});
|
|
52
|
-
_this.toastClose = css({
|
|
53
|
-
marginLeft: '15px',
|
|
54
|
-
height: '24px',
|
|
55
|
-
width: '24px',
|
|
56
|
-
lineHeight: '22px',
|
|
57
|
-
fontWeight: '700',
|
|
58
|
-
textAlign: 'center',
|
|
59
|
-
fontSize: '20px',
|
|
60
|
-
color: '#000',
|
|
61
|
-
cursor: 'pointer',
|
|
62
|
-
opacity: '0.5',
|
|
63
|
-
':hover': {
|
|
64
|
-
opacity: 1
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
_this.toastIcon = css({
|
|
68
|
-
marginRight: '10px',
|
|
69
|
-
width: '14px',
|
|
70
|
-
height: '20px',
|
|
71
|
-
lineHeight: '20px'
|
|
72
|
-
});
|
|
73
|
-
return _this;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
_createClass(Alert, [{
|
|
77
|
-
key: "getContainerStyle",
|
|
78
|
-
value: function getContainerStyle(intent) {
|
|
79
|
-
switch (intent) {
|
|
80
|
-
case 'success':
|
|
81
|
-
return {
|
|
82
|
-
borderStyle: this.containerBorderSuccess,
|
|
83
|
-
iconColor: css({
|
|
84
|
-
color: 'rgb(71, 184, 129)'
|
|
85
|
-
}),
|
|
86
|
-
iconClass: 'dtable-font dtable-icon-check-circle'
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
case 'warning':
|
|
90
|
-
return {
|
|
91
|
-
borderStyle: this.containerBorderWarn,
|
|
92
|
-
iconColor: css({
|
|
93
|
-
color: 'rgb(217, 130, 43)'
|
|
94
|
-
}),
|
|
95
|
-
iconClass: 'dtable-font dtable-icon-exclamation-triangle'
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
case 'none':
|
|
99
|
-
return {
|
|
100
|
-
borderStyle: this.containerBorderNotify,
|
|
101
|
-
iconColor: css({
|
|
102
|
-
color: 'rgb(16, 112, 202)'
|
|
103
|
-
}),
|
|
104
|
-
iconClass: 'dtable-font dtable-icon-exclamation-circle'
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
case 'danger':
|
|
108
|
-
return {
|
|
109
|
-
borderStyle: this.containerBorderDanger,
|
|
110
|
-
iconColor: css({
|
|
111
|
-
color: 'rgb(236, 76, 71)'
|
|
112
|
-
}),
|
|
113
|
-
iconClass: 'dtable-font dtable-icon-exclamation-circle'
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
default:
|
|
117
|
-
return {
|
|
118
|
-
borderStyle: this.containerBorderSuccess,
|
|
119
|
-
iconColor: css({
|
|
120
|
-
color: 'rgb(71, 184, 129)'
|
|
121
|
-
}),
|
|
122
|
-
iconClass: 'dtable-font dtable-icon-check-circle'
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}, {
|
|
127
|
-
key: "render",
|
|
128
|
-
value: function render() {
|
|
129
|
-
var toastStyle = this.getContainerStyle(this.props.intent);
|
|
130
|
-
return /*#__PURE__*/React.createElement("div", css(toastStyle.borderStyle, this.containerStyle), /*#__PURE__*/React.createElement("div", {
|
|
131
|
-
className: this.toastIcon
|
|
132
|
-
}, /*#__PURE__*/React.createElement("i", Object.assign({
|
|
133
|
-
className: toastStyle.iconClass
|
|
134
|
-
}, toastStyle.iconColor))), /*#__PURE__*/React.createElement("div", {
|
|
135
|
-
className: this.toastTextContainer
|
|
136
|
-
}, /*#__PURE__*/React.createElement("p", {
|
|
137
|
-
className: this.toastTextTitle
|
|
138
|
-
}, this.props.title), this.props.children ? /*#__PURE__*/React.createElement("p", {
|
|
139
|
-
className: this.toastTextChild
|
|
140
|
-
}, this.props.children) : null), this.props.isRemoveable && /*#__PURE__*/React.createElement("div", {
|
|
141
|
-
onClick: this.props.onRemove,
|
|
142
|
-
className: this.toastClose
|
|
143
|
-
}, /*#__PURE__*/React.createElement("span", null, "\xD7")));
|
|
144
|
-
}
|
|
145
|
-
}]);
|
|
146
|
-
|
|
147
|
-
return Alert;
|
|
148
|
-
}(React.PureComponent);
|
|
149
|
-
|
|
150
|
-
export default Alert;
|
package/es/toaster/index.js
DELETED
package/es/toaster/toast.js
DELETED
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
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';
|
|
6
|
-
import { css } from 'glamor';
|
|
7
|
-
import Transition from 'react-transition-group/Transition';
|
|
8
|
-
import Alert from './alert';
|
|
9
|
-
var animationEasing = {
|
|
10
|
-
deceleration: 'cubic-bezier(0.0, 0.0, 0.2, 1)',
|
|
11
|
-
acceleration: 'cubic-bezier(0.4, 0.0, 1, 1)',
|
|
12
|
-
spring: 'cubic-bezier(0.175, 0.885, 0.320, 1.175)'
|
|
13
|
-
};
|
|
14
|
-
var ANIMATION_DURATION = 240;
|
|
15
|
-
var openAnimation = css.keyframes('openAnimation', {
|
|
16
|
-
from: {
|
|
17
|
-
opacity: 0,
|
|
18
|
-
transform: 'translateY(-120%)'
|
|
19
|
-
},
|
|
20
|
-
to: {
|
|
21
|
-
transform: 'translateY(0)'
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
var closeAnimation = css.keyframes('closeAnimation', {
|
|
25
|
-
from: {
|
|
26
|
-
transform: 'scale(1)',
|
|
27
|
-
opacity: 1
|
|
28
|
-
},
|
|
29
|
-
to: {
|
|
30
|
-
transform: 'scale(0.9)',
|
|
31
|
-
opacity: 0
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
var animationStyles = css({
|
|
35
|
-
display: 'flex',
|
|
36
|
-
flexDirection: 'column',
|
|
37
|
-
alignItems: 'center',
|
|
38
|
-
height: 0,
|
|
39
|
-
transition: "all ".concat(ANIMATION_DURATION, "ms ").concat(animationEasing.deceleration),
|
|
40
|
-
'&[data-state="entering"], &[data-state="entered"]': {
|
|
41
|
-
animation: "".concat(openAnimation, " ").concat(ANIMATION_DURATION, "ms ").concat(animationEasing.spring, " both")
|
|
42
|
-
},
|
|
43
|
-
'&[data-state="exiting"]': {
|
|
44
|
-
animation: "".concat(closeAnimation, " 120ms ").concat(animationEasing.acceleration, " both")
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
var Toast = /*#__PURE__*/function (_React$PureComponent) {
|
|
49
|
-
_inherits(Toast, _React$PureComponent);
|
|
50
|
-
|
|
51
|
-
var _super = _createSuper(Toast);
|
|
52
|
-
|
|
53
|
-
function Toast() {
|
|
54
|
-
var _this;
|
|
55
|
-
|
|
56
|
-
_classCallCheck(this, Toast);
|
|
57
|
-
|
|
58
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
59
|
-
args[_key] = arguments[_key];
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
63
|
-
_this.state = {
|
|
64
|
-
isShown: true,
|
|
65
|
-
height: 0
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
_this.close = function () {
|
|
69
|
-
_this.clearCloseTimer();
|
|
70
|
-
|
|
71
|
-
_this.setState({
|
|
72
|
-
isShown: false
|
|
73
|
-
});
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
_this.startCloseTimer = function () {
|
|
77
|
-
if (_this.props.duration) {
|
|
78
|
-
_this.closeTimer = setTimeout(function () {
|
|
79
|
-
_this.close();
|
|
80
|
-
}, _this.props.duration * 1000);
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
_this.clearCloseTimer = function () {
|
|
85
|
-
if (_this.closeTimer) {
|
|
86
|
-
clearTimeout(_this.closeTimer);
|
|
87
|
-
_this.closeTimer = null;
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
_this.handleMouseEnter = function () {
|
|
92
|
-
_this.clearCloseTimer();
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
_this.handleMouseLeave = function () {
|
|
96
|
-
_this.startCloseTimer();
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
_this.onRef = function (ref) {
|
|
100
|
-
if (ref === null) return;
|
|
101
|
-
|
|
102
|
-
var _ref$getBoundingClien = ref.getBoundingClientRect(),
|
|
103
|
-
height = _ref$getBoundingClien.height;
|
|
104
|
-
|
|
105
|
-
_this.setState({
|
|
106
|
-
height: height
|
|
107
|
-
});
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
return _this;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
_createClass(Toast, [{
|
|
114
|
-
key: "componentDidUpdate",
|
|
115
|
-
value: function componentDidUpdate(prevProps) {
|
|
116
|
-
if (prevProps.isShown !== this.props.isShown) {
|
|
117
|
-
// eslint-disable-next-line react/no-did-update-set-state
|
|
118
|
-
this.setState({
|
|
119
|
-
isShown: this.props.isShown
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}, {
|
|
124
|
-
key: "componentDidMount",
|
|
125
|
-
value: function componentDidMount() {
|
|
126
|
-
this.startCloseTimer();
|
|
127
|
-
}
|
|
128
|
-
}, {
|
|
129
|
-
key: "componentWillUnmount",
|
|
130
|
-
value: function componentWillUnmount() {
|
|
131
|
-
this.clearCloseTimer();
|
|
132
|
-
}
|
|
133
|
-
}, {
|
|
134
|
-
key: "render",
|
|
135
|
-
value: function render() {
|
|
136
|
-
var _this2 = this;
|
|
137
|
-
|
|
138
|
-
return /*#__PURE__*/React.createElement(Transition, {
|
|
139
|
-
appear: true,
|
|
140
|
-
unmountOnExit: true,
|
|
141
|
-
timeout: ANIMATION_DURATION,
|
|
142
|
-
in: this.state.isShown,
|
|
143
|
-
onExited: this.props.onRemove
|
|
144
|
-
}, function (state) {
|
|
145
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
146
|
-
"data-state": state,
|
|
147
|
-
className: animationStyles,
|
|
148
|
-
onMouseEnter: _this2.handleMouseEnter,
|
|
149
|
-
onMouseLeave: _this2.handleMouseLeave,
|
|
150
|
-
style: {
|
|
151
|
-
height: _this2.state.height,
|
|
152
|
-
zIndex: _this2.props.zIndex,
|
|
153
|
-
marginBottom: _this2.state.isShown ? 0 : -_this2.state.height
|
|
154
|
-
}
|
|
155
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
156
|
-
ref: _this2.onRef,
|
|
157
|
-
style: {
|
|
158
|
-
padding: 8
|
|
159
|
-
}
|
|
160
|
-
}, /*#__PURE__*/React.createElement(Alert, {
|
|
161
|
-
intent: _this2.props.intent,
|
|
162
|
-
title: _this2.props.title,
|
|
163
|
-
children: _this2.props.children || '',
|
|
164
|
-
isRemoveable: _this2.props.hasCloseButton,
|
|
165
|
-
onRemove: function onRemove() {
|
|
166
|
-
return _this2.close();
|
|
167
|
-
}
|
|
168
|
-
})));
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
}]);
|
|
172
|
-
|
|
173
|
-
return Toast;
|
|
174
|
-
}(React.PureComponent);
|
|
175
|
-
|
|
176
|
-
Toast.defaultProps = {
|
|
177
|
-
intent: 'none'
|
|
178
|
-
};
|
|
179
|
-
export { Toast as default };
|