dtable-ui-component 5.3.1-beta → 5.3.1
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/CheckboxEditor/index.css +20 -3
- package/lib/CheckboxEditor/index.js +35 -98
- package/lib/CheckboxFormatter/index.js +9 -6
- package/lib/CollaboratorEditor/index.css +35 -12
- package/lib/CollaboratorEditor/index.js +212 -18
- package/lib/CollaboratorEditor/{mb-collaborator-editor → mb-collaborator-editor-popover}/index.js +29 -26
- package/lib/CollaboratorEditor/pc-collaborator-editor-popover/index.js +97 -0
- package/lib/CollaboratorItem/index.css +1 -1
- package/lib/CollaboratorItem/index.js +2 -6
- package/lib/DTableFiltersPopover/utils/index.js +7 -1
- package/lib/DTableFiltersPopover/widgets/filter-calendar.js +2 -2
- package/lib/DTableSelect/index.js +1 -3
- package/lib/DateEditor/index.js +51 -14
- package/lib/DateEditor/pc-date-editor-popover.js +12 -145
- package/lib/Department-editor/department-single-select.js +1 -1
- package/lib/Department-editor/index.js +4 -3
- package/lib/DepartmentSingleSelectFormatter/index.js +1 -2
- package/lib/FileEditor/index.js +11 -244
- package/lib/FileEditor/pc-files-addition/index.js +1 -0
- package/lib/FileEditor/pc-files-addition/pc-file-uploaded-item.js +1 -0
- package/lib/FileEditor/pc-files-preview/index.js +1 -0
- package/lib/FileEditor/pc-files-preview/pc-file-item-preview.js +1 -0
- package/lib/FileItemFormatter/assets/file/192/excel.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/file.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/music.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/pdf.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/pic.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/ppt.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/txt.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/video.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/word.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/excel.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/file.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/music.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/pdf.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/pic.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/ppt.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/txt.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/video.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/word.png +0 -0
- package/lib/FileItemFormatter/assets/folder/folder-192.png +0 -0
- package/lib/FileItemFormatter/assets/folder/folder-24.png +0 -0
- package/lib/FileItemFormatter/index.js +20 -19
- package/lib/FileItemFormatter/utils.js +99 -0
- package/lib/FileUploader/index.js +14 -268
- package/lib/FormulaFormatter/index.js +1 -2
- package/lib/FormulaFormatter/utils.js +31 -0
- package/lib/LinkEditor/pc-link-editor-popover/index.js +1 -1
- package/lib/MultipleSelectEditor/index.css +9 -0
- package/lib/MultipleSelectEditor/index.js +177 -16
- package/lib/NumberEditor/index.js +77 -64
- package/lib/{RowExpandFormatter/RowExpandEmailFormatter → RowExpandEmailFormatter}/index.css +1 -1
- package/lib/{RowExpandFormatter/RowExpandEmailFormatter → RowExpandEmailFormatter}/index.js +1 -1
- package/lib/{RowExpandFormatter/RowExpandFileFormatter → RowExpandFileFormatter}/index.css +6 -6
- package/lib/{RowExpandFormatter/RowExpandFileFormatter → RowExpandFileFormatter}/index.js +1 -3
- package/lib/{RowExpandFormatter/RowExpandFileFormatter → RowExpandFileFormatter}/row-expand-file-item-formatter.js +11 -10
- package/lib/RowExpandFormatter/index.css +0 -26
- package/lib/RowExpandFormatter/index.js +100 -84
- package/lib/{RowExpandFormatter/RowExpandFormulaFormatter → RowExpandFormulaFormatter}/index.js +10 -11
- package/lib/{RowExpandFormatter/RowExpandImageFormatter → RowExpandImageFormatter}/index.css +6 -6
- package/lib/{RowExpandFormatter/RowExpandImageFormatter → RowExpandImageFormatter}/index.js +1 -1
- package/lib/{RowExpandFormatter/RowExpandImageFormatter → RowExpandImageFormatter}/row-expand-image-item-formatter.js +3 -3
- package/lib/{RowExpandFormatter/RowExpandLinkFormatter → RowExpandLinkFormatter}/collaborator-item-formatter.js +1 -1
- package/lib/{RowExpandFormatter/RowExpandLinkFormatter → RowExpandLinkFormatter}/index.js +5 -5
- package/lib/{RowExpandFormatter/RowExpandLinkFormatter → RowExpandLinkFormatter}/utils.js +1 -1
- package/lib/{RowExpandFormatter/RowExpandRateFormatter → RowExpandRateFormatter}/index.css +1 -1
- package/lib/RowExpandUrlFormatter/index.css +1 -0
- package/lib/{RowExpandFormatter/RowExpandUrlFormatter → RowExpandUrlFormatter}/index.js +3 -4
- package/lib/SingleSelectEditor/index.css +14 -0
- package/lib/SingleSelectEditor/index.js +156 -16
- package/lib/TextEditor/index.js +42 -113
- package/lib/constants/index.js +2 -34
- package/lib/css/cell-editor.css +2 -18
- package/lib/index.js +46 -74
- package/lib/lang/index.js +14 -16
- package/lib/locals/de.js +103 -0
- package/lib/locals/en.js +104 -0
- package/lib/locals/es.js +103 -0
- package/lib/locals/fr.js +103 -0
- package/lib/locals/pt.js +103 -0
- package/lib/locals/ru.js +103 -0
- package/lib/locals/zh-CN.js +104 -0
- package/lib/select-editor/index.js +6 -6
- package/lib/select-editor/{mb-select-editor → mb-select-editor-popover}/index.js +3 -3
- package/lib/select-editor/pc-select-editor-popover/index.css +71 -0
- package/lib/select-editor/pc-select-editor-popover/index.js +122 -0
- package/lib/utils/editor-utils.js +6 -1
- package/lib/utils/url.js +8 -119
- package/lib/utils/utils.js +2 -89
- package/package.json +2 -3
- package/lib/CollaboratorEditor/pc-collaborator-editor/index.js +0 -257
- package/lib/DeleteTip/index.js +0 -50
- package/lib/DigitalSignEditor/constants.js +0 -7
- package/lib/DigitalSignEditor/index.css +0 -69
- package/lib/DigitalSignEditor/index.js +0 -182
- package/lib/DigitalSignEditor/service.js +0 -38
- package/lib/DigitalSignEditor/signature-board/index.css +0 -35
- package/lib/DigitalSignEditor/signature-board/index.js +0 -135
- package/lib/DigitalSignEditor/signature-board/signature-tool.js +0 -396
- package/lib/DigitalSignEditor/utils.js +0 -29
- package/lib/DurationEditor/index.js +0 -111
- package/lib/EmailEditor/index.js +0 -59
- package/lib/FileEditor/addition-previewer/index.css +0 -1
- package/lib/FileEditor/addition-previewer/index.js +0 -52
- package/lib/FileEditor/addition-previewer/local-file-addition/index.css +0 -1
- package/lib/FileEditor/addition-previewer/local-file-addition/index.js +0 -252
- package/lib/FileEditor/constants.js +0 -7
- package/lib/FileEditor/files-previewer/file-previewer/dropdown-menu.js +0 -74
- package/lib/FileEditor/files-previewer/file-previewer/file-name-editor/index.css +0 -5
- package/lib/FileEditor/files-previewer/file-previewer/file-name-editor/index.js +0 -77
- package/lib/FileEditor/files-previewer/file-previewer/index.css +0 -88
- package/lib/FileEditor/files-previewer/file-previewer/index.js +0 -167
- package/lib/FileEditor/files-previewer/index.css +0 -56
- package/lib/FileEditor/files-previewer/index.js +0 -277
- package/lib/FileEditor/index.css +0 -6
- package/lib/FileEditor/utils.js +0 -22
- package/lib/FileUploader/index.css +0 -9
- package/lib/GeolocationEditor/country-editor.js +0 -319
- package/lib/GeolocationEditor/index.css +0 -641
- package/lib/GeolocationEditor/index.js +0 -241
- package/lib/GeolocationEditor/location-editor.js +0 -368
- package/lib/GeolocationEditor/map-editor/index.js +0 -456
- package/lib/GeolocationEditor/map-editor/large-editor/index.css +0 -137
- package/lib/GeolocationEditor/map-editor/large-editor/index.js +0 -461
- package/lib/GeolocationEditor/map-editor-utils.js +0 -153
- package/lib/GeolocationEditor/map-selection-editor/index.js +0 -455
- package/lib/GeolocationEditor/map-selection-editor/large-editor/index.css +0 -1
- package/lib/GeolocationEditor/map-selection-editor/large-editor/index.js +0 -447
- package/lib/GeolocationEditor/parse-geolocation.js +0 -282
- package/lib/GeolocationEditor/province-city-editor.js +0 -292
- package/lib/GeolocationEditor/province-editor.js +0 -226
- package/lib/GeolocationEditor/selector-header-item.js +0 -28
- package/lib/GeolocationEditor/selector-list.js +0 -33
- package/lib/GeolocationEditor/with-ref.js +0 -27
- package/lib/ImageEditor/addition-previewer/image-link/index.css +0 -45
- package/lib/ImageEditor/addition-previewer/image-link/index.js +0 -73
- package/lib/ImageEditor/addition-previewer/index.css +0 -106
- package/lib/ImageEditor/addition-previewer/index.js +0 -63
- package/lib/ImageEditor/addition-previewer/local-image-addition/index.css +0 -125
- package/lib/ImageEditor/addition-previewer/local-image-addition/index.js +0 -254
- package/lib/ImageEditor/constants.js +0 -7
- package/lib/ImageEditor/images-previewer/image-preview/index.css +0 -59
- package/lib/ImageEditor/images-previewer/image-preview/index.js +0 -155
- package/lib/ImageEditor/images-previewer/index.css +0 -18
- package/lib/ImageEditor/images-previewer/index.js +0 -140
- package/lib/ImageEditor/index.css +0 -24
- package/lib/ImageEditor/index.js +0 -194
- package/lib/ImageThumbnail/index.css +0 -20
- package/lib/ImageThumbnail/index.js +0 -136
- package/lib/RowExpandDialog/body/index.css +0 -21
- package/lib/RowExpandDialog/body/index.js +0 -279
- package/lib/RowExpandDialog/column-content/index.css +0 -43
- package/lib/RowExpandDialog/column-content/index.js +0 -50
- package/lib/RowExpandDialog/constants.js +0 -114
- package/lib/RowExpandDialog/header/index.css +0 -31
- package/lib/RowExpandDialog/header/index.js +0 -33
- package/lib/RowExpandDialog/index.css +0 -24
- package/lib/RowExpandDialog/index.js +0 -268
- package/lib/RowExpandDialog/utils.js +0 -83
- package/lib/RowExpandEditor/RowExpandAddBtn/index.css +0 -22
- package/lib/RowExpandEditor/RowExpandAddBtn/index.js +0 -24
- package/lib/RowExpandEditor/RowExpandCheckboxEditor/index.css +0 -18
- package/lib/RowExpandEditor/RowExpandCheckboxEditor/index.js +0 -43
- package/lib/RowExpandEditor/RowExpandCollaboratorEditor/index.css +0 -5
- package/lib/RowExpandEditor/RowExpandCollaboratorEditor/index.js +0 -232
- package/lib/RowExpandEditor/RowExpandDateEditor/index.js +0 -130
- package/lib/RowExpandEditor/RowExpandDepartmentEditor/index.js +0 -129
- package/lib/RowExpandEditor/RowExpandDigitalSignEditor/index.css +0 -13
- package/lib/RowExpandEditor/RowExpandDigitalSignEditor/index.js +0 -208
- package/lib/RowExpandEditor/RowExpandDurationEditor/index.js +0 -105
- package/lib/RowExpandEditor/RowExpandEmailEditor/index.css +0 -2
- package/lib/RowExpandEditor/RowExpandEmailEditor/index.js +0 -125
- package/lib/RowExpandEditor/RowExpandFileEditor/index.css +0 -1
- package/lib/RowExpandEditor/RowExpandFileEditor/index.js +0 -146
- package/lib/RowExpandEditor/RowExpandGeolocationEditor/index.css +0 -17
- package/lib/RowExpandEditor/RowExpandGeolocationEditor/index.js +0 -165
- package/lib/RowExpandEditor/RowExpandImageEditor/index.css +0 -6
- package/lib/RowExpandEditor/RowExpandImageEditor/index.js +0 -170
- package/lib/RowExpandEditor/RowExpandLongTextEditor/index.css +0 -6
- package/lib/RowExpandEditor/RowExpandLongTextEditor/index.js +0 -124
- package/lib/RowExpandEditor/RowExpandMultipleSelectEditor/index.css +0 -44
- package/lib/RowExpandEditor/RowExpandMultipleSelectEditor/index.js +0 -224
- package/lib/RowExpandEditor/RowExpandNumberEditor/index.js +0 -105
- package/lib/RowExpandEditor/RowExpandRateEditor/index.css +0 -13
- package/lib/RowExpandEditor/RowExpandRateEditor/index.js +0 -152
- package/lib/RowExpandEditor/RowExpandSingleSelectorEditor/index.css +0 -58
- package/lib/RowExpandEditor/RowExpandSingleSelectorEditor/index.js +0 -192
- package/lib/RowExpandEditor/RowExpandTextEditor/index.css +0 -4
- package/lib/RowExpandEditor/RowExpandTextEditor/index.js +0 -127
- package/lib/RowExpandEditor/RowExpandUrlEditor/index.css +0 -31
- package/lib/RowExpandEditor/RowExpandUrlEditor/index.js +0 -130
- package/lib/RowExpandEditor/constants.js +0 -44
- package/lib/RowExpandEditor/index.css +0 -0
- package/lib/RowExpandEditor/index.js +0 -32
- package/lib/RowExpandFormatter/RowExpandDepartmentFormatter/index.js +0 -27
- package/lib/RowExpandFormatter/RowExpandUrlFormatter/index.css +0 -1
- package/lib/RowExpandFormatter/constants.js +0 -60
- package/lib/UploadProgress/index.js +0 -38
- package/lib/UrlEditor/index.js +0 -62
- package/lib/common/editor-base.js +0 -53
- package/lib/constants/file.js +0 -96
- package/lib/constants/key-codes.js +0 -109
- package/lib/hooks/index.js +0 -16
- package/lib/locales/de.json +0 -163
- package/lib/locales/en.json +0 -163
- package/lib/locales/es.json +0 -163
- package/lib/locales/fr.json +0 -163
- package/lib/locales/pt.json +0 -163
- package/lib/locales/ru.json +0 -163
- package/lib/locales/zh-CN.json +0 -163
- package/lib/select-editor/pc-select-editor/index.css +0 -85
- package/lib/select-editor/pc-select-editor/index.js +0 -290
- package/lib/utils/cell-comparer.js +0 -35
- package/lib/utils/cell.js +0 -55
- package/lib/utils/column-utils.js +0 -25
- package/lib/utils/get-event-transfer.js +0 -75
- package/lib/utils/object-utils.js +0 -61
- /package/lib/CollaboratorEditor/{mb-collaborator-editor → mb-collaborator-editor-popover}/index.css +0 -0
- /package/lib/CollaboratorEditor/{pc-collaborator-editor → pc-collaborator-editor-popover}/index.css +0 -0
- /package/lib/{RowExpandFormatter/RowExpandLinkFormatter → RowExpandLinkFormatter}/index.css +0 -0
- /package/lib/{RowExpandFormatter/RowExpandLinkFormatter → RowExpandLinkFormatter}/value-display-utils.js +0 -0
- /package/lib/{RowExpandFormatter/RowExpandRateFormatter → RowExpandRateFormatter}/index.js +0 -0
- /package/lib/select-editor/{mb-select-editor → mb-select-editor-popover}/index.css +0 -0
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _DTableSearchInput = _interopRequireDefault(require("../DTableSearchInput"));
|
|
11
|
-
var _constants = require("../constants");
|
|
12
|
-
var _Loading = _interopRequireDefault(require("../Loading"));
|
|
13
|
-
var _lang = require("../lang");
|
|
14
|
-
class ProvinceEditor extends _react.Component {
|
|
15
|
-
constructor(props) {
|
|
16
|
-
super(props);
|
|
17
|
-
this.getLocationData = () => {
|
|
18
|
-
// mediaUrl
|
|
19
|
-
const {
|
|
20
|
-
mediaUrl
|
|
21
|
-
} = window.dtable;
|
|
22
|
-
// get locations from server
|
|
23
|
-
return fetch("".concat(mediaUrl, "geo-data/cn-location.json")).then(res => {
|
|
24
|
-
return res.json();
|
|
25
|
-
}).catch(() => {
|
|
26
|
-
// get locations from local
|
|
27
|
-
return fetch('./geo-data/cn-location.json').then(res => {
|
|
28
|
-
return res.json();
|
|
29
|
-
});
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
this.onHotKey = e => {
|
|
33
|
-
if (e.keyCode === _constants.KeyCodes.Enter) {
|
|
34
|
-
this.onEnter(e);
|
|
35
|
-
} else if (e.keyCode === _constants.KeyCodes.UpArrow) {
|
|
36
|
-
this.onUpArrow(e);
|
|
37
|
-
} else if (e.keyCode === _constants.KeyCodes.DownArrow) {
|
|
38
|
-
this.onDownArrow(e);
|
|
39
|
-
} else if (e.keyCode === _constants.KeyCodes.Tab) {
|
|
40
|
-
if (this.props.onPressTab) {
|
|
41
|
-
this.props.onPressTab(e);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
this.onEnter = e => {
|
|
46
|
-
e.stopPropagation();
|
|
47
|
-
let selectedProvince;
|
|
48
|
-
if (this.filteredProvince.length === 1) {
|
|
49
|
-
selectedProvince = this.filteredProvince[0];
|
|
50
|
-
} else if (this.state.highlightIndex > -1) {
|
|
51
|
-
selectedProvince = this.filteredProvince[this.state.highlightIndex];
|
|
52
|
-
}
|
|
53
|
-
if (selectedProvince) {
|
|
54
|
-
this.props.setValue({
|
|
55
|
-
province: selectedProvince.name
|
|
56
|
-
});
|
|
57
|
-
this.props.onSubmit();
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
this.onUpArrow = e => {
|
|
61
|
-
e.preventDefault();
|
|
62
|
-
e.stopPropagation();
|
|
63
|
-
let {
|
|
64
|
-
highlightIndex
|
|
65
|
-
} = this.state;
|
|
66
|
-
if (highlightIndex > 0) {
|
|
67
|
-
this.setState({
|
|
68
|
-
highlightIndex: highlightIndex - 1
|
|
69
|
-
}, () => {
|
|
70
|
-
if (highlightIndex < this.filteredProvince.length - this.maxItemNum) {
|
|
71
|
-
this.selectContainer.scrollTop -= this.itemHeight;
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
this.onDownArrow = e => {
|
|
77
|
-
e.preventDefault();
|
|
78
|
-
e.stopPropagation();
|
|
79
|
-
let {
|
|
80
|
-
highlightIndex
|
|
81
|
-
} = this.state;
|
|
82
|
-
if (highlightIndex < this.filteredProvince.length - 1) {
|
|
83
|
-
this.setState({
|
|
84
|
-
highlightIndex: highlightIndex + 1
|
|
85
|
-
}, () => {
|
|
86
|
-
if (highlightIndex >= this.maxItemNum) {
|
|
87
|
-
this.selectContainer.scrollTop += this.itemHeight;
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
this.onClick = province => {
|
|
93
|
-
this.props.setValue({
|
|
94
|
-
province
|
|
95
|
-
});
|
|
96
|
-
this.setState({
|
|
97
|
-
value: province
|
|
98
|
-
});
|
|
99
|
-
this.props.onSubmit();
|
|
100
|
-
};
|
|
101
|
-
this.onChange = searchVal => {
|
|
102
|
-
const value = searchVal.trim();
|
|
103
|
-
if (value === this.state.searchingProvince) return;
|
|
104
|
-
if (value.length === 0) {
|
|
105
|
-
this.provinceReg = null;
|
|
106
|
-
}
|
|
107
|
-
if (value.length > 0) {
|
|
108
|
-
this.provinceReg = new RegExp(value, 'i');
|
|
109
|
-
}
|
|
110
|
-
this.filteredProvince = this.locations.children.filter(item => {
|
|
111
|
-
if (!this.provinceReg) {
|
|
112
|
-
return true;
|
|
113
|
-
}
|
|
114
|
-
return this.provinceReg.test(item.name) || this.provinceReg.test(item.alphabetic);
|
|
115
|
-
});
|
|
116
|
-
this.setState({
|
|
117
|
-
searchingProvince: value,
|
|
118
|
-
highlightIndex: this.filteredProvince.length > 0 ? 0 : -1
|
|
119
|
-
});
|
|
120
|
-
};
|
|
121
|
-
this.onKeyDown = e => {
|
|
122
|
-
if (e.keyCode === _constants.KeyCodes.ChineseInputMethod || e.keyCode === _constants.KeyCodes.Enter || e.keyCode === _constants.KeyCodes.LeftArrow || e.keyCode === _constants.KeyCodes.RightArrow) {
|
|
123
|
-
e.stopPropagation();
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
|
-
this.onMenuMouseEnter = index => {
|
|
127
|
-
this.setState({
|
|
128
|
-
highlightIndex: index
|
|
129
|
-
});
|
|
130
|
-
};
|
|
131
|
-
this.onMenuMouseLeave = index => {
|
|
132
|
-
this.timer = setTimeout(() => {
|
|
133
|
-
if (this.state.highlightIndex === index) {
|
|
134
|
-
this.setState({
|
|
135
|
-
highlightIndex: -1
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
}, 300);
|
|
139
|
-
};
|
|
140
|
-
this.createProvinceList = () => {
|
|
141
|
-
const {
|
|
142
|
-
value,
|
|
143
|
-
highlightIndex
|
|
144
|
-
} = this.state;
|
|
145
|
-
let provinceList = this.filteredProvince.map((item, index) => {
|
|
146
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
147
|
-
className: "geolocation-region-editor-province ".concat(highlightIndex === index ? 'geolocation-region-editor-province-highlight' : ''),
|
|
148
|
-
key: item.alphabetic + index,
|
|
149
|
-
title: item.name,
|
|
150
|
-
"aria-label": item.name,
|
|
151
|
-
onClick: () => this.onClick(item.name),
|
|
152
|
-
onMouseEnter: () => this.onMenuMouseEnter(index),
|
|
153
|
-
onMouseLeave: () => this.onMenuMouseLeave(index)
|
|
154
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
155
|
-
className: "province-name"
|
|
156
|
-
}, item.name), /*#__PURE__*/_react.default.createElement("span", {
|
|
157
|
-
className: "icon ".concat(value === item.name ? 'province-selected-icon dtable-font dtable-icon-check-mark' : '')
|
|
158
|
-
}));
|
|
159
|
-
});
|
|
160
|
-
if (provinceList.length === 0) {
|
|
161
|
-
provinceList.push( /*#__PURE__*/_react.default.createElement("div", {
|
|
162
|
-
key: 'province-null',
|
|
163
|
-
className: "country-list-empty"
|
|
164
|
-
}, (0, _lang.getLocale)('No_options')));
|
|
165
|
-
}
|
|
166
|
-
return provinceList;
|
|
167
|
-
};
|
|
168
|
-
this.value = props.value || {};
|
|
169
|
-
this.locations = {};
|
|
170
|
-
this.state = {
|
|
171
|
-
isLoadingData: true,
|
|
172
|
-
searchingProvince: '',
|
|
173
|
-
value: this.value.province,
|
|
174
|
-
highlightIndex: -1
|
|
175
|
-
};
|
|
176
|
-
this.filteredProvince = [];
|
|
177
|
-
this.timer = null;
|
|
178
|
-
this.maxItemNum = 5;
|
|
179
|
-
this.itemHeight = 30;
|
|
180
|
-
}
|
|
181
|
-
componentDidMount() {
|
|
182
|
-
if (!window.app.location) {
|
|
183
|
-
this.getLocationData().then(data => {
|
|
184
|
-
this.locations = data;
|
|
185
|
-
window.app.location = data;
|
|
186
|
-
this.filteredProvince = this.locations.children;
|
|
187
|
-
this.setState({
|
|
188
|
-
isLoadingData: false
|
|
189
|
-
});
|
|
190
|
-
});
|
|
191
|
-
} else {
|
|
192
|
-
this.locations = window.app.location;
|
|
193
|
-
this.filteredProvince = this.locations.children;
|
|
194
|
-
this.setState({
|
|
195
|
-
isLoadingData: false
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
document.addEventListener('keydown', this.onHotKey, true);
|
|
199
|
-
}
|
|
200
|
-
componentWillUnmount() {
|
|
201
|
-
document.removeEventListener('keydown', this.onHotKey, true);
|
|
202
|
-
if (this.timer) {
|
|
203
|
-
clearTimeout(this.timer);
|
|
204
|
-
this.timer = null;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
render() {
|
|
208
|
-
const {
|
|
209
|
-
isLoadingData
|
|
210
|
-
} = this.state;
|
|
211
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
212
|
-
className: "dtable-ui-geolocation-province-editor"
|
|
213
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
214
|
-
className: "geolocation-province-list-header"
|
|
215
|
-
}, /*#__PURE__*/_react.default.createElement(_DTableSearchInput.default, {
|
|
216
|
-
placeholder: (0, _lang.getLocale)('Search_province'),
|
|
217
|
-
onKeyDown: this.onKeyDown,
|
|
218
|
-
onChange: this.onChange,
|
|
219
|
-
autoFocus: true
|
|
220
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
221
|
-
className: "geolocation-province-list-container",
|
|
222
|
-
ref: ref => this.selectContainer = ref
|
|
223
|
-
}, isLoadingData ? /*#__PURE__*/_react.default.createElement(_Loading.default, null) : this.createProvinceList()));
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
var _default = exports.default = ProvinceEditor;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _lang = require("../lang");
|
|
10
|
-
class SelectorHeaderItem extends _react.default.Component {
|
|
11
|
-
render() {
|
|
12
|
-
const {
|
|
13
|
-
type,
|
|
14
|
-
clickHandler,
|
|
15
|
-
selectedType,
|
|
16
|
-
selectedItem
|
|
17
|
-
} = this.props;
|
|
18
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
19
|
-
className: 'dtable-ui-geolocation-selector-header-item ' + (selectedType === type ? 'selected-dtable-ui-geolocation-selector-header-item' : ''),
|
|
20
|
-
onClick: () => {
|
|
21
|
-
clickHandler(type);
|
|
22
|
-
}
|
|
23
|
-
}, /*#__PURE__*/_react.default.createElement("span", null, selectedItem ? selectedItem.name ? selectedItem.name : selectedItem : (0, _lang.getLocale)('Select_location')), /*#__PURE__*/_react.default.createElement("i", {
|
|
24
|
-
className: "dtable-font dtable-icon-down3"
|
|
25
|
-
}));
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
var _default = exports.default = SelectorHeaderItem;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
class SelectorList extends _react.default.Component {
|
|
10
|
-
render() {
|
|
11
|
-
const {
|
|
12
|
-
clickHandler,
|
|
13
|
-
type,
|
|
14
|
-
selectedItem,
|
|
15
|
-
parent,
|
|
16
|
-
doubleClickHandler
|
|
17
|
-
} = this.props;
|
|
18
|
-
return /*#__PURE__*/_react.default.createElement("ul", {
|
|
19
|
-
className: "dtable-ui-geolocation-selector-list"
|
|
20
|
-
}, parent.children.map((item, index) => {
|
|
21
|
-
const isSelected = selectedItem && item.name === selectedItem.name;
|
|
22
|
-
return /*#__PURE__*/_react.default.createElement("li", {
|
|
23
|
-
onClick: () => clickHandler(item),
|
|
24
|
-
onDoubleClick: () => {
|
|
25
|
-
doubleClickHandler && doubleClickHandler(item);
|
|
26
|
-
},
|
|
27
|
-
key: type + '-item-' + index,
|
|
28
|
-
className: "dtable-ui-geolocation-selector-list-item ".concat(type === 'province' ? 'province-item' : '', " ").concat(isSelected ? 'selected-list-item' : '')
|
|
29
|
-
}, item.name);
|
|
30
|
-
}));
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
var _default = exports.default = SelectorList;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
// Just do one thing, pass `WrappedComponent` back to `getInstance` (if any)
|
|
10
|
-
const withRef = WrappedComponent => {
|
|
11
|
-
var _withRef;
|
|
12
|
-
return _withRef = class withRef extends _react.Component {
|
|
13
|
-
render() {
|
|
14
|
-
// You directly modify this.props.ref in the react development mode will report an error, you are not allowed to modify
|
|
15
|
-
const props = {
|
|
16
|
-
...this.props
|
|
17
|
-
};
|
|
18
|
-
// Assign getInstance to ref here
|
|
19
|
-
// Pass to `WrappedComponent` so that getInstance can get the `WrappedComponent` instance
|
|
20
|
-
if (typeof this.props.getInstance === 'function') {
|
|
21
|
-
props.ref = this.props.getInstance;
|
|
22
|
-
}
|
|
23
|
-
return /*#__PURE__*/_react.default.createElement(WrappedComponent, props);
|
|
24
|
-
}
|
|
25
|
-
}, _withRef.displayName = "withRef(".concat(WrappedComponent.displayName || WrappedComponent.name || 'Component', ")"), _withRef;
|
|
26
|
-
};
|
|
27
|
-
var _default = exports.default = withRef;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
.dtable-ui-image-link {
|
|
2
|
-
width: 100%;
|
|
3
|
-
padding: 6rem 0;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.dtable-ui-image-link-container {
|
|
7
|
-
width: 100%;
|
|
8
|
-
display: flex;
|
|
9
|
-
justify-content: center;
|
|
10
|
-
align-items: center;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.dtable-ui-image-link-input {
|
|
14
|
-
border-bottom-right-radius: 0;
|
|
15
|
-
border-top-right-radius: 0;
|
|
16
|
-
width: 50%;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.dtable-ui-image-link-input:focus {
|
|
20
|
-
z-index: 2;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.dtable-ui-image-link-icon {
|
|
24
|
-
display: flex;
|
|
25
|
-
width: 2.375rem;
|
|
26
|
-
height: 2.375rem;
|
|
27
|
-
justify-content: center;
|
|
28
|
-
align-items: center;
|
|
29
|
-
border: 1px solid rgba(0, 40, 100, 0.12);
|
|
30
|
-
border-left: none;
|
|
31
|
-
color: #a6aeb6;
|
|
32
|
-
cursor: pointer;
|
|
33
|
-
border-radius: 0 3px 3px 0;
|
|
34
|
-
background: #fafafa;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.dtable-ui-image-link-icon:hover {
|
|
38
|
-
background: #ededed;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.dtable-ui-image-link-error-message {
|
|
42
|
-
margin-top: 10px;
|
|
43
|
-
text-align: center;
|
|
44
|
-
color: red;
|
|
45
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _reactstrap = require("reactstrap");
|
|
10
|
-
var _lang = require("../../../lang");
|
|
11
|
-
require("./index.css");
|
|
12
|
-
class ImageLink extends _react.default.Component {
|
|
13
|
-
constructor(props) {
|
|
14
|
-
super(props);
|
|
15
|
-
this.saveImageLink = () => {
|
|
16
|
-
let {
|
|
17
|
-
imageLink
|
|
18
|
-
} = this.state;
|
|
19
|
-
let _this = this;
|
|
20
|
-
let image = new Image();
|
|
21
|
-
image.onload = function () {
|
|
22
|
-
// Determine if the picture url is correct
|
|
23
|
-
if (image.fileSize > 0 || image.width > 0 && image.height > 0) {
|
|
24
|
-
_this.props.saveImageLink(imageLink);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
image.onerror = function () {
|
|
28
|
-
_this.setState({
|
|
29
|
-
isShowErrorMessage: true
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
image.src = imageLink;
|
|
33
|
-
};
|
|
34
|
-
this.handleChange = event => {
|
|
35
|
-
let value = event.target.value;
|
|
36
|
-
this.setState({
|
|
37
|
-
imageLink: value
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
this.imageLinkPaste = e => {
|
|
41
|
-
e.stopPropagation();
|
|
42
|
-
};
|
|
43
|
-
this.onKeyDown = e => {
|
|
44
|
-
e.stopPropagation();
|
|
45
|
-
};
|
|
46
|
-
this.state = {
|
|
47
|
-
imageLink: '',
|
|
48
|
-
isShowErrorMessage: false
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
render() {
|
|
52
|
-
const {
|
|
53
|
-
isShowErrorMessage
|
|
54
|
-
} = this.state;
|
|
55
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
56
|
-
className: "dtable-ui-image-link",
|
|
57
|
-
onKeyDown: this.onKeyDown
|
|
58
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
59
|
-
className: "dtable-ui-image-link-container"
|
|
60
|
-
}, /*#__PURE__*/_react.default.createElement(_reactstrap.Input, {
|
|
61
|
-
className: "dtable-ui-image-link-input",
|
|
62
|
-
placeholder: (0, _lang.getLocale)('Enter_a_URL'),
|
|
63
|
-
onPaste: this.imageLinkPaste,
|
|
64
|
-
onChange: this.handleChange
|
|
65
|
-
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
66
|
-
className: "dtable-ui-image-link-icon dtable-font dtable-icon-url",
|
|
67
|
-
onClick: this.saveImageLink
|
|
68
|
-
})), isShowErrorMessage && /*#__PURE__*/_react.default.createElement("div", {
|
|
69
|
-
className: "dtable-ui-image-link-error-message"
|
|
70
|
-
}, (0, _lang.getLocale)('Please_enter_the_correct_image_address')));
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
var _default = exports.default = ImageLink;
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
.dtable-ui-image-addition-left {
|
|
2
|
-
border-right: 1px solid #e9ecef;
|
|
3
|
-
width: 150px;
|
|
4
|
-
padding: 12px 8px;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.dtable-ui-image-addition-left .dtable-ui-addition-item {
|
|
8
|
-
padding: 5px 0 5px 8px;
|
|
9
|
-
border-radius: 3px;
|
|
10
|
-
display: inline-block;
|
|
11
|
-
cursor: pointer;
|
|
12
|
-
width: 100%;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.dtable-ui-image-addition-left .dtable-ui-addition-item:hover {
|
|
16
|
-
background-color: #f5f5f5;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.dtable-ui-image-addition-container .dtable-ui-image-addition-left .dtable-ui-addition-item-selected {
|
|
20
|
-
background-color: #FF8000;
|
|
21
|
-
color: #fff;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.dtable-ui-image-addition-right {
|
|
25
|
-
height: 350px;
|
|
26
|
-
overflow-y: auto;
|
|
27
|
-
overflow-x: hidden;
|
|
28
|
-
padding: 1rem;
|
|
29
|
-
width: 470px;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.dtable-ui-image-addition-right.dtable-ui-image-addition-right-recent {
|
|
33
|
-
padding: 0;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.dtable-ui-image-addition-right .dtable-ui-image-addition-right-container {
|
|
37
|
-
display: flex;
|
|
38
|
-
flex-wrap: wrap;
|
|
39
|
-
align-content: flex-start;
|
|
40
|
-
width: 100%;
|
|
41
|
-
height: 100%;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.dtable-ui-image-addition-right.dtable-ui-image-addition-right-recent .dtable-ui-image-addition-right-container {
|
|
45
|
-
width: 100%;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.dtable-ui-image-addition-right .dtable-ui-image-upload-container {
|
|
49
|
-
height: 100%;
|
|
50
|
-
width: 100%;
|
|
51
|
-
border: 1px dashed transparent;
|
|
52
|
-
position: relative;
|
|
53
|
-
cursor: pointer;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.dtable-ui-image-addition-right .dtable-ui-image-upload-container-active {
|
|
57
|
-
border: 1px dashed #ccc;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.dtable-ui-image-addition-right .dtable-ui-image-upload-container .dtable-ui-image-add-span {
|
|
61
|
-
margin-top: 5px;
|
|
62
|
-
font-size: 12px;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.dtable-ui-image-addition-right .dtable-ui-image-upload-container .image-addition-paste {
|
|
66
|
-
position: absolute;
|
|
67
|
-
height: 100%;
|
|
68
|
-
width: 100%;
|
|
69
|
-
top: 0;
|
|
70
|
-
pointer-events: none;
|
|
71
|
-
opacity: 0;
|
|
72
|
-
z-index: 3;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.dtable-ui-image-addition-right .dtable-ui-image-wrapper {
|
|
76
|
-
height: 100px;
|
|
77
|
-
width: 100px;
|
|
78
|
-
border: 2px solid #ededed;
|
|
79
|
-
border-radius: 4px;
|
|
80
|
-
position: relative;
|
|
81
|
-
margin-right: 12px;
|
|
82
|
-
margin-bottom: 12px;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.dtable-ui-image-addition-right .dtable-ui-image-wrapper:hover {
|
|
86
|
-
border-color: #c9c9c9;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.dtable-ui-image-addition-right .dtable-ui-image-wrapper:nth-child(4n) {
|
|
90
|
-
margin-right: 0px;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.dtable-ui-image-addition-right .dtable-ui-image-wrapper .dtable-ui-image-content {
|
|
94
|
-
width: 96px;
|
|
95
|
-
height: 96px;
|
|
96
|
-
text-align: center;
|
|
97
|
-
line-height: 30px;
|
|
98
|
-
display: flex;
|
|
99
|
-
justify-content: center;
|
|
100
|
-
align-items: center;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.dtable-ui-image-addition-right .dtable-ui-image-wrapper img {
|
|
104
|
-
max-height: 96px;
|
|
105
|
-
max-width: 96px;
|
|
106
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _localImageAddition = _interopRequireDefault(require("./local-image-addition"));
|
|
10
|
-
var _imageLink = _interopRequireDefault(require("./image-link"));
|
|
11
|
-
var _lang = require("../../lang");
|
|
12
|
-
require("./index.css");
|
|
13
|
-
class AdditionPreviewer extends _react.default.Component {
|
|
14
|
-
constructor(props) {
|
|
15
|
-
super(props);
|
|
16
|
-
this.toggle = tab => {
|
|
17
|
-
if (this.state.activeTab !== tab) {
|
|
18
|
-
this.setState({
|
|
19
|
-
activeTab: tab
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
this.addFiles = fileSelectedList => {
|
|
24
|
-
this.props.addUploadedFile(fileSelectedList);
|
|
25
|
-
setTimeout(() => {
|
|
26
|
-
this.props.showImageListPreviewer();
|
|
27
|
-
}, 0);
|
|
28
|
-
};
|
|
29
|
-
this.state = {
|
|
30
|
-
activeTab: 'localPicture'
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
render() {
|
|
34
|
-
const {
|
|
35
|
-
activeTab
|
|
36
|
-
} = this.state;
|
|
37
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
38
|
-
className: "dtable-ui-image-addition-container"
|
|
39
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
40
|
-
className: "dtable-ui-image-addition-left"
|
|
41
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
42
|
-
className: "dtable-ui-image-addition-nav"
|
|
43
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
44
|
-
className: "dtable-ui-addition-item ".concat(activeTab === 'localPicture' ? 'dtable-ui-addition-item-selected' : ''),
|
|
45
|
-
onClick: this.toggle.bind(this, 'localPicture')
|
|
46
|
-
}, (0, _lang.getLocale)('Local_Images')), this.props.saveImageLink && /*#__PURE__*/_react.default.createElement("div", {
|
|
47
|
-
className: "dtable-ui-addition-item ".concat(activeTab === 'imageLink' ? 'dtable-ui-addition-item-selected' : ''),
|
|
48
|
-
onClick: this.toggle.bind(this, 'imageLink')
|
|
49
|
-
}, (0, _lang.getLocale)('Image_Link')))), /*#__PURE__*/_react.default.createElement("div", {
|
|
50
|
-
className: "dtable-ui-image-addition-right"
|
|
51
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
52
|
-
className: "dtable-ui-image-addition-right-container"
|
|
53
|
-
}, activeTab === 'localPicture' && /*#__PURE__*/_react.default.createElement(_localImageAddition.default, {
|
|
54
|
-
uploadLocalImageValue: this.props.uploadLocalImageValue,
|
|
55
|
-
deleteImage: this.props.deleteImage,
|
|
56
|
-
fileUploadCompleted: this.props.fileUploadCompleted,
|
|
57
|
-
uploadFile: this.props.uploadFile
|
|
58
|
-
}), activeTab === 'imageLink' && /*#__PURE__*/_react.default.createElement(_imageLink.default, {
|
|
59
|
-
saveImageLink: this.props.saveImageLink
|
|
60
|
-
}))));
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
var _default = exports.default = AdditionPreviewer;
|