dtable-ui-component 0.1.74 → 0.1.75-beta3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/AutoNumberFormatter/index.css +1 -0
- package/es/{components/cell-formatter/auto-number-formatter.js → AutoNumberFormatter/index.js} +1 -0
- package/es/ButtonFormatter/index.css +13 -0
- package/es/{components/cell-formatter/button-formatter.js → ButtonFormatter/index.js} +1 -0
- package/es/CTimeFormatter/index.css +1 -0
- package/es/{components/cell-formatter/ctime-formatter.js → CTimeFormatter/index.js} +1 -0
- package/es/CheckboxFormatter/index.css +1 -0
- package/es/{components/cell-formatter/checkbox-formatter.js → CheckboxFormatter/index.js} +1 -0
- package/es/CollaboratorFormatter/index.css +1 -0
- package/es/{components/cell-formatter/collaborator-formatter.js → CollaboratorFormatter/index.js} +3 -2
- package/es/CollaboratorItem/index.css +49 -0
- package/es/CollaboratorItem/index.js +64 -0
- package/es/CreatorFormatter/index.css +1 -0
- package/es/{components/cell-formatter/creator-formatter.js → CreatorFormatter/index.js} +3 -2
- package/es/DateFormatter/index.css +1 -0
- package/es/{components/cell-formatter/date-formatter.js → DateFormatter/index.js} +2 -1
- package/es/DurationFormatter/index.css +1 -0
- package/es/{components/cell-formatter/duration-formatter.js → DurationFormatter/index.js} +2 -1
- package/es/EmailFormatter/index.css +5 -0
- package/es/{components/cell-formatter/email-formatter.js → EmailFormatter/index.js} +1 -0
- package/es/FileFormatter/index.css +29 -0
- package/es/{components/cell-formatter/file-formatter.js → FileFormatter/index.js} +2 -1
- package/es/{components/cell-formatter/widgets/file-item-formatter.js → FileItemFormatter/index.js} +2 -2
- package/es/{components/file-uploader → FileUploader}/index.js +0 -0
- package/es/FormulaFormatter/index.css +19 -0
- package/es/{components/cell-formatter/formula-formatter.js → FormulaFormatter/index.js} +8 -8
- package/es/GeolocationFormatter/index.css +1 -0
- package/es/{components/cell-formatter/geolocation-formatter.js → GeolocationFormatter/index.js} +2 -1
- package/es/{components/common → ImageFormatter}/images-lazy-load.js +2 -2
- package/es/ImageFormatter/index.css +34 -0
- package/es/{components/cell-formatter/image-formatter.js → ImageFormatter/index.js} +4 -3
- package/es/{css/image-previewer-ligntbox.css → ImagePreviewerLightbox/index.css} +0 -0
- package/es/{components/cell-formatter/widgets/image-previewer-lightbox.js → ImagePreviewerLightbox/index.js} +3 -3
- package/es/LastModifierFormatter/index.css +1 -0
- package/es/{components/cell-formatter/last-modifier-formatter.js → LastModifierFormatter/index.js} +5 -4
- package/es/LinkFormatter/index.css +27 -0
- package/es/{components/cell-formatter/link-formatter.js → LinkFormatter/index.js} +2 -2
- package/es/{css/loading.css → Loading/index.css} +0 -0
- package/es/{components/loading.js → Loading/index.js} +1 -1
- package/es/{components/cell-formatter/widgets/long-text-formatter → LongTextFormatter}/html-long-text-formatter.js +1 -1
- package/es/LongTextFormatter/index.css +63 -0
- package/es/{components/cell-formatter/long-text-formatter.js → LongTextFormatter/index.js} +3 -2
- package/es/{components/cell-formatter/widgets/long-text-formatter → LongTextFormatter}/simple-long-text-formatter.js +1 -1
- package/es/MTimeFormatter/index.css +1 -0
- package/es/{components/cell-formatter/mtime-formatter.js → MTimeFormatter/index.js} +1 -0
- package/es/{components/common/modal-portal.js → ModalPortal/index.js} +0 -0
- package/es/MultipleSelectFormatter/index.css +1 -0
- package/es/{components/cell-formatter/multiple-select-formatter.js → MultipleSelectFormatter/index.js} +2 -1
- package/es/NumberFormatter/index.css +1 -0
- package/es/{components/cell-formatter/number-formatter.js → NumberFormatter/index.js} +2 -1
- package/es/RateFormatter/index.css +1 -0
- package/es/{components/cell-formatter/rate-formatter.js → RateFormatter/index.js} +1 -0
- package/es/{components/common/select-item.js → SelectItem/index.js} +0 -0
- package/es/SingleSelectFormatter/index.css +1 -0
- package/es/{components/cell-formatter/single-select-formatter.js → SingleSelectFormatter/index.js} +2 -1
- package/es/TextFormatter/index.css +1 -0
- package/es/{components/cell-formatter/text-formatter.js → TextFormatter/index.js} +1 -0
- package/es/UrlFormatter/index.css +5 -0
- package/es/{components/cell-formatter/url-formatter.js → UrlFormatter/index.js} +1 -0
- package/es/app.js +1 -1
- package/es/{components/cell-factory/cell-formatter-factory.js → cellFormatterFactory/index.js} +3 -3
- package/es/components/cell-editor/checkbox-editor.js +104 -0
- package/es/components/cell-editor/collaborator-editor.js +236 -0
- package/es/components/cell-editor/date-editor.js +151 -0
- package/es/components/cell-editor/index.js +9 -0
- package/es/components/cell-editor/link-editor.js +303 -0
- package/es/components/cell-editor/multiple-select-editor.js +237 -0
- package/es/components/cell-editor/number-editor.js +154 -0
- package/es/components/cell-editor/single-select-editor.js +202 -0
- package/es/components/cell-editor/text-editor.js +122 -0
- package/es/components/cell-editor-dialog/pc-file-editor-dialog.js +46 -0
- package/es/components/cell-editor-dialog/pc-files-addition/index.js +0 -0
- package/es/components/cell-editor-dialog/pc-files-addition/pc-file-uploaded-item.js +0 -0
- package/es/components/cell-editor-dialog/pc-files-preview/index.js +0 -0
- package/es/components/cell-editor-dialog/pc-files-preview/pc-file-item-preview.js +0 -0
- package/es/components/cell-editor-popover/mb-collaborator-editor-popover.js +177 -0
- package/es/components/cell-editor-popover/mb-date-editor-popover.js +245 -0
- package/es/components/cell-editor-popover/mb-link-editor-popover.js +170 -0
- package/es/components/cell-editor-popover/mb-select-editor-popover.js +230 -0
- package/es/components/cell-editor-popover/pc-collaborator-editor-popover.js +109 -0
- package/es/components/cell-editor-popover/pc-date-editor-popover.js +142 -0
- package/es/components/cell-editor-popover/pc-link-editor-popover.js +114 -0
- package/es/components/cell-editor-popover/pc-select-editor-popover.js +143 -0
- package/es/constants/index.js +15 -14
- package/es/css/cell-formatter.css +0 -243
- package/es/formatterConfig/index.js +31 -0
- package/es/index.js +29 -3
- package/es/{components/toast → toaster}/alert.js +0 -0
- package/es/{components/toast → toaster}/index.js +0 -0
- package/es/{components/toast → toaster}/toast.js +0 -0
- package/es/{components/toast → toaster}/toastManager.js +0 -0
- package/es/{components/toast → toaster}/toaster.js +0 -0
- package/es/utils/cell-value-validator.js +1 -2
- package/es/utils/editor-utils.js +71 -0
- package/es/utils/normalize-long-text-value.js +2 -2
- package/es/utils/number-precision.js +1 -0
- package/es/utils/value-format-utils.js +2 -0
- package/lib/AutoNumberFormatter/index.css +1 -0
- package/lib/AutoNumberFormatter/index.js +47 -0
- package/lib/ButtonFormatter/index.css +13 -0
- package/lib/ButtonFormatter/index.js +68 -0
- package/lib/CTimeFormatter/index.css +1 -0
- package/lib/CTimeFormatter/index.js +72 -0
- package/lib/CheckboxFormatter/index.css +1 -0
- package/lib/CheckboxFormatter/index.js +58 -0
- package/lib/CollaboratorFormatter/index.css +1 -0
- package/lib/CollaboratorFormatter/index.js +113 -0
- package/lib/CollaboratorItem/index.css +49 -0
- package/lib/CollaboratorItem/index.js +81 -0
- package/lib/CreatorFormatter/index.css +1 -0
- package/lib/CreatorFormatter/index.js +107 -0
- package/lib/DateFormatter/index.css +1 -0
- package/lib/DateFormatter/index.js +75 -0
- package/lib/DurationFormatter/index.css +1 -0
- package/lib/DurationFormatter/index.js +51 -0
- package/lib/EmailFormatter/index.css +5 -0
- package/lib/EmailFormatter/index.js +47 -0
- package/lib/FileFormatter/index.css +29 -0
- package/lib/FileFormatter/index.js +79 -0
- package/lib/FileItemFormatter/index.js +63 -0
- package/lib/FileUploader/index.js +63 -0
- package/lib/FormulaFormatter/index.css +19 -0
- package/lib/FormulaFormatter/index.js +185 -0
- package/lib/GeolocationFormatter/index.css +1 -0
- package/lib/GeolocationFormatter/index.js +68 -0
- package/lib/ImageFormatter/images-lazy-load.js +158 -0
- package/lib/ImageFormatter/index.css +34 -0
- package/lib/ImageFormatter/index.js +173 -0
- package/lib/ImagePreviewerLightbox/index.css +87 -0
- package/lib/ImagePreviewerLightbox/index.js +152 -0
- package/lib/LastModifierFormatter/index.css +1 -0
- package/lib/LastModifierFormatter/index.js +107 -0
- package/lib/LinkFormatter/index.css +27 -0
- package/lib/LinkFormatter/index.js +165 -0
- package/lib/Loading/index.css +54 -0
- package/lib/Loading/index.js +16 -0
- package/lib/LongTextFormatter/html-long-text-formatter.js +107 -0
- package/lib/LongTextFormatter/index.css +63 -0
- package/lib/LongTextFormatter/index.js +48 -0
- package/lib/LongTextFormatter/simple-long-text-formatter.js +110 -0
- package/lib/MTimeFormatter/index.css +1 -0
- package/lib/MTimeFormatter/index.js +72 -0
- package/lib/ModalPortal/index.js +51 -0
- package/lib/MultipleSelectFormatter/index.css +1 -0
- package/lib/MultipleSelectFormatter/index.js +86 -0
- package/lib/NumberFormatter/index.css +1 -0
- package/lib/NumberFormatter/index.js +62 -0
- package/lib/RateFormatter/index.css +1 -0
- package/lib/RateFormatter/index.js +95 -0
- package/lib/SelectItem/index.js +73 -0
- package/lib/SingleSelectFormatter/index.css +1 -0
- package/lib/SingleSelectFormatter/index.js +86 -0
- package/lib/TextFormatter/index.css +1 -0
- package/lib/TextFormatter/index.js +69 -0
- package/lib/UrlFormatter/index.css +5 -0
- package/lib/UrlFormatter/index.js +47 -0
- package/lib/app.css +20 -0
- package/lib/app.js +96 -0
- package/lib/assets/images/avatar/default_avatar.png +0 -0
- package/lib/assets/images/file/192/excel.png +0 -0
- package/lib/assets/images/file/192/file.png +0 -0
- package/lib/assets/images/file/192/music.png +0 -0
- package/lib/assets/images/file/192/pdf.png +0 -0
- package/lib/assets/images/file/192/pic.png +0 -0
- package/lib/assets/images/file/192/ppt.png +0 -0
- package/lib/assets/images/file/192/txt.png +0 -0
- package/lib/assets/images/file/192/video.png +0 -0
- package/lib/assets/images/file/192/word.png +0 -0
- package/lib/assets/images/file/24/excel.png +0 -0
- package/lib/assets/images/file/24/file.png +0 -0
- package/lib/assets/images/file/24/music.png +0 -0
- package/lib/assets/images/file/24/pdf.png +0 -0
- package/lib/assets/images/file/24/pic.png +0 -0
- package/lib/assets/images/file/24/ppt.png +0 -0
- package/lib/assets/images/file/24/txt.png +0 -0
- package/lib/assets/images/file/24/video.png +0 -0
- package/lib/assets/images/file/24/word.png +0 -0
- package/lib/assets/images/folder/folder-192.png +0 -0
- package/lib/assets/images/folder/folder-24.png +0 -0
- package/lib/cellFormatterFactory/index.js +28 -0
- package/lib/components/cell-editor/checkbox-editor.js +111 -0
- package/lib/components/cell-editor/collaborator-editor.js +249 -0
- package/lib/components/cell-editor/date-editor.js +171 -0
- package/lib/components/cell-editor/index.js +40 -0
- package/lib/components/cell-editor/link-editor.js +321 -0
- package/lib/components/cell-editor/multiple-select-editor.js +250 -0
- package/lib/components/cell-editor/number-editor.js +162 -0
- package/lib/components/cell-editor/single-select-editor.js +216 -0
- package/lib/components/cell-editor/text-editor.js +129 -0
- package/lib/components/cell-editor-dialog/pc-file-editor-dialog.js +66 -0
- package/lib/components/cell-editor-dialog/pc-files-addition/index.js +1 -0
- package/lib/components/cell-editor-dialog/pc-files-addition/pc-file-uploaded-item.js +1 -0
- package/lib/components/cell-editor-dialog/pc-files-preview/index.js +1 -0
- package/lib/components/cell-editor-dialog/pc-files-preview/pc-file-item-preview.js +1 -0
- package/lib/components/cell-editor-popover/mb-collaborator-editor-popover.js +183 -0
- package/lib/components/cell-editor-popover/mb-date-editor-popover.js +262 -0
- package/lib/components/cell-editor-popover/mb-link-editor-popover.js +176 -0
- package/lib/components/cell-editor-popover/mb-select-editor-popover.js +243 -0
- package/lib/components/cell-editor-popover/pc-collaborator-editor-popover.js +124 -0
- package/lib/components/cell-editor-popover/pc-date-editor-popover.js +156 -0
- package/lib/components/cell-editor-popover/pc-link-editor-popover.js +128 -0
- package/lib/components/cell-editor-popover/pc-select-editor-popover.js +157 -0
- package/lib/components/common/collaborator-item.js +79 -0
- package/lib/components/common/edit-editor-button.js +67 -0
- package/lib/components/common/link-editor-option.js +121 -0
- package/lib/components/common/mobile/mb-editor-header.js +61 -0
- package/lib/components/common/select-editor-option.js +122 -0
- package/lib/constants/cell-types.js +54 -0
- package/lib/constants/index.js +72 -0
- package/lib/css/cell-editor.css +614 -0
- package/lib/css/cell-formatter.css +4 -0
- package/lib/css/custom-rc-calendar.css +118 -0
- package/lib/formatterConfig/index.js +62 -0
- package/lib/index.js +139 -0
- package/lib/lang/index.js +66 -0
- package/lib/locals/de.js +7 -0
- package/lib/locals/en.js +22 -0
- package/lib/locals/fr.js +7 -0
- package/lib/locals/zh-CN.js +22 -0
- package/lib/toaster/alert.js +164 -0
- package/lib/toaster/index.js +12 -0
- package/lib/toaster/toast.js +223 -0
- package/lib/toaster/toastManager.js +189 -0
- package/lib/toaster/toaster.js +92 -0
- package/lib/utils/cell-value-validator.js +35 -0
- package/lib/utils/column-utils.js +15 -0
- package/lib/utils/editor-utils.js +81 -0
- package/lib/utils/markdown2html.js +68 -0
- package/lib/utils/normalize-long-text-value.js +74 -0
- package/lib/utils/number-precision.js +182 -0
- package/lib/utils/unified/index.js +470 -0
- package/lib/utils/utils.js +141 -0
- package/lib/utils/value-format-utils.js +547 -0
- package/lib/utils/vfile/core.js +172 -0
- package/lib/utils/vfile/index.js +48 -0
- package/package.json +5 -3
- package/es/components/cell-formatter/formatter-config.js +0 -31
- package/es/components/cell-formatter/index.js +0 -27
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import url('../css/cell-formatter.css');
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
9
|
+
|
|
10
|
+
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));
|
|
11
|
+
|
|
12
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
+
|
|
14
|
+
var _react = _interopRequireDefault(require("react"));
|
|
15
|
+
|
|
16
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
|
+
|
|
18
|
+
var _astroClassname = _interopRequireDefault(require("astro-classname"));
|
|
19
|
+
|
|
20
|
+
var _SelectItem = _interopRequireDefault(require("../SelectItem"));
|
|
21
|
+
|
|
22
|
+
require("./index.css");
|
|
23
|
+
|
|
24
|
+
var propTypes = {
|
|
25
|
+
value: _propTypes.default.array,
|
|
26
|
+
fontSize: _propTypes.default.number,
|
|
27
|
+
containerClassName: _propTypes.default.string,
|
|
28
|
+
options: _propTypes.default.array.isRequired
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
var MultipleSelectFormatter = /*#__PURE__*/function (_React$PureComponent) {
|
|
32
|
+
(0, _inheritsLoose2.default)(MultipleSelectFormatter, _React$PureComponent);
|
|
33
|
+
|
|
34
|
+
function MultipleSelectFormatter() {
|
|
35
|
+
var _this;
|
|
36
|
+
|
|
37
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
38
|
+
args[_key] = arguments[_key];
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
_this = _React$PureComponent.call.apply(_React$PureComponent, [this].concat(args)) || this;
|
|
42
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getOptions", function () {
|
|
43
|
+
var _this$props = _this.props,
|
|
44
|
+
value = _this$props.value,
|
|
45
|
+
options = _this$props.options;
|
|
46
|
+
if (!Array.isArray(value) || !Array.isArray(options)) return [];
|
|
47
|
+
var selectedOptions = options.filter(function (option) {
|
|
48
|
+
return value.includes(option.id) || value.includes(option.name);
|
|
49
|
+
});
|
|
50
|
+
if (selectedOptions.length === 0) return [];
|
|
51
|
+
return selectedOptions.map(function (option) {
|
|
52
|
+
return /*#__PURE__*/_react.default.createElement(_SelectItem.default, {
|
|
53
|
+
key: "multiple-" + option.id,
|
|
54
|
+
option: option
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
return _this;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
var _proto = MultipleSelectFormatter.prototype;
|
|
62
|
+
|
|
63
|
+
_proto.render = function render() {
|
|
64
|
+
var _this$props2 = this.props,
|
|
65
|
+
value = _this$props2.value,
|
|
66
|
+
containerClassName = _this$props2.containerClassName;
|
|
67
|
+
var classname = (0, _astroClassname.default)('dtable-ui cell-formatter-container multiple-select-formatter', containerClassName);
|
|
68
|
+
|
|
69
|
+
if (!value || Array.isArray(value) && value.length === 0) {
|
|
70
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
71
|
+
className: classname
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
var options = this.getOptions();
|
|
76
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
77
|
+
className: classname
|
|
78
|
+
}, options);
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
return MultipleSelectFormatter;
|
|
82
|
+
}(_react.default.PureComponent);
|
|
83
|
+
|
|
84
|
+
MultipleSelectFormatter.propTypes = propTypes;
|
|
85
|
+
var _default = MultipleSelectFormatter;
|
|
86
|
+
exports.default = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import url('../css/cell-formatter.css');
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));
|
|
9
|
+
|
|
10
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
|
+
|
|
12
|
+
var _react = _interopRequireDefault(require("react"));
|
|
13
|
+
|
|
14
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
|
+
|
|
16
|
+
var _astroClassname = _interopRequireDefault(require("astro-classname"));
|
|
17
|
+
|
|
18
|
+
var _valueFormatUtils = require("../utils/value-format-utils");
|
|
19
|
+
|
|
20
|
+
require("./index.css");
|
|
21
|
+
|
|
22
|
+
var propTypes = {
|
|
23
|
+
value: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]),
|
|
24
|
+
data: _propTypes.default.object,
|
|
25
|
+
containerClassName: _propTypes.default.string
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
var NumberFormatter = /*#__PURE__*/function (_React$Component) {
|
|
29
|
+
(0, _inheritsLoose2.default)(NumberFormatter, _React$Component);
|
|
30
|
+
|
|
31
|
+
function NumberFormatter() {
|
|
32
|
+
return _React$Component.apply(this, arguments) || this;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
var _proto = NumberFormatter.prototype;
|
|
36
|
+
|
|
37
|
+
_proto.render = function render() {
|
|
38
|
+
var _this$props = this.props,
|
|
39
|
+
number = _this$props.value,
|
|
40
|
+
data = _this$props.data,
|
|
41
|
+
containerClassName = _this$props.containerClassName;
|
|
42
|
+
var classname = (0, _astroClassname.default)('dtable-ui cell-formatter-container number-formatter', containerClassName);
|
|
43
|
+
|
|
44
|
+
if (number || number === 0) {
|
|
45
|
+
number = (0, _valueFormatUtils.getNumberDisplayString)(number, data);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
49
|
+
className: classname
|
|
50
|
+
}, number);
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
return NumberFormatter;
|
|
54
|
+
}(_react.default.Component);
|
|
55
|
+
|
|
56
|
+
(0, _defineProperty2.default)(NumberFormatter, "defaultProps", {
|
|
57
|
+
value: '',
|
|
58
|
+
containerClassName: ''
|
|
59
|
+
});
|
|
60
|
+
NumberFormatter.propTypes = propTypes;
|
|
61
|
+
var _default = NumberFormatter;
|
|
62
|
+
exports.default = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import url('../css/cell-formatter.css');
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
9
|
+
|
|
10
|
+
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));
|
|
11
|
+
|
|
12
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
+
|
|
14
|
+
var _react = _interopRequireDefault(require("react"));
|
|
15
|
+
|
|
16
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
|
+
|
|
18
|
+
var _astroClassname = _interopRequireDefault(require("astro-classname"));
|
|
19
|
+
|
|
20
|
+
require("./index.css");
|
|
21
|
+
|
|
22
|
+
var propTypes = {
|
|
23
|
+
value: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]),
|
|
24
|
+
// default cell is string
|
|
25
|
+
data: _propTypes.default.object,
|
|
26
|
+
containerClassName: _propTypes.default.string
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
var RateFormatter = /*#__PURE__*/function (_React$Component) {
|
|
30
|
+
(0, _inheritsLoose2.default)(RateFormatter, _React$Component);
|
|
31
|
+
|
|
32
|
+
function RateFormatter() {
|
|
33
|
+
var _this;
|
|
34
|
+
|
|
35
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
36
|
+
args[_key] = arguments[_key];
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
|
40
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getRateList", function () {
|
|
41
|
+
var _this$props = _this.props,
|
|
42
|
+
data = _this$props.data,
|
|
43
|
+
value = _this$props.value;
|
|
44
|
+
|
|
45
|
+
var _ref = data || {},
|
|
46
|
+
_ref$rate_max_number = _ref.rate_max_number,
|
|
47
|
+
rate_max_number = _ref$rate_max_number === void 0 ? 5 : _ref$rate_max_number,
|
|
48
|
+
_ref$rate_style_color = _ref.rate_style_color,
|
|
49
|
+
rate_style_color = _ref$rate_style_color === void 0 ? '#e5e5e5' : _ref$rate_style_color;
|
|
50
|
+
|
|
51
|
+
var validValue = Math.min(rate_max_number, value);
|
|
52
|
+
var rateList = [];
|
|
53
|
+
|
|
54
|
+
for (var i = 0; i < validValue; i++) {
|
|
55
|
+
rateList.push( /*#__PURE__*/_react.default.createElement("i", {
|
|
56
|
+
key: "dtable-ui-component-rate-" + i,
|
|
57
|
+
className: "dtable-font dtable-icon-star",
|
|
58
|
+
style: {
|
|
59
|
+
color: rate_style_color || '#e5e5e5'
|
|
60
|
+
}
|
|
61
|
+
}));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return rateList;
|
|
65
|
+
});
|
|
66
|
+
return _this;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
var _proto = RateFormatter.prototype;
|
|
70
|
+
|
|
71
|
+
_proto.render = function render() {
|
|
72
|
+
var _this$props2 = this.props,
|
|
73
|
+
number = _this$props2.value,
|
|
74
|
+
containerClassName = _this$props2.containerClassName;
|
|
75
|
+
var className = (0, _astroClassname.default)('dtable-ui cell-formatter-container rate-formatter', containerClassName);
|
|
76
|
+
if (!number) return null;
|
|
77
|
+
var rateList = this.getRateList();
|
|
78
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
79
|
+
className: className
|
|
80
|
+
}, rateList);
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
return RateFormatter;
|
|
84
|
+
}(_react.default.Component);
|
|
85
|
+
|
|
86
|
+
(0, _defineProperty2.default)(RateFormatter, "defaultProps", {
|
|
87
|
+
value: '',
|
|
88
|
+
containerClassName: ''
|
|
89
|
+
});
|
|
90
|
+
RateFormatter.defaultProps = {
|
|
91
|
+
editable: true
|
|
92
|
+
};
|
|
93
|
+
RateFormatter.propTypes = propTypes;
|
|
94
|
+
var _default = RateFormatter;
|
|
95
|
+
exports.default = _default;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
9
|
+
|
|
10
|
+
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));
|
|
11
|
+
|
|
12
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
+
|
|
14
|
+
var _react = _interopRequireDefault(require("react"));
|
|
15
|
+
|
|
16
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
|
+
|
|
18
|
+
var propTypes = {
|
|
19
|
+
option: _propTypes.default.shape({
|
|
20
|
+
id: _propTypes.default.string.isRequired,
|
|
21
|
+
name: _propTypes.default.string.isRequired,
|
|
22
|
+
color: _propTypes.default.string.isRequired
|
|
23
|
+
}).isRequired,
|
|
24
|
+
fontSize: _propTypes.default.number
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
var SelectItem = /*#__PURE__*/function (_React$PureComponent) {
|
|
28
|
+
(0, _inheritsLoose2.default)(SelectItem, _React$PureComponent);
|
|
29
|
+
|
|
30
|
+
function SelectItem() {
|
|
31
|
+
var _this;
|
|
32
|
+
|
|
33
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
34
|
+
args[_key] = arguments[_key];
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
_this = _React$PureComponent.call.apply(_React$PureComponent, [this].concat(args)) || this;
|
|
38
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getStyle", function (option, fontSize) {
|
|
39
|
+
return {
|
|
40
|
+
display: 'inline-block',
|
|
41
|
+
padding: '0px 10px',
|
|
42
|
+
marginRight: '8px',
|
|
43
|
+
height: '20px',
|
|
44
|
+
lineHeight: '20px',
|
|
45
|
+
textAlign: 'center',
|
|
46
|
+
borderRadius: '10px',
|
|
47
|
+
fontSize: fontSize ? fontSize + "px" : '13px',
|
|
48
|
+
backgroundColor: option.color,
|
|
49
|
+
color: option.textColor || null
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
return _this;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
var _proto = SelectItem.prototype;
|
|
56
|
+
|
|
57
|
+
_proto.render = function render() {
|
|
58
|
+
var _this$props = this.props,
|
|
59
|
+
option = _this$props.option,
|
|
60
|
+
fontSize = _this$props.fontSize;
|
|
61
|
+
var style = this.getStyle(option, fontSize);
|
|
62
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
63
|
+
className: "dtable-ui select-item",
|
|
64
|
+
style: style
|
|
65
|
+
}, option.name);
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
return SelectItem;
|
|
69
|
+
}(_react.default.PureComponent);
|
|
70
|
+
|
|
71
|
+
SelectItem.propTypes = propTypes;
|
|
72
|
+
var _default = SelectItem;
|
|
73
|
+
exports.default = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import url('../css/cell-formatter.css');
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
9
|
+
|
|
10
|
+
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));
|
|
11
|
+
|
|
12
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
+
|
|
14
|
+
var _react = _interopRequireDefault(require("react"));
|
|
15
|
+
|
|
16
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
|
+
|
|
18
|
+
var _astroClassname = _interopRequireDefault(require("astro-classname"));
|
|
19
|
+
|
|
20
|
+
var _SelectItem = _interopRequireDefault(require("../SelectItem"));
|
|
21
|
+
|
|
22
|
+
require("./index.css");
|
|
23
|
+
|
|
24
|
+
var propTypes = {
|
|
25
|
+
value: _propTypes.default.string,
|
|
26
|
+
containerClassName: _propTypes.default.string,
|
|
27
|
+
fontSize: _propTypes.default.number,
|
|
28
|
+
options: _propTypes.default.array.isRequired
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
var SingleSelectFormatter = /*#__PURE__*/function (_React$PureComponent) {
|
|
32
|
+
(0, _inheritsLoose2.default)(SingleSelectFormatter, _React$PureComponent);
|
|
33
|
+
|
|
34
|
+
function SingleSelectFormatter() {
|
|
35
|
+
var _this;
|
|
36
|
+
|
|
37
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
38
|
+
args[_key] = arguments[_key];
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
_this = _React$PureComponent.call.apply(_React$PureComponent, [this].concat(args)) || this;
|
|
42
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getOption", function () {
|
|
43
|
+
var _this$props = _this.props,
|
|
44
|
+
value = _this$props.value,
|
|
45
|
+
options = _this$props.options,
|
|
46
|
+
fontSize = _this$props.fontSize;
|
|
47
|
+
var option = options.find(function (item) {
|
|
48
|
+
return item.id === value || item.name === value;
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
if (option) {
|
|
52
|
+
return /*#__PURE__*/_react.default.createElement(_SelectItem.default, {
|
|
53
|
+
option: option,
|
|
54
|
+
fontSize: fontSize
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
return _this;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
var _proto = SingleSelectFormatter.prototype;
|
|
62
|
+
|
|
63
|
+
_proto.render = function render() {
|
|
64
|
+
var _this$props2 = this.props,
|
|
65
|
+
containerClassName = _this$props2.containerClassName,
|
|
66
|
+
value = _this$props2.value;
|
|
67
|
+
var classname = (0, _astroClassname.default)('dtable-ui cell-formatter-container single-select-formatter', containerClassName);
|
|
68
|
+
|
|
69
|
+
if (!value) {
|
|
70
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
71
|
+
className: classname
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
var option = this.getOption();
|
|
76
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
77
|
+
className: classname
|
|
78
|
+
}, option);
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
return SingleSelectFormatter;
|
|
82
|
+
}(_react.default.PureComponent);
|
|
83
|
+
|
|
84
|
+
SingleSelectFormatter.propTypes = propTypes;
|
|
85
|
+
var _default = SingleSelectFormatter;
|
|
86
|
+
exports.default = _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import url('../css/cell-formatter.css');
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
9
|
+
|
|
10
|
+
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));
|
|
11
|
+
|
|
12
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
+
|
|
14
|
+
var _react = _interopRequireDefault(require("react"));
|
|
15
|
+
|
|
16
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
|
+
|
|
18
|
+
var _astroClassname = _interopRequireDefault(require("astro-classname"));
|
|
19
|
+
|
|
20
|
+
require("./index.css");
|
|
21
|
+
|
|
22
|
+
var propTypes = {
|
|
23
|
+
value: _propTypes.default.string,
|
|
24
|
+
containerClassName: _propTypes.default.string
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
var TextFormatter = /*#__PURE__*/function (_React$Component) {
|
|
28
|
+
(0, _inheritsLoose2.default)(TextFormatter, _React$Component);
|
|
29
|
+
|
|
30
|
+
function TextFormatter() {
|
|
31
|
+
var _this;
|
|
32
|
+
|
|
33
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
34
|
+
args[_key] = arguments[_key];
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
|
38
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getFormattedValue", function (val) {
|
|
39
|
+
if (typeof val === 'object') {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
if (Object.prototype.toString.call(val) === '[object Boolean]') {
|
|
44
|
+
return val + '';
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return val;
|
|
48
|
+
});
|
|
49
|
+
return _this;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
var _proto = TextFormatter.prototype;
|
|
53
|
+
|
|
54
|
+
_proto.render = function render() {
|
|
55
|
+
var _this$props = this.props,
|
|
56
|
+
containerClassName = _this$props.containerClassName,
|
|
57
|
+
value = _this$props.value;
|
|
58
|
+
var classname = (0, _astroClassname.default)('dtable-ui cell-formatter-container text-formatter', containerClassName);
|
|
59
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
60
|
+
className: classname
|
|
61
|
+
}, this.getFormattedValue(value));
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
return TextFormatter;
|
|
65
|
+
}(_react.default.Component);
|
|
66
|
+
|
|
67
|
+
TextFormatter.propTypes = propTypes;
|
|
68
|
+
var _default = TextFormatter;
|
|
69
|
+
exports.default = _default;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
+
|
|
14
|
+
var _astroClassname = _interopRequireDefault(require("astro-classname"));
|
|
15
|
+
|
|
16
|
+
require("./index.css");
|
|
17
|
+
|
|
18
|
+
var propTypes = {
|
|
19
|
+
value: _propTypes.default.string,
|
|
20
|
+
containerClassName: _propTypes.default.string
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
var UrlFormatter = /*#__PURE__*/function (_React$Component) {
|
|
24
|
+
(0, _inheritsLoose2.default)(UrlFormatter, _React$Component);
|
|
25
|
+
|
|
26
|
+
function UrlFormatter() {
|
|
27
|
+
return _React$Component.apply(this, arguments) || this;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
var _proto = UrlFormatter.prototype;
|
|
31
|
+
|
|
32
|
+
_proto.render = function render() {
|
|
33
|
+
var _this$props = this.props,
|
|
34
|
+
containerClassName = _this$props.containerClassName,
|
|
35
|
+
value = _this$props.value;
|
|
36
|
+
var classname = (0, _astroClassname.default)('dtable-ui cell-formatter-container url-formatter', containerClassName);
|
|
37
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
38
|
+
className: classname
|
|
39
|
+
}, value);
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
return UrlFormatter;
|
|
43
|
+
}(_react.default.Component);
|
|
44
|
+
|
|
45
|
+
UrlFormatter.propTypes = propTypes;
|
|
46
|
+
var _default = UrlFormatter;
|
|
47
|
+
exports.default = _default;
|
package/lib/app.css
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
html, body, #root {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100%;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.app {
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.app .app-body {
|
|
14
|
+
flex: 1;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.app .app-body .collaborator-container {
|
|
18
|
+
padding: 5px;
|
|
19
|
+
border: 1px solid;
|
|
20
|
+
}
|
package/lib/app.js
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
9
|
+
|
|
10
|
+
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));
|
|
11
|
+
|
|
12
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
+
|
|
14
|
+
var _react = _interopRequireDefault(require("react"));
|
|
15
|
+
|
|
16
|
+
var _index = require("./index");
|
|
17
|
+
|
|
18
|
+
require("./app.css");
|
|
19
|
+
|
|
20
|
+
var App = /*#__PURE__*/function (_React$Component) {
|
|
21
|
+
(0, _inheritsLoose2.default)(App, _React$Component);
|
|
22
|
+
|
|
23
|
+
function App() {
|
|
24
|
+
var _this;
|
|
25
|
+
|
|
26
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
27
|
+
args[_key] = arguments[_key];
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
|
31
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onDeleteCollaborator", function () {//
|
|
32
|
+
});
|
|
33
|
+
return _this;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
var _proto = App.prototype;
|
|
37
|
+
|
|
38
|
+
_proto.render = function render() {
|
|
39
|
+
var collaborators = [{
|
|
40
|
+
name: '小强',
|
|
41
|
+
email: '214402@qq.com',
|
|
42
|
+
avatar_url: '你好饿',
|
|
43
|
+
contact_email: 'adbd'
|
|
44
|
+
}];
|
|
45
|
+
var options = [{
|
|
46
|
+
id: '1111',
|
|
47
|
+
name: '未开始',
|
|
48
|
+
color: '#e3f9f6'
|
|
49
|
+
}, {
|
|
50
|
+
id: '2222',
|
|
51
|
+
name: '进行中',
|
|
52
|
+
color: '#ff7500'
|
|
53
|
+
}, {
|
|
54
|
+
id: '3333',
|
|
55
|
+
name: '待评审',
|
|
56
|
+
color: '#eaff56'
|
|
57
|
+
}, {
|
|
58
|
+
id: '4444',
|
|
59
|
+
name: '已评审',
|
|
60
|
+
color: '#faff72'
|
|
61
|
+
}, {
|
|
62
|
+
id: '5555',
|
|
63
|
+
name: '完成',
|
|
64
|
+
color: '#00e500'
|
|
65
|
+
}];
|
|
66
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
67
|
+
className: "app"
|
|
68
|
+
}, /*#__PURE__*/_react.default.createElement("header", {
|
|
69
|
+
className: "app-header"
|
|
70
|
+
}, /*#__PURE__*/_react.default.createElement("h1", {
|
|
71
|
+
className: "text-center"
|
|
72
|
+
}, 'seatable ui component test')), /*#__PURE__*/_react.default.createElement("div", {
|
|
73
|
+
className: "app-body"
|
|
74
|
+
}, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("h2", null, "collaborators\u6D4B\u8BD5"), /*#__PURE__*/_react.default.createElement("div", null, "\u5355\u4E2Acollaborators\u6D4B\u8BD5"), /*#__PURE__*/_react.default.createElement(_index.CollaboratorFormatter, {
|
|
75
|
+
value: '123',
|
|
76
|
+
collaborators: collaborators
|
|
77
|
+
}), /*#__PURE__*/_react.default.createElement("div", null, "\u591A\u4E2Acollaborators\u6D4B\u8BD5"), /*#__PURE__*/_react.default.createElement(_index.CollaboratorFormatter, {
|
|
78
|
+
value: ['123', '4567'],
|
|
79
|
+
collaborators: collaborators
|
|
80
|
+
}), /*#__PURE__*/_react.default.createElement("div", null, "\u5E26\u5220\u9664\u6309\u94AE\u6D4B\u8BD5"), /*#__PURE__*/_react.default.createElement(_index.CollaboratorFormatter, {
|
|
81
|
+
containerClassName: "collaborator-container",
|
|
82
|
+
value: ['123', '4567'],
|
|
83
|
+
collaborators: collaborators,
|
|
84
|
+
enableDeleteCollaborator: true,
|
|
85
|
+
onDeleteCollaborator: this.onDeleteCollaborator
|
|
86
|
+
})), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("h2", null, "single-select\u6D4B\u8BD5"), /*#__PURE__*/_react.default.createElement(_index.SingleSelectFormatter, {
|
|
87
|
+
value: '3333',
|
|
88
|
+
options: options
|
|
89
|
+
}))));
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
return App;
|
|
93
|
+
}(_react.default.Component);
|
|
94
|
+
|
|
95
|
+
var _default = App;
|
|
96
|
+
exports.default = _default;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|