dtable-ui-component 6.0.89 → 6.0.92
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 +96 -70
- package/lib/ActivityIndicator/index.js +41 -33
- 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 +22 -18
- 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 +8 -6
- package/lib/CheckboxEditor/pc-editor.js +8 -6
- package/lib/CheckboxFormatter/index.js +8 -6
- package/lib/CollaboratorEditor/index.js +24 -15
- package/lib/CollaboratorEditor/mb-editor/index.js +19 -13
- package/lib/CollaboratorEditor/pc-editor/index.js +51 -43
- package/lib/CollaboratorFormatter/index.js +8 -7
- package/lib/CollaboratorItem/index.js +21 -16
- package/lib/CollapsibleSettingLayout/index.css +0 -5
- package/lib/CollapsibleSettingLayout/index.js +17 -12
- package/lib/Comment/body/comment.js +79 -63
- package/lib/Comment/body/index.js +14 -11
- package/lib/Comment/footer/btns/index.js +68 -53
- package/lib/Comment/footer/index.js +30 -28
- package/lib/Comment/footer/input/index.js +49 -44
- package/lib/Comment/footer/input/participant/index.js +19 -14
- 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 +68 -57
- package/lib/Comment/index.js +33 -28
- package/lib/Comment/utils/utilities.js +1 -1
- package/lib/CreatorFormatter/index.js +8 -7
- package/lib/DTableColorPicker/ColorPickerPortal/index.js +60 -35
- package/lib/DTableColorPicker/index.js +135 -99
- package/lib/DTableColorPicker/utils.js +1 -1
- package/lib/DTableCommonAddTool/index.js +11 -8
- package/lib/DTableCustomFooter/index.js +5 -3
- package/lib/DTableCustomizeCollaboratorSelect/index.css +1 -39
- 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/utils/index.js +1 -1
- 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.css +1 -5
- 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.css +0 -37
- 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 +22 -19
- package/lib/DTableSearchInput/index.js +23 -19
- 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.css +1 -2
- package/lib/DTableSwitch/index.js +30 -18
- package/lib/DateEditor/index.js +25 -16
- package/lib/DateEditor/mb-editor/index.js +90 -68
- package/lib/DateEditor/pc-editor.js +39 -35
- package/lib/DateFormatter/index.js +5 -3
- package/lib/DatePicker/utils.js +4 -4
- 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 -10
- 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/service.js +1 -1
- package/lib/DigitalSignEditor/signature-board/index.js +21 -17
- package/lib/DigitalSignFormatter/index.js +23 -19
- package/lib/DigitalSignFormatter/utils.js +1 -1
- 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 +26 -20
- package/lib/FieldDisplaySetting/index.css +0 -6
- package/lib/FieldDisplaySetting/index.js +50 -41
- 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 +82 -64
- 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 +108 -82
- package/lib/FileEditor/pc-editor/index.js +46 -36
- package/lib/FileFormatter/index.js +40 -36
- package/lib/FileItemFormatter/index.js +3 -2
- package/lib/FileUploader/index.js +23 -21
- package/lib/FormulaFormatter/index.js +24 -17
- package/lib/GeolocationEditor/index.js +31 -22
- package/lib/GeolocationEditor/map-editor-utils.js +2 -2
- 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 +38 -31
- package/lib/GeolocationEditor/pc-editor/index.js +26 -17
- package/lib/GeolocationEditor/pc-editor/location-editor.js +122 -96
- 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 +139 -94
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +122 -85
- package/lib/GeolocationEditor/pc-editor/province-city-editor.js +89 -69
- package/lib/GeolocationEditor/pc-editor/province-editor.js +31 -26
- 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 +3 -2
- package/lib/Icon/index.js +9 -6
- package/lib/Icon/load-sprite.js +13 -2
- package/lib/IconButton/index.js +9 -6
- package/lib/ImageEditor/images-previewer/image-preview/index.js +53 -45
- 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 +102 -77
- 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 +47 -39
- package/lib/InputItem/custom-input.js +32 -27
- package/lib/InputItem/custom-keyboard.js +68 -47
- package/lib/InputItem/index.js +81 -71
- 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 +51 -42
- 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 +6 -4
- package/lib/MobileFullScreenPage/header/index.js +22 -17
- 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 +9 -6
- package/lib/Modal/modal.js +26 -22
- package/lib/Modal/operation.js +2 -1
- package/lib/Modal/prompt.js +76 -56
- 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 +26 -19
- package/lib/Progress/index.js +17 -15
- package/lib/Radio/Radio.js +12 -8
- package/lib/Radio/RadioItem.js +11 -5
- package/lib/RateFormatter/index.js +8 -7
- package/lib/RoleStatusEditor/index.js +36 -31
- package/lib/RowExpand/index.js +16 -9
- package/lib/RowExpandDialog/body/index.js +53 -42
- package/lib/RowExpandDialog/column-content/index.js +34 -25
- package/lib/RowExpandDialog/header/index.js +29 -22
- package/lib/RowExpandDialog/index.js +43 -30
- 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 +20 -18
- package/lib/RowExpandEditor/email-editor/pc-editor/index.js +21 -19
- 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 +82 -68
- 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 +12 -10
- 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 +43 -35
- 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 +20 -18
- package/lib/RowExpandEditor/url-editor/pc-editor/index.js +21 -19
- 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 +12 -9
- 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 +53 -42
- 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 +134 -116
- package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +3 -2
- package/lib/RowExpandFormatter/link-formatter/index.js +70 -67
- package/lib/RowExpandFormatter/rate-formatter/index.js +8 -7
- package/lib/RowExpandFormatter/url-formatter/index.js +12 -9
- package/lib/RowExpandView/body/index.js +39 -33
- 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.css +4 -2
- 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 +5 -2
- package/lib/TabBar/Tab.js +28 -21
- package/lib/TabBar/index.js +28 -24
- 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 +49 -40
- package/lib/Toast/index.js +20 -14
- 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 +75 -61
- package/lib/toaster/alert.js +25 -16
- package/lib/toaster/toast.js +27 -23
- package/lib/toaster/toastManager.js +17 -14
- package/lib/toaster/toaster.js +8 -4
- package/lib/utils/class.js +3 -3
- package/lib/utils/object-utils.js +1 -1
- package/lib/utils/url.js +4 -4
- package/package.json +13 -29
package/lib/ActionSheet/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var _rmcFeedback = _interopRequireDefault(require("rmc-feedback"));
|
|
|
14
14
|
var _getDataAttr = _interopRequireDefault(require("../utils/getDataAttr"));
|
|
15
15
|
var _Badge = _interopRequireDefault(require("../Badge"));
|
|
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
|
const NORMAL = 'NORMAL';
|
|
@@ -70,13 +71,13 @@ function createActionSheet(flag, config, callback) {
|
|
|
70
71
|
cancelButtonText,
|
|
71
72
|
badges = []
|
|
72
73
|
} = props;
|
|
73
|
-
const titleMsg = [title ? /*#__PURE__*/
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
},
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
},
|
|
74
|
+
const titleMsg = [title ? /*#__PURE__*/(0, _jsxRuntime.jsx)("h3", {
|
|
75
|
+
className: `${prefixCls}-title`,
|
|
76
|
+
children: title
|
|
77
|
+
}, "0") : null, message ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
78
|
+
className: `${prefixCls}-message`,
|
|
79
|
+
children: message
|
|
80
|
+
}, "1") : null];
|
|
80
81
|
let children = null;
|
|
81
82
|
let mode = 'normal';
|
|
82
83
|
switch (flag) {
|
|
@@ -87,82 +88,106 @@ function createActionSheet(flag, config, callback) {
|
|
|
87
88
|
if (badges && badges.length > 0) {
|
|
88
89
|
badges.forEach(element => {
|
|
89
90
|
if (element.index >= 0) {
|
|
90
|
-
badgesMap[element.index] = /*#__PURE__*/
|
|
91
|
+
badgesMap[element.index] = /*#__PURE__*/(0, _jsxRuntime.jsx)(_Badge.default, {
|
|
92
|
+
...element
|
|
93
|
+
});
|
|
91
94
|
}
|
|
92
95
|
});
|
|
93
96
|
}
|
|
94
|
-
children = /*#__PURE__*/
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
97
|
+
children = /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
98
|
+
...(0, _getDataAttr.default)(props),
|
|
99
|
+
children: [titleMsg, /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
100
|
+
className: `${prefixCls}-button-list`,
|
|
101
|
+
role: "group",
|
|
102
|
+
children: normalOptions.map((item, index) => {
|
|
103
|
+
const itemProps = {
|
|
104
|
+
className: (0, _classnames.default)(`${prefixCls}-button-list-item`, {
|
|
105
|
+
[`${prefixCls}-destructive-button`]: destructiveButtonIndex === index,
|
|
106
|
+
[`${prefixCls}-cancel-button`]: cancelButtonIndex === index
|
|
107
|
+
}),
|
|
108
|
+
onClick: () => cb(index),
|
|
109
|
+
role: 'button'
|
|
110
|
+
};
|
|
111
|
+
let bContent = /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
112
|
+
...itemProps,
|
|
113
|
+
children: item
|
|
114
|
+
});
|
|
115
|
+
// 仅在设置徽标的情况下修改dom结构
|
|
116
|
+
if (badgesMap[index]) {
|
|
117
|
+
bContent = /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
118
|
+
...itemProps,
|
|
119
|
+
className: `${itemProps.className} ${prefixCls}-button-list-badge`,
|
|
120
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
121
|
+
className: `${prefixCls}-button-list-item-content`,
|
|
122
|
+
children: item
|
|
123
|
+
}), badgesMap[index]]
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
let bItem = /*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcFeedback.default, {
|
|
127
|
+
activeClassName: `${prefixCls}-button-list-item-active`,
|
|
128
|
+
children: bContent
|
|
129
|
+
}, index);
|
|
130
|
+
if (cancelButtonIndex === index || destructiveButtonIndex === index) {
|
|
131
|
+
bItem = /*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcFeedback.default, {
|
|
132
|
+
activeClassName: `${prefixCls}-button-list-item-active`,
|
|
133
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
134
|
+
...itemProps,
|
|
135
|
+
children: [item, cancelButtonIndex === index ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
136
|
+
className: `${prefixCls}-cancel-button-mask`
|
|
137
|
+
}) : null]
|
|
138
|
+
})
|
|
139
|
+
}, index);
|
|
140
|
+
}
|
|
141
|
+
return bItem;
|
|
142
|
+
})
|
|
143
|
+
})]
|
|
144
|
+
});
|
|
129
145
|
break;
|
|
130
146
|
case SHARE:
|
|
131
147
|
mode = 'share';
|
|
132
148
|
const multipleLine = options.length && Array.isArray(options[0]) || false;
|
|
133
149
|
const createList = function (item, index) {
|
|
134
150
|
let rowIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
135
|
-
return /*#__PURE__*/
|
|
136
|
-
className:
|
|
151
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
152
|
+
className: `${prefixCls}-share-list-item`,
|
|
137
153
|
role: "button",
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
154
|
+
onClick: () => cb(index, rowIndex),
|
|
155
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
156
|
+
className: `${prefixCls}-share-list-item-icon`,
|
|
157
|
+
children: item.icon
|
|
158
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
159
|
+
className: `${prefixCls}-share-list-item-title`,
|
|
160
|
+
children: item.title
|
|
161
|
+
})]
|
|
162
|
+
}, index);
|
|
145
163
|
};
|
|
146
|
-
children = /*#__PURE__*/
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
164
|
+
children = /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
165
|
+
...(0, _getDataAttr.default)(props),
|
|
166
|
+
children: [titleMsg, /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
167
|
+
className: `${prefixCls}-share`,
|
|
168
|
+
children: [multipleLine ? options.map((item, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
169
|
+
className: `${prefixCls}-share-list`,
|
|
170
|
+
children: item.map((ii, ind) => createList(ii, ind, index))
|
|
171
|
+
}, index)) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
172
|
+
className: `${prefixCls}-share-list`,
|
|
173
|
+
children: options.map((item, index) => createList(item, index))
|
|
174
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcFeedback.default, {
|
|
175
|
+
activeClassName: `${prefixCls}-share-cancel-button-active`,
|
|
176
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
177
|
+
className: `${prefixCls}-share-cancel-button`,
|
|
178
|
+
role: "button",
|
|
179
|
+
onClick: () => cb(-1),
|
|
180
|
+
children: cancelButtonText
|
|
181
|
+
})
|
|
182
|
+
})]
|
|
183
|
+
})]
|
|
184
|
+
});
|
|
160
185
|
break;
|
|
161
186
|
default:
|
|
162
187
|
break;
|
|
163
188
|
}
|
|
164
|
-
const rootCls = (0, _classnames.default)(
|
|
165
|
-
root.render(
|
|
189
|
+
const rootCls = (0, _classnames.default)(`${prefixCls}-${mode}`, className);
|
|
190
|
+
root.render(/*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcDialog.default, {
|
|
166
191
|
visible: true,
|
|
167
192
|
title: "",
|
|
168
193
|
footer: "",
|
|
@@ -172,8 +197,9 @@ function createActionSheet(flag, config, callback) {
|
|
|
172
197
|
maskTransitionName: maskTransitionName || 'am-fade',
|
|
173
198
|
onClose: () => cb(cancelButtonIndex || -1),
|
|
174
199
|
maskClosable: maskClosable,
|
|
175
|
-
wrapProps: props.wrapProps || {}
|
|
176
|
-
|
|
200
|
+
wrapProps: props.wrapProps || {},
|
|
201
|
+
children: children
|
|
202
|
+
}));
|
|
177
203
|
return {
|
|
178
204
|
close
|
|
179
205
|
};
|
|
@@ -9,6 +9,7 @@ exports.default = void 0;
|
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
require("./index.css");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
13
|
/* tslint:disable:jsx-no-multiline-js */
|
|
13
14
|
|
|
14
15
|
class ActivityIndicator extends React.Component {
|
|
@@ -22,44 +23,51 @@ class ActivityIndicator extends React.Component {
|
|
|
22
23
|
text
|
|
23
24
|
} = this.props;
|
|
24
25
|
const wrapClass = (0, _classnames.default)(prefixCls, className, {
|
|
25
|
-
[
|
|
26
|
-
[
|
|
27
|
-
[
|
|
26
|
+
[`${prefixCls}-lg`]: size === 'large',
|
|
27
|
+
[`${prefixCls}-sm`]: size === 'small',
|
|
28
|
+
[`${prefixCls}-toast`]: !!toast
|
|
28
29
|
});
|
|
29
|
-
const spinnerClass = (0, _classnames.default)(
|
|
30
|
-
[
|
|
30
|
+
const spinnerClass = (0, _classnames.default)(`${prefixCls}-spinner`, {
|
|
31
|
+
[`${prefixCls}-spinner-lg`]: !!toast || size === 'large'
|
|
31
32
|
});
|
|
32
33
|
if (animating) {
|
|
33
34
|
if (toast) {
|
|
34
|
-
return /*#__PURE__*/
|
|
35
|
-
className: wrapClass
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
35
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
36
|
+
className: wrapClass,
|
|
37
|
+
children: text ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
38
|
+
className: `${prefixCls}-content`,
|
|
39
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
40
|
+
className: spinnerClass,
|
|
41
|
+
"aria-hidden": "true"
|
|
42
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
43
|
+
className: `${prefixCls}-toast`,
|
|
44
|
+
children: text
|
|
45
|
+
})]
|
|
46
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
47
|
+
className: `${prefixCls}-content`,
|
|
48
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
49
|
+
className: spinnerClass,
|
|
50
|
+
"aria-label": "Loading"
|
|
51
|
+
})
|
|
52
|
+
})
|
|
53
|
+
});
|
|
49
54
|
} else {
|
|
50
|
-
return text ? /*#__PURE__*/
|
|
51
|
-
className: wrapClass
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
className:
|
|
61
|
-
|
|
62
|
-
|
|
55
|
+
return text ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
56
|
+
className: wrapClass,
|
|
57
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
58
|
+
className: spinnerClass,
|
|
59
|
+
"aria-hidden": "true"
|
|
60
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
61
|
+
className: `${prefixCls}-tip`,
|
|
62
|
+
children: text
|
|
63
|
+
})]
|
|
64
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
65
|
+
className: wrapClass,
|
|
66
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
67
|
+
className: spinnerClass,
|
|
68
|
+
"aria-label": "loading"
|
|
69
|
+
})
|
|
70
|
+
});
|
|
63
71
|
}
|
|
64
72
|
} else {
|
|
65
73
|
return null;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
.dtable-ui-selected-users-container {
|
|
2
|
+
flex-wrap: wrap;
|
|
3
|
+
height: auto !important;
|
|
4
|
+
min-height: 38px;
|
|
5
|
+
max-width: calc(100% - 10px);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.dtable-ui-selected-users-container .dtable-ui-user-select-placeholder {
|
|
9
|
+
color: #808080;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.dtable-ui-user-select-popover .popover {
|
|
13
|
+
width: 385px;
|
|
14
|
+
max-width: 385px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.dtable-ui-user-select-container {
|
|
18
|
+
position: relative;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.dtable-ui-user-select-container .dtable-ui-user-search-container {
|
|
22
|
+
padding: 10px 10px 0 10px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.dtable-ui-user-select-container .dtable-ui-user-search-container input {
|
|
26
|
+
height: 28px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.dtable-ui-user-select-container .dtable-ui-user-list-container {
|
|
30
|
+
min-height: 160px;
|
|
31
|
+
max-height: 200px;
|
|
32
|
+
margin: 10px 0;
|
|
33
|
+
overflow: auto;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.dtable-ui-user-select-container .dtable-ui-user-list-container .dtable-ui-user-item-container {
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: space-between;
|
|
40
|
+
height: 30px;
|
|
41
|
+
padding: 0 10px;
|
|
42
|
+
font-size: 14px;
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.dtable-ui-user-select-container .dtable-ui-user-list-container .dtable-ui-user-item-container:hover,
|
|
47
|
+
.dtable-ui-user-select-container .dtable-ui-user-list-container .dtable-ui-user-item-container-highlight {
|
|
48
|
+
background: #f5f5f5;
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.no-user-search-result {
|
|
53
|
+
color: #666666;
|
|
54
|
+
font-size: 14px;
|
|
55
|
+
padding-left: 10px;
|
|
56
|
+
padding: 10px;
|
|
57
|
+
overflow: auto;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.dtable-ui-user-select-popover .popover .dtable-ui-user-item {
|
|
61
|
+
background: transparent;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.dtable-ui-user-list-container .dtable-ui-collaborator-check-icon .dtable-icon-check-mark {
|
|
65
|
+
color: #798d99;
|
|
66
|
+
font-size: 12px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* user-item */
|
|
70
|
+
.dtable-ui-user-item {
|
|
71
|
+
display: inline-flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
margin: 2px 10px 2px 0;
|
|
74
|
+
padding: 0 8px 0 2px;
|
|
75
|
+
height: 20px;
|
|
76
|
+
font-size: 13px;
|
|
77
|
+
border-radius: 10px;
|
|
78
|
+
background: #eaeaea;
|
|
79
|
+
overflow: hidden;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.dtable-ui-user-item .user-item .user-avatar img {
|
|
83
|
+
width: 16px;
|
|
84
|
+
height: 16px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.dtable-ui-user-item .user-avatar {
|
|
88
|
+
display: flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
justify-content: center;
|
|
91
|
+
transform: translateY(0);
|
|
92
|
+
flex-shrink: 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.dtable-ui-user-item .user-name {
|
|
96
|
+
margin-left: 5px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.dtable-ui-user-item .user-avatar img {
|
|
100
|
+
width: 16px;
|
|
101
|
+
height: 16px;
|
|
102
|
+
border-radius: 50%;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.dtable-ui-user-item .user-remove {
|
|
106
|
+
display: inline-block;
|
|
107
|
+
width: 14px;
|
|
108
|
+
margin: 0 -2px 0 2px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.dtable-ui-user-item .user-remove .dtable-font {
|
|
112
|
+
display: inline-block;
|
|
113
|
+
font-size: 16px;
|
|
114
|
+
color: #909090;
|
|
115
|
+
transform: scale(.8);
|
|
116
|
+
cursor: pointer;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.dtable-ui-user-item .user-remove .dtable-font:hover {
|
|
120
|
+
color: #666666;
|
|
121
|
+
cursor: pointer;
|
|
122
|
+
}
|