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
|
@@ -10,12 +10,12 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _rmcFeedback = _interopRequireDefault(require("rmc-feedback"));
|
|
12
12
|
var _exenv = require("../utils/exenv");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
/**
|
|
14
15
|
* determines whether an array includes a certain value among its entries, returning true or false as appropriate.
|
|
15
16
|
* @param {array} arr The array to search in
|
|
16
17
|
* @param {any} item The value to search for
|
|
17
|
-
*/
|
|
18
|
-
function includes(arr, item) {
|
|
18
|
+
*/function includes(arr, item) {
|
|
19
19
|
if (!arr || !arr.length || !item) {
|
|
20
20
|
return false;
|
|
21
21
|
}
|
|
@@ -51,20 +51,24 @@ class KeyboardItem extends React.Component {
|
|
|
51
51
|
["".concat(prefixCls, "-item-disabled")]: disabled
|
|
52
52
|
};
|
|
53
53
|
const wrapCls = (0, _classnames.default)("".concat(prefixCls, "-item"), className, extraCls);
|
|
54
|
-
return /*#__PURE__*/
|
|
54
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcFeedback.default, {
|
|
55
55
|
disabled: disabled,
|
|
56
|
-
activeClassName: "".concat(prefixCls, "-item-active")
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
56
|
+
activeClassName: "".concat(prefixCls, "-item-active"),
|
|
57
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("td", {
|
|
58
|
+
ref: tdRef
|
|
59
|
+
// tslint:disable-next-line:jsx-no-multiline-js
|
|
60
|
+
,
|
|
61
|
+
onTouchEnd: e => {
|
|
62
|
+
onClick(e, value);
|
|
63
|
+
},
|
|
64
|
+
className: wrapCls,
|
|
65
|
+
...restProps,
|
|
66
|
+
children: [children, iconOnly && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
67
|
+
className: "sr-only",
|
|
68
|
+
children: label
|
|
69
|
+
})]
|
|
70
|
+
})
|
|
71
|
+
});
|
|
68
72
|
}
|
|
69
73
|
}
|
|
70
74
|
exports.KeyboardItem = KeyboardItem;
|
|
@@ -97,11 +101,11 @@ class CustomKeyboard extends React.Component {
|
|
|
97
101
|
if (this.props.disabledKeys && includes(this.props.disabledKeys, item)) {
|
|
98
102
|
disabled = true;
|
|
99
103
|
}
|
|
100
|
-
return /*#__PURE__*/
|
|
104
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(KeyboardItem, {
|
|
101
105
|
onClick: this.onKeyboardClick,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}, item);
|
|
106
|
+
disabled: disabled,
|
|
107
|
+
children: item
|
|
108
|
+
}, "item-".concat(item, "-").concat(index));
|
|
105
109
|
};
|
|
106
110
|
}
|
|
107
111
|
render() {
|
|
@@ -114,32 +118,49 @@ class CustomKeyboard extends React.Component {
|
|
|
114
118
|
header
|
|
115
119
|
} = this.props;
|
|
116
120
|
const wrapperCls = (0, _classnames.default)("".concat(prefixCls, "-wrapper"), "".concat(prefixCls, "-wrapper-hide"));
|
|
117
|
-
return /*#__PURE__*/
|
|
121
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
118
122
|
className: wrapperCls,
|
|
119
|
-
ref: el => this.antmKeyboard = el
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
123
|
+
ref: el => this.antmKeyboard = el,
|
|
124
|
+
...wrapProps,
|
|
125
|
+
children: [header && /*#__PURE__*/React.cloneElement(header, {
|
|
126
|
+
onClick: this.onKeyboardClick
|
|
127
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("table", {
|
|
128
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("tbody", {
|
|
129
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("tr", {
|
|
130
|
+
children: [['1', '2', '3'].map((item, index) =>
|
|
131
|
+
// tslint:disable-next-line:jsx-no-multiline-js
|
|
132
|
+
this.renderKeyboardItem(item, index)), /*#__PURE__*/(0, _jsxRuntime.jsx)(KeyboardItem, {
|
|
133
|
+
className: "keyboard-delete",
|
|
134
|
+
rowSpan: 2,
|
|
135
|
+
onClick: this.onKeyboardClick,
|
|
136
|
+
...this.getAriaAttr(backspaceLabel)
|
|
137
|
+
})]
|
|
138
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("tr", {
|
|
139
|
+
children: ['4', '5', '6'].map((item, index) =>
|
|
140
|
+
// tslint:disable-next-line:jsx-no-multiline-js
|
|
141
|
+
this.renderKeyboardItem(item, index))
|
|
142
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("tr", {
|
|
143
|
+
children: [['7', '8', '9'].map((item, index) =>
|
|
144
|
+
// tslint:disable-next-line:jsx-no-multiline-js
|
|
145
|
+
this.renderKeyboardItem(item, index)), /*#__PURE__*/(0, _jsxRuntime.jsx)(KeyboardItem, {
|
|
146
|
+
className: "keyboard-confirm",
|
|
147
|
+
rowSpan: 2,
|
|
148
|
+
onClick: this.onKeyboardClick,
|
|
149
|
+
tdRef: el => this.confirmKeyboardItem = el,
|
|
150
|
+
children: confirmLabel
|
|
151
|
+
})]
|
|
152
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("tr", {
|
|
153
|
+
children: [['.', '0'].map((item, index) =>
|
|
154
|
+
// tslint:disable-next-line:jsx-no-multiline-js
|
|
155
|
+
this.renderKeyboardItem(item, index)), /*#__PURE__*/(0, _jsxRuntime.jsx)(KeyboardItem, {
|
|
156
|
+
className: "keyboard-hide",
|
|
157
|
+
onClick: this.onKeyboardClick,
|
|
158
|
+
...this.getAriaAttr(cancelKeyboardLabel)
|
|
159
|
+
})]
|
|
160
|
+
})]
|
|
161
|
+
})
|
|
162
|
+
})]
|
|
163
|
+
});
|
|
143
164
|
}
|
|
144
165
|
getAriaAttr(label) {
|
|
145
166
|
if (_exenv.IS_IOS) {
|
package/lib/InputItem/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var _getLocale = require("../utils/getLocale");
|
|
|
14
14
|
var _customInput = _interopRequireDefault(require("./custom-input"));
|
|
15
15
|
var _input = _interopRequireDefault(require("./input"));
|
|
16
16
|
require("./style/index.css");
|
|
17
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
18
|
/* tslint:disable:jsx-no-multiline-js */
|
|
18
19
|
|
|
19
20
|
function noop() {}
|
|
@@ -302,62 +303,71 @@ class InputItem extends React.Component {
|
|
|
302
303
|
className: 'h5numInput' // the name is bad! todos rename.
|
|
303
304
|
};
|
|
304
305
|
}
|
|
305
|
-
return /*#__PURE__*/
|
|
306
|
-
className: wrapCls
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
306
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
307
|
+
className: wrapCls,
|
|
308
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
309
|
+
className: "".concat(prefixListCls, "-line"),
|
|
310
|
+
children: [children ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
311
|
+
className: labelCls,
|
|
312
|
+
children: children
|
|
313
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
314
|
+
className: controlCls,
|
|
315
|
+
children: type === 'money' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_customInput.default, {
|
|
316
|
+
value: normalizeValue(value),
|
|
317
|
+
type: type,
|
|
318
|
+
ref: el => this.inputRef = el,
|
|
319
|
+
maxLength: maxLength,
|
|
320
|
+
placeholder: placeholder,
|
|
321
|
+
onChange: this.onInputChange,
|
|
322
|
+
onFocus: this.onInputFocus,
|
|
323
|
+
onBlur: this.onInputBlur,
|
|
324
|
+
onVirtualKeyboardConfirm: onVirtualKeyboardConfirm,
|
|
325
|
+
disabled: disabled,
|
|
326
|
+
editable: editable,
|
|
327
|
+
prefixCls: prefixCls,
|
|
328
|
+
style: style,
|
|
329
|
+
confirmLabel: confirmLabel,
|
|
330
|
+
backspaceLabel: backspaceLabel,
|
|
331
|
+
cancelKeyboardLabel: cancelKeyboardLabel,
|
|
332
|
+
moneyKeyboardAlign: moneyKeyboardAlign,
|
|
333
|
+
moneyKeyboardWrapProps: moneyKeyboardWrapProps,
|
|
334
|
+
moneyKeyboardHeader: moneyKeyboardHeader,
|
|
335
|
+
autoAdjustHeight: autoAdjustHeight,
|
|
336
|
+
disabledKeys: disabledKeys
|
|
337
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_input.default, {
|
|
338
|
+
...patternProps,
|
|
339
|
+
...restProps,
|
|
340
|
+
...classNameProps,
|
|
341
|
+
value: normalizeValue(value),
|
|
342
|
+
defaultValue: undefined,
|
|
343
|
+
ref: el => this.inputRef = el,
|
|
344
|
+
style: style,
|
|
345
|
+
type: inputType,
|
|
346
|
+
maxLength: maxLength,
|
|
347
|
+
name: name,
|
|
348
|
+
placeholder: placeholder,
|
|
349
|
+
onChange: this.onInputChange,
|
|
350
|
+
onFocus: this.onInputFocus,
|
|
351
|
+
onBlur: this.onInputBlur,
|
|
352
|
+
readOnly: !editable,
|
|
353
|
+
disabled: disabled
|
|
354
|
+
})
|
|
355
|
+
}), clear && editable && !disabled && value && "".concat(value).length > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcFeedback.default, {
|
|
356
|
+
activeClassName: "".concat(prefixCls, "-clear-active"),
|
|
357
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
358
|
+
className: "".concat(prefixCls, "-clear"),
|
|
359
|
+
onClick: this.clearInput
|
|
360
|
+
})
|
|
361
|
+
}) : null, error ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
362
|
+
className: "".concat(prefixCls, "-error-extra"),
|
|
363
|
+
onClick: onErrorClick
|
|
364
|
+
}) : null, extra !== '' ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
365
|
+
className: "".concat(prefixCls, "-extra"),
|
|
366
|
+
onClick: onExtraClick,
|
|
367
|
+
children: extra
|
|
368
|
+
}) : null]
|
|
369
|
+
})
|
|
370
|
+
});
|
|
361
371
|
}
|
|
362
372
|
}
|
|
363
373
|
InputItem.defaultProps = {
|
package/lib/InputItem/input.js
CHANGED
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var React = _interopRequireWildcard(require("react"));
|
|
9
9
|
require("./style/index.css");
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
11
|
class Input extends React.Component {
|
|
11
12
|
constructor() {
|
|
12
13
|
super(...arguments);
|
|
@@ -35,11 +36,12 @@ class Input extends React.Component {
|
|
|
35
36
|
onFocus,
|
|
36
37
|
...restProps
|
|
37
38
|
} = this.props;
|
|
38
|
-
return /*#__PURE__*/
|
|
39
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
39
40
|
ref: el => this.inputRef = el,
|
|
40
41
|
onBlur: this.onInputBlur,
|
|
41
|
-
onFocus: this.onInputFocus
|
|
42
|
-
|
|
42
|
+
onFocus: this.onInputFocus,
|
|
43
|
+
...restProps
|
|
44
|
+
});
|
|
43
45
|
}
|
|
44
46
|
}
|
|
45
47
|
var _default = exports.default = Input;
|
|
@@ -10,6 +10,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
10
10
|
var _CollaboratorItem = _interopRequireDefault(require("../CollaboratorItem"));
|
|
11
11
|
var _default_avatar = _interopRequireDefault(require("../assets/images/avatar/default_avatar.png"));
|
|
12
12
|
require("./index.css");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
// there will be there conditions
|
|
14
15
|
// 1 value is not exist, typeof value is array, but it's length is 0
|
|
15
16
|
// 2 value is exist, but can't find in collaborators
|
|
@@ -35,10 +36,9 @@ class LastModifierFormatter extends _react.default.PureComponent {
|
|
|
35
36
|
avatar_url: _default_avatar.default
|
|
36
37
|
};
|
|
37
38
|
}
|
|
38
|
-
return /*#__PURE__*/
|
|
39
|
-
key: index,
|
|
39
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_CollaboratorItem.default, {
|
|
40
40
|
collaborator: collaborator
|
|
41
|
-
});
|
|
41
|
+
}, index);
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
44
|
}
|
|
@@ -49,14 +49,15 @@ class LastModifierFormatter extends _react.default.PureComponent {
|
|
|
49
49
|
} = this.props;
|
|
50
50
|
const classname = (0, _classnames.default)('dtable-ui cell-formatter-container last-modified-formatter', containerClassName);
|
|
51
51
|
if (!value || Array.isArray(value) && value.length === 0) {
|
|
52
|
-
return /*#__PURE__*/
|
|
52
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
53
53
|
className: classname
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
const collaborators = this.getCollaborators();
|
|
57
|
-
return /*#__PURE__*/
|
|
58
|
-
className: classname
|
|
59
|
-
|
|
57
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
58
|
+
className: classname,
|
|
59
|
+
children: collaborators
|
|
60
|
+
});
|
|
60
61
|
}
|
|
61
62
|
}
|
|
62
63
|
LastModifierFormatter.defaultProps = {
|
package/lib/LinkEditor/index.js
CHANGED
|
@@ -15,6 +15,7 @@ var _linkEditorOption = _interopRequireDefault(require("./link-editor-option"));
|
|
|
15
15
|
var _pcPopover = _interopRequireDefault(require("./pc-popover"));
|
|
16
16
|
var _mbPopover = _interopRequireDefault(require("./mb-popover"));
|
|
17
17
|
require("./index.css");
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
19
|
class LinkEditor extends _react.default.Component {
|
|
19
20
|
constructor(props) {
|
|
20
21
|
super(props);
|
|
@@ -220,39 +221,44 @@ class LinkEditor extends _react.default.Component {
|
|
|
220
221
|
let options = this.getAvailableLinkedOptions();
|
|
221
222
|
let selectedOptions = this.formatLinkedValuesToOptions();
|
|
222
223
|
let isShowRemoveIcon = !isReadOnly;
|
|
223
|
-
return /*#__PURE__*/
|
|
224
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
224
225
|
ref: this.setEditorContainerRef,
|
|
225
|
-
className: "dtable-ui-link-editor"
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
226
|
+
className: "dtable-ui-link-editor",
|
|
227
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
228
|
+
ref: this.setEditorRef,
|
|
229
|
+
className: "dtable-ui-link-editor-container",
|
|
230
|
+
onClick: this.onAddOptionToggle,
|
|
231
|
+
children: [selectedOptions.length === 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_EditEditorButton.default, {
|
|
232
|
+
text: (0, _lang.getLocale)('Add_an_option')
|
|
233
|
+
}), selectedOptions.length !== 0 && selectedOptions.map(option => {
|
|
234
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_linkEditorOption.default, {
|
|
235
|
+
option: option,
|
|
236
|
+
isShowRemoveIcon: isShowRemoveIcon,
|
|
237
|
+
onDeleteLinkOption: this.onDeleteOption
|
|
238
|
+
}, option.id);
|
|
239
|
+
})]
|
|
240
|
+
}), isPopoverShow && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
|
|
241
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
242
|
+
query: "(min-width: 768px)",
|
|
243
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcPopover.default, {
|
|
244
|
+
popoverPosition: popoverPosition,
|
|
245
|
+
options: options,
|
|
246
|
+
selectedOptions: selectedOptions,
|
|
247
|
+
onOptionItemToggle: this.onOptionItemToggle
|
|
248
|
+
})
|
|
249
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
250
|
+
query: "(max-width: 768px)",
|
|
251
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbPopover.default, {
|
|
252
|
+
isReadOnly: this.props.isReadOnly,
|
|
253
|
+
value: this.state.newValue,
|
|
254
|
+
column: this.props.column,
|
|
255
|
+
options: options,
|
|
256
|
+
onOptionItemToggle: this.onOptionItemToggle,
|
|
257
|
+
onClosePopover: this.onClosePopover
|
|
258
|
+
})
|
|
259
|
+
})]
|
|
260
|
+
})]
|
|
261
|
+
});
|
|
256
262
|
}
|
|
257
263
|
}
|
|
258
264
|
LinkEditor.defaultProps = {
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
10
|
class LinkEditorOption extends _react.default.Component {
|
|
10
11
|
constructor() {
|
|
11
12
|
super(...arguments);
|
|
@@ -61,27 +62,31 @@ class LinkEditorOption extends _react.default.Component {
|
|
|
61
62
|
let optionStyle = this.getOptionStyle();
|
|
62
63
|
let optionNameStyle = this.getOptionNameStyle();
|
|
63
64
|
let operationStyle = this.getOperationStyle();
|
|
64
|
-
return /*#__PURE__*/
|
|
65
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
65
66
|
className: "dtable-ui link-option-item",
|
|
66
|
-
style: containerStyle
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
67
|
+
style: containerStyle,
|
|
68
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
69
|
+
className: "option-info",
|
|
70
|
+
style: optionStyle,
|
|
71
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
72
|
+
className: "option-name",
|
|
73
|
+
style: optionNameStyle,
|
|
74
|
+
title: option.name,
|
|
75
|
+
children: option.name
|
|
76
|
+
})
|
|
77
|
+
}), isShowRemoveIcon && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
78
|
+
className: "option-remove",
|
|
79
|
+
style: operationStyle,
|
|
80
|
+
onClick: this.onDeleteOption,
|
|
81
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
82
|
+
className: "dtable-font dtable-icon-fork-number",
|
|
83
|
+
style: {
|
|
84
|
+
fontSize: '12px',
|
|
85
|
+
lineHeight: '20px'
|
|
86
|
+
}
|
|
87
|
+
})
|
|
88
|
+
})]
|
|
89
|
+
});
|
|
85
90
|
}
|
|
86
91
|
}
|
|
87
92
|
LinkEditorOption.defaultProps = {
|
|
@@ -9,6 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _lang = require("../../lang");
|
|
10
10
|
var _MBEditorHeader = _interopRequireDefault(require("../../MBEditorHeader"));
|
|
11
11
|
require("./index.css");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
13
|
class MBLinkEditorPopover extends _react.default.Component {
|
|
13
14
|
constructor(props) {
|
|
14
15
|
super(props);
|
|
@@ -68,18 +69,20 @@ class MBLinkEditorPopover extends _react.default.Component {
|
|
|
68
69
|
} = this.props;
|
|
69
70
|
return options.map((option, index) => {
|
|
70
71
|
let isSelect = value.some(item => item === option.id);
|
|
71
|
-
return /*#__PURE__*/
|
|
72
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
72
73
|
className: "mb-link-option-item",
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
74
|
+
onMouseDown: this.onSelectOption.bind(this, option),
|
|
75
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
76
|
+
className: "mb-option-info",
|
|
77
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
78
|
+
className: "option-name",
|
|
79
|
+
title: option.name,
|
|
80
|
+
children: option.name
|
|
81
|
+
})
|
|
82
|
+
}), isSelect && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
83
|
+
className: "mb-option-checked dtable-font dtable-icon-check-mark"
|
|
84
|
+
})]
|
|
85
|
+
}, index);
|
|
83
86
|
});
|
|
84
87
|
};
|
|
85
88
|
this.setEditorPopover = editorPopover => {
|
|
@@ -104,38 +107,47 @@ class MBLinkEditorPopover extends _react.default.Component {
|
|
|
104
107
|
searchVal
|
|
105
108
|
} = this.state;
|
|
106
109
|
let filterOptions = this.getFilterOptions();
|
|
107
|
-
return /*#__PURE__*/
|
|
110
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
108
111
|
ref: this.setEditorPopover,
|
|
109
112
|
className: "dtable-ui-mb-editor-popover mb-link-editor-popover",
|
|
110
|
-
onClick: this.onContainerClick
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
113
|
+
onClick: this.onContainerClick,
|
|
114
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_MBEditorHeader.default, {
|
|
115
|
+
title: column.name,
|
|
116
|
+
leftContent: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
117
|
+
className: "dtable-font dtable-icon-return"
|
|
118
|
+
}),
|
|
119
|
+
rightContent: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
120
|
+
children: (0, _lang.getLocale)('Done')
|
|
121
|
+
}),
|
|
122
|
+
onLeftClick: this.props.onClosePopover,
|
|
123
|
+
onRightClick: this.props.onClosePopover
|
|
124
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
125
|
+
className: "dtable-ui-mb-editor-body dtable-ui-mb-link-editor-body",
|
|
126
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
127
|
+
className: "mb-search-link-items",
|
|
128
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
129
|
+
className: "form-control",
|
|
130
|
+
type: "text",
|
|
131
|
+
placeholder: (0, _lang.getLocale)('Search_option'),
|
|
132
|
+
value: searchVal,
|
|
133
|
+
onChange: this.onChangeSearch,
|
|
134
|
+
onClick: this.onInputClick
|
|
135
|
+
})
|
|
136
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
137
|
+
className: "mb-link-container",
|
|
138
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
139
|
+
className: "title",
|
|
140
|
+
children: (0, _lang.getLocale)('Choose_an_option')
|
|
141
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
142
|
+
className: "content",
|
|
143
|
+
children: [filterOptions.length === 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
144
|
+
className: "search-result-none",
|
|
145
|
+
children: (0, _lang.getLocale)('No_options_available')
|
|
146
|
+
}), filterOptions.length > 0 && this.renderFilteredOptions(filterOptions)]
|
|
147
|
+
})]
|
|
148
|
+
})]
|
|
149
|
+
})]
|
|
150
|
+
});
|
|
139
151
|
}
|
|
140
152
|
}
|
|
141
153
|
MBLinkEditorPopover.defaultProps = {
|