dtable-ui-component 6.0.25 → 6.0.26-beta
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/BodyPortal/index.js +29 -0
- package/lib/CheckboxEditor/index.js +17 -118
- package/lib/CheckboxEditor/lg.js +118 -0
- package/lib/CheckboxEditor/sm.js +101 -0
- package/lib/CollaboratorEditor/index.js +11 -4
- package/lib/CollaboratorEditor/{pc-collaborator-editor → lg}/index.js +2 -2
- package/lib/CollaboratorEditor/sm/index.css +41 -0
- package/lib/CollaboratorEditor/sm/index.js +87 -0
- package/lib/DTableCommonAddTool/index.js +1 -3
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +3 -3
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +4 -4
- package/lib/DateEditor/index.js +31 -30
- package/lib/DateEditor/{pc-date-editor-popover.js → large.js} +6 -6
- package/lib/DateEditor/sm/custom-rc-calendar.css +118 -0
- package/lib/DateEditor/sm/index.css +40 -0
- package/lib/DateEditor/{mb-date-editor-popover → sm}/index.js +18 -33
- package/lib/{Department-editor → DepartmentEditor}/constants.js +7 -0
- package/lib/{Department-editor → DepartmentEditor}/department-multiple-select/index.css +4 -1
- package/lib/{Department-editor → DepartmentEditor}/department-multiple-select/index.js +7 -4
- package/lib/DepartmentEditor/index.js +25 -0
- package/lib/{Department-editor → DepartmentEditor/lg}/department-single-select.js +10 -7
- package/lib/{Department-editor → DepartmentEditor/lg}/index.css +12 -3
- package/lib/{Department-editor → DepartmentEditor/lg}/index.js +8 -25
- package/lib/DepartmentEditor/sm/index.css +4 -0
- package/lib/DepartmentEditor/sm/index.js +220 -0
- package/lib/DigitalSignEditor/index.js +17 -173
- package/lib/DigitalSignEditor/lg/index.js +181 -0
- package/lib/DigitalSignEditor/sm/index.css +35 -0
- package/lib/DigitalSignEditor/sm/index.js +139 -0
- package/lib/FileEditor/files-previewer/index.js +16 -267
- package/lib/FileEditor/files-previewer/{file-previewer → lg/file-previewer}/dropdown-menu.js +1 -1
- package/lib/FileEditor/files-previewer/{file-previewer → lg/file-previewer}/file-name-editor/index.js +1 -1
- package/lib/FileEditor/files-previewer/{file-previewer → lg/file-previewer}/index.css +0 -2
- package/lib/FileEditor/files-previewer/{file-previewer → lg/file-previewer}/index.js +2 -2
- package/lib/FileEditor/files-previewer/lg/index.js +276 -0
- package/lib/FileEditor/files-previewer/sm/file-previewer/index.js +122 -0
- package/lib/FileEditor/files-previewer/sm/index.css +39 -0
- package/lib/FileEditor/files-previewer/sm/index.js +59 -0
- package/lib/FileEditor/index.css +0 -5
- package/lib/FileEditor/index.js +16 -264
- package/lib/FileEditor/lg/addition-previewer/index.css +1 -0
- package/lib/FileEditor/{addition-previewer → lg/addition-previewer}/index.js +1 -1
- package/lib/FileEditor/lg/addition-previewer/local-file-addition/index.css +1 -0
- package/lib/FileEditor/{addition-previewer → lg/addition-previewer}/local-file-addition/index.js +4 -4
- package/lib/FileEditor/lg/index.css +5 -0
- package/lib/FileEditor/lg/index.js +274 -0
- package/lib/FileEditor/sm/index.css +10 -0
- package/lib/FileEditor/sm/index.js +131 -0
- package/lib/FileFormatter/index.js +98 -38
- package/lib/FileItemFormatter/index.js +3 -1
- package/lib/FormulaFormatter/index.css +5 -5
- package/lib/GeolocationEditor/index.js +76 -231
- package/lib/GeolocationEditor/{country-editor.js → lg/country-editor.js} +5 -49
- package/lib/GeolocationEditor/{index.css → lg/index.css} +1 -2
- package/lib/GeolocationEditor/lg/index.js +247 -0
- package/lib/GeolocationEditor/{location-editor.js → lg/location-editor.js} +8 -41
- package/lib/GeolocationEditor/{map-editor → lg/map-editor}/index.js +6 -6
- package/lib/GeolocationEditor/{map-editor → lg/map-editor}/large-editor/index.js +7 -7
- package/lib/GeolocationEditor/{map-selection-editor → lg/map-selection-editor}/index.js +7 -7
- package/lib/GeolocationEditor/{map-selection-editor → lg/map-selection-editor}/large-editor/index.js +7 -7
- package/lib/GeolocationEditor/{province-city-editor.js → lg/province-city-editor.js} +7 -38
- package/lib/GeolocationEditor/{province-editor.js → lg/province-editor.js} +7 -31
- package/lib/GeolocationEditor/{selector-header-item.js → lg/selector-header-item.js} +1 -1
- package/lib/GeolocationEditor/map-editor-utils.js +6 -2
- package/lib/GeolocationEditor/sm/country-editor.js +70 -0
- package/lib/GeolocationEditor/sm/index.css +11 -0
- package/lib/GeolocationEditor/sm/index.js +125 -0
- package/lib/GeolocationEditor/sm/location-editor.js +93 -0
- package/lib/GeolocationEditor/sm/map-editor/index.css +11 -0
- package/lib/GeolocationEditor/sm/map-editor/index.js +469 -0
- package/lib/GeolocationEditor/sm/map-selection-editor/index.css +158 -0
- package/lib/GeolocationEditor/sm/map-selection-editor/index.js +525 -0
- package/lib/GeolocationEditor/sm/province-city-editor.js +68 -0
- package/lib/GeolocationEditor/sm/province-editor.js +67 -0
- package/lib/ImageEditor/images-previewer/image-preview/index.js +2 -2
- package/lib/ImageEditor/images-previewer/index.js +3 -3
- package/lib/ImageEditor/index.css +17 -16
- package/lib/ImageEditor/index.js +16 -184
- package/lib/ImageEditor/{addition-previewer → lg/addition-previewer}/image-link/index.js +1 -1
- package/lib/ImageEditor/{addition-previewer → lg/addition-previewer}/index.js +1 -1
- package/lib/ImageEditor/{addition-previewer → lg/addition-previewer}/local-image-addition/index.js +4 -4
- package/lib/ImageEditor/lg/images-previewer/index.js +140 -0
- package/lib/ImageEditor/lg/index.css +24 -0
- package/lib/ImageEditor/lg/index.js +194 -0
- package/lib/ImageEditor/sm/index.css +29 -0
- package/lib/ImageEditor/sm/index.js +131 -0
- package/lib/ImageThumbnail/index.js +2 -1
- package/lib/LinkEditor/pc-link-editor-popover/index.css +1 -1
- package/lib/LinkEditor/pc-link-editor-popover/index.js +1 -1
- package/lib/MobileFullScreenPage/body/index.css +9 -0
- package/lib/MobileFullScreenPage/body/index.js +23 -0
- package/lib/MobileFullScreenPage/header/index.css +35 -0
- package/lib/MobileFullScreenPage/header/index.js +38 -0
- package/lib/MobileFullScreenPage/index.css +13 -0
- package/lib/MobileFullScreenPage/index.js +81 -0
- package/lib/MobileModal/index.js +41 -0
- package/lib/MobileOperationSheet/index.css +27 -0
- package/lib/MobileOperationSheet/index.js +92 -0
- package/lib/MobileSelectorEditor/empty/index.css +3 -0
- package/lib/MobileSelectorEditor/empty/index.js +23 -0
- package/lib/MobileSelectorEditor/index.css +32 -0
- package/lib/MobileSelectorEditor/index.js +57 -0
- package/lib/MobileSelectorEditor/option/index.css +28 -0
- package/lib/MobileSelectorEditor/option/index.js +36 -0
- package/lib/MobileSelectorEditor/options/index.css +8 -0
- package/lib/MobileSelectorEditor/options/index.js +18 -0
- package/lib/MobileSelectorEditor/search/index.css +7 -0
- package/lib/MobileSelectorEditor/search/index.js +26 -0
- package/lib/MobileUpload/index.css +1 -0
- package/lib/MobileUpload/index.js +160 -0
- package/lib/MultipleSelectEditor/index.js +3 -10
- package/lib/RowExpand/index.js +19 -0
- package/lib/{RowExpandDialog → RowExpand/lg}/body/index.js +4 -4
- package/lib/{RowExpandDialog → RowExpand/lg}/column-content/index.js +2 -2
- package/lib/{RowExpandDialog → RowExpand/lg}/header/index.js +3 -3
- package/lib/{RowExpandDialog → RowExpand/lg}/index.js +6 -6
- package/lib/RowExpand/sm/body/index.css +173 -0
- package/lib/RowExpand/sm/body/index.js +111 -0
- package/lib/RowExpand/sm/column-content/index.css +27 -0
- package/lib/RowExpand/sm/column-content/index.js +25 -0
- package/lib/RowExpand/sm/index.css +0 -0
- package/lib/RowExpand/sm/index.js +172 -0
- package/lib/RowExpandEditor/RightAngle/index.css +6 -0
- package/lib/RowExpandEditor/RightAngle/index.js +17 -0
- package/lib/RowExpandEditor/RowExpandAddBtn/index.js +12 -17
- package/lib/RowExpandEditor/RowExpandAddBtn/lg/index.js +26 -0
- package/lib/RowExpandEditor/RowExpandAddBtn/sm/index.css +3 -0
- package/lib/RowExpandEditor/RowExpandAddBtn/sm/index.js +19 -0
- package/lib/RowExpandEditor/RowExpandCheckboxEditor/index.js +10 -33
- package/lib/RowExpandEditor/RowExpandCheckboxEditor/lg.js +42 -0
- package/lib/RowExpandEditor/RowExpandCheckboxEditor/sm/index.css +6 -0
- package/lib/RowExpandEditor/RowExpandCheckboxEditor/sm/index.js +39 -0
- package/lib/RowExpandEditor/RowExpandCollaboratorEditor/index.js +10 -223
- package/lib/RowExpandEditor/RowExpandCollaboratorEditor/{index.css → lg/index.css} +1 -1
- package/lib/RowExpandEditor/RowExpandCollaboratorEditor/lg/index.js +231 -0
- package/lib/RowExpandEditor/RowExpandCollaboratorEditor/sm/index.css +9 -0
- package/lib/RowExpandEditor/RowExpandCollaboratorEditor/sm/index.js +163 -0
- package/lib/RowExpandEditor/RowExpandDateEditor/index.js +10 -121
- package/lib/RowExpandEditor/RowExpandDateEditor/lg.js +130 -0
- package/lib/RowExpandEditor/RowExpandDateEditor/sm.js +84 -0
- package/lib/RowExpandEditor/RowExpandDepartmentEditor/index.js +11 -96
- package/lib/RowExpandEditor/RowExpandDepartmentEditor/lg.js +101 -0
- package/lib/RowExpandEditor/RowExpandDepartmentEditor/sm.js +65 -0
- package/lib/RowExpandEditor/RowExpandDigitalSignEditor/index.js +10 -199
- package/lib/RowExpandEditor/RowExpandDigitalSignEditor/{index.css → lg/index.css} +1 -1
- package/lib/RowExpandEditor/RowExpandDigitalSignEditor/lg/index.js +208 -0
- package/lib/RowExpandEditor/RowExpandDigitalSignEditor/sm/index.css +1 -0
- package/lib/RowExpandEditor/RowExpandDigitalSignEditor/sm/index.js +130 -0
- package/lib/RowExpandEditor/RowExpandDurationEditor/index.js +11 -97
- package/lib/RowExpandEditor/RowExpandDurationEditor/lg.js +105 -0
- package/lib/RowExpandEditor/RowExpandDurationEditor/sm.js +71 -0
- package/lib/RowExpandEditor/RowExpandEmailEditor/index.js +10 -116
- package/lib/RowExpandEditor/RowExpandEmailEditor/lg/index.css +1 -0
- package/lib/RowExpandEditor/RowExpandEmailEditor/lg/index.js +125 -0
- package/lib/RowExpandEditor/RowExpandEmailEditor/sm/index.css +1 -0
- package/lib/RowExpandEditor/RowExpandEmailEditor/sm/index.js +84 -0
- package/lib/RowExpandEditor/RowExpandFileEditor/index.js +10 -139
- package/lib/RowExpandEditor/RowExpandFileEditor/lg/index.css +1 -0
- package/lib/RowExpandEditor/RowExpandFileEditor/lg/index.js +148 -0
- package/lib/RowExpandEditor/RowExpandFileEditor/sm/index.js +116 -0
- package/lib/RowExpandEditor/RowExpandGeolocationEditor/index.js +10 -156
- package/lib/RowExpandEditor/RowExpandGeolocationEditor/lg/index.js +164 -0
- package/lib/RowExpandEditor/RowExpandGeolocationEditor/sm/index.css +0 -0
- package/lib/RowExpandEditor/RowExpandGeolocationEditor/sm/index.js +101 -0
- package/lib/RowExpandEditor/RowExpandImageEditor/index.js +10 -161
- package/lib/RowExpandEditor/RowExpandImageEditor/lg/index.js +170 -0
- package/lib/RowExpandEditor/RowExpandImageEditor/sm/index.css +25 -0
- package/lib/RowExpandEditor/RowExpandImageEditor/sm/index.js +109 -0
- package/lib/RowExpandEditor/RowExpandLongTextEditor/index.js +11 -115
- package/lib/RowExpandEditor/RowExpandLongTextEditor/lg/index.js +123 -0
- package/lib/RowExpandEditor/RowExpandLongTextEditor/sm/editor/index.css +10 -0
- package/lib/RowExpandEditor/RowExpandLongTextEditor/sm/editor/index.js +80 -0
- package/lib/RowExpandEditor/RowExpandLongTextEditor/sm/index.css +3 -0
- package/lib/RowExpandEditor/RowExpandLongTextEditor/sm/index.js +91 -0
- package/lib/RowExpandEditor/RowExpandMultipleSelectEditor/index.js +10 -238
- package/lib/RowExpandEditor/RowExpandMultipleSelectEditor/{index.css → lg/index.css} +1 -1
- package/lib/RowExpandEditor/RowExpandMultipleSelectEditor/lg/index.js +247 -0
- package/lib/RowExpandEditor/RowExpandMultipleSelectEditor/sm/index.css +0 -0
- package/lib/RowExpandEditor/RowExpandMultipleSelectEditor/sm/index.js +155 -0
- package/lib/RowExpandEditor/RowExpandNumberEditor/index.js +10 -96
- package/lib/RowExpandEditor/RowExpandNumberEditor/lg.js +105 -0
- package/lib/RowExpandEditor/RowExpandNumberEditor/sm/index.css +3 -0
- package/lib/RowExpandEditor/RowExpandNumberEditor/sm/index.js +76 -0
- package/lib/RowExpandEditor/RowExpandRateEditor/index.css +21 -0
- package/lib/RowExpandEditor/RowExpandRateEditor/index.js +10 -142
- package/lib/RowExpandEditor/RowExpandRateEditor/lg.js +151 -0
- package/lib/RowExpandEditor/RowExpandRateEditor/sm.js +92 -0
- package/lib/RowExpandEditor/RowExpandSingleSelectorEditor/index.js +11 -198
- package/lib/RowExpandEditor/RowExpandSingleSelectorEditor/lg/index.js +206 -0
- package/lib/RowExpandEditor/RowExpandSingleSelectorEditor/sm/index.css +8 -0
- package/lib/RowExpandEditor/RowExpandSingleSelectorEditor/sm/index.js +134 -0
- package/lib/RowExpandEditor/RowExpandTextEditor/index.js +11 -128
- package/lib/RowExpandEditor/RowExpandTextEditor/lg/index.js +136 -0
- package/lib/RowExpandEditor/RowExpandTextEditor/sm/index.css +14 -0
- package/lib/RowExpandEditor/RowExpandTextEditor/sm/index.js +37 -0
- package/lib/RowExpandEditor/RowExpandUrlEditor/index.js +10 -121
- package/lib/RowExpandEditor/RowExpandUrlEditor/lg/index.js +130 -0
- package/lib/RowExpandEditor/RowExpandUrlEditor/sm/index.css +17 -0
- package/lib/RowExpandEditor/RowExpandUrlEditor/sm/index.js +87 -0
- package/lib/RowExpandFormatter/RowExpandDepartmentFormatter/index.js +10 -18
- package/lib/RowExpandFormatter/RowExpandDepartmentFormatter/lg.js +27 -0
- package/lib/RowExpandFormatter/RowExpandDepartmentFormatter/sm.js +20 -0
- package/lib/RowExpandFormatter/RowExpandEmailFormatter/index.css +4 -4
- package/lib/RowExpandFormatter/RowExpandRateFormatter/index.css +1 -1
- package/lib/RowExpandFormatter/index.css +18 -18
- package/lib/RowExpandFormatter/index.js +1 -1
- package/lib/SelectItem/index.js +57 -33
- package/lib/SingleSelectEditor/index.js +3 -10
- package/lib/SvgIcon/index.js +2 -1
- package/lib/constants/file.js +1 -0
- package/lib/constants/index.js +3 -2
- package/lib/index.js +42 -98
- package/lib/locales/zh-CN.json +1 -1
- package/lib/select-editor/index.js +19 -21
- package/lib/select-editor/{pc-select-editor → lg}/index.css +1 -1
- package/lib/select-editor/{pc-select-editor → lg}/index.js +10 -10
- package/lib/select-editor/sm/index.css +1 -0
- package/lib/select-editor/sm/index.js +104 -0
- package/lib/utils/get-event-transfer.js +2 -1
- package/lib/utils/utils.js +11 -2
- package/package.json +3 -12
- package/lib/ActionSheet/index.js +0 -194
- package/lib/ActionSheet/style/index.css +0 -365
- package/lib/ActivityIndicator/index.css +0 -108
- package/lib/ActivityIndicator/index.js +0 -76
- package/lib/Badge/index.css +0 -96
- package/lib/Badge/index.js +0 -65
- package/lib/CollaboratorEditor/mb-collaborator-editor/index.css +0 -85
- package/lib/CollaboratorEditor/mb-collaborator-editor/index.js +0 -148
- package/lib/DateEditor/mb-date-editor-popover/custom-rc-calendar.css +0 -118
- package/lib/DateEditor/mb-date-editor-popover/index.css +0 -45
- package/lib/DatePicker/index.js +0 -120
- package/lib/DatePicker/locale/en_US.js +0 -14
- package/lib/DatePicker/locale/ru_RU.js +0 -14
- package/lib/DatePicker/locale/sv_SE.js +0 -14
- package/lib/DatePicker/locale/zh_CN.js +0 -14
- package/lib/DatePicker/style/index.css +0 -290
- package/lib/DatePicker/utils.js +0 -36
- package/lib/Drawer/index.css +0 -142
- package/lib/Drawer/index.js +0 -21
- package/lib/FileEditor/addition-previewer/index.css +0 -1
- package/lib/FileEditor/addition-previewer/local-file-addition/index.css +0 -1
- package/lib/Icon/index.css +0 -50
- package/lib/Icon/index.js +0 -34
- package/lib/Icon/load-sprite.js +0 -56
- package/lib/InputItem/custom-input.js +0 -321
- package/lib/InputItem/custom-keyboard.js +0 -162
- package/lib/InputItem/index.js +0 -388
- package/lib/InputItem/input.js +0 -45
- package/lib/InputItem/locale/en_US.js +0 -12
- package/lib/InputItem/locale/ru_RU.js +0 -12
- package/lib/InputItem/locale/sv_SE.js +0 -12
- package/lib/InputItem/locale/zh_CN.js +0 -12
- package/lib/InputItem/portal.js +0 -23
- package/lib/InputItem/style/index.css +0 -512
- package/lib/List/index.css +0 -381
- package/lib/List/index.js +0 -41
- package/lib/List/list-item.js +0 -169
- package/lib/Modal/alert.js +0 -82
- package/lib/Modal/index.js +0 -15
- package/lib/Modal/modal.js +0 -118
- package/lib/Modal/operation.js +0 -77
- package/lib/Modal/prompt.js +0 -207
- package/lib/Picker/AbstractPicker.js +0 -190
- package/lib/Picker/index.js +0 -28
- package/lib/Picker/locale/en_US.js +0 -12
- package/lib/Picker/locale/ru_RU.js +0 -12
- package/lib/Picker/locale/sv_SE.js +0 -12
- package/lib/Picker/locale/zh_CN.js +0 -12
- package/lib/Picker/popupProps.js +0 -12
- package/lib/Picker/style/index.css +0 -141
- package/lib/Popover/index.js +0 -62
- package/lib/Popover/item.js +0 -55
- package/lib/Popover/style/index.css +0 -229
- package/lib/Progress/index.css +0 -22
- package/lib/Progress/index.js +0 -65
- package/lib/Radio/Radio.js +0 -47
- package/lib/Radio/RadioItem.js +0 -57
- package/lib/Radio/index.css +0 -90
- package/lib/Radio/index.js +0 -12
- package/lib/RowExpandEditor/RowExpandEmailEditor/index.css +0 -2
- package/lib/RowExpandEditor/RowExpandFileEditor/index.css +0 -1
- package/lib/TabBar/Tab.js +0 -76
- package/lib/TabBar/index.css +0 -138
- package/lib/TabBar/index.js +0 -128
- package/lib/Tabs/index.css +0 -443
- package/lib/Tabs/index.js +0 -38
- package/lib/TextareaItem/index.css +0 -231
- package/lib/TextareaItem/index.js +0 -231
- package/lib/Toast/index.css +0 -65
- package/lib/Toast/index.js +0 -131
- package/lib/_util/class.js +0 -34
- package/lib/_util/closest.js +0 -17
- package/lib/_util/exenv.js +0 -8
- package/lib/_util/getDataAttr.js +0 -15
- package/lib/_util/getLocale.js +0 -42
- package/lib/select-editor/mb-select-editor/index.css +0 -127
- package/lib/select-editor/mb-select-editor/index.js +0 -197
- package/lib/select-editor/select-editor-option.js +0 -84
- /package/lib/CollaboratorEditor/{pc-collaborator-editor → lg}/index.css +0 -0
- /package/lib/{Department-editor → DepartmentEditor}/selected-departments/index.css +0 -0
- /package/lib/{Department-editor → DepartmentEditor}/selected-departments/index.js +0 -0
- /package/lib/{Department-editor → DepartmentEditor}/utils.js +0 -0
- /package/lib/DigitalSignEditor/{index.css → lg/index.css} +0 -0
- /package/lib/FileEditor/files-previewer/{file-previewer → lg/file-previewer}/file-name-editor/index.css +0 -0
- /package/lib/GeolocationEditor/{map-editor → lg/map-editor}/large-editor/index.css +0 -0
- /package/lib/GeolocationEditor/{map-selection-editor → lg/map-selection-editor}/large-editor/index.css +0 -0
- /package/lib/GeolocationEditor/{parse-geolocation.js → lg/parse-geolocation.js} +0 -0
- /package/lib/GeolocationEditor/{selector-list.js → lg/selector-list.js} +0 -0
- /package/lib/ImageEditor/{addition-previewer → lg/addition-previewer}/image-link/index.css +0 -0
- /package/lib/ImageEditor/{addition-previewer → lg/addition-previewer}/index.css +0 -0
- /package/lib/ImageEditor/{addition-previewer → lg/addition-previewer}/local-image-addition/index.css +0 -0
- /package/lib/{RowExpandDialog → RowExpand/lg}/body/index.css +0 -0
- /package/lib/{RowExpandDialog → RowExpand/lg}/column-content/index.css +0 -0
- /package/lib/{RowExpandDialog → RowExpand/lg}/header/index.css +0 -0
- /package/lib/{RowExpandDialog → RowExpand/lg}/index.css +0 -0
- /package/lib/RowExpandEditor/RowExpandAddBtn/{index.css → lg/index.css} +0 -0
- /package/lib/RowExpandEditor/RowExpandGeolocationEditor/{index.css → lg/index.css} +0 -0
- /package/lib/RowExpandEditor/RowExpandImageEditor/{index.css → lg/index.css} +0 -0
- /package/lib/RowExpandEditor/RowExpandLongTextEditor/{index.css → lg/index.css} +0 -0
- /package/lib/RowExpandEditor/RowExpandSingleSelectorEditor/{index.css → lg/index.css} +0 -0
- /package/lib/RowExpandEditor/RowExpandTextEditor/{index.css → lg/index.css} +0 -0
- /package/lib/RowExpandEditor/RowExpandUrlEditor/{index.css → lg/index.css} +0 -0
|
@@ -1,321 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
|
-
var React = _interopRequireWildcard(require("react"));
|
|
11
|
-
var ReactDOM = _interopRequireWildcard(require("react-dom"));
|
|
12
|
-
var _class = require("../_util/class");
|
|
13
|
-
var _exenv = require("../_util/exenv");
|
|
14
|
-
var _customKeyboard = _interopRequireDefault(require("./custom-keyboard"));
|
|
15
|
-
var _portal = _interopRequireDefault(require("./portal"));
|
|
16
|
-
let customNumberKeyboard = null;
|
|
17
|
-
const IS_REACT_16 = !!ReactDOM.createPortal;
|
|
18
|
-
function getBodyScrollTop() {
|
|
19
|
-
const el = document.scrollingElement || document.documentElement;
|
|
20
|
-
return el && el.scrollTop || 0;
|
|
21
|
-
}
|
|
22
|
-
function setBodyScrollTop(scrollTop) {
|
|
23
|
-
const el = document.scrollingElement || document.documentElement;
|
|
24
|
-
el.scrollTop = scrollTop;
|
|
25
|
-
}
|
|
26
|
-
class NumberInput extends React.Component {
|
|
27
|
-
constructor(props) {
|
|
28
|
-
super(props);
|
|
29
|
-
this.onChange = value => {
|
|
30
|
-
if (!('value' in this.props)) {
|
|
31
|
-
this.setState({
|
|
32
|
-
value: value.target.value
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
this.props.onChange(value);
|
|
36
|
-
};
|
|
37
|
-
this.onConfirm = value => {
|
|
38
|
-
this.props.onVirtualKeyboardConfirm(value);
|
|
39
|
-
};
|
|
40
|
-
this.addBlurListener = () => {
|
|
41
|
-
document.addEventListener('touchend', this.doBlur, false);
|
|
42
|
-
};
|
|
43
|
-
this.removeBlurListener = () => {
|
|
44
|
-
document.removeEventListener('touchend', this.doBlur, false);
|
|
45
|
-
};
|
|
46
|
-
this.saveRef = el => {
|
|
47
|
-
if (IS_REACT_16 && el) {
|
|
48
|
-
customNumberKeyboard = el;
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
this.doBlur = ev => {
|
|
52
|
-
const {
|
|
53
|
-
value
|
|
54
|
-
} = this.state;
|
|
55
|
-
if (ev.target !== this.inputRef) {
|
|
56
|
-
this.onInputBlur(value);
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
this.unLinkInput = () => {
|
|
60
|
-
if (customNumberKeyboard && customNumberKeyboard.antmKeyboard && customNumberKeyboard.linkedInput && customNumberKeyboard.linkedInput === this) {
|
|
61
|
-
customNumberKeyboard.linkedInput = null;
|
|
62
|
-
if (this.props.autoAdjustHeight) {
|
|
63
|
-
this.getContainer().style.height = '0';
|
|
64
|
-
}
|
|
65
|
-
(0, _class.addClass)(customNumberKeyboard.antmKeyboard, "".concat(this.props.keyboardPrefixCls, "-wrapper-hide"));
|
|
66
|
-
}
|
|
67
|
-
// for unmount
|
|
68
|
-
this.removeBlurListener();
|
|
69
|
-
};
|
|
70
|
-
this.onInputBlur = value => {
|
|
71
|
-
if (IS_REACT_16) {
|
|
72
|
-
this.keyBoard = null;
|
|
73
|
-
}
|
|
74
|
-
const {
|
|
75
|
-
focus
|
|
76
|
-
} = this.state;
|
|
77
|
-
if (focus) {
|
|
78
|
-
this.setState({
|
|
79
|
-
focus: false
|
|
80
|
-
});
|
|
81
|
-
this.props.onBlur(value);
|
|
82
|
-
setTimeout(() => {
|
|
83
|
-
this.unLinkInput();
|
|
84
|
-
}, 50);
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
this.onInputFocus = () => {
|
|
88
|
-
const {
|
|
89
|
-
value
|
|
90
|
-
} = this.state;
|
|
91
|
-
this.props.onFocus(value);
|
|
92
|
-
this.setState({
|
|
93
|
-
focus: true
|
|
94
|
-
}, () => {
|
|
95
|
-
if (customNumberKeyboard) {
|
|
96
|
-
customNumberKeyboard.linkedInput = this;
|
|
97
|
-
if (customNumberKeyboard.antmKeyboard) {
|
|
98
|
-
if (this.props.autoAdjustHeight) {
|
|
99
|
-
const keyBoardHeight = customNumberKeyboard.antmKeyboard.offsetHeight;
|
|
100
|
-
this.getContainer().style.height = "".concat(keyBoardHeight, "px");
|
|
101
|
-
if (this.inputRef) {
|
|
102
|
-
const {
|
|
103
|
-
bottom
|
|
104
|
-
} = this.inputRef.getBoundingClientRect();
|
|
105
|
-
const clientHeight = window.innerHeight;
|
|
106
|
-
// 计算输入框距离视窗的底部距离
|
|
107
|
-
const distance = clientHeight - bottom;
|
|
108
|
-
if (distance < keyBoardHeight) {
|
|
109
|
-
setBodyScrollTop(getBodyScrollTop() + keyBoardHeight - distance);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
(0, _class.removeClass)(customNumberKeyboard.antmKeyboard, "".concat(this.props.keyboardPrefixCls, "-wrapper-hide"));
|
|
114
|
-
}
|
|
115
|
-
customNumberKeyboard.confirmDisabled = value === '';
|
|
116
|
-
if (customNumberKeyboard.confirmKeyboardItem) {
|
|
117
|
-
if (value === '') {
|
|
118
|
-
(0, _class.addClass)(customNumberKeyboard.confirmKeyboardItem, "".concat(this.props.keyboardPrefixCls, "-item-disabled"));
|
|
119
|
-
} else {
|
|
120
|
-
(0, _class.removeClass)(customNumberKeyboard.confirmKeyboardItem, "".concat(this.props.keyboardPrefixCls, "-item-disabled"));
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
};
|
|
126
|
-
this.onKeyboardClick = KeyboardItemValue => {
|
|
127
|
-
const {
|
|
128
|
-
maxLength
|
|
129
|
-
} = this.props;
|
|
130
|
-
const {
|
|
131
|
-
value
|
|
132
|
-
} = this.state;
|
|
133
|
-
// tslint:disable-next-line:no-this-assignment
|
|
134
|
-
const {
|
|
135
|
-
onChange
|
|
136
|
-
} = this;
|
|
137
|
-
let valueAfterChange;
|
|
138
|
-
// 删除键
|
|
139
|
-
if (KeyboardItemValue === 'delete') {
|
|
140
|
-
valueAfterChange = value.substring(0, value.length - 1);
|
|
141
|
-
onChange({
|
|
142
|
-
target: {
|
|
143
|
-
value: valueAfterChange
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
// 确认键
|
|
147
|
-
} else if (KeyboardItemValue === 'confirm') {
|
|
148
|
-
valueAfterChange = value;
|
|
149
|
-
onChange({
|
|
150
|
-
target: {
|
|
151
|
-
value: valueAfterChange
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
this.onInputBlur(value);
|
|
155
|
-
this.onConfirm(value);
|
|
156
|
-
// 收起键
|
|
157
|
-
} else if (KeyboardItemValue === 'hide') {
|
|
158
|
-
valueAfterChange = value;
|
|
159
|
-
this.onInputBlur(valueAfterChange);
|
|
160
|
-
} else {
|
|
161
|
-
if (maxLength !== undefined && +maxLength >= 0 && (value + KeyboardItemValue).length > maxLength) {
|
|
162
|
-
valueAfterChange = (value + KeyboardItemValue).substr(0, maxLength);
|
|
163
|
-
onChange({
|
|
164
|
-
target: {
|
|
165
|
-
value: valueAfterChange
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
} else {
|
|
169
|
-
valueAfterChange = value + KeyboardItemValue;
|
|
170
|
-
onChange({
|
|
171
|
-
target: {
|
|
172
|
-
value: valueAfterChange
|
|
173
|
-
}
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
if (customNumberKeyboard) {
|
|
178
|
-
customNumberKeyboard.confirmDisabled = valueAfterChange === '';
|
|
179
|
-
if (customNumberKeyboard.confirmKeyboardItem) {
|
|
180
|
-
if (valueAfterChange === '') {
|
|
181
|
-
(0, _class.addClass)(customNumberKeyboard.confirmKeyboardItem, "".concat(this.props.keyboardPrefixCls, "-item-disabled"));
|
|
182
|
-
} else {
|
|
183
|
-
(0, _class.removeClass)(customNumberKeyboard.confirmKeyboardItem, "".concat(this.props.keyboardPrefixCls, "-item-disabled"));
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
};
|
|
188
|
-
this.onFakeInputClick = () => {
|
|
189
|
-
this.focus();
|
|
190
|
-
};
|
|
191
|
-
this.focus = () => {
|
|
192
|
-
// this focus may invocked by users page button click, so this click may trigger blurEventListener at the same time
|
|
193
|
-
this.renderCustomKeyboard();
|
|
194
|
-
this.removeBlurListener();
|
|
195
|
-
const {
|
|
196
|
-
focus
|
|
197
|
-
} = this.state;
|
|
198
|
-
if (!focus) {
|
|
199
|
-
this.onInputFocus();
|
|
200
|
-
}
|
|
201
|
-
setTimeout(() => {
|
|
202
|
-
this.addBlurListener();
|
|
203
|
-
}, 50);
|
|
204
|
-
};
|
|
205
|
-
this.state = {
|
|
206
|
-
focus: false,
|
|
207
|
-
value: props.value || ''
|
|
208
|
-
};
|
|
209
|
-
}
|
|
210
|
-
componentWillReceiveProps(nextProps) {
|
|
211
|
-
if ('value' in nextProps) {
|
|
212
|
-
this.setState({
|
|
213
|
-
value: nextProps.value
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
componentWillUnmount() {
|
|
218
|
-
// focus:true unmount 不能触发 blur
|
|
219
|
-
if (this.state.focus) {
|
|
220
|
-
this.props.onBlur(this.state.value);
|
|
221
|
-
}
|
|
222
|
-
this.unLinkInput();
|
|
223
|
-
}
|
|
224
|
-
getComponent() {
|
|
225
|
-
const {
|
|
226
|
-
confirmLabel,
|
|
227
|
-
backspaceLabel,
|
|
228
|
-
cancelKeyboardLabel,
|
|
229
|
-
keyboardPrefixCls,
|
|
230
|
-
moneyKeyboardWrapProps,
|
|
231
|
-
moneyKeyboardHeader,
|
|
232
|
-
disabledKeys
|
|
233
|
-
} = this.props;
|
|
234
|
-
return /*#__PURE__*/React.createElement(_customKeyboard.default, {
|
|
235
|
-
ref: this.saveRef,
|
|
236
|
-
onClick: this.onKeyboardClick,
|
|
237
|
-
prefixCls: keyboardPrefixCls,
|
|
238
|
-
confirmLabel: confirmLabel,
|
|
239
|
-
backspaceLabel: backspaceLabel,
|
|
240
|
-
cancelKeyboardLabel: cancelKeyboardLabel,
|
|
241
|
-
wrapProps: moneyKeyboardWrapProps,
|
|
242
|
-
header: moneyKeyboardHeader,
|
|
243
|
-
disabledKeys: disabledKeys
|
|
244
|
-
});
|
|
245
|
-
}
|
|
246
|
-
getContainer() {
|
|
247
|
-
const {
|
|
248
|
-
keyboardPrefixCls
|
|
249
|
-
} = this.props;
|
|
250
|
-
let container = document.querySelector("#".concat(keyboardPrefixCls, "-container"));
|
|
251
|
-
if (!container) {
|
|
252
|
-
container = document.createElement('div');
|
|
253
|
-
container.setAttribute('id', "".concat(keyboardPrefixCls, "-container"));
|
|
254
|
-
document.body.appendChild(container);
|
|
255
|
-
}
|
|
256
|
-
this.container = container;
|
|
257
|
-
return this.container;
|
|
258
|
-
}
|
|
259
|
-
renderCustomKeyboard() {
|
|
260
|
-
if (IS_REACT_16) {
|
|
261
|
-
this.keyBoard = /*#__PURE__*/React.createElement(_portal.default, {
|
|
262
|
-
getContainer: () => this.getContainer()
|
|
263
|
-
}, this.getComponent());
|
|
264
|
-
} else {
|
|
265
|
-
customNumberKeyboard = ReactDOM.unstable_renderSubtreeIntoContainer(this, this.getComponent(), this.getContainer());
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
renderPortal() {
|
|
269
|
-
if (!IS_REACT_16 || !_exenv.canUseDOM) {
|
|
270
|
-
return null;
|
|
271
|
-
}
|
|
272
|
-
return this.keyBoard;
|
|
273
|
-
}
|
|
274
|
-
render() {
|
|
275
|
-
const {
|
|
276
|
-
placeholder,
|
|
277
|
-
disabled,
|
|
278
|
-
editable,
|
|
279
|
-
moneyKeyboardAlign
|
|
280
|
-
} = this.props;
|
|
281
|
-
const {
|
|
282
|
-
focus,
|
|
283
|
-
value
|
|
284
|
-
} = this.state;
|
|
285
|
-
const preventKeyboard = disabled || !editable;
|
|
286
|
-
const fakeInputCls = (0, _classnames.default)('fake-input', {
|
|
287
|
-
focus,
|
|
288
|
-
'fake-input-disabled': disabled
|
|
289
|
-
});
|
|
290
|
-
const fakeInputContainerCls = (0, _classnames.default)('fake-input-container', {
|
|
291
|
-
'fake-input-container-left': moneyKeyboardAlign === 'left'
|
|
292
|
-
});
|
|
293
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
294
|
-
className: fakeInputContainerCls
|
|
295
|
-
}, value === '' &&
|
|
296
|
-
/*#__PURE__*/
|
|
297
|
-
// tslint:disable-next-line:jsx-no-multiline-js
|
|
298
|
-
React.createElement("div", {
|
|
299
|
-
className: "fake-input-placeholder"
|
|
300
|
-
}, placeholder), /*#__PURE__*/React.createElement("div", {
|
|
301
|
-
role: "textbox",
|
|
302
|
-
"aria-label": value || placeholder,
|
|
303
|
-
className: fakeInputCls,
|
|
304
|
-
ref: el => this.inputRef = el,
|
|
305
|
-
onClick: preventKeyboard ? () => {} : this.onFakeInputClick
|
|
306
|
-
}, value), this.renderPortal());
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
NumberInput.defaultProps = {
|
|
310
|
-
onChange: () => {},
|
|
311
|
-
onFocus: () => {},
|
|
312
|
-
onBlur: () => {},
|
|
313
|
-
onVirtualKeyboardConfirm: () => {},
|
|
314
|
-
placeholder: '',
|
|
315
|
-
disabled: false,
|
|
316
|
-
editable: true,
|
|
317
|
-
prefixCls: 'am-input',
|
|
318
|
-
keyboardPrefixCls: 'am-number-keyboard',
|
|
319
|
-
autoAdjustHeight: false
|
|
320
|
-
};
|
|
321
|
-
var _default = exports.default = NumberInput;
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = exports.KeyboardItem = void 0;
|
|
9
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
|
-
var React = _interopRequireWildcard(require("react"));
|
|
11
|
-
var _rmcFeedback = _interopRequireDefault(require("rmc-feedback"));
|
|
12
|
-
var _exenv = require("../_util/exenv");
|
|
13
|
-
/**
|
|
14
|
-
* determines whether an array includes a certain value among its entries, returning true or false as appropriate.
|
|
15
|
-
* @param {array} arr The array to search in
|
|
16
|
-
* @param {any} item The value to search for
|
|
17
|
-
*/
|
|
18
|
-
function includes(arr, item) {
|
|
19
|
-
if (!arr || !arr.length || !item) {
|
|
20
|
-
return false;
|
|
21
|
-
}
|
|
22
|
-
for (let i = 0, len = arr.length; i < len; i++) {
|
|
23
|
-
if (arr[i] === item) {
|
|
24
|
-
return true;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return false;
|
|
28
|
-
}
|
|
29
|
-
class KeyboardItem extends React.Component {
|
|
30
|
-
render() {
|
|
31
|
-
const {
|
|
32
|
-
prefixCls,
|
|
33
|
-
onClick,
|
|
34
|
-
className,
|
|
35
|
-
disabled,
|
|
36
|
-
children,
|
|
37
|
-
tdRef,
|
|
38
|
-
label,
|
|
39
|
-
iconOnly,
|
|
40
|
-
...restProps
|
|
41
|
-
} = this.props;
|
|
42
|
-
let value = children;
|
|
43
|
-
if (className === 'keyboard-delete') {
|
|
44
|
-
value = 'delete';
|
|
45
|
-
} else if (className === 'keyboard-hide') {
|
|
46
|
-
value = 'hide';
|
|
47
|
-
} else if (className === 'keyboard-confirm') {
|
|
48
|
-
value = 'confirm';
|
|
49
|
-
}
|
|
50
|
-
const extraCls = {
|
|
51
|
-
["".concat(prefixCls, "-item-disabled")]: disabled
|
|
52
|
-
};
|
|
53
|
-
const wrapCls = (0, _classnames.default)("".concat(prefixCls, "-item"), className, extraCls);
|
|
54
|
-
return /*#__PURE__*/React.createElement(_rmcFeedback.default, {
|
|
55
|
-
disabled: disabled,
|
|
56
|
-
activeClassName: "".concat(prefixCls, "-item-active")
|
|
57
|
-
}, /*#__PURE__*/React.createElement("td", Object.assign({
|
|
58
|
-
ref: tdRef
|
|
59
|
-
// tslint:disable-next-line:jsx-no-multiline-js
|
|
60
|
-
,
|
|
61
|
-
onTouchEnd: e => {
|
|
62
|
-
onClick(e, value);
|
|
63
|
-
},
|
|
64
|
-
className: wrapCls
|
|
65
|
-
}, restProps), children, iconOnly && /*#__PURE__*/React.createElement("i", {
|
|
66
|
-
className: "sr-only"
|
|
67
|
-
}, label)));
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
exports.KeyboardItem = KeyboardItem;
|
|
71
|
-
KeyboardItem.defaultProps = {
|
|
72
|
-
prefixCls: 'am-number-keyboard',
|
|
73
|
-
onClick: () => {},
|
|
74
|
-
disabled: false
|
|
75
|
-
};
|
|
76
|
-
class CustomKeyboard extends React.Component {
|
|
77
|
-
constructor() {
|
|
78
|
-
var _this;
|
|
79
|
-
super(...arguments);
|
|
80
|
-
_this = this;
|
|
81
|
-
this.onKeyboardClick = function (e) {
|
|
82
|
-
let value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
83
|
-
e.nativeEvent.stopImmediatePropagation();
|
|
84
|
-
if (_this.props.disabledKeys && includes(_this.props.disabledKeys, value)) {
|
|
85
|
-
return null;
|
|
86
|
-
}
|
|
87
|
-
if (value === 'confirm' && _this.confirmDisabled) {
|
|
88
|
-
return null;
|
|
89
|
-
} else {
|
|
90
|
-
if (_this.linkedInput) {
|
|
91
|
-
_this.linkedInput.onKeyboardClick(value);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
this.renderKeyboardItem = (item, index) => {
|
|
96
|
-
let disabled = false;
|
|
97
|
-
if (this.props.disabledKeys && includes(this.props.disabledKeys, item)) {
|
|
98
|
-
disabled = true;
|
|
99
|
-
}
|
|
100
|
-
return /*#__PURE__*/React.createElement(KeyboardItem, {
|
|
101
|
-
onClick: this.onKeyboardClick,
|
|
102
|
-
key: "item-".concat(item, "-").concat(index),
|
|
103
|
-
disabled: disabled
|
|
104
|
-
}, item);
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
render() {
|
|
108
|
-
const {
|
|
109
|
-
prefixCls,
|
|
110
|
-
confirmLabel,
|
|
111
|
-
backspaceLabel,
|
|
112
|
-
cancelKeyboardLabel,
|
|
113
|
-
wrapProps,
|
|
114
|
-
header
|
|
115
|
-
} = this.props;
|
|
116
|
-
const wrapperCls = (0, _classnames.default)("".concat(prefixCls, "-wrapper"), "".concat(prefixCls, "-wrapper-hide"));
|
|
117
|
-
return /*#__PURE__*/React.createElement("div", Object.assign({
|
|
118
|
-
className: wrapperCls,
|
|
119
|
-
ref: el => this.antmKeyboard = el
|
|
120
|
-
}, wrapProps), header && /*#__PURE__*/React.cloneElement(header, {
|
|
121
|
-
onClick: this.onKeyboardClick
|
|
122
|
-
}), /*#__PURE__*/React.createElement("table", null, /*#__PURE__*/React.createElement("tbody", null, /*#__PURE__*/React.createElement("tr", null, ['1', '2', '3'].map((item, index) =>
|
|
123
|
-
// tslint:disable-next-line:jsx-no-multiline-js
|
|
124
|
-
this.renderKeyboardItem(item, index)), /*#__PURE__*/React.createElement(KeyboardItem, Object.assign({
|
|
125
|
-
className: "keyboard-delete",
|
|
126
|
-
rowSpan: 2,
|
|
127
|
-
onClick: this.onKeyboardClick
|
|
128
|
-
}, this.getAriaAttr(backspaceLabel)))), /*#__PURE__*/React.createElement("tr", null, ['4', '5', '6'].map((item, index) =>
|
|
129
|
-
// tslint:disable-next-line:jsx-no-multiline-js
|
|
130
|
-
this.renderKeyboardItem(item, index))), /*#__PURE__*/React.createElement("tr", null, ['7', '8', '9'].map((item, index) =>
|
|
131
|
-
// tslint:disable-next-line:jsx-no-multiline-js
|
|
132
|
-
this.renderKeyboardItem(item, index)), /*#__PURE__*/React.createElement(KeyboardItem, {
|
|
133
|
-
className: "keyboard-confirm",
|
|
134
|
-
rowSpan: 2,
|
|
135
|
-
onClick: this.onKeyboardClick,
|
|
136
|
-
tdRef: el => this.confirmKeyboardItem = el
|
|
137
|
-
}, confirmLabel)), /*#__PURE__*/React.createElement("tr", null, ['.', '0'].map((item, index) =>
|
|
138
|
-
// tslint:disable-next-line:jsx-no-multiline-js
|
|
139
|
-
this.renderKeyboardItem(item, index)), /*#__PURE__*/React.createElement(KeyboardItem, Object.assign({
|
|
140
|
-
className: "keyboard-hide",
|
|
141
|
-
onClick: this.onKeyboardClick
|
|
142
|
-
}, this.getAriaAttr(cancelKeyboardLabel)))))));
|
|
143
|
-
}
|
|
144
|
-
getAriaAttr(label) {
|
|
145
|
-
if (_exenv.IS_IOS) {
|
|
146
|
-
return {
|
|
147
|
-
label,
|
|
148
|
-
iconOnly: true
|
|
149
|
-
};
|
|
150
|
-
} else {
|
|
151
|
-
return {
|
|
152
|
-
role: 'button',
|
|
153
|
-
'aria-label': label
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
CustomKeyboard.defaultProps = {
|
|
159
|
-
prefixCls: 'am-number-keyboard',
|
|
160
|
-
disabledKeys: null
|
|
161
|
-
};
|
|
162
|
-
var _default = exports.default = CustomKeyboard;
|