dtable-ui-component 6.0.49 → 6.0.50
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/ActionSheet/index.js +94 -68
- package/lib/ActivityIndicator/index.js +36 -28
- package/lib/AsyncUserSelect/index.css +122 -0
- package/lib/AsyncUserSelect/index.js +260 -0
- package/lib/AsyncUserSelect/user-item.js +55 -0
- package/lib/AutoNumberFormatter/index.js +5 -3
- package/lib/Badge/index.js +12 -8
- package/lib/ButtonFormatter/index.js +15 -10
- package/lib/CTimeFormatter/index.js +5 -3
- package/lib/CheckboxEditor/index.js +22 -13
- package/lib/CheckboxEditor/mb-editor.js +7 -5
- package/lib/CheckboxEditor/pc-editor.js +7 -5
- package/lib/CheckboxFormatter/index.js +7 -5
- package/lib/CollaboratorEditor/index.js +24 -15
- package/lib/CollaboratorEditor/mb-editor/index.js +19 -13
- package/lib/CollaboratorEditor/pc-editor/index.js +50 -42
- package/lib/CollaboratorFormatter/index.js +8 -7
- package/lib/CollaboratorItem/index.js +21 -16
- package/lib/CollapsibleSettingLayout/index.js +17 -12
- package/lib/Comment/body/comment.js +78 -62
- package/lib/Comment/body/index.js +14 -11
- package/lib/Comment/footer/btns/index.js +68 -53
- package/lib/Comment/footer/index.js +29 -27
- package/lib/Comment/footer/input/index.js +44 -39
- package/lib/Comment/footer/input/participant/index.js +18 -13
- package/lib/Comment/footer/participants/index.js +31 -28
- package/lib/Comment/footer/participants/participant/index.js +18 -15
- package/lib/Comment/footer/participants/participant-select/index.js +66 -55
- package/lib/Comment/index.js +33 -28
- package/lib/CreatorFormatter/index.js +8 -7
- package/lib/DTableColorPicker/ColorPickerPortal/index.js +5 -3
- package/lib/DTableColorPicker/index.js +135 -99
- package/lib/DTableCommonAddTool/index.js +10 -7
- package/lib/DTableCustomFooter/index.js +5 -3
- package/lib/DTableCustomizeCollaboratorSelect/index.js +38 -32
- package/lib/DTableCustomizeSelect/index.js +51 -44
- package/lib/DTableEmptyTip/index.js +20 -16
- package/lib/DTableFiltersPopover/index.js +71 -61
- package/lib/DTableFiltersPopover/utils/filter-item-utils.js +74 -57
- package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +64 -49
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +49 -41
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +57 -47
- package/lib/DTableFiltersPopover/widgets/filter-calendar.js +35 -31
- package/lib/DTableFiltersPopover/widgets/filter-group.js +38 -32
- package/lib/DTableFiltersPopover/widgets/filter-item.js +125 -106
- package/lib/DTableFiltersPopover/widgets/filter-list/index.js +18 -17
- package/lib/DTableFiltersPopover/widgets/rate-item.js +12 -9
- package/lib/DTableGroupSelect/index.js +52 -44
- package/lib/DTableGroupSelect/option.js +5 -3
- package/lib/DTableGroupSelect/select-option-group.js +31 -25
- package/lib/DTableModalHeader/index.js +13 -9
- package/lib/DTablePopover/index.js +9 -6
- package/lib/DTableRadio/index.js +20 -17
- package/lib/DTableRadioGroup/index.js +21 -18
- package/lib/DTableSearchInput/index.js +22 -18
- package/lib/DTableSelect/dtable-select-label.js +12 -7
- package/lib/DTableSelect/index.js +2 -1
- package/lib/DTableSelect/utils.js +34 -20
- package/lib/DTableSwitch/index.js +25 -17
- package/lib/DateEditor/index.js +25 -16
- package/lib/DateEditor/mb-editor/index.js +90 -68
- package/lib/DateEditor/pc-editor.js +38 -34
- package/lib/DateFormatter/index.js +5 -3
- package/lib/DeleteTip/index.js +29 -20
- package/lib/DepartmentMultipleSelectEditor/index.js +57 -49
- package/lib/DepartmentSelectFilter/index.js +8 -1
- package/lib/DepartmentSingleSelectEditor/index.js +22 -13
- package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +75 -55
- package/lib/DepartmentSingleSelectEditor/pc-editor/department-single-select.js +78 -61
- package/lib/DepartmentSingleSelectEditor/pc-editor/index.js +14 -11
- package/lib/DepartmentSingleSelectFormatter/index.js +13 -9
- package/lib/DigitalSignEditor/index.js +22 -13
- package/lib/DigitalSignEditor/mb-editor/index.js +39 -24
- package/lib/DigitalSignEditor/pc-editor/index.js +44 -30
- package/lib/DigitalSignEditor/signature-board/index.js +19 -15
- package/lib/DigitalSignFormatter/index.js +23 -19
- package/lib/Drawer/index.js +4 -1
- package/lib/DurationEditor/index.js +2 -1
- package/lib/DurationFormatter/index.js +5 -3
- package/lib/EditEditorButton/index.js +5 -3
- package/lib/EmailEditor/index.js +2 -1
- package/lib/EmailFormatter/index.js +5 -3
- package/lib/FieldDisplaySetting/field-item.js +25 -19
- package/lib/FieldDisplaySetting/index.js +47 -38
- package/lib/FileEditor/files-previewer/index.js +22 -13
- package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +43 -28
- package/lib/FileEditor/files-previewer/mb-previewer/index.js +24 -21
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/dropdown-menu.js +30 -24
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/file-name-editor/index.js +13 -11
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/index.js +81 -63
- package/lib/FileEditor/files-previewer/pc-previewer/index.js +81 -65
- package/lib/FileEditor/index.js +22 -13
- package/lib/FileEditor/mb-editor/index.js +43 -31
- package/lib/FileEditor/pc-editor/addition-previewer/index.js +27 -20
- package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.js +107 -81
- package/lib/FileEditor/pc-editor/index.js +46 -36
- package/lib/FileFormatter/index.js +40 -36
- package/lib/FileItemFormatter/index.js +2 -1
- package/lib/FileUploader/index.js +22 -20
- package/lib/FormulaFormatter/index.js +21 -14
- package/lib/GeolocationEditor/index.js +28 -19
- package/lib/GeolocationEditor/mb-editor/country-editor.js +42 -27
- package/lib/GeolocationEditor/mb-editor/index.js +22 -14
- package/lib/GeolocationEditor/mb-editor/location-editor.js +54 -34
- package/lib/GeolocationEditor/mb-editor/map-editor/index.js +102 -74
- package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.js +144 -110
- package/lib/GeolocationEditor/mb-editor/province-city-editor.js +42 -27
- package/lib/GeolocationEditor/mb-editor/province-editor.js +42 -27
- package/lib/GeolocationEditor/pc-editor/country-editor.js +37 -30
- package/lib/GeolocationEditor/pc-editor/index.js +26 -17
- package/lib/GeolocationEditor/pc-editor/location-editor.js +121 -95
- package/lib/GeolocationEditor/pc-editor/map-editor/index.js +99 -74
- package/lib/GeolocationEditor/pc-editor/map-editor/large-editor/index.js +99 -76
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/index.js +119 -91
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +102 -82
- package/lib/GeolocationEditor/pc-editor/province-city-editor.js +89 -69
- package/lib/GeolocationEditor/pc-editor/province-editor.js +30 -25
- package/lib/GeolocationEditor/pc-editor/selector-header-item.js +9 -5
- package/lib/GeolocationEditor/pc-editor/selector-list.js +15 -13
- package/lib/GeolocationFormatter/index.js +5 -3
- package/lib/HtmlLongTextFormatter/index.js +2 -1
- package/lib/Icon/index.js +8 -5
- package/lib/IconButton/index.js +9 -6
- package/lib/ImageEditor/images-previewer/image-preview/index.js +52 -44
- package/lib/ImageEditor/images-previewer/index.js +35 -32
- package/lib/ImageEditor/index.js +22 -13
- package/lib/ImageEditor/mb-editor/index.js +43 -31
- package/lib/ImageEditor/pc-editor/addition-previewer/image-link/index.js +19 -15
- package/lib/ImageEditor/pc-editor/addition-previewer/index.js +32 -24
- package/lib/ImageEditor/pc-editor/addition-previewer/local-image-addition/index.js +101 -76
- package/lib/ImageEditor/pc-editor/images-previewer/index.js +33 -30
- package/lib/ImageEditor/pc-editor/index.js +44 -32
- package/lib/ImageFormatter/images-lazy-load.js +12 -10
- package/lib/ImageFormatter/index.js +40 -34
- package/lib/ImagePreviewerLightbox/index.js +12 -8
- package/lib/ImageThumbnail/index.js +46 -38
- package/lib/InputItem/custom-input.js +23 -18
- package/lib/InputItem/custom-keyboard.js +65 -44
- package/lib/InputItem/index.js +66 -56
- package/lib/InputItem/input.js +5 -3
- package/lib/LastModifierFormatter/index.js +8 -7
- package/lib/LinkEditor/index.js +38 -32
- package/lib/LinkEditor/link-editor-option.js +25 -20
- package/lib/LinkEditor/mb-popover/index.js +53 -41
- package/lib/LinkEditor/pc-popover/index.js +41 -33
- package/lib/LinkFormatter/index.js +13 -10
- package/lib/List/index.js +15 -9
- package/lib/List/list-item.js +32 -23
- package/lib/Loading/index.js +2 -1
- package/lib/LongTextFormatter/index.js +3 -2
- package/lib/MBEditorHeader/index.js +19 -14
- package/lib/MTimeFormatter/index.js +5 -3
- package/lib/MobileFullScreenPage/body/index.js +5 -3
- package/lib/MobileFullScreenPage/header/index.js +21 -16
- package/lib/MobileFullScreenPage/index.js +11 -8
- package/lib/MobileModal/index.js +6 -3
- package/lib/MobileOperationSheet/index.js +28 -18
- package/lib/MobileSelector/empty/index.js +5 -3
- package/lib/MobileSelector/index.js +18 -12
- package/lib/MobileSelector/option/index.js +17 -12
- package/lib/MobileSelector/options/index.js +5 -3
- package/lib/MobileSelector/search/index.js +10 -8
- package/lib/MobileUpload/index.js +87 -67
- package/lib/Modal/alert.js +8 -5
- package/lib/Modal/modal.js +19 -15
- package/lib/Modal/operation.js +2 -1
- package/lib/Modal/prompt.js +74 -54
- package/lib/MultipleSelectEditor/index.js +4 -2
- package/lib/MultipleSelectFormatter/index.js +8 -7
- package/lib/NotificationPopover/index.js +43 -32
- package/lib/NumberEditor/index.js +2 -1
- package/lib/NumberFormatter/index.js +5 -3
- package/lib/Picker/AbstractPicker.js +26 -22
- package/lib/Picker/index.js +2 -1
- package/lib/Popover/index.js +8 -5
- package/lib/Popover/item.js +22 -15
- package/lib/Progress/index.js +12 -10
- package/lib/Radio/Radio.js +11 -7
- package/lib/Radio/RadioItem.js +9 -3
- package/lib/RateFormatter/index.js +7 -6
- package/lib/RoleStatusEditor/index.js +36 -31
- package/lib/RowExpand/index.js +16 -9
- package/lib/RowExpandDialog/body/index.js +52 -41
- package/lib/RowExpandDialog/column-content/index.js +34 -25
- package/lib/RowExpandDialog/header/index.js +28 -21
- package/lib/RowExpandDialog/index.js +40 -27
- package/lib/RowExpandEditor/add-btn/index.js +16 -9
- package/lib/RowExpandEditor/add-btn/mb-add-btn/index.js +5 -3
- package/lib/RowExpandEditor/add-btn/pc-add-btn/index.js +8 -5
- package/lib/RowExpandEditor/checkbox-editor/index.js +16 -9
- package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.js +10 -8
- package/lib/RowExpandEditor/checkbox-editor/pc-editor.js +2 -1
- package/lib/RowExpandEditor/collaborator-editor/index.js +16 -9
- package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.js +19 -17
- package/lib/RowExpandEditor/collaborator-editor/pc-editor/index.js +52 -47
- package/lib/RowExpandEditor/date-editor/index.js +16 -9
- package/lib/RowExpandEditor/date-editor/mb-editor.js +20 -15
- package/lib/RowExpandEditor/date-editor/pc-editor.js +24 -21
- package/lib/RowExpandEditor/department-editor/index.js +16 -9
- package/lib/RowExpandEditor/department-editor/mb-editor.js +27 -22
- package/lib/RowExpandEditor/department-editor/pc-editor.js +35 -29
- package/lib/RowExpandEditor/digital-sign-editor/index.js +16 -9
- package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +19 -16
- package/lib/RowExpandEditor/digital-sign-editor/pc-editor/index.js +34 -32
- package/lib/RowExpandEditor/duration-editor/index.js +16 -9
- package/lib/RowExpandEditor/duration-editor/mb-editor.js +15 -12
- package/lib/RowExpandEditor/duration-editor/pc-editor.js +17 -13
- package/lib/RowExpandEditor/email-editor/index.js +16 -9
- package/lib/RowExpandEditor/email-editor/mb-editor/index.js +19 -17
- package/lib/RowExpandEditor/email-editor/pc-editor/index.js +20 -18
- package/lib/RowExpandEditor/file-editor/index.js +16 -9
- package/lib/RowExpandEditor/file-editor/mb-editor/index.js +21 -16
- package/lib/RowExpandEditor/file-editor/pc-editor/index.js +22 -20
- package/lib/RowExpandEditor/geolocation-editor/index.js +16 -9
- package/lib/RowExpandEditor/geolocation-editor/mb-editor/index.js +12 -9
- package/lib/RowExpandEditor/geolocation-editor/pc-editor/index.js +20 -17
- package/lib/RowExpandEditor/image-editor/index.js +16 -9
- package/lib/RowExpandEditor/image-editor/mb-editor/index.js +21 -16
- package/lib/RowExpandEditor/image-editor/pc-editor/index.js +29 -25
- package/lib/RowExpandEditor/index.js +4 -2
- package/lib/RowExpandEditor/long-text-editor/index.js +16 -9
- package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.js +27 -16
- package/lib/RowExpandEditor/long-text-editor/mb-editor/index.js +19 -16
- package/lib/RowExpandEditor/long-text-editor/pc-editor/index.js +22 -18
- package/lib/RowExpandEditor/multiple-select-editor/index.js +16 -9
- package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +26 -23
- package/lib/RowExpandEditor/multiple-select-editor/pc-editor/index.js +81 -67
- package/lib/RowExpandEditor/number-editor/index.js +16 -9
- package/lib/RowExpandEditor/number-editor/mb-editor/index.js +10 -7
- package/lib/RowExpandEditor/number-editor/pc-editor.js +6 -4
- package/lib/RowExpandEditor/rate-editor/index.js +16 -9
- package/lib/RowExpandEditor/rate-editor/mb-editor.js +10 -8
- package/lib/RowExpandEditor/rate-editor/pc-editor.js +11 -9
- package/lib/RowExpandEditor/right-angle/index.js +8 -6
- package/lib/RowExpandEditor/single-select-editor/index.js +16 -9
- package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +30 -23
- package/lib/RowExpandEditor/single-select-editor/pc-editor/index.js +42 -34
- package/lib/RowExpandEditor/text-editor/index.js +16 -9
- package/lib/RowExpandEditor/text-editor/mb-editor/index.js +11 -9
- package/lib/RowExpandEditor/text-editor/pc-editor/index.js +16 -12
- package/lib/RowExpandEditor/url-editor/index.js +16 -9
- package/lib/RowExpandEditor/url-editor/mb-editor/index.js +19 -17
- package/lib/RowExpandEditor/url-editor/pc-editor/index.js +20 -18
- package/lib/RowExpandFormatter/department-formatter/index.js +14 -5
- package/lib/RowExpandFormatter/department-formatter/mb-formatter.js +2 -1
- package/lib/RowExpandFormatter/department-formatter/pc-formatter.js +15 -11
- package/lib/RowExpandFormatter/email-formatter/index.js +11 -8
- package/lib/RowExpandFormatter/file-formatter/index.js +15 -14
- package/lib/RowExpandFormatter/file-formatter/row-expand-file-item-formatter.js +43 -36
- package/lib/RowExpandFormatter/formula-formatter/index.js +37 -29
- package/lib/RowExpandFormatter/image-formatter/index.js +30 -27
- package/lib/RowExpandFormatter/image-formatter/row-expand-image-item-formatter.js +47 -39
- package/lib/RowExpandFormatter/index.js +131 -114
- package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +2 -1
- package/lib/RowExpandFormatter/link-formatter/index.js +70 -67
- package/lib/RowExpandFormatter/rate-formatter/index.js +7 -6
- package/lib/RowExpandFormatter/url-formatter/index.js +11 -8
- package/lib/RowExpandView/body/index.js +38 -32
- package/lib/RowExpandView/column-content/index.js +10 -5
- package/lib/RowExpandView/index.js +27 -16
- package/lib/SelectItem/index.js +16 -12
- package/lib/SelectOptionGroup/index.js +39 -32
- package/lib/SelectOptionGroup/option.js +5 -3
- package/lib/SelectedDepartments/index.js +54 -44
- package/lib/SimpleLongTextFormatter/index.js +39 -30
- package/lib/SimpleLongTextFormatter/widgets/LongTextPreview.js +11 -8
- package/lib/SimpleLongTextFormatter/widgets/dtable-markdown-viewer.js +3 -2
- package/lib/SingleSelectEditor/index.js +4 -2
- package/lib/SingleSelectFormatter/index.js +6 -4
- package/lib/SvgIcon/index.js +4 -1
- package/lib/TabBar/Tab.js +27 -20
- package/lib/TabBar/index.js +25 -21
- package/lib/Tabs/index.js +8 -5
- package/lib/TextEditor/index.js +21 -18
- package/lib/TextFormatter/index.js +5 -3
- package/lib/TextareaItem/index.js +35 -26
- package/lib/Toast/index.js +16 -10
- package/lib/UploadProgress/index.js +2 -1
- package/lib/UrlEditor/index.js +2 -1
- package/lib/UrlFormatter/index.js +5 -3
- package/lib/formatterConfig/base-formatter-config.js +24 -23
- package/lib/formatterConfig/index.js +3 -2
- package/lib/index.js +7 -0
- package/lib/locales/de.json +5 -1
- package/lib/locales/en.json +5 -1
- package/lib/locales/es.json +6 -2
- package/lib/locales/fr.json +5 -1
- package/lib/locales/pt.json +5 -1
- package/lib/locales/ru.json +5 -1
- package/lib/locales/zh-CN.json +5 -1
- package/lib/select-editor/index.js +22 -13
- package/lib/select-editor/mb-editor/index.js +22 -16
- package/lib/select-editor/pc-editor/index.js +74 -60
- package/lib/toaster/alert.js +25 -16
- package/lib/toaster/toast.js +27 -23
- package/lib/toaster/toastManager.js +16 -13
- package/lib/toaster/toaster.js +2 -1
- package/package.json +2 -2
|
@@ -9,6 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
10
|
var _dtableMarkdownViewer = _interopRequireDefault(require("./dtable-markdown-viewer"));
|
|
11
11
|
require("./longTextEditor.css");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
13
|
class LongTextPreview extends _react.default.PureComponent {
|
|
13
14
|
constructor(props) {
|
|
14
15
|
super(props);
|
|
@@ -74,18 +75,20 @@ class LongTextPreview extends _react.default.PureComponent {
|
|
|
74
75
|
value
|
|
75
76
|
} = this.props;
|
|
76
77
|
const markdownContent = value ? value.text : '';
|
|
77
|
-
return /*#__PURE__*/
|
|
78
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
78
79
|
className: (0, _classnames.default)('longtext-modal-dialog longtext-preview', className),
|
|
79
80
|
style: this.getStyle(),
|
|
80
81
|
ref: ref => this.ref = ref,
|
|
81
82
|
onMouseEnter: this.onMouseEnter,
|
|
82
|
-
onMouseLeave: this.onMouseLeave
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
83
|
+
onMouseLeave: this.onMouseLeave,
|
|
84
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
85
|
+
className: "longtext-container longtext-container-scroll",
|
|
86
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_dtableMarkdownViewer.default, {
|
|
87
|
+
markdownContent: markdownContent,
|
|
88
|
+
showTOC: false
|
|
89
|
+
})
|
|
90
|
+
})
|
|
91
|
+
});
|
|
89
92
|
}
|
|
90
93
|
}
|
|
91
94
|
var _default = exports.default = LongTextPreview;
|
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _seafileEditor = require("@seafile/seafile-editor");
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
11
|
// Windows old Wechat (3.0 or earlier) inner core is chrome 53 and don't support ECMA6, can't use seafile-editor markdownViewer
|
|
11
12
|
// Windows new Wechat (lastest version 3.3.5) support seafile-editor markdownViewer
|
|
12
13
|
// so use dangerouslySetInnerHTML to preview
|
|
@@ -43,7 +44,7 @@ class DtableMarkdownViewer extends _react.default.PureComponent {
|
|
|
43
44
|
}
|
|
44
45
|
render() {
|
|
45
46
|
if (this.isWindowsWechat) {
|
|
46
|
-
return /*#__PURE__*/
|
|
47
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
47
48
|
className: "long-text-container article",
|
|
48
49
|
dangerouslySetInnerHTML: {
|
|
49
50
|
__html: this.state.innerHtml
|
|
@@ -54,7 +55,7 @@ class DtableMarkdownViewer extends _react.default.PureComponent {
|
|
|
54
55
|
showTOC,
|
|
55
56
|
markdownContent
|
|
56
57
|
} = this.props;
|
|
57
|
-
return /*#__PURE__*/
|
|
58
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_seafileEditor.MarkdownViewer, {
|
|
58
59
|
value: markdownContent,
|
|
59
60
|
isShowOutline: showTOC
|
|
60
61
|
});
|
|
@@ -8,15 +8,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _selectEditor = _interopRequireDefault(require("../select-editor"));
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
const SingleSelectEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
12
13
|
let {
|
|
13
14
|
value: oldValue,
|
|
14
15
|
...props
|
|
15
16
|
} = _ref;
|
|
16
17
|
const value = oldValue ? [oldValue] : [];
|
|
17
|
-
return /*#__PURE__*/
|
|
18
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_selectEditor.default, {
|
|
19
|
+
...props,
|
|
18
20
|
value: value,
|
|
19
21
|
ref: ref
|
|
20
|
-
})
|
|
22
|
+
});
|
|
21
23
|
});
|
|
22
24
|
var _default = exports.default = SingleSelectEditor;
|
|
@@ -9,6 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
10
|
var _SelectItem = _interopRequireDefault(require("../SelectItem"));
|
|
11
11
|
require("./index.css");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
13
|
class SingleSelectFormatter extends _react.default.PureComponent {
|
|
13
14
|
constructor() {
|
|
14
15
|
super(...arguments);
|
|
@@ -20,7 +21,7 @@ class SingleSelectFormatter extends _react.default.PureComponent {
|
|
|
20
21
|
} = this.props;
|
|
21
22
|
let option = options.find(item => item.id === value || item.name === value);
|
|
22
23
|
if (option) {
|
|
23
|
-
return /*#__PURE__*/
|
|
24
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectItem.default, {
|
|
24
25
|
option: option,
|
|
25
26
|
fontSize: fontSize
|
|
26
27
|
});
|
|
@@ -33,9 +34,10 @@ class SingleSelectFormatter extends _react.default.PureComponent {
|
|
|
33
34
|
value
|
|
34
35
|
} = this.props;
|
|
35
36
|
let classname = (0, _classnames.default)('dtable-ui cell-formatter-container single-select-formatter', containerClassName);
|
|
36
|
-
return /*#__PURE__*/
|
|
37
|
-
className: classname
|
|
38
|
-
|
|
37
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
38
|
+
className: classname,
|
|
39
|
+
children: value ? this.getOption() : ''
|
|
40
|
+
});
|
|
39
41
|
}
|
|
40
42
|
}
|
|
41
43
|
var _default = exports.default = SingleSelectFormatter;
|
package/lib/SvgIcon/index.js
CHANGED
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
require("./index.css");
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
11
|
const iconComponents = {};
|
|
11
12
|
const requireContext = require.context('../assets/icons', false, /\.svg$/);
|
|
12
13
|
requireContext.keys().forEach(path => {
|
|
@@ -30,6 +31,8 @@ const SvgIcon = _ref => {
|
|
|
30
31
|
};
|
|
31
32
|
const IconComponent = iconComponents[symbol];
|
|
32
33
|
if (!IconComponent) return null;
|
|
33
|
-
return /*#__PURE__*/
|
|
34
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(IconComponent, {
|
|
35
|
+
...props
|
|
36
|
+
});
|
|
34
37
|
};
|
|
35
38
|
var _default = exports.default = SvgIcon;
|
package/lib/TabBar/Tab.js
CHANGED
|
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var React = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _Badge = _interopRequireDefault(require("../Badge"));
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
class Tab extends React.PureComponent {
|
|
12
13
|
constructor() {
|
|
13
14
|
super(...arguments);
|
|
@@ -22,22 +23,24 @@ class Tab extends React.PureComponent {
|
|
|
22
23
|
prefixCls
|
|
23
24
|
} = this.props;
|
|
24
25
|
const iconRes = selected ? selectedIcon : icon;
|
|
25
|
-
const iconDom = /*#__PURE__*/React.isValidElement(iconRes) ? iconRes : /*#__PURE__*/
|
|
26
|
+
const iconDom = /*#__PURE__*/React.isValidElement(iconRes) ? iconRes : /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
26
27
|
className: "".concat(prefixCls, "-image"),
|
|
27
28
|
src: iconRes ? iconRes.uri : iconRes,
|
|
28
29
|
alt: title
|
|
29
30
|
});
|
|
30
31
|
if (badge) {
|
|
31
|
-
return /*#__PURE__*/
|
|
32
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Badge.default, {
|
|
32
33
|
text: badge,
|
|
33
|
-
className: "".concat(prefixCls, "-badge tab-badge")
|
|
34
|
-
|
|
34
|
+
className: "".concat(prefixCls, "-badge tab-badge"),
|
|
35
|
+
children: [' ', iconDom, ' ']
|
|
36
|
+
});
|
|
35
37
|
}
|
|
36
38
|
if (dot) {
|
|
37
|
-
return /*#__PURE__*/
|
|
39
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Badge.default, {
|
|
38
40
|
dot: true,
|
|
39
|
-
className: "".concat(prefixCls, "-badge tab-dot")
|
|
40
|
-
|
|
41
|
+
className: "".concat(prefixCls, "-badge tab-dot"),
|
|
42
|
+
children: iconDom
|
|
43
|
+
});
|
|
41
44
|
}
|
|
42
45
|
return iconDom;
|
|
43
46
|
};
|
|
@@ -57,20 +60,24 @@ class Tab extends React.PureComponent {
|
|
|
57
60
|
tintColor
|
|
58
61
|
} = this.props;
|
|
59
62
|
const iconColor = selected ? tintColor : unselectedTintColor;
|
|
60
|
-
return /*#__PURE__*/
|
|
63
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
64
|
+
...this.props.dataAttrs,
|
|
61
65
|
onClick: this.onClick,
|
|
62
|
-
className: "".concat(prefixCls)
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
66
|
+
className: "".concat(prefixCls),
|
|
67
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
68
|
+
className: "".concat(prefixCls, "-icon"),
|
|
69
|
+
style: {
|
|
70
|
+
color: iconColor
|
|
71
|
+
},
|
|
72
|
+
children: this.renderIcon()
|
|
73
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
74
|
+
className: "".concat(prefixCls, "-title"),
|
|
75
|
+
style: {
|
|
76
|
+
color: selected ? tintColor : unselectedTintColor
|
|
77
|
+
},
|
|
78
|
+
children: title
|
|
79
|
+
})]
|
|
80
|
+
});
|
|
74
81
|
}
|
|
75
82
|
}
|
|
76
83
|
var _default = exports.default = Tab;
|
package/lib/TabBar/index.js
CHANGED
|
@@ -11,16 +11,18 @@ var _getDataAttr = _interopRequireDefault(require("../utils/getDataAttr"));
|
|
|
11
11
|
var _Tabs = _interopRequireDefault(require("../Tabs"));
|
|
12
12
|
var _Tab = _interopRequireDefault(require("./Tab"));
|
|
13
13
|
require("./index.css");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
15
|
class Item extends React.Component {
|
|
15
16
|
render() {
|
|
16
17
|
const {
|
|
17
18
|
prefixCls,
|
|
18
19
|
style
|
|
19
20
|
} = this.props;
|
|
20
|
-
return /*#__PURE__*/
|
|
21
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
21
22
|
className: prefixCls,
|
|
22
|
-
style: style
|
|
23
|
-
|
|
23
|
+
style: style,
|
|
24
|
+
children: this.props.children
|
|
25
|
+
});
|
|
24
26
|
}
|
|
25
27
|
}
|
|
26
28
|
exports.Item = Item;
|
|
@@ -53,8 +55,7 @@ class AntTabBar extends React.Component {
|
|
|
53
55
|
} = this.props;
|
|
54
56
|
const tabsData = this.getTabs();
|
|
55
57
|
const content = Array.isArray(tabsData) ? tabsData.map((cProps, index) => {
|
|
56
|
-
return /*#__PURE__*/
|
|
57
|
-
key: index,
|
|
58
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tab.default, {
|
|
58
59
|
prefixCls: "".concat(this.props.prefixCls, "-tab"),
|
|
59
60
|
badge: cProps.badge,
|
|
60
61
|
dot: cProps.dot,
|
|
@@ -66,18 +67,19 @@ class AntTabBar extends React.Component {
|
|
|
66
67
|
unselectedTintColor: unselectedTintColor,
|
|
67
68
|
dataAttrs: (0, _getDataAttr.default)(cProps),
|
|
68
69
|
onClick: () => cProps.onPress && cProps.onPress()
|
|
69
|
-
});
|
|
70
|
+
}, index);
|
|
70
71
|
}) : null;
|
|
71
72
|
let cls = "".concat(prefixCls, "-bar");
|
|
72
73
|
if (hidden) {
|
|
73
74
|
cls += " ".concat(prefixCls, "-bar-hidden-").concat(tabBarPosition);
|
|
74
75
|
}
|
|
75
|
-
return /*#__PURE__*/
|
|
76
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
76
77
|
className: cls,
|
|
77
78
|
style: {
|
|
78
79
|
backgroundColor: barTintColor
|
|
79
|
-
}
|
|
80
|
-
|
|
80
|
+
},
|
|
81
|
+
children: content
|
|
82
|
+
});
|
|
81
83
|
};
|
|
82
84
|
}
|
|
83
85
|
render() {
|
|
@@ -99,18 +101,20 @@ class AntTabBar extends React.Component {
|
|
|
99
101
|
}
|
|
100
102
|
});
|
|
101
103
|
}
|
|
102
|
-
return /*#__PURE__*/
|
|
103
|
-
className: prefixCls
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
104
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
105
|
+
className: prefixCls,
|
|
106
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tabs.default, {
|
|
107
|
+
tabs: tabs,
|
|
108
|
+
renderTabBar: this.renderTabBar,
|
|
109
|
+
tabBarPosition: tabBarPosition,
|
|
110
|
+
page: activeIndex < 0 ? undefined : activeIndex,
|
|
111
|
+
animated: animated,
|
|
112
|
+
swipeable: swipeable,
|
|
113
|
+
noRenderContent: noRenderContent,
|
|
114
|
+
prerenderingSiblingsNumber: prerenderingSiblingsNumber,
|
|
115
|
+
children: children
|
|
116
|
+
})
|
|
117
|
+
});
|
|
114
118
|
}
|
|
115
119
|
}
|
|
116
120
|
AntTabBar.defaultProps = {
|
package/lib/Tabs/index.js
CHANGED
|
@@ -8,6 +8,7 @@ exports.default = exports.DefaultTabBar = void 0;
|
|
|
8
8
|
var React = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _rmcTabs = require("rmc-tabs");
|
|
10
10
|
require("./index.css");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
class DefaultTabBar extends _rmcTabs.DefaultTabBar {}
|
|
12
13
|
exports.DefaultTabBar = DefaultTabBar;
|
|
13
14
|
DefaultTabBar.defaultProps = {
|
|
@@ -21,15 +22,17 @@ class Tabs extends React.PureComponent {
|
|
|
21
22
|
const {
|
|
22
23
|
renderTab
|
|
23
24
|
} = this.props;
|
|
24
|
-
return /*#__PURE__*/
|
|
25
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(DefaultTabBar, {
|
|
26
|
+
...props,
|
|
25
27
|
renderTab: renderTab
|
|
26
|
-
})
|
|
28
|
+
});
|
|
27
29
|
};
|
|
28
30
|
}
|
|
29
31
|
render() {
|
|
30
|
-
return /*#__PURE__*/
|
|
31
|
-
renderTabBar: this.renderTabBar
|
|
32
|
-
|
|
32
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcTabs.Tabs, {
|
|
33
|
+
renderTabBar: this.renderTabBar,
|
|
34
|
+
...this.props
|
|
35
|
+
});
|
|
33
36
|
}
|
|
34
37
|
}
|
|
35
38
|
exports.default = Tabs;
|
package/lib/TextEditor/index.js
CHANGED
|
@@ -11,6 +11,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
11
11
|
var _utils = require("../utils/utils");
|
|
12
12
|
var _constants = require("../constants");
|
|
13
13
|
var _cellComparer = require("../utils/cell-comparer");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
15
|
class TextEditor extends _react.Component {
|
|
15
16
|
constructor(props) {
|
|
16
17
|
super(props);
|
|
@@ -128,24 +129,26 @@ class TextEditor extends _react.Component {
|
|
|
128
129
|
const {
|
|
129
130
|
value
|
|
130
131
|
} = this.state;
|
|
131
|
-
return /*#__PURE__*/
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
132
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
133
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
134
|
+
type: "text",
|
|
135
|
+
className: (0, _classnames.default)('form-control', className),
|
|
136
|
+
ref: this.setInputRef,
|
|
137
|
+
placeholder: placeholder || '',
|
|
138
|
+
onBlur: this.onBlur,
|
|
139
|
+
onCut: this.onCut,
|
|
140
|
+
onPaste: this.onPaste,
|
|
141
|
+
value: value,
|
|
142
|
+
name: column.name,
|
|
143
|
+
title: column.name,
|
|
144
|
+
"aria-label": column.name,
|
|
145
|
+
onChange: this.onChange,
|
|
146
|
+
onKeyDown: this.onInputKeyDown,
|
|
147
|
+
onClick: this.onClick,
|
|
148
|
+
onCompositionStart: this.onCompositionStart,
|
|
149
|
+
onCompositionEnd: this.onCompositionEnd
|
|
150
|
+
})
|
|
151
|
+
});
|
|
149
152
|
}
|
|
150
153
|
}
|
|
151
154
|
var _default = exports.default = TextEditor;
|
|
@@ -8,6 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
10
|
require("./index.css");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
class TextFormatter extends _react.default.Component {
|
|
12
13
|
constructor() {
|
|
13
14
|
super(...arguments);
|
|
@@ -28,10 +29,11 @@ class TextFormatter extends _react.default.Component {
|
|
|
28
29
|
} = this.props;
|
|
29
30
|
const classname = (0, _classnames.default)('dtable-ui cell-formatter-container text-formatter', containerClassName);
|
|
30
31
|
const formattedValue = this.getFormattedValue(value);
|
|
31
|
-
return /*#__PURE__*/
|
|
32
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
32
33
|
className: classname,
|
|
33
|
-
title: formattedValue
|
|
34
|
-
|
|
34
|
+
title: formattedValue,
|
|
35
|
+
children: formattedValue
|
|
36
|
+
});
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
39
|
var _default = exports.default = TextFormatter;
|
|
@@ -11,6 +11,7 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
var _rmcFeedback = _interopRequireDefault(require("rmc-feedback"));
|
|
12
12
|
var _exenv = require("../utils/exenv");
|
|
13
13
|
require("./index.css");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
15
|
/* tslint:disable:jsx-no-multiline-js */
|
|
15
16
|
|
|
16
17
|
function noop() {}
|
|
@@ -184,32 +185,40 @@ class TextareaItem extends React.Component {
|
|
|
184
185
|
lengthCtrlProps.maxLength = count - characterLength + (value ? value.length : 0);
|
|
185
186
|
}
|
|
186
187
|
}
|
|
187
|
-
return /*#__PURE__*/
|
|
188
|
-
className: wrapCls
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
188
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
189
|
+
className: wrapCls,
|
|
190
|
+
children: [title && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
191
|
+
className: labelCls,
|
|
192
|
+
children: title
|
|
193
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
194
|
+
className: "".concat(prefixCls, "-control"),
|
|
195
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("textarea", {
|
|
196
|
+
ref: el => this.textareaRef = el,
|
|
197
|
+
...lengthCtrlProps,
|
|
198
|
+
...otherProps,
|
|
199
|
+
value: value,
|
|
200
|
+
onChange: this.onChange,
|
|
201
|
+
onBlur: this.onBlur,
|
|
202
|
+
onFocus: this.onFocus,
|
|
203
|
+
readOnly: !editable,
|
|
204
|
+
style: style
|
|
205
|
+
})
|
|
206
|
+
}), clear && editable && value && characterLength > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcFeedback.default, {
|
|
207
|
+
activeClassName: "".concat(prefixCls, "-clear-active"),
|
|
208
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
209
|
+
className: "".concat(prefixCls, "-clear"),
|
|
210
|
+
onClick: this.clearInput
|
|
211
|
+
})
|
|
212
|
+
}), error && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
213
|
+
className: "".concat(prefixCls, "-error-extra"),
|
|
214
|
+
onClick: this.onErrorClick
|
|
215
|
+
}), hasCount && /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
216
|
+
className: "".concat(prefixCls, "-count"),
|
|
217
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
218
|
+
children: value ? characterLength : 0
|
|
219
|
+
}), "/", count]
|
|
220
|
+
})]
|
|
221
|
+
});
|
|
213
222
|
}
|
|
214
223
|
}
|
|
215
224
|
exports.default = TextareaItem;
|
package/lib/Toast/index.js
CHANGED
|
@@ -11,6 +11,7 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
var _rmcNotification = _interopRequireDefault(require("rmc-notification"));
|
|
12
12
|
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
13
13
|
require("./index.css");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
15
|
const SHORT = 3;
|
|
15
16
|
const config = {
|
|
16
17
|
duration: SHORT,
|
|
@@ -61,20 +62,25 @@ function notice(content, type) {
|
|
|
61
62
|
notification.notice({
|
|
62
63
|
duration,
|
|
63
64
|
style: {},
|
|
64
|
-
content: iconType ? /*#__PURE__*/
|
|
65
|
+
content: iconType ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
65
66
|
className: "".concat(prefixCls, "-text ").concat(prefixCls, "-text-icon"),
|
|
66
67
|
role: "alert",
|
|
67
|
-
"aria-live": "assertive"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
68
|
+
"aria-live": "assertive",
|
|
69
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
|
|
70
|
+
type: iconType,
|
|
71
|
+
size: "lg"
|
|
72
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
73
|
+
className: "".concat(prefixCls, "-text-info"),
|
|
74
|
+
children: content
|
|
75
|
+
})]
|
|
76
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
74
77
|
className: "".concat(prefixCls, "-text"),
|
|
75
78
|
role: "alert",
|
|
76
|
-
"aria-live": "assertive"
|
|
77
|
-
|
|
79
|
+
"aria-live": "assertive",
|
|
80
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
81
|
+
children: content
|
|
82
|
+
})
|
|
83
|
+
}),
|
|
78
84
|
closable: true,
|
|
79
85
|
onClose() {
|
|
80
86
|
if (onClose) {
|
|
@@ -8,8 +8,9 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _reactSweetProgress = require("react-sweet-progress");
|
|
10
10
|
require("react-sweet-progress/lib/style.css");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
function UploadProgress(props) {
|
|
12
|
-
return /*#__PURE__*/
|
|
13
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactSweetProgress.Progress, {
|
|
13
14
|
type: "circle",
|
|
14
15
|
percent: props.uploadPercent,
|
|
15
16
|
width: props.width || 30,
|
package/lib/UrlEditor/index.js
CHANGED
|
@@ -8,6 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _editorBase = _interopRequireDefault(require("../common/editor-base"));
|
|
10
10
|
var _constants = require("../constants");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
class UrlEditor extends _editorBase.default {
|
|
12
13
|
constructor() {
|
|
13
14
|
super(...arguments);
|
|
@@ -46,7 +47,7 @@ class UrlEditor extends _editorBase.default {
|
|
|
46
47
|
return this.input.querySelector('input:not([type=hidden])');
|
|
47
48
|
}
|
|
48
49
|
render() {
|
|
49
|
-
return /*#__PURE__*/
|
|
50
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
50
51
|
type: "text",
|
|
51
52
|
ref: this.setInputRef,
|
|
52
53
|
className: "form-control",
|
|
@@ -8,6 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
10
|
require("./index.css");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
class UrlFormatter extends _react.default.Component {
|
|
12
13
|
render() {
|
|
13
14
|
const {
|
|
@@ -15,10 +16,11 @@ class UrlFormatter extends _react.default.Component {
|
|
|
15
16
|
value
|
|
16
17
|
} = this.props;
|
|
17
18
|
let classname = (0, _classnames.default)('dtable-ui cell-formatter-container url-formatter', containerClassName);
|
|
18
|
-
return /*#__PURE__*/
|
|
19
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
19
20
|
title: value,
|
|
20
|
-
className: classname
|
|
21
|
-
|
|
21
|
+
className: classname,
|
|
22
|
+
children: value
|
|
23
|
+
});
|
|
22
24
|
}
|
|
23
25
|
}
|
|
24
26
|
var _default = exports.default = UrlFormatter;
|