dtable-ui-component 7.0.13 → 7.0.15
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 +58 -49
- package/lib/ActivityIndicator/index.js +17 -16
- package/lib/AsyncUserSelect/index.js +20 -46
- package/lib/AsyncUserSelect/user-item.js +6 -5
- package/lib/AutoNumberFormatter/index.js +4 -3
- package/lib/Badge/index.js +27 -29
- package/lib/ButtonFormatter/index.js +8 -6
- package/lib/CTimeFormatter/index.js +4 -3
- package/lib/CheckboxEditor/index.js +16 -13
- package/lib/CheckboxEditor/mb-editor.js +20 -9
- package/lib/CheckboxEditor/pc-editor.js +24 -12
- package/lib/CheckboxFormatter/index.js +5 -4
- package/lib/CollaboratorEditor/index.js +17 -14
- package/lib/CollaboratorEditor/mb-editor/index.js +19 -11
- package/lib/CollaboratorEditor/pc-editor/index.js +35 -26
- package/lib/CollaboratorFormatter/index.js +10 -8
- package/lib/CollaboratorItem/index.js +5 -4
- package/lib/CollapsibleSettingLayout/index.js +8 -10
- package/lib/Comment/body/comment.js +19 -11
- package/lib/Comment/body/index.js +8 -8
- package/lib/Comment/footer/btns/index.js +7 -4
- package/lib/Comment/footer/index.js +21 -10
- package/lib/Comment/footer/input/index.js +55 -34
- package/lib/Comment/footer/input/participant/index.js +6 -5
- package/lib/Comment/footer/participants/index.js +5 -4
- package/lib/Comment/footer/participants/participant/index.js +3 -1
- package/lib/Comment/footer/participants/participant-select/index.js +26 -10
- package/lib/Comment/index.js +57 -39
- package/lib/Comment/utils/utilities.js +22 -16
- package/lib/CreatorFormatter/index.js +8 -6
- package/lib/DTableColorPicker/ColorPickerPortal/index.js +26 -28
- package/lib/DTableColorPicker/index.js +53 -67
- package/lib/DTableColorPicker/utils.js +7 -5
- package/lib/DTableColumnIcon/index.js +7 -6
- package/lib/DTableCommonAddTool/index.js +10 -8
- package/lib/DTableCustomFooter/index.js +3 -1
- package/lib/DTableCustomizeSearchInput/index.js +41 -26
- package/lib/DTableCustomizeSelect/index.js +24 -19
- package/lib/DTableDropdownItem/index.js +28 -24
- package/lib/DTableDropdownMenu/index.js +17 -14
- package/lib/DTableEmptyTip/index.js +5 -4
- package/lib/DTableFiltersPopover/index.js +42 -27
- package/lib/DTableFiltersPopover/utils/filter-item-utils.js +3 -1
- package/lib/DTableFiltersPopover/utils/index.js +114 -64
- package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +9 -8
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +13 -16
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +15 -18
- package/lib/DTableFiltersPopover/widgets/filter-calendar.js +14 -8
- package/lib/DTableFiltersPopover/widgets/filter-group.js +57 -36
- package/lib/DTableFiltersPopover/widgets/filter-item.js +165 -106
- package/lib/DTableFiltersPopover/widgets/filter-list/index.js +162 -137
- package/lib/DTableFiltersPopover/widgets/rate-item.js +25 -20
- package/lib/DTableIcon/index.js +11 -10
- package/lib/DTableIcon/svg-icon.js +11 -9
- package/lib/DTableModalHeader/index.js +7 -7
- package/lib/DTablePopover/index.js +16 -12
- package/lib/DTableRadio/index.js +9 -10
- package/lib/DTableRadioGroup/index.js +20 -11
- package/lib/DTableSearchInput/index.js +29 -19
- package/lib/DTableSelect/dtable-select-label.js +6 -7
- package/lib/DTableSelect/index.js +26 -25
- package/lib/DTableSelect/select-dropdown-indicator/index.js +3 -1
- package/lib/DTableSelect/utils.js +83 -47
- package/lib/DTableSubDropdownMenu/index.js +16 -12
- package/lib/DTableSubDropdownToggle/index.js +16 -17
- package/lib/DTableSwitch/index.js +11 -12
- package/lib/DTableToolTip/index.js +12 -11
- package/lib/DateEditor/index.js +28 -30
- package/lib/DateEditor/mb-editor/index.js +31 -18
- package/lib/DateEditor/pc-editor.js +46 -27
- package/lib/DateFormatter/index.js +5 -4
- package/lib/DatePicker/index.js +15 -9
- package/lib/DatePicker/utils.js +7 -5
- package/lib/DeleteTip/index.js +6 -5
- package/lib/DepartmentMultipleSelectEditor/index.js +26 -28
- package/lib/DepartmentSelectFilter/index.js +13 -8
- package/lib/DepartmentSingleSelectEditor/index.js +16 -13
- package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +49 -50
- package/lib/DepartmentSingleSelectEditor/pc-editor/department-single-select.js +64 -42
- package/lib/DepartmentSingleSelectEditor/pc-editor/index.js +19 -13
- package/lib/DepartmentSingleSelectFormatter/index.js +6 -4
- package/lib/DigitalSignEditor/index.js +16 -13
- package/lib/DigitalSignEditor/mb-editor/index.js +24 -16
- package/lib/DigitalSignEditor/pc-editor/index.js +31 -23
- package/lib/DigitalSignEditor/service.js +5 -3
- package/lib/DigitalSignEditor/signature-board/index.js +10 -7
- package/lib/DigitalSignEditor/utils.js +4 -2
- package/lib/DigitalSignFormatter/index.js +15 -12
- package/lib/DigitalSignFormatter/utils.js +6 -5
- package/lib/Drawer/index.js +3 -2
- package/lib/DurationEditor/index.js +31 -21
- package/lib/DurationFormatter/index.js +5 -4
- package/lib/EditEditorButton/index.js +3 -1
- package/lib/EmailFormatter/index.js +4 -3
- package/lib/FieldDisplaySetting/field-item.js +13 -13
- package/lib/FieldDisplaySetting/index.js +20 -20
- package/lib/FileEditor/files-previewer/index.js +16 -13
- package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +20 -12
- package/lib/FileEditor/files-previewer/mb-previewer/index.js +8 -7
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/dropdown-menu.js +4 -3
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/file-name-editor/index.js +6 -5
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/index.js +24 -17
- package/lib/FileEditor/files-previewer/pc-previewer/index.js +57 -29
- package/lib/FileEditor/index.js +16 -13
- package/lib/FileEditor/mb-editor/index.js +20 -28
- package/lib/FileEditor/pc-editor/addition-previewer/index.js +4 -2
- package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.js +31 -17
- package/lib/FileEditor/pc-editor/index.js +30 -22
- package/lib/FileFormatter/index.js +20 -27
- package/lib/FileItemFormatter/index.js +10 -7
- package/lib/FileUploader/index.js +46 -29
- package/lib/FormulaFormatter/index.js +44 -24
- package/lib/GeolocationEditor/index.js +32 -27
- package/lib/GeolocationEditor/map-editor-utils.js +23 -21
- package/lib/GeolocationEditor/mb-editor/country-editor.js +14 -17
- package/lib/GeolocationEditor/mb-editor/index.js +28 -22
- package/lib/GeolocationEditor/mb-editor/location-editor.js +15 -18
- package/lib/GeolocationEditor/mb-editor/map-editor/index.js +77 -47
- package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.js +89 -50
- package/lib/GeolocationEditor/mb-editor/province-city-editor.js +14 -17
- package/lib/GeolocationEditor/mb-editor/province-editor.js +14 -17
- package/lib/GeolocationEditor/pc-editor/country-editor.js +25 -12
- package/lib/GeolocationEditor/pc-editor/index.js +41 -27
- package/lib/GeolocationEditor/pc-editor/location-editor.js +33 -28
- package/lib/GeolocationEditor/pc-editor/map-editor/index.js +67 -43
- package/lib/GeolocationEditor/pc-editor/map-editor/large-editor/index.js +69 -42
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/index.js +86 -42
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +85 -39
- package/lib/GeolocationEditor/pc-editor/province-city-editor.js +26 -20
- package/lib/GeolocationEditor/pc-editor/province-editor.js +15 -8
- package/lib/GeolocationEditor/pc-editor/selector-header-item.js +6 -5
- package/lib/GeolocationEditor/pc-editor/selector-list.js +8 -7
- package/lib/GeolocationFormatter/index.js +5 -4
- package/lib/HtmlLongTextFormatter/index.js +13 -5
- package/lib/Icon/index.js +13 -15
- package/lib/Icon/load-sprite.js +13 -2
- package/lib/IconButton/index.js +12 -13
- package/lib/ImageEditor/images-previewer/image-preview/index.js +22 -13
- package/lib/ImageEditor/images-previewer/index.js +9 -3
- package/lib/ImageEditor/index.js +16 -13
- package/lib/ImageEditor/mb-editor/index.js +20 -28
- package/lib/ImageEditor/pc-editor/addition-previewer/image-link/index.js +6 -2
- package/lib/ImageEditor/pc-editor/addition-previewer/index.js +5 -3
- package/lib/ImageEditor/pc-editor/addition-previewer/local-image-addition/index.js +26 -12
- package/lib/ImageEditor/pc-editor/images-previewer/index.js +10 -4
- package/lib/ImageEditor/pc-editor/index.js +16 -11
- package/lib/ImageFormatter/images-lazy-load.js +11 -19
- package/lib/ImageFormatter/index.js +14 -12
- package/lib/ImagePreviewerLightbox/index.js +15 -19
- package/lib/ImageThumbnail/index.js +15 -12
- package/lib/InputItem/custom-input.js +55 -35
- package/lib/InputItem/custom-keyboard.js +42 -42
- package/lib/InputItem/index.js +82 -63
- package/lib/InputItem/input.js +9 -11
- package/lib/LastModifierFormatter/index.js +8 -6
- package/lib/LinkEditor/index.js +53 -33
- package/lib/LinkEditor/link-editor-option.js +4 -3
- package/lib/LinkEditor/mb-popover/index.js +22 -9
- package/lib/LinkEditor/pc-popover/index.js +13 -7
- package/lib/LinkFormatter/index.js +37 -21
- package/lib/List/index.js +17 -19
- package/lib/List/list-item.js +59 -55
- package/lib/LongTextFormatter/index.js +5 -4
- package/lib/MBEditorHeader/index.js +9 -8
- package/lib/MTimeFormatter/index.js +4 -3
- package/lib/MobileFullScreenPage/body/index.js +6 -4
- package/lib/MobileFullScreenPage/header/index.js +10 -8
- package/lib/MobileFullScreenPage/index.js +12 -14
- package/lib/MobileModal/index.js +7 -8
- package/lib/MobileOperationSheet/index.js +8 -7
- package/lib/MobileSelector/empty/index.js +3 -1
- package/lib/MobileSelector/index.js +7 -5
- package/lib/MobileSelector/option/index.js +5 -3
- package/lib/MobileSelector/options/index.css +0 -4
- package/lib/MobileSelector/options/index.js +3 -1
- package/lib/MobileSelector/search/index.js +5 -3
- package/lib/MobileUpload/index.js +5 -4
- package/lib/Modal/alert.js +2 -2
- package/lib/Modal/modal.js +28 -30
- package/lib/Modal/prompt.js +14 -14
- package/lib/MultipleSelectEditor/index.js +7 -7
- package/lib/MultipleSelectFormatter/index.js +9 -7
- package/lib/NotificationPopover/index.js +5 -4
- package/lib/NumberEditor/index.js +21 -12
- package/lib/NumberFormatter/index.js +5 -4
- package/lib/PhoneNumberLink/index.js +5 -3
- package/lib/Picker/AbstractPicker.js +35 -33
- package/lib/Popover/index.js +9 -11
- package/lib/Popover/item.js +22 -24
- package/lib/Progress/index.js +18 -17
- package/lib/Radio/Radio.js +17 -15
- package/lib/Radio/RadioItem.js +23 -19
- package/lib/RateFormatter/index.js +15 -15
- package/lib/RoleStatusEditor/index.js +18 -19
- package/lib/RowExpand/index.js +7 -6
- package/lib/RowExpandDialog/body/index.js +57 -40
- package/lib/RowExpandDialog/column-content/index.js +10 -6
- package/lib/RowExpandDialog/header/index.js +12 -9
- package/lib/RowExpandDialog/index.js +59 -63
- package/lib/RowExpandEditor/add-btn/index.js +7 -6
- package/lib/RowExpandEditor/checkbox-editor/index.js +7 -6
- package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.js +5 -4
- package/lib/RowExpandEditor/checkbox-editor/pc-editor.js +10 -8
- package/lib/RowExpandEditor/collaborator-editor/index.js +7 -6
- package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.js +33 -22
- package/lib/RowExpandEditor/collaborator-editor/pc-editor/index.js +40 -26
- package/lib/RowExpandEditor/date-editor/index.js +7 -6
- package/lib/RowExpandEditor/date-editor/mb-editor.js +18 -12
- package/lib/RowExpandEditor/date-editor/pc-editor.js +20 -15
- package/lib/RowExpandEditor/department-editor/index.js +7 -6
- package/lib/RowExpandEditor/department-editor/mb-editor.js +11 -16
- package/lib/RowExpandEditor/department-editor/pc-editor.js +14 -19
- package/lib/RowExpandEditor/digital-sign-editor/index.js +7 -6
- package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +38 -24
- package/lib/RowExpandEditor/digital-sign-editor/pc-editor/index.js +39 -25
- package/lib/RowExpandEditor/duration-editor/index.js +7 -6
- package/lib/RowExpandEditor/duration-editor/mb-editor.js +17 -10
- package/lib/RowExpandEditor/duration-editor/pc-editor.js +19 -13
- package/lib/RowExpandEditor/email-editor/index.js +7 -6
- package/lib/RowExpandEditor/email-editor/mb-editor/index.js +20 -10
- package/lib/RowExpandEditor/email-editor/pc-editor/index.js +25 -14
- package/lib/RowExpandEditor/file-editor/index.js +7 -6
- package/lib/RowExpandEditor/file-editor/mb-editor/index.js +31 -18
- package/lib/RowExpandEditor/file-editor/pc-editor/index.js +23 -16
- package/lib/RowExpandEditor/geolocation-editor/index.js +7 -6
- package/lib/RowExpandEditor/geolocation-editor/mb-editor/index.js +29 -17
- package/lib/RowExpandEditor/geolocation-editor/pc-editor/index.js +26 -13
- package/lib/RowExpandEditor/image-editor/index.js +7 -6
- package/lib/RowExpandEditor/image-editor/mb-editor/index.js +26 -16
- package/lib/RowExpandEditor/image-editor/pc-editor/index.js +24 -14
- package/lib/RowExpandEditor/index.js +16 -11
- package/lib/RowExpandEditor/long-text-editor/index.js +7 -6
- package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.js +18 -17
- package/lib/RowExpandEditor/long-text-editor/mb-editor/index.js +16 -10
- package/lib/RowExpandEditor/long-text-editor/pc-editor/index.js +23 -16
- package/lib/RowExpandEditor/multiple-select-editor/index.js +7 -6
- package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +20 -12
- package/lib/RowExpandEditor/multiple-select-editor/pc-editor/index.js +38 -27
- package/lib/RowExpandEditor/number-editor/index.js +7 -6
- package/lib/RowExpandEditor/number-editor/mb-editor/index.js +14 -8
- package/lib/RowExpandEditor/number-editor/pc-editor.js +20 -13
- package/lib/RowExpandEditor/rate-editor/index.js +7 -6
- package/lib/RowExpandEditor/rate-editor/mb-editor.js +26 -13
- package/lib/RowExpandEditor/rate-editor/pc-editor.js +41 -25
- package/lib/RowExpandEditor/single-select-editor/index.js +7 -6
- package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +32 -21
- package/lib/RowExpandEditor/single-select-editor/pc-editor/index.js +37 -25
- package/lib/RowExpandEditor/text-editor/index.js +7 -6
- package/lib/RowExpandEditor/text-editor/mb-editor/index.js +5 -4
- package/lib/RowExpandEditor/text-editor/pc-editor/index.js +26 -15
- package/lib/RowExpandEditor/url-editor/index.js +7 -6
- package/lib/RowExpandEditor/url-editor/mb-editor/index.js +15 -7
- package/lib/RowExpandEditor/url-editor/pc-editor/index.js +20 -11
- package/lib/RowExpandFormatter/department-formatter/index.js +6 -3
- package/lib/RowExpandFormatter/department-formatter/mb-formatter.js +4 -2
- package/lib/RowExpandFormatter/department-formatter/pc-formatter.js +4 -2
- package/lib/RowExpandFormatter/email-formatter/index.js +8 -5
- package/lib/RowExpandFormatter/file-formatter/index.js +9 -8
- package/lib/RowExpandFormatter/file-formatter/row-expand-file-item-formatter.js +14 -12
- package/lib/RowExpandFormatter/formula-formatter/index.js +51 -30
- package/lib/RowExpandFormatter/image-formatter/index.js +11 -9
- package/lib/RowExpandFormatter/image-formatter/row-expand-image-item-formatter.js +10 -9
- package/lib/RowExpandFormatter/index.js +52 -34
- package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +15 -9
- package/lib/RowExpandFormatter/link-formatter/index.js +25 -17
- package/lib/RowExpandFormatter/link-formatter/value-display-utils.js +5 -3
- package/lib/RowExpandFormatter/rate-formatter/index.js +14 -13
- package/lib/RowExpandFormatter/text/index.js +5 -4
- package/lib/RowExpandFormatter/url-formatter/index.js +9 -6
- package/lib/RowExpandView/body/index.js +43 -32
- package/lib/RowExpandView/column-content/index.js +7 -3
- package/lib/RowExpandView/index.js +52 -53
- package/lib/SelectItem/index.js +7 -5
- package/lib/SelectOptionGroup/index.js +40 -30
- package/lib/SelectedDepartments/index.js +12 -10
- package/lib/SimpleLongTextFormatter/index.js +18 -12
- package/lib/SimpleLongTextFormatter/normalize-long-text-value.js +4 -3
- package/lib/SimpleLongTextFormatter/widgets/LongTextPreview.js +21 -12
- package/lib/SimpleLongTextFormatter/widgets/dtable-markdown-viewer.js +4 -3
- package/lib/SingleSelectEditor/index.js +7 -7
- package/lib/SingleSelectFormatter/index.js +9 -8
- package/lib/TabBar/Tab.js +26 -24
- package/lib/TabBar/index.js +28 -24
- package/lib/Tabs/index.js +13 -10
- package/lib/TextEditor/index.js +23 -14
- package/lib/TextFormatter/index.js +4 -3
- package/lib/TextareaItem/index.js +53 -48
- package/lib/Toast/index.js +9 -8
- package/lib/UrlFormatter/index.js +4 -3
- package/lib/common/editor-base.js +12 -7
- package/lib/formatterConfig/index.js +3 -3
- package/lib/hooks/common-hooks.js +4 -2
- package/lib/select-editor/index.js +16 -13
- package/lib/select-editor/mb-editor/index.js +28 -17
- package/lib/select-editor/pc-editor/index.js +47 -32
- package/lib/toaster/alert.js +8 -7
- package/lib/toaster/toast.js +4 -3
- package/lib/toaster/toastManager.js +13 -13
- package/lib/toaster/toaster.js +12 -9
- package/lib/utils/cell.js +11 -8
- package/lib/utils/class.js +3 -3
- package/lib/utils/column-utils.js +14 -8
- package/lib/utils/departments.js +6 -5
- package/lib/utils/getLocale.js +11 -5
- package/lib/utils/object-utils.js +5 -4
- package/lib/utils/url.js +29 -22
- package/lib/utils/utils.js +6 -2
- package/package.json +2 -2
|
@@ -1,34 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
10
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
10
|
var _dtableUtils = require("dtable-utils");
|
|
12
11
|
var _Loading = _interopRequireDefault(require("../Loading"));
|
|
13
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
13
|
const ImagesLazyLoad = _ref => {
|
|
15
|
-
let
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
const
|
|
25
|
-
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
26
|
-
loadedImages = _useState4[0],
|
|
27
|
-
setLoadedImages = _useState4[1];
|
|
28
|
-
const _useState5 = (0, _react.useState)(0),
|
|
29
|
-
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
30
|
-
loadedCount = _useState6[0],
|
|
31
|
-
setLoadedCount = _useState6[1];
|
|
14
|
+
let {
|
|
15
|
+
images,
|
|
16
|
+
server,
|
|
17
|
+
onImageClick,
|
|
18
|
+
renderItem,
|
|
19
|
+
dtableUuid
|
|
20
|
+
} = _ref;
|
|
21
|
+
const [currentImages, setCurrentImages] = (0, _react.useState)(images);
|
|
22
|
+
const [loadedImages, setLoadedImages] = (0, _react.useState)([]);
|
|
23
|
+
const [loadedCount, setLoadedCount] = (0, _react.useState)(0);
|
|
32
24
|
const lazyLoadImage = (url, resolve, reject) => {
|
|
33
25
|
if (!url) {
|
|
34
26
|
reject('img path is required');
|
|
@@ -63,18 +63,20 @@ class ImageFormatter extends _react.default.Component {
|
|
|
63
63
|
this.canRotate = props.rotateImage && !props.readOnly;
|
|
64
64
|
}
|
|
65
65
|
render() {
|
|
66
|
-
const
|
|
67
|
-
isSample
|
|
68
|
-
value
|
|
69
|
-
server
|
|
70
|
-
containerClassName
|
|
71
|
-
lightboxClassName
|
|
72
|
-
readOnly
|
|
73
|
-
dtableUuid
|
|
66
|
+
const {
|
|
67
|
+
isSample,
|
|
68
|
+
value,
|
|
69
|
+
server,
|
|
70
|
+
containerClassName,
|
|
71
|
+
lightboxClassName,
|
|
72
|
+
readOnly,
|
|
73
|
+
dtableUuid
|
|
74
|
+
} = this.props;
|
|
74
75
|
const className = (0, _classnames.default)('dtable-ui cell-formatter-container image-formatter', containerClassName);
|
|
75
|
-
const
|
|
76
|
-
isPreviewImage
|
|
77
|
-
previewImageIndex
|
|
76
|
+
const {
|
|
77
|
+
isPreviewImage,
|
|
78
|
+
previewImageIndex
|
|
79
|
+
} = this.state;
|
|
78
80
|
if (!Array.isArray(value) || value.length === 0) {
|
|
79
81
|
return null;
|
|
80
82
|
}
|
|
@@ -92,7 +94,7 @@ class ImageFormatter extends _react.default.Component {
|
|
|
92
94
|
alt: ""
|
|
93
95
|
}), value.length !== 1 && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
94
96
|
className: "image-item-count",
|
|
95
|
-
children:
|
|
97
|
+
children: `+${value.length}`
|
|
96
98
|
})]
|
|
97
99
|
});
|
|
98
100
|
}
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
9
8
|
var _react = _interopRequireDefault(require("react"));
|
|
10
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
10
|
var _reactImageLightbox = _interopRequireDefault(require("@seafile/react-image-lightbox"));
|
|
@@ -16,20 +15,20 @@ require("@seafile/react-image-lightbox/style.css");
|
|
|
16
15
|
require("./index.css");
|
|
17
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
17
|
function ImagePreviewerLightbox(props) {
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
isShowPreLine =
|
|
31
|
-
|
|
32
|
-
|
|
18
|
+
const {
|
|
19
|
+
imageItems,
|
|
20
|
+
imageIndex,
|
|
21
|
+
readOnly,
|
|
22
|
+
className,
|
|
23
|
+
server,
|
|
24
|
+
workspaceID,
|
|
25
|
+
dtableUuid,
|
|
26
|
+
deleteImage,
|
|
27
|
+
downloadImage,
|
|
28
|
+
onRotateImage,
|
|
29
|
+
isShowPreLine = true,
|
|
30
|
+
isShowNextLine = true
|
|
31
|
+
} = props;
|
|
33
32
|
const imageSrcList = imageItems.map(src => {
|
|
34
33
|
let name = '';
|
|
35
34
|
try {
|
|
@@ -62,10 +61,7 @@ function ImagePreviewerLightbox(props) {
|
|
|
62
61
|
};
|
|
63
62
|
});
|
|
64
63
|
const imagesLength = imageSrcList.length;
|
|
65
|
-
const
|
|
66
|
-
_React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2),
|
|
67
|
-
currentImageIndex = _React$useState2[0],
|
|
68
|
-
setCurrentImageIndex = _React$useState2[1];
|
|
64
|
+
const [currentImageIndex, setCurrentImageIndex] = _react.default.useState(imageIndex || 0);
|
|
69
65
|
const imageItem = imageSrcList[currentImageIndex];
|
|
70
66
|
const URL = imageItem ? imageItem.thumbnail : '';
|
|
71
67
|
const imageName = imageItem ? imageItem.name : '';
|
|
@@ -67,10 +67,10 @@ class ImageThumbnail extends _react.default.Component {
|
|
|
67
67
|
showTip: false
|
|
68
68
|
};
|
|
69
69
|
this.ref = null;
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
this.imageLoadingFailedUrl =
|
|
70
|
+
const {
|
|
71
|
+
mediaUrl = ''
|
|
72
|
+
} = props.config || {};
|
|
73
|
+
this.imageLoadingFailedUrl = `${mediaUrl}img/image-loading-failed.png`;
|
|
74
74
|
}
|
|
75
75
|
componentDidMount() {
|
|
76
76
|
this.getUrl(this.props.src);
|
|
@@ -81,13 +81,16 @@ class ImageThumbnail extends _react.default.Component {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
render() {
|
|
84
|
-
const
|
|
85
|
-
index
|
|
86
|
-
downloadImage
|
|
87
|
-
src
|
|
88
|
-
className
|
|
89
|
-
name
|
|
90
|
-
|
|
84
|
+
const {
|
|
85
|
+
index,
|
|
86
|
+
downloadImage,
|
|
87
|
+
src,
|
|
88
|
+
className,
|
|
89
|
+
name
|
|
90
|
+
} = this.props;
|
|
91
|
+
const {
|
|
92
|
+
imageThumbnailUrl
|
|
93
|
+
} = this.state;
|
|
91
94
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
92
95
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
93
96
|
className: (0, _classnames.default)('dtable-ui-image-thumbnail', className),
|
|
@@ -95,7 +98,7 @@ class ImageThumbnail extends _react.default.Component {
|
|
|
95
98
|
ref: ref => this.ref = ref,
|
|
96
99
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
97
100
|
src: imageThumbnailUrl,
|
|
98
|
-
id:
|
|
101
|
+
id: `item-image-${index}`,
|
|
99
102
|
alt: ""
|
|
100
103
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
101
104
|
className: "dtable-ui-image-icons-choice",
|
|
@@ -50,7 +50,9 @@ class NumberInput extends React.Component {
|
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
this.doBlur = ev => {
|
|
53
|
-
const
|
|
53
|
+
const {
|
|
54
|
+
value
|
|
55
|
+
} = this.state;
|
|
54
56
|
if (ev.target !== this.inputRef) {
|
|
55
57
|
this.onInputBlur(value);
|
|
56
58
|
}
|
|
@@ -61,7 +63,7 @@ class NumberInput extends React.Component {
|
|
|
61
63
|
if (this.props.autoAdjustHeight) {
|
|
62
64
|
this.getContainer().style.height = '0';
|
|
63
65
|
}
|
|
64
|
-
(0, _class.addClass)(customNumberKeyboard.antmKeyboard,
|
|
66
|
+
(0, _class.addClass)(customNumberKeyboard.antmKeyboard, `${this.props.keyboardPrefixCls}-wrapper-hide`);
|
|
65
67
|
}
|
|
66
68
|
// for unmount
|
|
67
69
|
this.removeBlurListener();
|
|
@@ -70,7 +72,9 @@ class NumberInput extends React.Component {
|
|
|
70
72
|
if (IS_REACT_16) {
|
|
71
73
|
this.keyBoard = null;
|
|
72
74
|
}
|
|
73
|
-
const
|
|
75
|
+
const {
|
|
76
|
+
focus
|
|
77
|
+
} = this.state;
|
|
74
78
|
if (focus) {
|
|
75
79
|
this.setState({
|
|
76
80
|
focus: false
|
|
@@ -82,7 +86,9 @@ class NumberInput extends React.Component {
|
|
|
82
86
|
}
|
|
83
87
|
};
|
|
84
88
|
this.onInputFocus = () => {
|
|
85
|
-
const
|
|
89
|
+
const {
|
|
90
|
+
value
|
|
91
|
+
} = this.state;
|
|
86
92
|
this.props.onFocus(value);
|
|
87
93
|
this.setState({
|
|
88
94
|
focus: true
|
|
@@ -92,10 +98,11 @@ class NumberInput extends React.Component {
|
|
|
92
98
|
if (customNumberKeyboard.antmKeyboard) {
|
|
93
99
|
if (this.props.autoAdjustHeight) {
|
|
94
100
|
const keyBoardHeight = customNumberKeyboard.antmKeyboard.offsetHeight;
|
|
95
|
-
this.getContainer().style.height =
|
|
101
|
+
this.getContainer().style.height = `${keyBoardHeight}px`;
|
|
96
102
|
if (this.inputRef) {
|
|
97
|
-
const
|
|
98
|
-
bottom
|
|
103
|
+
const {
|
|
104
|
+
bottom
|
|
105
|
+
} = this.inputRef.getBoundingClientRect();
|
|
99
106
|
const clientHeight = window.innerHeight;
|
|
100
107
|
// 计算输入框距离视窗的底部距离
|
|
101
108
|
const distance = clientHeight - bottom;
|
|
@@ -104,24 +111,30 @@ class NumberInput extends React.Component {
|
|
|
104
111
|
}
|
|
105
112
|
}
|
|
106
113
|
}
|
|
107
|
-
(0, _class.removeClass)(customNumberKeyboard.antmKeyboard,
|
|
114
|
+
(0, _class.removeClass)(customNumberKeyboard.antmKeyboard, `${this.props.keyboardPrefixCls}-wrapper-hide`);
|
|
108
115
|
}
|
|
109
116
|
customNumberKeyboard.confirmDisabled = value === '';
|
|
110
117
|
if (customNumberKeyboard.confirmKeyboardItem) {
|
|
111
118
|
if (value === '') {
|
|
112
|
-
(0, _class.addClass)(customNumberKeyboard.confirmKeyboardItem,
|
|
119
|
+
(0, _class.addClass)(customNumberKeyboard.confirmKeyboardItem, `${this.props.keyboardPrefixCls}-item-disabled`);
|
|
113
120
|
} else {
|
|
114
|
-
(0, _class.removeClass)(customNumberKeyboard.confirmKeyboardItem,
|
|
121
|
+
(0, _class.removeClass)(customNumberKeyboard.confirmKeyboardItem, `${this.props.keyboardPrefixCls}-item-disabled`);
|
|
115
122
|
}
|
|
116
123
|
}
|
|
117
124
|
}
|
|
118
125
|
});
|
|
119
126
|
};
|
|
120
127
|
this.onKeyboardClick = KeyboardItemValue => {
|
|
121
|
-
const
|
|
122
|
-
|
|
128
|
+
const {
|
|
129
|
+
maxLength
|
|
130
|
+
} = this.props;
|
|
131
|
+
const {
|
|
132
|
+
value
|
|
133
|
+
} = this.state;
|
|
123
134
|
// tslint:disable-next-line:no-this-assignment
|
|
124
|
-
const
|
|
135
|
+
const {
|
|
136
|
+
onChange
|
|
137
|
+
} = this;
|
|
125
138
|
let valueAfterChange;
|
|
126
139
|
// 删除键
|
|
127
140
|
if (KeyboardItemValue === 'delete') {
|
|
@@ -166,9 +179,9 @@ class NumberInput extends React.Component {
|
|
|
166
179
|
customNumberKeyboard.confirmDisabled = valueAfterChange === '';
|
|
167
180
|
if (customNumberKeyboard.confirmKeyboardItem) {
|
|
168
181
|
if (valueAfterChange === '') {
|
|
169
|
-
(0, _class.addClass)(customNumberKeyboard.confirmKeyboardItem,
|
|
182
|
+
(0, _class.addClass)(customNumberKeyboard.confirmKeyboardItem, `${this.props.keyboardPrefixCls}-item-disabled`);
|
|
170
183
|
} else {
|
|
171
|
-
(0, _class.removeClass)(customNumberKeyboard.confirmKeyboardItem,
|
|
184
|
+
(0, _class.removeClass)(customNumberKeyboard.confirmKeyboardItem, `${this.props.keyboardPrefixCls}-item-disabled`);
|
|
172
185
|
}
|
|
173
186
|
}
|
|
174
187
|
}
|
|
@@ -180,7 +193,9 @@ class NumberInput extends React.Component {
|
|
|
180
193
|
// this focus may invocked by users page button click, so this click may trigger blurEventListener at the same time
|
|
181
194
|
this.renderCustomKeyboard();
|
|
182
195
|
this.removeBlurListener();
|
|
183
|
-
const
|
|
196
|
+
const {
|
|
197
|
+
focus
|
|
198
|
+
} = this.state;
|
|
184
199
|
if (!focus) {
|
|
185
200
|
this.onInputFocus();
|
|
186
201
|
}
|
|
@@ -208,14 +223,15 @@ class NumberInput extends React.Component {
|
|
|
208
223
|
this.unLinkInput();
|
|
209
224
|
}
|
|
210
225
|
getComponent() {
|
|
211
|
-
const
|
|
212
|
-
confirmLabel
|
|
213
|
-
backspaceLabel
|
|
214
|
-
cancelKeyboardLabel
|
|
215
|
-
keyboardPrefixCls
|
|
216
|
-
moneyKeyboardWrapProps
|
|
217
|
-
moneyKeyboardHeader
|
|
218
|
-
disabledKeys
|
|
226
|
+
const {
|
|
227
|
+
confirmLabel,
|
|
228
|
+
backspaceLabel,
|
|
229
|
+
cancelKeyboardLabel,
|
|
230
|
+
keyboardPrefixCls,
|
|
231
|
+
moneyKeyboardWrapProps,
|
|
232
|
+
moneyKeyboardHeader,
|
|
233
|
+
disabledKeys
|
|
234
|
+
} = this.props;
|
|
219
235
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_customKeyboard.default, {
|
|
220
236
|
ref: this.saveRef,
|
|
221
237
|
onClick: this.onKeyboardClick,
|
|
@@ -229,11 +245,13 @@ class NumberInput extends React.Component {
|
|
|
229
245
|
});
|
|
230
246
|
}
|
|
231
247
|
getContainer() {
|
|
232
|
-
const
|
|
233
|
-
|
|
248
|
+
const {
|
|
249
|
+
keyboardPrefixCls
|
|
250
|
+
} = this.props;
|
|
251
|
+
let container = document.querySelector(`#${keyboardPrefixCls}-container`);
|
|
234
252
|
if (!container) {
|
|
235
253
|
container = document.createElement('div');
|
|
236
|
-
container.setAttribute('id',
|
|
254
|
+
container.setAttribute('id', `${keyboardPrefixCls}-container`);
|
|
237
255
|
document.body.appendChild(container);
|
|
238
256
|
}
|
|
239
257
|
this.container = container;
|
|
@@ -258,14 +276,16 @@ class NumberInput extends React.Component {
|
|
|
258
276
|
return this.keyBoard;
|
|
259
277
|
}
|
|
260
278
|
render() {
|
|
261
|
-
const
|
|
262
|
-
placeholder
|
|
263
|
-
disabled
|
|
264
|
-
editable
|
|
265
|
-
moneyKeyboardAlign
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
279
|
+
const {
|
|
280
|
+
placeholder,
|
|
281
|
+
disabled,
|
|
282
|
+
editable,
|
|
283
|
+
moneyKeyboardAlign
|
|
284
|
+
} = this.props;
|
|
285
|
+
const {
|
|
286
|
+
focus,
|
|
287
|
+
value
|
|
288
|
+
} = this.state;
|
|
269
289
|
const preventKeyboard = disabled || !editable;
|
|
270
290
|
const fakeInputCls = (0, _classnames.default)('fake-input', {
|
|
271
291
|
focus,
|
|
@@ -1,25 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
3
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = exports.KeyboardItem = void 0;
|
|
9
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
10
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
|
|
11
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
10
|
var React = _interopRequireWildcard(require("react"));
|
|
13
11
|
var _rmcFeedback = _interopRequireDefault(require("rmc-feedback"));
|
|
14
12
|
var _exenv = require("../utils/exenv");
|
|
15
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
-
const _excluded = ["prefixCls", "onClick", "className", "disabled", "children", "tdRef", "label", "iconOnly"];
|
|
17
14
|
/**
|
|
18
15
|
* determines whether an array includes a certain value among its entries, returning true or false as appropriate.
|
|
19
16
|
* @param {array} arr The array to search in
|
|
20
17
|
* @param {any} item The value to search for
|
|
21
|
-
*/
|
|
22
|
-
function includes(arr, item) {
|
|
18
|
+
*/function includes(arr, item) {
|
|
23
19
|
if (!arr || !arr.length || !item) {
|
|
24
20
|
return false;
|
|
25
21
|
}
|
|
@@ -32,16 +28,17 @@ function includes(arr, item) {
|
|
|
32
28
|
}
|
|
33
29
|
class KeyboardItem extends React.Component {
|
|
34
30
|
render() {
|
|
35
|
-
const
|
|
36
|
-
prefixCls
|
|
37
|
-
onClick
|
|
38
|
-
className
|
|
39
|
-
disabled
|
|
40
|
-
children
|
|
41
|
-
tdRef
|
|
42
|
-
label
|
|
43
|
-
iconOnly
|
|
44
|
-
restProps
|
|
31
|
+
const {
|
|
32
|
+
prefixCls,
|
|
33
|
+
onClick,
|
|
34
|
+
className,
|
|
35
|
+
disabled,
|
|
36
|
+
children,
|
|
37
|
+
tdRef,
|
|
38
|
+
label,
|
|
39
|
+
iconOnly,
|
|
40
|
+
...restProps
|
|
41
|
+
} = this.props;
|
|
45
42
|
let value = children;
|
|
46
43
|
if (className === 'keyboard-delete') {
|
|
47
44
|
value = 'delete';
|
|
@@ -51,26 +48,26 @@ class KeyboardItem extends React.Component {
|
|
|
51
48
|
value = 'confirm';
|
|
52
49
|
}
|
|
53
50
|
const extraCls = {
|
|
54
|
-
[
|
|
51
|
+
[`${prefixCls}-item-disabled`]: disabled
|
|
55
52
|
};
|
|
56
|
-
const wrapCls = (0, _classnames.default)(
|
|
53
|
+
const wrapCls = (0, _classnames.default)(`${prefixCls}-item`, className, extraCls);
|
|
57
54
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcFeedback.default, {
|
|
58
55
|
disabled: disabled,
|
|
59
|
-
activeClassName:
|
|
60
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("td",
|
|
56
|
+
activeClassName: `${prefixCls}-item-active`,
|
|
57
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("td", {
|
|
61
58
|
ref: tdRef
|
|
62
59
|
// tslint:disable-next-line:jsx-no-multiline-js
|
|
63
60
|
,
|
|
64
61
|
onTouchEnd: e => {
|
|
65
62
|
onClick(e, value);
|
|
66
63
|
},
|
|
67
|
-
className: wrapCls
|
|
68
|
-
|
|
64
|
+
className: wrapCls,
|
|
65
|
+
...restProps,
|
|
69
66
|
children: [children, iconOnly && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
70
67
|
className: "sr-only",
|
|
71
68
|
children: label
|
|
72
69
|
})]
|
|
73
|
-
})
|
|
70
|
+
})
|
|
74
71
|
});
|
|
75
72
|
}
|
|
76
73
|
}
|
|
@@ -108,22 +105,23 @@ class CustomKeyboard extends React.Component {
|
|
|
108
105
|
onClick: this.onKeyboardClick,
|
|
109
106
|
disabled: disabled,
|
|
110
107
|
children: item
|
|
111
|
-
},
|
|
108
|
+
}, `item-${item}-${index}`);
|
|
112
109
|
};
|
|
113
110
|
}
|
|
114
111
|
render() {
|
|
115
|
-
const
|
|
116
|
-
prefixCls
|
|
117
|
-
confirmLabel
|
|
118
|
-
backspaceLabel
|
|
119
|
-
cancelKeyboardLabel
|
|
120
|
-
wrapProps
|
|
121
|
-
header
|
|
122
|
-
|
|
123
|
-
|
|
112
|
+
const {
|
|
113
|
+
prefixCls,
|
|
114
|
+
confirmLabel,
|
|
115
|
+
backspaceLabel,
|
|
116
|
+
cancelKeyboardLabel,
|
|
117
|
+
wrapProps,
|
|
118
|
+
header
|
|
119
|
+
} = this.props;
|
|
120
|
+
const wrapperCls = (0, _classnames.default)(`${prefixCls}-wrapper`, `${prefixCls}-wrapper-hide`);
|
|
121
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
124
122
|
className: wrapperCls,
|
|
125
|
-
ref: el => this.antmKeyboard = el
|
|
126
|
-
|
|
123
|
+
ref: el => this.antmKeyboard = el,
|
|
124
|
+
...wrapProps,
|
|
127
125
|
children: [header && /*#__PURE__*/React.cloneElement(header, {
|
|
128
126
|
onClick: this.onKeyboardClick
|
|
129
127
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("table", {
|
|
@@ -131,11 +129,12 @@ class CustomKeyboard extends React.Component {
|
|
|
131
129
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("tr", {
|
|
132
130
|
children: [['1', '2', '3'].map((item, index) =>
|
|
133
131
|
// tslint:disable-next-line:jsx-no-multiline-js
|
|
134
|
-
this.renderKeyboardItem(item, index)), /*#__PURE__*/(0, _jsxRuntime.jsx)(KeyboardItem,
|
|
132
|
+
this.renderKeyboardItem(item, index)), /*#__PURE__*/(0, _jsxRuntime.jsx)(KeyboardItem, {
|
|
135
133
|
className: "keyboard-delete",
|
|
136
134
|
rowSpan: 2,
|
|
137
|
-
onClick: this.onKeyboardClick
|
|
138
|
-
|
|
135
|
+
onClick: this.onKeyboardClick,
|
|
136
|
+
...this.getAriaAttr(backspaceLabel)
|
|
137
|
+
})]
|
|
139
138
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("tr", {
|
|
140
139
|
children: ['4', '5', '6'].map((item, index) =>
|
|
141
140
|
// tslint:disable-next-line:jsx-no-multiline-js
|
|
@@ -153,14 +152,15 @@ class CustomKeyboard extends React.Component {
|
|
|
153
152
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("tr", {
|
|
154
153
|
children: [['.', '0'].map((item, index) =>
|
|
155
154
|
// tslint:disable-next-line:jsx-no-multiline-js
|
|
156
|
-
this.renderKeyboardItem(item, index)), /*#__PURE__*/(0, _jsxRuntime.jsx)(KeyboardItem,
|
|
155
|
+
this.renderKeyboardItem(item, index)), /*#__PURE__*/(0, _jsxRuntime.jsx)(KeyboardItem, {
|
|
157
156
|
className: "keyboard-hide",
|
|
158
|
-
onClick: this.onKeyboardClick
|
|
159
|
-
|
|
157
|
+
onClick: this.onKeyboardClick,
|
|
158
|
+
...this.getAriaAttr(cancelKeyboardLabel)
|
|
159
|
+
})]
|
|
160
160
|
})]
|
|
161
161
|
})
|
|
162
162
|
})]
|
|
163
|
-
})
|
|
163
|
+
});
|
|
164
164
|
}
|
|
165
165
|
getAriaAttr(label) {
|
|
166
166
|
if (_exenv.IS_IOS) {
|