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,231 +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 _rmcFeedback = _interopRequireDefault(require("rmc-feedback"));
|
|
12
|
-
var _exenv = require("../_util/exenv");
|
|
13
|
-
require("./index.css");
|
|
14
|
-
/* tslint:disable:jsx-no-multiline-js */
|
|
15
|
-
|
|
16
|
-
function noop() {}
|
|
17
|
-
function fixControlledValue(value) {
|
|
18
|
-
if (typeof value === 'undefined' || value === null) {
|
|
19
|
-
return '';
|
|
20
|
-
}
|
|
21
|
-
return value;
|
|
22
|
-
}
|
|
23
|
-
const regexAstralSymbols = /[\uD800-\uDBFF][\uDC00-\uDFFF]|\n/g;
|
|
24
|
-
function countSymbols() {
|
|
25
|
-
let text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
26
|
-
return text.replace(regexAstralSymbols, '_').length;
|
|
27
|
-
}
|
|
28
|
-
class TextareaItem extends React.Component {
|
|
29
|
-
constructor(props) {
|
|
30
|
-
super(props);
|
|
31
|
-
this.focus = () => {
|
|
32
|
-
this.textareaRef.focus();
|
|
33
|
-
};
|
|
34
|
-
this.reAlignHeight = () => {
|
|
35
|
-
const textareaDom = this.textareaRef;
|
|
36
|
-
textareaDom.style.height = ''; // 字数减少时能自动减小高度
|
|
37
|
-
textareaDom.style.height = "".concat(textareaDom.scrollHeight, "px");
|
|
38
|
-
};
|
|
39
|
-
this.onChange = e => {
|
|
40
|
-
const value = e.target.value;
|
|
41
|
-
if ('value' in this.props) {
|
|
42
|
-
this.setState({
|
|
43
|
-
value: this.props.value
|
|
44
|
-
});
|
|
45
|
-
} else {
|
|
46
|
-
this.setState({
|
|
47
|
-
value
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
const {
|
|
51
|
-
onChange
|
|
52
|
-
} = this.props;
|
|
53
|
-
if (onChange) {
|
|
54
|
-
onChange(value);
|
|
55
|
-
}
|
|
56
|
-
// 设置 defaultValue 时,用户输入不会触发 componentDidUpdate ,此处手工调用
|
|
57
|
-
this.componentDidUpdate();
|
|
58
|
-
};
|
|
59
|
-
this.onBlur = e => {
|
|
60
|
-
this.debounceTimeout = setTimeout(() => {
|
|
61
|
-
if (document.activeElement !== this.textareaRef) {
|
|
62
|
-
this.setState({
|
|
63
|
-
focus: false
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
}, 100);
|
|
67
|
-
const value = e.currentTarget.value;
|
|
68
|
-
if (this.props.onBlur) {
|
|
69
|
-
// fix autoFocus item blur with flash
|
|
70
|
-
setTimeout(() => {
|
|
71
|
-
// fix ios12 wechat browser click failure after input
|
|
72
|
-
if (document.body) {
|
|
73
|
-
// eslint-disable-next-line no-self-assign
|
|
74
|
-
document.body.scrollTop = document.body.scrollTop;
|
|
75
|
-
}
|
|
76
|
-
}, 100);
|
|
77
|
-
this.props.onBlur(value);
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
this.onFocus = e => {
|
|
81
|
-
if (this.debounceTimeout) {
|
|
82
|
-
clearTimeout(this.debounceTimeout);
|
|
83
|
-
this.debounceTimeout = null;
|
|
84
|
-
}
|
|
85
|
-
this.setState({
|
|
86
|
-
focus: true
|
|
87
|
-
});
|
|
88
|
-
const value = e.currentTarget.value;
|
|
89
|
-
if (this.props.onFocus) {
|
|
90
|
-
this.props.onFocus(value);
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
this.onErrorClick = () => {
|
|
94
|
-
if (this.props.onErrorClick) {
|
|
95
|
-
this.props.onErrorClick();
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
this.clearInput = () => {
|
|
99
|
-
this.setState({
|
|
100
|
-
value: ''
|
|
101
|
-
});
|
|
102
|
-
if (this.props.onChange) {
|
|
103
|
-
this.props.onChange('');
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
this.state = {
|
|
107
|
-
focus: false,
|
|
108
|
-
value: props.value || props.defaultValue || ''
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
componentWillReceiveProps(nextProps) {
|
|
112
|
-
if ('value' in nextProps) {
|
|
113
|
-
this.setState({
|
|
114
|
-
value: fixControlledValue(nextProps.value)
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
componentDidMount() {
|
|
119
|
-
if (this.props.autoHeight) {
|
|
120
|
-
this.reAlignHeight();
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
componentDidUpdate() {
|
|
124
|
-
if (this.props.autoHeight) {
|
|
125
|
-
this.reAlignHeight();
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
componentWillUnmount() {
|
|
129
|
-
if (this.debounceTimeout) {
|
|
130
|
-
clearTimeout(this.debounceTimeout);
|
|
131
|
-
this.debounceTimeout = null;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
render() {
|
|
135
|
-
const {
|
|
136
|
-
prefixCls,
|
|
137
|
-
prefixListCls,
|
|
138
|
-
editable,
|
|
139
|
-
style,
|
|
140
|
-
clear,
|
|
141
|
-
children,
|
|
142
|
-
error,
|
|
143
|
-
className,
|
|
144
|
-
count,
|
|
145
|
-
labelNumber,
|
|
146
|
-
title,
|
|
147
|
-
onErrorClick,
|
|
148
|
-
autoHeight,
|
|
149
|
-
defaultValue,
|
|
150
|
-
...otherProps
|
|
151
|
-
} = this.props;
|
|
152
|
-
const {
|
|
153
|
-
disabled
|
|
154
|
-
} = otherProps;
|
|
155
|
-
const {
|
|
156
|
-
value,
|
|
157
|
-
focus
|
|
158
|
-
} = this.state;
|
|
159
|
-
const hasCount = count > 0 && this.props.rows > 1;
|
|
160
|
-
const wrapCls = (0, _classnames.default)(className, "".concat(prefixListCls, "-item"), "".concat(prefixCls, "-item"), {
|
|
161
|
-
["".concat(prefixCls, "-disabled")]: disabled,
|
|
162
|
-
["".concat(prefixCls, "-item-single-line")]: this.props.rows === 1 && !autoHeight,
|
|
163
|
-
["".concat(prefixCls, "-error")]: error,
|
|
164
|
-
["".concat(prefixCls, "-focus")]: focus,
|
|
165
|
-
["".concat(prefixCls, "-has-count")]: hasCount
|
|
166
|
-
});
|
|
167
|
-
const labelCls = (0, _classnames.default)("".concat(prefixCls, "-label"), {
|
|
168
|
-
["".concat(prefixCls, "-label-2")]: labelNumber === 2,
|
|
169
|
-
["".concat(prefixCls, "-label-3")]: labelNumber === 3,
|
|
170
|
-
["".concat(prefixCls, "-label-4")]: labelNumber === 4,
|
|
171
|
-
["".concat(prefixCls, "-label-5")]: labelNumber === 5,
|
|
172
|
-
["".concat(prefixCls, "-label-6")]: labelNumber === 6,
|
|
173
|
-
["".concat(prefixCls, "-label-7")]: labelNumber === 7
|
|
174
|
-
});
|
|
175
|
-
const characterLength = countSymbols(value);
|
|
176
|
-
const lengthCtrlProps = {};
|
|
177
|
-
if (count > 0) {
|
|
178
|
-
// Note: If in the iOS environment of dev-tools, It will fail.
|
|
179
|
-
if (_exenv.IS_IOS) {
|
|
180
|
-
const entValue = value ? value.replace(regexAstralSymbols, '_') : '';
|
|
181
|
-
const entLen = entValue ? entValue.split('_').length - 1 : 0;
|
|
182
|
-
lengthCtrlProps.maxLength = count + entLen - characterLength + (value ? value.length : 0);
|
|
183
|
-
} else {
|
|
184
|
-
lengthCtrlProps.maxLength = count - characterLength + (value ? value.length : 0);
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
188
|
-
className: wrapCls
|
|
189
|
-
}, title && /*#__PURE__*/React.createElement("div", {
|
|
190
|
-
className: labelCls
|
|
191
|
-
}, title), /*#__PURE__*/React.createElement("div", {
|
|
192
|
-
className: "".concat(prefixCls, "-control")
|
|
193
|
-
}, /*#__PURE__*/React.createElement("textarea", Object.assign({
|
|
194
|
-
ref: el => this.textareaRef = el
|
|
195
|
-
}, lengthCtrlProps, otherProps, {
|
|
196
|
-
value: value,
|
|
197
|
-
onChange: this.onChange,
|
|
198
|
-
onBlur: this.onBlur,
|
|
199
|
-
onFocus: this.onFocus,
|
|
200
|
-
readOnly: !editable,
|
|
201
|
-
style: style
|
|
202
|
-
}))), clear && editable && value && characterLength > 0 && /*#__PURE__*/React.createElement(_rmcFeedback.default, {
|
|
203
|
-
activeClassName: "".concat(prefixCls, "-clear-active")
|
|
204
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
205
|
-
className: "".concat(prefixCls, "-clear"),
|
|
206
|
-
onClick: this.clearInput
|
|
207
|
-
})), error && /*#__PURE__*/React.createElement("div", {
|
|
208
|
-
className: "".concat(prefixCls, "-error-extra"),
|
|
209
|
-
onClick: this.onErrorClick
|
|
210
|
-
}), hasCount && /*#__PURE__*/React.createElement("span", {
|
|
211
|
-
className: "".concat(prefixCls, "-count")
|
|
212
|
-
}, /*#__PURE__*/React.createElement("span", null, value ? characterLength : 0), "/", count));
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
exports.default = TextareaItem;
|
|
216
|
-
TextareaItem.defaultProps = {
|
|
217
|
-
prefixCls: 'am-textarea',
|
|
218
|
-
prefixListCls: 'am-list',
|
|
219
|
-
autoHeight: false,
|
|
220
|
-
editable: true,
|
|
221
|
-
disabled: false,
|
|
222
|
-
placeholder: '',
|
|
223
|
-
clear: false,
|
|
224
|
-
rows: 1,
|
|
225
|
-
onChange: noop,
|
|
226
|
-
onBlur: noop,
|
|
227
|
-
onFocus: noop,
|
|
228
|
-
onErrorClick: noop,
|
|
229
|
-
error: false,
|
|
230
|
-
labelNumber: 5
|
|
231
|
-
};
|
package/lib/Toast/index.css
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
.am-toast {
|
|
2
|
-
position: fixed;
|
|
3
|
-
width: 100%;
|
|
4
|
-
z-index: 1999;
|
|
5
|
-
font-size: 14px;
|
|
6
|
-
text-align: center;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.am-toast>span {
|
|
10
|
-
max-width: 50%;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.am-toast.am-toast-mask {
|
|
14
|
-
height: 100%;
|
|
15
|
-
display: -webkit-box;
|
|
16
|
-
display: -webkit-flex;
|
|
17
|
-
display: -ms-flexbox;
|
|
18
|
-
display: flex;
|
|
19
|
-
-webkit-box-pack: center;
|
|
20
|
-
-webkit-justify-content: center;
|
|
21
|
-
-ms-flex-pack: center;
|
|
22
|
-
justify-content: center;
|
|
23
|
-
-webkit-box-align: center;
|
|
24
|
-
-webkit-align-items: center;
|
|
25
|
-
-ms-flex-align: center;
|
|
26
|
-
align-items: center;
|
|
27
|
-
left: 0;
|
|
28
|
-
top: 0;
|
|
29
|
-
-webkit-transform: translateZ(1px);
|
|
30
|
-
transform: translateZ(1px);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.am-toast.am-toast-nomask {
|
|
34
|
-
position: fixed;
|
|
35
|
-
max-width: 50%;
|
|
36
|
-
width: auto;
|
|
37
|
-
left: 50%;
|
|
38
|
-
top: 50%;
|
|
39
|
-
-webkit-transform: translateZ(1px);
|
|
40
|
-
transform: translateZ(1px);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.am-toast.am-toast-nomask .am-toast-notice {
|
|
44
|
-
-webkit-transform: translateX(-50%) translateY(-50%);
|
|
45
|
-
-ms-transform: translateX(-50%) translateY(-50%);
|
|
46
|
-
transform: translateX(-50%) translateY(-50%);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.am-toast-notice-content .am-toast-text {
|
|
50
|
-
min-width: 60px;
|
|
51
|
-
border-radius: 3px;
|
|
52
|
-
color: #fff;
|
|
53
|
-
background-color: rgba(58, 58, 58, 0.9);
|
|
54
|
-
line-height: 1.5;
|
|
55
|
-
padding: 9px 15px;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.am-toast-notice-content .am-toast-text.am-toast-text-icon {
|
|
59
|
-
border-radius: 5px;
|
|
60
|
-
padding: 15px 15px;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.am-toast-notice-content .am-toast-text.am-toast-text-icon .am-toast-text-info {
|
|
64
|
-
margin-top: 6px;
|
|
65
|
-
}
|
package/lib/Toast/index.js
DELETED
|
@@ -1,131 +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 _rmcNotification = _interopRequireDefault(require("rmc-notification"));
|
|
12
|
-
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
13
|
-
require("./index.css");
|
|
14
|
-
const SHORT = 3;
|
|
15
|
-
const config = {
|
|
16
|
-
duration: SHORT,
|
|
17
|
-
mask: true
|
|
18
|
-
};
|
|
19
|
-
let messageInstance;
|
|
20
|
-
let messageNeedHide;
|
|
21
|
-
const prefixCls = 'am-toast';
|
|
22
|
-
function getMessageInstance(mask, callback) {
|
|
23
|
-
_rmcNotification.default.newInstance({
|
|
24
|
-
prefixCls,
|
|
25
|
-
style: {},
|
|
26
|
-
// clear rmc-notification default style
|
|
27
|
-
transitionName: 'am-fade',
|
|
28
|
-
className: (0, _classnames.default)({
|
|
29
|
-
["".concat(prefixCls, "-mask")]: mask,
|
|
30
|
-
["".concat(prefixCls, "-nomask")]: !mask
|
|
31
|
-
})
|
|
32
|
-
}, notification => callback && callback(notification));
|
|
33
|
-
}
|
|
34
|
-
function notice(content, type) {
|
|
35
|
-
let duration = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : config.duration;
|
|
36
|
-
let onClose = arguments.length > 3 ? arguments[3] : undefined;
|
|
37
|
-
let mask = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : config.mask;
|
|
38
|
-
const iconTypes = {
|
|
39
|
-
info: '',
|
|
40
|
-
success: 'success',
|
|
41
|
-
fail: 'fail',
|
|
42
|
-
offline: 'dislike',
|
|
43
|
-
loading: 'loading'
|
|
44
|
-
};
|
|
45
|
-
const iconType = iconTypes[type];
|
|
46
|
-
messageNeedHide = false;
|
|
47
|
-
getMessageInstance(mask, notification => {
|
|
48
|
-
if (!notification) {
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
if (messageInstance) {
|
|
52
|
-
messageInstance.destroy();
|
|
53
|
-
messageInstance = null;
|
|
54
|
-
}
|
|
55
|
-
if (messageNeedHide) {
|
|
56
|
-
notification.destroy();
|
|
57
|
-
messageNeedHide = false;
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
messageInstance = notification;
|
|
61
|
-
notification.notice({
|
|
62
|
-
duration,
|
|
63
|
-
style: {},
|
|
64
|
-
content: iconType ? /*#__PURE__*/React.createElement("div", {
|
|
65
|
-
className: "".concat(prefixCls, "-text ").concat(prefixCls, "-text-icon"),
|
|
66
|
-
role: "alert",
|
|
67
|
-
"aria-live": "assertive"
|
|
68
|
-
}, /*#__PURE__*/React.createElement(_Icon.default, {
|
|
69
|
-
type: iconType,
|
|
70
|
-
size: "lg"
|
|
71
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
72
|
-
className: "".concat(prefixCls, "-text-info")
|
|
73
|
-
}, content)) : /*#__PURE__*/React.createElement("div", {
|
|
74
|
-
className: "".concat(prefixCls, "-text"),
|
|
75
|
-
role: "alert",
|
|
76
|
-
"aria-live": "assertive"
|
|
77
|
-
}, /*#__PURE__*/React.createElement("div", null, content)),
|
|
78
|
-
closable: true,
|
|
79
|
-
onClose() {
|
|
80
|
-
if (onClose) {
|
|
81
|
-
onClose();
|
|
82
|
-
}
|
|
83
|
-
notification.destroy();
|
|
84
|
-
notification = null;
|
|
85
|
-
messageInstance = null;
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
const Toast = {
|
|
91
|
-
SHORT,
|
|
92
|
-
LONG: 8,
|
|
93
|
-
show(content, duration, mask) {
|
|
94
|
-
return notice(content, 'info', duration, () => {}, mask);
|
|
95
|
-
},
|
|
96
|
-
info(content, duration, onClose, mask) {
|
|
97
|
-
return notice(content, 'info', duration, onClose, mask);
|
|
98
|
-
},
|
|
99
|
-
success(content, duration, onClose, mask) {
|
|
100
|
-
return notice(content, 'success', duration, onClose, mask);
|
|
101
|
-
},
|
|
102
|
-
fail(content, duration, onClose, mask) {
|
|
103
|
-
return notice(content, 'fail', duration, onClose, mask);
|
|
104
|
-
},
|
|
105
|
-
offline(content, duration, onClose, mask) {
|
|
106
|
-
return notice(content, 'offline', duration, onClose, mask);
|
|
107
|
-
},
|
|
108
|
-
loading(content, duration, onClose, mask) {
|
|
109
|
-
return notice(content, 'loading', duration, onClose, mask);
|
|
110
|
-
},
|
|
111
|
-
hide() {
|
|
112
|
-
if (messageInstance) {
|
|
113
|
-
messageInstance.destroy();
|
|
114
|
-
messageInstance = null;
|
|
115
|
-
} else {
|
|
116
|
-
messageNeedHide = true;
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
config() {
|
|
120
|
-
let conf = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
121
|
-
const {
|
|
122
|
-
duration = SHORT,
|
|
123
|
-
mask
|
|
124
|
-
} = conf;
|
|
125
|
-
config.duration = duration;
|
|
126
|
-
if (mask === false) {
|
|
127
|
-
config.mask = false;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
var _default = exports.default = Toast;
|
package/lib/_util/class.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.addClass = addClass;
|
|
7
|
-
exports.hasClass = hasClass;
|
|
8
|
-
exports.removeClass = removeClass;
|
|
9
|
-
function hasClass(node, className) {
|
|
10
|
-
if (node.classList) {
|
|
11
|
-
return node.classList.contains(className);
|
|
12
|
-
}
|
|
13
|
-
const originClass = node.className;
|
|
14
|
-
return " ".concat(originClass, " ").indexOf(" ".concat(className, " ")) > -1;
|
|
15
|
-
}
|
|
16
|
-
function addClass(node, className) {
|
|
17
|
-
if (node.classList) {
|
|
18
|
-
node.classList.add(className);
|
|
19
|
-
} else {
|
|
20
|
-
if (!hasClass(node, className)) {
|
|
21
|
-
node.className = "".concat(node.className, " ").concat(className);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
function removeClass(node, className) {
|
|
26
|
-
if (node.classList) {
|
|
27
|
-
node.classList.remove(className);
|
|
28
|
-
} else {
|
|
29
|
-
if (hasClass(node, className)) {
|
|
30
|
-
const originClass = node.className;
|
|
31
|
-
node.className = " ".concat(originClass, " ").replace(" ".concat(className, " "), '');
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
package/lib/_util/closest.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = closest;
|
|
7
|
-
function closest(el, selector) {
|
|
8
|
-
const matchesSelector = el.matches || el.webkitMatchesSelector || el.mozMatchesSelector || el.msMatchesSelector;
|
|
9
|
-
let p = el;
|
|
10
|
-
while (p) {
|
|
11
|
-
if (matchesSelector.call(p, selector)) {
|
|
12
|
-
return p;
|
|
13
|
-
}
|
|
14
|
-
p = p.parentElement;
|
|
15
|
-
}
|
|
16
|
-
return null;
|
|
17
|
-
}
|
package/lib/_util/exenv.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.canUseDOM = exports.IS_IOS = void 0;
|
|
7
|
-
const canUseDOM = exports.canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
8
|
-
const IS_IOS = exports.IS_IOS = canUseDOM && /iphone|ipad|ipod/i.test(window.navigator.userAgent);
|
package/lib/_util/getDataAttr.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
const getDataAttr = props => {
|
|
8
|
-
return Object.keys(props).reduce((prev, key) => {
|
|
9
|
-
if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {
|
|
10
|
-
prev[key] = props[key];
|
|
11
|
-
}
|
|
12
|
-
return prev;
|
|
13
|
-
}, {});
|
|
14
|
-
};
|
|
15
|
-
var _default = exports.default = getDataAttr;
|
package/lib/_util/getLocale.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getComponentLocale = getComponentLocale;
|
|
7
|
-
exports.getLocaleCode = getLocaleCode;
|
|
8
|
-
function getComponentLocale(props, context, componentName, getDefaultLocale) {
|
|
9
|
-
let locale = {};
|
|
10
|
-
if (context && context.antLocale && context.antLocale[componentName]) {
|
|
11
|
-
locale = context.antLocale[componentName];
|
|
12
|
-
} else {
|
|
13
|
-
const defaultLocale = getDefaultLocale();
|
|
14
|
-
// TODO: make default lang of antd be English
|
|
15
|
-
// https://github.com/ant-design/ant-design/issues/6334
|
|
16
|
-
locale = defaultLocale.default || defaultLocale;
|
|
17
|
-
}
|
|
18
|
-
let result = {
|
|
19
|
-
...locale
|
|
20
|
-
};
|
|
21
|
-
if (props.locale) {
|
|
22
|
-
result = {
|
|
23
|
-
...result,
|
|
24
|
-
...props.locale
|
|
25
|
-
};
|
|
26
|
-
if (props.locale.lang) {
|
|
27
|
-
result.lang = {
|
|
28
|
-
...locale.lang,
|
|
29
|
-
...props.locale.lang
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return result;
|
|
34
|
-
}
|
|
35
|
-
function getLocaleCode(context) {
|
|
36
|
-
const localeCode = context.antLocale && context.antLocale.locale;
|
|
37
|
-
// Had use LocaleProvide but didn't set locale
|
|
38
|
-
if (context.antLocale && context.antLocale.exist && !localeCode) {
|
|
39
|
-
return 'zh-cn';
|
|
40
|
-
}
|
|
41
|
-
return localeCode;
|
|
42
|
-
}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
@import url('../../css/mb-cell-editor.css');
|
|
2
|
-
|
|
3
|
-
@media screen and (max-width: 767.8px) {
|
|
4
|
-
.dtable-ui-mb-select-editor-body .mb-selected-item {
|
|
5
|
-
margin-top: 10px;
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.dtable-ui-mb-select-editor-body .mb-selected-item .title {
|
|
11
|
-
padding: 6px 16px;
|
|
12
|
-
border-bottom: 1px solid #e9e9e9;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.dtable-ui-mb-select-editor-body .mb-selected-item .content {
|
|
16
|
-
display: flex;
|
|
17
|
-
flex-wrap: wrap;
|
|
18
|
-
align-items: center;
|
|
19
|
-
min-height: 50px;
|
|
20
|
-
padding: 8px 16px;
|
|
21
|
-
border-bottom: 1px solid #e9e9e9;
|
|
22
|
-
overflow: auto;
|
|
23
|
-
background-color: #fff;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.dtable-ui-mb-select-editor-body .mb-selected-item .content .select-option-item {
|
|
27
|
-
margin: 3px 10px 3px 0;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.dtable-ui-mb-select-editor-body .mb-search-select-items {
|
|
31
|
-
padding: 8px 16px;
|
|
32
|
-
margin-top: 20px;
|
|
33
|
-
border-top: 1px solid #e9e9e9;
|
|
34
|
-
border-bottom: 1px solid #e9e9e9;
|
|
35
|
-
background-color: #fff;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.dtable-ui-mb-select-editor-body .mb-search-select-items > input {
|
|
39
|
-
outline: none;
|
|
40
|
-
height: 30px;
|
|
41
|
-
padding: 0;
|
|
42
|
-
line-height: 30px;
|
|
43
|
-
border: none;
|
|
44
|
-
}
|
|
45
|
-
.dtable-ui-mb-select-editor-body .mb-search-select-items > input:focus,
|
|
46
|
-
.dtable-ui-mb-select-editor-body .mb-search-select-items > input:active {
|
|
47
|
-
outline: none;
|
|
48
|
-
box-shadow: none;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.dtable-ui-mb-select-editor-body .mb-select-options-container {
|
|
52
|
-
display: flex;
|
|
53
|
-
flex-direction: column;
|
|
54
|
-
margin-top: 10px;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.dtable-ui-mb-select-editor-body .mb-select-options-container .title {
|
|
58
|
-
padding: 6px 16px;
|
|
59
|
-
border-bottom: 1px solid #e9e9e9;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.dtable-ui-mb-select-editor-body .mb-select-options-container .content {
|
|
63
|
-
display: flex;
|
|
64
|
-
flex-direction: column;
|
|
65
|
-
border-bottom: 1px solid #e9e9e9;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.dtable-ui-mb-select-editor-body .mb-select-options-container .search-result-none {
|
|
69
|
-
padding: 16px 0;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.dtable-ui-mb-select-editor-body .mb-select-options-container .mb-select-option-item {
|
|
73
|
-
display: flex;
|
|
74
|
-
align-items: center;
|
|
75
|
-
justify-content: space-between;
|
|
76
|
-
height: 50px;
|
|
77
|
-
padding: 10px 10px 10px 16px;
|
|
78
|
-
font-size: 13px;
|
|
79
|
-
background-color: #fff;
|
|
80
|
-
color: #212529;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.dtable-ui-mb-select-editor-body .mb-select-options-container .mb-select-option-item + .mb-select-option-item {
|
|
84
|
-
border-top: 1px solid #e9e9e9;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.dtable-ui-mb-select-editor-body .mb-select-options-container .mb-select-option-item .item-name {
|
|
88
|
-
display: inline-block;
|
|
89
|
-
padding: 0 10px;
|
|
90
|
-
margin-top: 5px;
|
|
91
|
-
height: 20px;
|
|
92
|
-
line-height: 20px;
|
|
93
|
-
text-align: center;
|
|
94
|
-
text-overflow: ellipsis;
|
|
95
|
-
border-radius: 10px;
|
|
96
|
-
overflow: hidden;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.dtable-ui-mb-select-editor-body .mb-select-options-container .mb-select-option-item .dtable-font {
|
|
100
|
-
font-size: 12px;
|
|
101
|
-
color: #798d99;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.dtable-ui-mb-select-editor-body .mb-create-select-item {
|
|
105
|
-
display: flex;
|
|
106
|
-
align-items: center;
|
|
107
|
-
height: 50px;
|
|
108
|
-
padding: 0 10px;
|
|
109
|
-
margin-top: 20px;
|
|
110
|
-
border-top: 1px solid #dedede;
|
|
111
|
-
border-bottom: 1px solid #e9e9e9;
|
|
112
|
-
background-color: #fff;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.dtable-ui-mb-select-editor-body .mb-create-select-item .dtable-font {
|
|
116
|
-
margin-right: 10px;
|
|
117
|
-
font-size: 12px;
|
|
118
|
-
font-weight: 600px;
|
|
119
|
-
transition: translateY(1px);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.dtable-ui-mb-select-editor-body .mb-create-select-item .dtable-ui-add-new-option {
|
|
123
|
-
font-size: 14px;
|
|
124
|
-
font-weight: 500px;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
}
|