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
|
@@ -8,6 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _lang = require("../../lang");
|
|
10
10
|
require("./index.css");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
class PCLinkEditorPopover extends _react.default.Component {
|
|
12
13
|
constructor(props) {
|
|
13
14
|
super(props);
|
|
@@ -54,40 +55,47 @@ class PCLinkEditorPopover extends _react.default.Component {
|
|
|
54
55
|
}, {
|
|
55
56
|
position: 'absolute'
|
|
56
57
|
});
|
|
57
|
-
return /*#__PURE__*/
|
|
58
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
58
59
|
className: "dtable-ui-editor-container dtable-ui-link-editor-popover",
|
|
59
|
-
style: popoverStyle
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
60
|
+
style: popoverStyle,
|
|
61
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
62
|
+
className: "link-options-search",
|
|
63
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
64
|
+
className: "form-control",
|
|
65
|
+
value: searchValue,
|
|
66
|
+
onChange: this.onValueChanged,
|
|
67
|
+
onClick: this.onInputClick,
|
|
68
|
+
placeholder: (0, _lang.getLocale)('Search_option')
|
|
69
|
+
})
|
|
70
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
71
|
+
className: "link-options-container",
|
|
72
|
+
children: [options.length > 0 && options.map((option, index) => {
|
|
73
|
+
let isSelect = selectedOptions.some(selectedOption => {
|
|
74
|
+
return selectedOption.id === option.id;
|
|
75
|
+
});
|
|
76
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
77
|
+
className: "link-option-item",
|
|
78
|
+
onClick: this.onOptionItemToggle.bind(this, option),
|
|
79
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
80
|
+
className: "option-info",
|
|
81
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
82
|
+
className: "option-name",
|
|
83
|
+
title: option.name,
|
|
84
|
+
children: option.name
|
|
85
|
+
})
|
|
86
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
87
|
+
className: "option-checked",
|
|
88
|
+
children: isSelect && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
89
|
+
className: "dtable-font dtable-icon-check-mark"
|
|
90
|
+
})
|
|
91
|
+
})]
|
|
92
|
+
}, index);
|
|
93
|
+
}), options.length === 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
94
|
+
className: "link-option-null",
|
|
95
|
+
children: (0, _lang.getLocale)('No_options_available')
|
|
96
|
+
})]
|
|
97
|
+
})]
|
|
98
|
+
});
|
|
91
99
|
}
|
|
92
100
|
}
|
|
93
101
|
PCLinkEditorPopover.defaultProps = {
|
|
@@ -9,6 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
10
|
var _dtableUtils = require("dtable-utils");
|
|
11
11
|
require("./index.css");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
13
|
// link value is get form parant's interface
|
|
13
14
|
class LinkFormatter extends _react.default.Component {
|
|
14
15
|
constructor(props) {
|
|
@@ -55,14 +56,15 @@ class LinkFormatter extends _react.default.Component {
|
|
|
55
56
|
display_column_key: displayColumnKey
|
|
56
57
|
} = column.data;
|
|
57
58
|
let displayValue = this.getDisplayValue(linkedTable, row, displayColumnKey);
|
|
58
|
-
return /*#__PURE__*/
|
|
59
|
-
key: index,
|
|
59
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
60
60
|
className: "link-item",
|
|
61
|
-
onClick: this.expandLinkedTableRow.bind(this, row)
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
onClick: this.expandLinkedTableRow.bind(this, row),
|
|
62
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
63
|
+
className: "link-name",
|
|
64
|
+
title: displayValue,
|
|
65
|
+
children: displayValue
|
|
66
|
+
})
|
|
67
|
+
}, index);
|
|
66
68
|
});
|
|
67
69
|
return result;
|
|
68
70
|
}
|
|
@@ -115,9 +117,10 @@ class LinkFormatter extends _react.default.Component {
|
|
|
115
117
|
} = this.props;
|
|
116
118
|
const classname = (0, _classnames.default)('dtable-ui cell-formatter-container link-formatter', containerClassName);
|
|
117
119
|
let displayValues = this.getDisplayValues();
|
|
118
|
-
return /*#__PURE__*/
|
|
119
|
-
className: classname
|
|
120
|
-
|
|
120
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
121
|
+
className: classname,
|
|
122
|
+
children: displayValues
|
|
123
|
+
});
|
|
121
124
|
}
|
|
122
125
|
}
|
|
123
126
|
LinkFormatter.defaultProps = {
|
package/lib/List/index.js
CHANGED
|
@@ -10,6 +10,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _listItem = _interopRequireDefault(require("./list-item"));
|
|
12
12
|
require("./index.css");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
class List extends React.Component {
|
|
14
15
|
render() {
|
|
15
16
|
const {
|
|
@@ -22,16 +23,21 @@ class List extends React.Component {
|
|
|
22
23
|
...restProps
|
|
23
24
|
} = this.props;
|
|
24
25
|
const wrapCls = (0, _classnames.default)(prefixCls, className);
|
|
25
|
-
return /*#__PURE__*/
|
|
26
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
26
27
|
className: wrapCls,
|
|
27
|
-
style: style
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
style: style,
|
|
29
|
+
...restProps,
|
|
30
|
+
children: [renderHeader ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
31
|
+
className: "".concat(prefixCls, "-header"),
|
|
32
|
+
children: typeof renderHeader === 'function' ? renderHeader() : renderHeader
|
|
33
|
+
}) : null, children ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
34
|
+
className: "".concat(prefixCls, "-body"),
|
|
35
|
+
children: children
|
|
36
|
+
}) : null, renderFooter ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
37
|
+
className: "".concat(prefixCls, "-footer"),
|
|
38
|
+
children: typeof renderFooter === 'function' ? renderFooter() : renderFooter
|
|
39
|
+
}) : null]
|
|
40
|
+
});
|
|
35
41
|
}
|
|
36
42
|
}
|
|
37
43
|
List.defaultProps = {
|
package/lib/List/list-item.js
CHANGED
|
@@ -9,6 +9,7 @@ exports.default = exports.Brief = void 0;
|
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _rmcFeedback = _interopRequireDefault(require("rmc-feedback"));
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
13
|
/* tslint:disable:jsx-no-multiline-js */
|
|
13
14
|
|
|
14
15
|
class Brief extends React.Component {
|
|
@@ -120,29 +121,35 @@ class ListItem extends React.Component {
|
|
|
120
121
|
["".concat(prefixCls, "-arrow-vertical")]: arrow === 'down' || arrow === 'up',
|
|
121
122
|
["".concat(prefixCls, "-arrow-vertical-up")]: arrow === 'up'
|
|
122
123
|
});
|
|
123
|
-
const content = /*#__PURE__*/
|
|
124
|
+
const content = /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
125
|
+
...otherProps,
|
|
124
126
|
onClick: ev => {
|
|
125
127
|
this.onClick(ev);
|
|
126
128
|
},
|
|
127
|
-
className: wrapCls
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
129
|
+
className: wrapCls,
|
|
130
|
+
children: [thumb ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
131
|
+
className: "".concat(prefixCls, "-thumb"),
|
|
132
|
+
children: typeof thumb === 'string' ? /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
133
|
+
src: thumb,
|
|
134
|
+
alt: ""
|
|
135
|
+
}) : thumb
|
|
136
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
137
|
+
className: lineCls,
|
|
138
|
+
children: [children !== undefined && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
139
|
+
className: "".concat(prefixCls, "-content"),
|
|
140
|
+
children: children
|
|
141
|
+
}), extra !== undefined && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
142
|
+
className: "".concat(prefixCls, "-extra"),
|
|
143
|
+
children: extra
|
|
144
|
+
}), arrow && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
145
|
+
className: arrowCls,
|
|
146
|
+
"aria-hidden": "true"
|
|
147
|
+
})]
|
|
148
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
149
|
+
style: coverRippleStyle,
|
|
150
|
+
className: rippleCls
|
|
151
|
+
})]
|
|
152
|
+
});
|
|
146
153
|
let touchProps = {};
|
|
147
154
|
Object.keys(otherProps).forEach(key => {
|
|
148
155
|
if (/onTouch/i.test(key)) {
|
|
@@ -150,11 +157,13 @@ class ListItem extends React.Component {
|
|
|
150
157
|
delete otherProps[key];
|
|
151
158
|
}
|
|
152
159
|
});
|
|
153
|
-
return /*#__PURE__*/
|
|
160
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcFeedback.default, {
|
|
161
|
+
...touchProps,
|
|
154
162
|
disabled: disabled || !onClick,
|
|
155
163
|
activeStyle: activeStyle,
|
|
156
|
-
activeClassName: "".concat(prefixCls, "-item-active")
|
|
157
|
-
|
|
164
|
+
activeClassName: "".concat(prefixCls, "-item-active"),
|
|
165
|
+
children: content
|
|
166
|
+
});
|
|
158
167
|
}
|
|
159
168
|
}
|
|
160
169
|
ListItem.defaultProps = {
|
package/lib/Loading/index.js
CHANGED
|
@@ -7,8 +7,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = Loading;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
require("./index.css");
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
11
|
function Loading() {
|
|
11
|
-
return /*#__PURE__*/
|
|
12
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
12
13
|
className: "dtable-ui-loading-icon dtable-ui-loading-tip"
|
|
13
14
|
});
|
|
14
15
|
}
|
|
@@ -8,6 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _HtmlLongTextFormatter = _interopRequireDefault(require("../HtmlLongTextFormatter"));
|
|
10
10
|
var _SimpleLongTextFormatter = _interopRequireDefault(require("../SimpleLongTextFormatter"));
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
function LongTextFormatter(_ref) {
|
|
12
13
|
let {
|
|
13
14
|
isSample = true,
|
|
@@ -15,12 +16,12 @@ function LongTextFormatter(_ref) {
|
|
|
15
16
|
containerClassName
|
|
16
17
|
} = _ref;
|
|
17
18
|
if (isSample) {
|
|
18
|
-
return /*#__PURE__*/
|
|
19
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SimpleLongTextFormatter.default, {
|
|
19
20
|
value: value,
|
|
20
21
|
containerClassName: containerClassName
|
|
21
22
|
});
|
|
22
23
|
}
|
|
23
|
-
return /*#__PURE__*/
|
|
24
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_HtmlLongTextFormatter.default, {
|
|
24
25
|
value: value,
|
|
25
26
|
containerClassName: containerClassName
|
|
26
27
|
});
|
|
@@ -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 MBEditorHeader extends _react.default.Component {
|
|
10
11
|
render() {
|
|
11
12
|
let {
|
|
@@ -16,20 +17,24 @@ class MBEditorHeader extends _react.default.Component {
|
|
|
16
17
|
onLeftClick,
|
|
17
18
|
onRightClick
|
|
18
19
|
} = this.props;
|
|
19
|
-
return /*#__PURE__*/
|
|
20
|
-
className: "dtable-ui-mb-editor-header ".concat(titleClass ? titleClass : '')
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
20
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
21
|
+
className: "dtable-ui-mb-editor-header ".concat(titleClass ? titleClass : ''),
|
|
22
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
23
|
+
className: "editor-header-left-content",
|
|
24
|
+
onClick: onLeftClick,
|
|
25
|
+
children: leftContent
|
|
26
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
27
|
+
className: "editor-header-title",
|
|
28
|
+
children: title
|
|
29
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
30
|
+
className: "editor-header-right-content",
|
|
31
|
+
onClick: onRightClick,
|
|
32
|
+
style: {
|
|
33
|
+
color: '#f09f3f'
|
|
34
|
+
},
|
|
35
|
+
children: rightContent
|
|
36
|
+
})]
|
|
37
|
+
});
|
|
33
38
|
}
|
|
34
39
|
}
|
|
35
40
|
var _default = exports.default = MBEditorHeader;
|
|
@@ -9,6 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
10
|
var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
11
11
|
require("./index.css");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
13
|
class MTimeFormatter extends _react.default.Component {
|
|
13
14
|
constructor() {
|
|
14
15
|
super(...arguments);
|
|
@@ -25,10 +26,11 @@ class MTimeFormatter extends _react.default.Component {
|
|
|
25
26
|
if (date) {
|
|
26
27
|
date = this.formatDate(date);
|
|
27
28
|
}
|
|
28
|
-
return /*#__PURE__*/
|
|
29
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
29
30
|
title: date,
|
|
30
|
-
className: classname
|
|
31
|
-
|
|
31
|
+
className: classname,
|
|
32
|
+
children: date
|
|
33
|
+
});
|
|
32
34
|
}
|
|
33
35
|
}
|
|
34
36
|
MTimeFormatter.defaultProps = {
|
|
@@ -8,16 +8,18 @@ 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
|
const Body = _ref => {
|
|
12
13
|
let {
|
|
13
14
|
classNamePrefix,
|
|
14
15
|
className,
|
|
15
16
|
children
|
|
16
17
|
} = _ref;
|
|
17
|
-
return /*#__PURE__*/
|
|
18
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
18
19
|
className: (0, _classnames.default)('dtable-ui-mobile-full-screen-page-body', className, {
|
|
19
20
|
["".concat(classNamePrefix, "-mobile-full-screen-page-body")]: classNamePrefix
|
|
20
|
-
})
|
|
21
|
-
|
|
21
|
+
}),
|
|
22
|
+
children: children
|
|
23
|
+
});
|
|
22
24
|
};
|
|
23
25
|
var _default = exports.default = Body;
|
|
@@ -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
|
const Header = _ref => {
|
|
12
13
|
let {
|
|
13
14
|
classNamePrefix,
|
|
@@ -15,24 +16,28 @@ const Header = _ref => {
|
|
|
15
16
|
onLeftClick,
|
|
16
17
|
onRightClick
|
|
17
18
|
} = _ref;
|
|
18
|
-
return /*#__PURE__*/
|
|
19
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
19
20
|
className: (0, _classnames.default)('dtable-ui-mobile-full-screen-page-header p-0', {
|
|
20
21
|
["".concat(classNamePrefix, "-mobile-full-screen-page-header")]: classNamePrefix
|
|
21
|
-
})
|
|
22
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
23
|
-
className: (0, _classnames.default)('dtable-ui-mobile-full-screen-page-header-btn', {
|
|
24
|
-
["".concat(classNamePrefix, "-mobile-full-screen-page-header-btn")]: classNamePrefix
|
|
25
22
|
}),
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
23
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
24
|
+
className: (0, _classnames.default)('dtable-ui-mobile-full-screen-page-header-btn', {
|
|
25
|
+
["".concat(classNamePrefix, "-mobile-full-screen-page-header-btn")]: classNamePrefix
|
|
26
|
+
}),
|
|
27
|
+
onClick: onLeftClick,
|
|
28
|
+
children: children[0]
|
|
29
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("h4", {
|
|
30
|
+
className: (0, _classnames.default)('dtable-ui-mobile-full-screen-page-header-title', {
|
|
31
|
+
["".concat(classNamePrefix, "-mobile-full-screen-page-header-title")]: classNamePrefix
|
|
32
|
+
}),
|
|
33
|
+
children: children[1]
|
|
34
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
35
|
+
className: (0, _classnames.default)('dtable-ui-mobile-full-screen-page-header-btn', {
|
|
36
|
+
["".concat(classNamePrefix, "-mobile-full-screen-page-header-btn")]: classNamePrefix
|
|
37
|
+
}),
|
|
38
|
+
onClick: onRightClick,
|
|
39
|
+
children: children[2]
|
|
40
|
+
})]
|
|
41
|
+
});
|
|
37
42
|
};
|
|
38
43
|
var _default = exports.default = Header;
|
|
@@ -13,6 +13,7 @@ var _header = _interopRequireDefault(require("./header"));
|
|
|
13
13
|
var _body = _interopRequireDefault(require("./body"));
|
|
14
14
|
var _utils = require("../utils/utils");
|
|
15
15
|
require("./index.css");
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
17
|
const MobileFullScreenPage = _ref => {
|
|
17
18
|
let {
|
|
18
19
|
classNamePrefix,
|
|
@@ -59,14 +60,16 @@ const MobileFullScreenPage = _ref => {
|
|
|
59
60
|
};
|
|
60
61
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
61
62
|
}, []);
|
|
62
|
-
return /*#__PURE__*/
|
|
63
|
-
node: element
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
63
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_BodyPortal.default, {
|
|
64
|
+
node: element,
|
|
65
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
66
|
+
className: (0, _classnames.default)('dtable-ui-mobile-full-screen-page', className, {
|
|
67
|
+
["".concat(classNamePrefix, "-mobile-full-screen-page")]: classNamePrefix
|
|
68
|
+
}),
|
|
69
|
+
style: style,
|
|
70
|
+
children: isMount && children
|
|
71
|
+
})
|
|
72
|
+
});
|
|
70
73
|
};
|
|
71
74
|
MobileFullScreenPage.Header = _header.default;
|
|
72
75
|
MobileFullScreenPage.Body = _body.default;
|
package/lib/MobileModal/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
|
var _Modal = _interopRequireDefault(require("../Modal"));
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
11
|
class MobileModal extends _react.default.PureComponent {
|
|
11
12
|
constructor() {
|
|
12
13
|
super(...arguments);
|
|
@@ -27,9 +28,11 @@ class MobileModal extends _react.default.PureComponent {
|
|
|
27
28
|
children,
|
|
28
29
|
...props
|
|
29
30
|
} = this.props;
|
|
30
|
-
return /*#__PURE__*/
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Modal.default, {
|
|
32
|
+
...props,
|
|
33
|
+
popup: true,
|
|
34
|
+
children: children
|
|
35
|
+
});
|
|
33
36
|
}
|
|
34
37
|
}
|
|
35
38
|
MobileModal.defaultProps = {
|
|
@@ -10,6 +10,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _ActionSheet = _interopRequireDefault(require("../ActionSheet"));
|
|
11
11
|
var _lang = require("../lang");
|
|
12
12
|
require("./index.css");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
const OPERATION_TYPE = exports.OPERATION_TYPE = {
|
|
14
15
|
RENAME: 'rename',
|
|
15
16
|
DOWNLOAD: 'download',
|
|
@@ -28,34 +29,43 @@ const MobileOperationSheet = _ref => {
|
|
|
28
29
|
let _btns = [];
|
|
29
30
|
if (operations.includes(OPERATION_TYPE.RENAME)) {
|
|
30
31
|
_btns.push({
|
|
31
|
-
dom: /*#__PURE__*/
|
|
32
|
-
className: "my-am-action"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
dom: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
33
|
+
className: "my-am-action",
|
|
34
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
35
|
+
"aria-hidden": "true",
|
|
36
|
+
className: "dtable-font dtable-icon-rename"
|
|
37
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
38
|
+
children: (0, _lang.getLocale)('Rename')
|
|
39
|
+
})]
|
|
40
|
+
}),
|
|
37
41
|
value: OPERATION_TYPE.RENAME
|
|
38
42
|
});
|
|
39
43
|
}
|
|
40
44
|
if (operations.includes(OPERATION_TYPE.DOWNLOAD)) {
|
|
41
45
|
_btns.push({
|
|
42
|
-
dom: /*#__PURE__*/
|
|
43
|
-
className: "my-am-action"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
dom: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
47
|
+
className: "my-am-action",
|
|
48
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
49
|
+
"aria-hidden": "true",
|
|
50
|
+
className: "dtable-font dtable-icon-download"
|
|
51
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
52
|
+
children: (0, _lang.getLocale)('Download')
|
|
53
|
+
})]
|
|
54
|
+
}),
|
|
48
55
|
value: OPERATION_TYPE.DOWNLOAD
|
|
49
56
|
});
|
|
50
57
|
}
|
|
51
58
|
if (operations.includes(OPERATION_TYPE.DELETE)) {
|
|
52
59
|
_btns.push({
|
|
53
|
-
dom: /*#__PURE__*/
|
|
54
|
-
className: "my-am-action"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
60
|
+
dom: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
61
|
+
className: "my-am-action",
|
|
62
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
63
|
+
"aria-hidden": "true",
|
|
64
|
+
className: "dtable-font dtable-icon-delete"
|
|
65
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
66
|
+
children: (0, _lang.getLocale)('Delete')
|
|
67
|
+
})]
|
|
68
|
+
}),
|
|
59
69
|
value: OPERATION_TYPE.DELETE
|
|
60
70
|
});
|
|
61
71
|
}
|
|
@@ -9,13 +9,15 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
10
|
var _List = _interopRequireDefault(require("../../List"));
|
|
11
11
|
require("./index.css");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
13
|
const Empty = _ref => {
|
|
13
14
|
let {
|
|
14
15
|
children
|
|
15
16
|
} = _ref;
|
|
16
|
-
return /*#__PURE__*/
|
|
17
|
-
className: "dtable-ui-mobile-selector-no-options"
|
|
18
|
-
|
|
17
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_List.default.Item, {
|
|
18
|
+
className: "dtable-ui-mobile-selector-no-options",
|
|
19
|
+
children: children
|
|
20
|
+
});
|
|
19
21
|
};
|
|
20
22
|
Empty.propType = {
|
|
21
23
|
children: _propTypes.default.any
|
|
@@ -15,6 +15,7 @@ var _options = _interopRequireDefault(require("./options"));
|
|
|
15
15
|
var _option = _interopRequireDefault(require("./option"));
|
|
16
16
|
var _empty = _interopRequireDefault(require("./empty"));
|
|
17
17
|
require("./index.css");
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
19
|
const MobileSelector = _ref => {
|
|
19
20
|
let {
|
|
20
21
|
className,
|
|
@@ -35,20 +36,25 @@ const MobileSelector = _ref => {
|
|
|
35
36
|
};
|
|
36
37
|
}, [handleHistoryBack]);
|
|
37
38
|
const renderHeader = (0, _react.useCallback)(() => {
|
|
38
|
-
return /*#__PURE__*/
|
|
39
|
-
className: "position-relative"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
40
|
+
className: "position-relative",
|
|
41
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
42
|
+
children: title
|
|
43
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
44
|
+
className: "mobile-selector-editor-close-btn dtable-font dtable-icon-x",
|
|
45
|
+
onClick: onClose
|
|
46
|
+
})]
|
|
47
|
+
});
|
|
44
48
|
}, [title, onClose]);
|
|
45
|
-
return /*#__PURE__*/
|
|
49
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_MobileModal.default, {
|
|
46
50
|
onClose: onClose,
|
|
47
|
-
className: className
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
className: className,
|
|
52
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_List.default, {
|
|
53
|
+
renderHeader: renderHeader,
|
|
54
|
+
className: (0, _classnames.default)('popup-list dtable-ui-mobile-selector', listClassName),
|
|
55
|
+
children: children
|
|
56
|
+
})
|
|
57
|
+
});
|
|
52
58
|
};
|
|
53
59
|
MobileSelector.Search = _search.default;
|
|
54
60
|
MobileSelector.Option = _option.default;
|