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,24 +9,29 @@ 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 Option = _ref => {
|
|
13
14
|
let {
|
|
14
15
|
isSelected,
|
|
15
16
|
children,
|
|
16
17
|
onChange
|
|
17
18
|
} = _ref;
|
|
18
|
-
return /*#__PURE__*/
|
|
19
|
-
onClick: onChange
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
19
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_List.default.Item, {
|
|
20
|
+
onClick: onChange,
|
|
21
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
22
|
+
className: "dtable-ui-mobile-selector-option",
|
|
23
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
24
|
+
className: "dtable-ui-mobile-selector-option-name",
|
|
25
|
+
children: children
|
|
26
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
27
|
+
className: "dtable-ui-mobile-selector-option-check-btn",
|
|
28
|
+
children: isSelected && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
29
|
+
"aria-hidden": "true",
|
|
30
|
+
className: "dtable-font dtable-icon-check-mark"
|
|
31
|
+
})
|
|
32
|
+
})]
|
|
33
|
+
})
|
|
34
|
+
});
|
|
30
35
|
};
|
|
31
36
|
Option.propType = {
|
|
32
37
|
isSelected: _propTypes.default.bool,
|
|
@@ -7,12 +7,14 @@ 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 Options = _ref => {
|
|
11
12
|
let {
|
|
12
13
|
children
|
|
13
14
|
} = _ref;
|
|
14
|
-
return /*#__PURE__*/
|
|
15
|
-
className: "dtable-ui-mobile-selector-options"
|
|
16
|
-
|
|
15
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
16
|
+
className: "dtable-ui-mobile-selector-options",
|
|
17
|
+
children: children
|
|
18
|
+
});
|
|
17
19
|
};
|
|
18
20
|
var _default = exports.default = Options;
|
|
@@ -8,19 +8,21 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _DTableSearchInput = _interopRequireDefault(require("../../DTableSearchInput"));
|
|
10
10
|
require("./index.css");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
const Search = _ref => {
|
|
12
13
|
let {
|
|
13
14
|
value,
|
|
14
15
|
placeholder,
|
|
15
16
|
onChange
|
|
16
17
|
} = _ref;
|
|
17
|
-
return /*#__PURE__*/
|
|
18
|
-
className: "dtable-ui-mobile-selector-search"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
19
|
+
className: "dtable-ui-mobile-selector-search",
|
|
20
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableSearchInput.default, {
|
|
21
|
+
autoFocus: true,
|
|
22
|
+
value: value,
|
|
23
|
+
placeholder: placeholder,
|
|
24
|
+
onChange: onChange
|
|
25
|
+
})
|
|
26
|
+
});
|
|
25
27
|
};
|
|
26
28
|
var _default = exports.default = Search;
|
|
@@ -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 MobileUpload = _ref => {
|
|
14
15
|
let {
|
|
15
16
|
type = 'file',
|
|
@@ -25,42 +26,59 @@ const MobileUpload = _ref => {
|
|
|
25
26
|
const iconStyle = {
|
|
26
27
|
lineHeight: '56px'
|
|
27
28
|
};
|
|
28
|
-
if (type === 'image') return [/*#__PURE__*/
|
|
29
|
-
className: "my-am-action d-flex justify-content-between"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
className: "
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
className: "
|
|
48
|
-
|
|
49
|
-
})
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
29
|
+
if (type === 'image') return [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
30
|
+
className: "my-am-action d-flex justify-content-between",
|
|
31
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
32
|
+
children: (0, _lang.getLocale)('Take_a_photo')
|
|
33
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
34
|
+
"aria-hidden": "true",
|
|
35
|
+
className: "dtable-font dtable-icon-camera",
|
|
36
|
+
style: iconStyle
|
|
37
|
+
})]
|
|
38
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
39
|
+
className: "my-am-action d-flex justify-content-between",
|
|
40
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
41
|
+
children: (0, _lang.getLocale)('Browse_documents')
|
|
42
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
43
|
+
"aria-hidden": "true",
|
|
44
|
+
className: "dtable-font dtable-icon-more-level",
|
|
45
|
+
style: iconStyle
|
|
46
|
+
})]
|
|
47
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
48
|
+
className: "my-am-action d-flex justify-content-center",
|
|
49
|
+
children: (0, _lang.getLocale)('Cancel')
|
|
50
|
+
})];
|
|
51
|
+
return [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
52
|
+
className: "my-am-action d-flex justify-content-between",
|
|
53
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
54
|
+
children: (0, _lang.getLocale)('Take_a_photo')
|
|
55
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
56
|
+
"aria-hidden": "true",
|
|
57
|
+
className: "dtable-font dtable-icon-camera",
|
|
58
|
+
style: iconStyle
|
|
59
|
+
})]
|
|
60
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
61
|
+
className: "my-am-action d-flex justify-content-between",
|
|
62
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
63
|
+
children: (0, _lang.getLocale)('Take_a_video')
|
|
64
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
65
|
+
"aria-hidden": "true",
|
|
66
|
+
className: "dtable-font dtable-icon-camera",
|
|
67
|
+
style: iconStyle
|
|
68
|
+
})]
|
|
69
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
70
|
+
className: "my-am-action d-flex justify-content-between",
|
|
71
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
72
|
+
children: (0, _lang.getLocale)('Browse_documents')
|
|
73
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
74
|
+
"aria-hidden": "true",
|
|
75
|
+
className: "dtable-font dtable-icon-more-level",
|
|
76
|
+
style: iconStyle
|
|
77
|
+
})]
|
|
78
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
79
|
+
className: "my-am-action d-flex justify-content-center",
|
|
80
|
+
children: (0, _lang.getLocale)('Cancel')
|
|
81
|
+
})];
|
|
64
82
|
}, [type]);
|
|
65
83
|
const showActionSheet = (0, _react.useCallback)(() => {
|
|
66
84
|
if (type === 'image') {
|
|
@@ -115,46 +133,48 @@ const MobileUpload = _ref => {
|
|
|
115
133
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
116
134
|
}, []);
|
|
117
135
|
if (type === 'image') {
|
|
118
|
-
return /*#__PURE__*/
|
|
119
|
-
className: "h-0 o-hidden"
|
|
120
|
-
|
|
136
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
137
|
+
className: "h-0 o-hidden",
|
|
138
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
139
|
+
type: "file",
|
|
140
|
+
accept: "image/*",
|
|
141
|
+
ref: imageRef,
|
|
142
|
+
multiple: true,
|
|
143
|
+
onClick: onInputClick,
|
|
144
|
+
onChange: handleChange
|
|
145
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
146
|
+
type: "file",
|
|
147
|
+
capture: "camera",
|
|
148
|
+
accept: "image/*",
|
|
149
|
+
ref: cameraRef,
|
|
150
|
+
onClick: onInputClick,
|
|
151
|
+
onChange: handleChange
|
|
152
|
+
})]
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
156
|
+
className: "h-0 o-hidden",
|
|
157
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
121
158
|
type: "file",
|
|
122
|
-
|
|
123
|
-
ref: imageRef,
|
|
159
|
+
ref: fileRef,
|
|
124
160
|
multiple: true,
|
|
125
161
|
onClick: onInputClick,
|
|
126
162
|
onChange: handleChange
|
|
127
|
-
}), /*#__PURE__*/
|
|
163
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
128
164
|
type: "file",
|
|
129
165
|
capture: "camera",
|
|
130
166
|
accept: "image/*",
|
|
131
167
|
ref: cameraRef,
|
|
132
168
|
onClick: onInputClick,
|
|
133
169
|
onChange: handleChange
|
|
134
|
-
}))
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
onChange: handleChange
|
|
144
|
-
}), /*#__PURE__*/_react.default.createElement("input", {
|
|
145
|
-
type: "file",
|
|
146
|
-
capture: "camera",
|
|
147
|
-
accept: "image/*",
|
|
148
|
-
ref: cameraRef,
|
|
149
|
-
onClick: onInputClick,
|
|
150
|
-
onChange: handleChange
|
|
151
|
-
}), /*#__PURE__*/_react.default.createElement("input", {
|
|
152
|
-
type: "file",
|
|
153
|
-
capture: "camcorder",
|
|
154
|
-
accept: "video/*",
|
|
155
|
-
ref: camcorderRef,
|
|
156
|
-
onClick: onInputClick,
|
|
157
|
-
onChange: handleChange
|
|
158
|
-
}));
|
|
170
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
171
|
+
type: "file",
|
|
172
|
+
capture: "camcorder",
|
|
173
|
+
accept: "video/*",
|
|
174
|
+
ref: camcorderRef,
|
|
175
|
+
onClick: onInputClick,
|
|
176
|
+
onChange: handleChange
|
|
177
|
+
})]
|
|
178
|
+
});
|
|
159
179
|
};
|
|
160
180
|
var _default = exports.default = MobileUpload;
|
package/lib/Modal/alert.js
CHANGED
|
@@ -10,6 +10,7 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _client = require("react-dom/client");
|
|
11
11
|
var _closest = _interopRequireDefault(require("../utils/closest"));
|
|
12
12
|
var _modal = _interopRequireDefault(require("./modal"));
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
function alert(title, message) {
|
|
14
15
|
let actions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [{
|
|
15
16
|
text: '确定'
|
|
@@ -63,7 +64,7 @@ function alert(title, message) {
|
|
|
63
64
|
e.preventDefault();
|
|
64
65
|
}
|
|
65
66
|
}
|
|
66
|
-
root.render( /*#__PURE__*/
|
|
67
|
+
root.render( /*#__PURE__*/(0, _jsxRuntime.jsx)(_modal.default, {
|
|
67
68
|
visible: true,
|
|
68
69
|
transparent: true,
|
|
69
70
|
title: title,
|
|
@@ -75,10 +76,12 @@ function alert(title, message) {
|
|
|
75
76
|
platform: platform,
|
|
76
77
|
wrapProps: {
|
|
77
78
|
onTouchStart: onWrapTouchStart
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
},
|
|
80
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
81
|
+
className: "".concat(prefixCls, "-alert-content"),
|
|
82
|
+
children: message
|
|
83
|
+
})
|
|
84
|
+
}));
|
|
82
85
|
return {
|
|
83
86
|
close
|
|
84
87
|
};
|
package/lib/Modal/modal.js
CHANGED
|
@@ -10,6 +10,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _rmcDialog = _interopRequireDefault(require("rmc-dialog"));
|
|
12
12
|
var _rmcFeedback = _interopRequireDefault(require("rmc-feedback"));
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
class ModalComponent extends React.Component {}
|
|
14
15
|
exports.ModalComponent = ModalComponent;
|
|
15
16
|
class Modal extends ModalComponent {
|
|
@@ -34,15 +35,16 @@ class Modal extends ModalComponent {
|
|
|
34
35
|
button.onPress();
|
|
35
36
|
}
|
|
36
37
|
};
|
|
37
|
-
return /*#__PURE__*/
|
|
38
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcFeedback.default, {
|
|
38
39
|
activeClassName: "".concat(prefixCls, "-button-active"),
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
41
|
+
className: "".concat(prefixCls, "-button"),
|
|
42
|
+
role: "button",
|
|
43
|
+
style: buttonStyle,
|
|
44
|
+
onClick: onClickFn,
|
|
45
|
+
children: button.text || 'Button'
|
|
46
|
+
})
|
|
47
|
+
}, i);
|
|
46
48
|
}
|
|
47
49
|
render() {
|
|
48
50
|
const {
|
|
@@ -62,12 +64,13 @@ class Modal extends ModalComponent {
|
|
|
62
64
|
...restProps
|
|
63
65
|
} = this.props;
|
|
64
66
|
const btnGroupClass = (0, _classnames.default)("".concat(prefixCls, "-button-group-").concat(footer.length === 2 && !operation ? 'h' : 'v'), "".concat(prefixCls, "-button-group-").concat(operation ? 'operation' : 'normal'));
|
|
65
|
-
const footerDom = footer.length ? /*#__PURE__*/
|
|
67
|
+
const footerDom = footer.length ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
66
68
|
className: btnGroupClass,
|
|
67
|
-
role: "group"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
role: "group",
|
|
70
|
+
children: footer.map((button, i) =>
|
|
71
|
+
// tslint:disable-next-line:jsx-no-multiline-js
|
|
72
|
+
this.renderFooterButton(button, prefixCls, i))
|
|
73
|
+
}) : null;
|
|
71
74
|
let transName;
|
|
72
75
|
let maskTransName;
|
|
73
76
|
if (animated) {
|
|
@@ -91,7 +94,8 @@ class Modal extends ModalComponent {
|
|
|
91
94
|
["".concat(prefixCls, "-popup-").concat(animationType)]: popup && animationType,
|
|
92
95
|
["".concat(prefixCls, "-android")]: platform === 'android'
|
|
93
96
|
});
|
|
94
|
-
return /*#__PURE__*/
|
|
97
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcDialog.default, {
|
|
98
|
+
...restProps,
|
|
95
99
|
prefixCls: prefixCls,
|
|
96
100
|
className: cls,
|
|
97
101
|
wrapClassName: wrapCls,
|
|
@@ -99,7 +103,7 @@ class Modal extends ModalComponent {
|
|
|
99
103
|
maskTransitionName: maskTransitionName || maskTransName,
|
|
100
104
|
style: style,
|
|
101
105
|
footer: footerDom
|
|
102
|
-
})
|
|
106
|
+
});
|
|
103
107
|
}
|
|
104
108
|
}
|
|
105
109
|
exports.default = Modal;
|
package/lib/Modal/operation.js
CHANGED
|
@@ -10,6 +10,7 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _client = require("react-dom/client");
|
|
11
11
|
var _closest = _interopRequireDefault(require("../utils/closest"));
|
|
12
12
|
var _modal = _interopRequireDefault(require("./modal"));
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
function operation() {
|
|
14
15
|
let actions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [{
|
|
15
16
|
text: '确定'
|
|
@@ -57,7 +58,7 @@ function operation() {
|
|
|
57
58
|
e.preventDefault();
|
|
58
59
|
}
|
|
59
60
|
}
|
|
60
|
-
root.render( /*#__PURE__*/
|
|
61
|
+
root.render( /*#__PURE__*/(0, _jsxRuntime.jsx)(_modal.default, {
|
|
61
62
|
visible: true,
|
|
62
63
|
operation: true,
|
|
63
64
|
transparent: true,
|
package/lib/Modal/prompt.js
CHANGED
|
@@ -10,6 +10,7 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _client = require("react-dom/client");
|
|
11
11
|
var _closest = _interopRequireDefault(require("../utils/closest"));
|
|
12
12
|
var _modal = _interopRequireDefault(require("./modal"));
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
function prompt(title, message, callbackOrActions) {
|
|
14
15
|
let type = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'default';
|
|
15
16
|
let defaultValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : '';
|
|
@@ -59,61 +60,78 @@ function prompt(title, message, callbackOrActions) {
|
|
|
59
60
|
};
|
|
60
61
|
switch (type) {
|
|
61
62
|
case 'login-password':
|
|
62
|
-
inputDom = /*#__PURE__*/
|
|
63
|
-
className: "".concat(prefixCls, "-input-container")
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
63
|
+
inputDom = /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
64
|
+
className: "".concat(prefixCls, "-input-container"),
|
|
65
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
66
|
+
className: "".concat(prefixCls, "-input"),
|
|
67
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
68
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
69
|
+
type: "text",
|
|
70
|
+
defaultValue: data.text,
|
|
71
|
+
ref: input => focusFn(input),
|
|
72
|
+
onClick: onClick,
|
|
73
|
+
onChange: onChange,
|
|
74
|
+
placeholder: placeholders[0],
|
|
75
|
+
onBlur: onBlurFixWechat
|
|
76
|
+
})
|
|
77
|
+
})
|
|
78
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
79
|
+
className: "".concat(prefixCls, "-input"),
|
|
80
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
81
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
82
|
+
type: "password",
|
|
83
|
+
defaultValue: data.password,
|
|
84
|
+
onClick: onClick,
|
|
85
|
+
onChange: onChange,
|
|
86
|
+
placeholder: placeholders[1],
|
|
87
|
+
onBlur: onBlurFixWechat
|
|
88
|
+
})
|
|
89
|
+
})
|
|
90
|
+
})]
|
|
91
|
+
});
|
|
84
92
|
break;
|
|
85
93
|
case 'secure-text':
|
|
86
|
-
inputDom = /*#__PURE__*/
|
|
87
|
-
className: "".concat(prefixCls, "-input-container")
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
94
|
+
inputDom = /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
95
|
+
className: "".concat(prefixCls, "-input-container"),
|
|
96
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
97
|
+
className: "".concat(prefixCls, "-input"),
|
|
98
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
99
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
100
|
+
type: "password",
|
|
101
|
+
defaultValue: data.password,
|
|
102
|
+
ref: input => focusFn(input),
|
|
103
|
+
onClick: onClick,
|
|
104
|
+
onChange: onChange,
|
|
105
|
+
placeholder: placeholders[0],
|
|
106
|
+
onBlur: onBlurFixWechat
|
|
107
|
+
})
|
|
108
|
+
})
|
|
109
|
+
})
|
|
110
|
+
});
|
|
99
111
|
break;
|
|
100
112
|
case 'default':
|
|
101
113
|
default:
|
|
102
|
-
inputDom = /*#__PURE__*/
|
|
103
|
-
className: "".concat(prefixCls, "-input-container")
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
114
|
+
inputDom = /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
115
|
+
className: "".concat(prefixCls, "-input-container"),
|
|
116
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
117
|
+
className: "".concat(prefixCls, "-input"),
|
|
118
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
119
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
120
|
+
type: "text",
|
|
121
|
+
defaultValue: data.text,
|
|
122
|
+
ref: input => focusFn(input),
|
|
123
|
+
onClick: onClick,
|
|
124
|
+
onChange: onChange,
|
|
125
|
+
placeholder: placeholders[0],
|
|
126
|
+
onBlur: onBlurFixWechat
|
|
127
|
+
})
|
|
128
|
+
})
|
|
129
|
+
})
|
|
130
|
+
});
|
|
115
131
|
}
|
|
116
|
-
const content = /*#__PURE__*/
|
|
132
|
+
const content = /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
133
|
+
children: [message, inputDom]
|
|
134
|
+
});
|
|
117
135
|
const div = document.createElement('div');
|
|
118
136
|
document.body.appendChild(div);
|
|
119
137
|
const root = (0, _client.createRoot)(div);
|
|
@@ -187,7 +205,7 @@ function prompt(title, message, callbackOrActions) {
|
|
|
187
205
|
e.preventDefault();
|
|
188
206
|
}
|
|
189
207
|
}
|
|
190
|
-
root.render( /*#__PURE__*/
|
|
208
|
+
root.render( /*#__PURE__*/(0, _jsxRuntime.jsx)(_modal.default, {
|
|
191
209
|
visible: true,
|
|
192
210
|
transparent: true,
|
|
193
211
|
prefixCls: prefixCls,
|
|
@@ -200,10 +218,12 @@ function prompt(title, message, callbackOrActions) {
|
|
|
200
218
|
platform: platform,
|
|
201
219
|
wrapProps: {
|
|
202
220
|
onTouchStart: onWrapTouchStart
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
221
|
+
},
|
|
222
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
223
|
+
className: "".concat(prefixCls, "-propmt-content"),
|
|
224
|
+
children: content
|
|
225
|
+
})
|
|
226
|
+
}));
|
|
207
227
|
return {
|
|
208
228
|
close
|
|
209
229
|
};
|
|
@@ -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 MultipleSelectEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
12
13
|
let {
|
|
13
14
|
value: oldValue,
|
|
14
15
|
...props
|
|
15
16
|
} = _ref;
|
|
16
17
|
const value = oldValue ? Array.isArray(oldValue) ? 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 = MultipleSelectEditor;
|
|
@@ -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 MultipleSelectFormatter extends _react.default.PureComponent {
|
|
13
14
|
constructor() {
|
|
14
15
|
super(...arguments);
|
|
@@ -21,10 +22,9 @@ class MultipleSelectFormatter extends _react.default.PureComponent {
|
|
|
21
22
|
let selectedOptions = options.filter(option => value.includes(option.id) || value.includes(option.name));
|
|
22
23
|
if (selectedOptions.length === 0) return [];
|
|
23
24
|
return selectedOptions.map(option => {
|
|
24
|
-
return /*#__PURE__*/
|
|
25
|
-
key: "multiple-".concat(option.id),
|
|
25
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectItem.default, {
|
|
26
26
|
option: option
|
|
27
|
-
});
|
|
27
|
+
}, "multiple-".concat(option.id));
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
30
|
}
|
|
@@ -35,14 +35,15 @@ class MultipleSelectFormatter extends _react.default.PureComponent {
|
|
|
35
35
|
} = this.props;
|
|
36
36
|
let classname = (0, _classnames.default)('dtable-ui cell-formatter-container multiple-select-formatter', containerClassName);
|
|
37
37
|
if (!value || Array.isArray(value) && value.length === 0) {
|
|
38
|
-
return /*#__PURE__*/
|
|
38
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
39
39
|
className: classname
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
let options = this.getOptions();
|
|
43
|
-
return /*#__PURE__*/
|
|
44
|
-
className: classname
|
|
45
|
-
|
|
43
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
44
|
+
className: classname,
|
|
45
|
+
children: options
|
|
46
|
+
});
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
49
|
MultipleSelectFormatter.defaultProps = {
|