dtable-ui-component 6.0.29 → 6.0.31
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 +24 -116
- package/lib/CheckboxEditor/mb-editor.js +99 -0
- package/lib/CheckboxEditor/pc-editor.js +118 -0
- package/lib/CollaboratorEditor/index.js +23 -11
- package/lib/CollaboratorEditor/mb-editor/index.css +41 -0
- package/lib/CollaboratorEditor/mb-editor/index.js +88 -0
- package/lib/DTableCommonAddTool/index.js +1 -3
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +6 -6
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +6 -6
- package/lib/DateEditor/index.js +69 -95
- package/lib/DateEditor/mb-editor/custom-rc-calendar.css +118 -0
- package/lib/DateEditor/mb-editor/index.css +39 -0
- package/lib/DateEditor/mb-editor/index.js +215 -0
- package/lib/DateEditor/{pc-date-editor-popover.js → pc-editor.js} +9 -9
- package/lib/{Department-editor/department-multiple-select → DepartmentMultipleSelectEditor}/index.js +6 -6
- package/lib/DepartmentSingleSelectEditor/index.js +34 -0
- package/lib/DepartmentSingleSelectEditor/mb-editor/index.css +4 -0
- package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +227 -0
- package/lib/{Department-editor → DepartmentSingleSelectEditor/pc-editor}/department-single-select.js +7 -7
- package/lib/{Department-editor → DepartmentSingleSelectEditor/pc-editor}/index.css +10 -3
- package/lib/{Department-editor → DepartmentSingleSelectEditor/pc-editor}/index.js +8 -25
- package/lib/DigitalSignEditor/index.js +24 -171
- package/lib/DigitalSignEditor/mb-editor/index.css +35 -0
- package/lib/DigitalSignEditor/mb-editor/index.js +144 -0
- package/lib/DigitalSignEditor/pc-editor/index.js +181 -0
- package/lib/FileEditor/files-previewer/index.js +26 -268
- package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +122 -0
- package/lib/FileEditor/files-previewer/mb-previewer/index.css +39 -0
- package/lib/FileEditor/files-previewer/mb-previewer/index.js +64 -0
- package/lib/FileEditor/files-previewer/{file-previewer → pc-previewer/file-previewer}/dropdown-menu.js +1 -1
- package/lib/FileEditor/files-previewer/{file-previewer → pc-previewer/file-previewer}/file-name-editor/index.js +1 -1
- package/lib/FileEditor/files-previewer/{file-previewer → pc-previewer/file-previewer}/index.css +0 -2
- package/lib/FileEditor/files-previewer/{file-previewer → pc-previewer/file-previewer}/index.js +2 -2
- package/lib/FileEditor/files-previewer/pc-previewer/index.js +276 -0
- package/lib/FileEditor/index.css +0 -5
- package/lib/FileEditor/index.js +26 -265
- package/lib/FileEditor/mb-editor/index.css +10 -0
- package/lib/FileEditor/mb-editor/index.js +136 -0
- package/lib/FileEditor/pc-editor/addition-previewer/index.css +1 -0
- package/lib/FileEditor/{addition-previewer → pc-editor/addition-previewer}/index.js +1 -1
- package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.css +1 -0
- package/lib/FileEditor/{addition-previewer → pc-editor/addition-previewer}/local-file-addition/index.js +4 -4
- package/lib/FileEditor/pc-editor/index.css +5 -0
- package/lib/FileEditor/pc-editor/index.js +274 -0
- package/lib/FormulaFormatter/index.css +5 -5
- package/lib/GeolocationEditor/index.js +92 -230
- package/lib/GeolocationEditor/map-editor-utils.js +10 -4
- package/lib/GeolocationEditor/mb-editor/country-editor.js +79 -0
- package/lib/GeolocationEditor/mb-editor/index.css +11 -0
- package/lib/GeolocationEditor/mb-editor/index.js +125 -0
- package/lib/GeolocationEditor/mb-editor/location-editor.js +101 -0
- package/lib/GeolocationEditor/mb-editor/map-editor/index.css +11 -0
- package/lib/GeolocationEditor/mb-editor/map-editor/index.js +474 -0
- package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.css +158 -0
- package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.js +530 -0
- package/lib/GeolocationEditor/mb-editor/province-city-editor.js +77 -0
- package/lib/GeolocationEditor/mb-editor/province-editor.js +76 -0
- package/lib/GeolocationEditor/{country-editor.js → pc-editor/country-editor.js} +5 -49
- package/lib/GeolocationEditor/{index.css → pc-editor/index.css} +3 -4
- package/lib/GeolocationEditor/pc-editor/index.js +247 -0
- package/lib/GeolocationEditor/{location-editor.js → pc-editor/location-editor.js} +8 -41
- package/lib/GeolocationEditor/{map-editor → pc-editor/map-editor}/index.js +6 -6
- package/lib/GeolocationEditor/{map-editor → pc-editor/map-editor}/large-editor/index.js +7 -7
- package/lib/GeolocationEditor/{map-selection-editor → pc-editor/map-selection-editor}/index.js +7 -7
- package/lib/GeolocationEditor/{map-selection-editor → pc-editor/map-selection-editor}/large-editor/index.js +7 -7
- package/lib/GeolocationEditor/{province-city-editor.js → pc-editor/province-city-editor.js} +7 -38
- package/lib/GeolocationEditor/{province-editor.js → pc-editor/province-editor.js} +7 -31
- package/lib/GeolocationEditor/{selector-header-item.js → pc-editor/selector-header-item.js} +1 -1
- package/lib/ImageEditor/images-previewer/image-preview/index.js +3 -3
- package/lib/ImageEditor/images-previewer/index.js +9 -4
- package/lib/ImageEditor/index.css +17 -16
- package/lib/ImageEditor/index.js +26 -185
- package/lib/ImageEditor/mb-editor/index.css +29 -0
- package/lib/ImageEditor/mb-editor/index.js +136 -0
- package/lib/ImageEditor/{addition-previewer → pc-editor/addition-previewer}/image-link/index.js +1 -1
- package/lib/ImageEditor/{addition-previewer → pc-editor/addition-previewer}/index.js +1 -1
- package/lib/ImageEditor/{addition-previewer → pc-editor/addition-previewer}/local-image-addition/index.js +4 -4
- package/lib/ImageEditor/pc-editor/images-previewer/index.js +140 -0
- package/lib/ImageEditor/pc-editor/index.css +24 -0
- package/lib/ImageEditor/pc-editor/index.js +194 -0
- package/lib/ImageThumbnail/index.js +2 -1
- package/lib/LinkEditor/index.js +5 -5
- package/lib/LinkEditor/{mb-link-editor-popover → mb-popover}/index.css +1 -1
- package/lib/MobileFullScreenPage/body/index.css +9 -0
- package/lib/MobileFullScreenPage/body/index.js +23 -0
- package/lib/MobileFullScreenPage/header/index.css +39 -0
- package/lib/MobileFullScreenPage/header/index.js +38 -0
- package/lib/MobileFullScreenPage/index.css +13 -0
- package/lib/MobileFullScreenPage/index.js +73 -0
- package/lib/MobileModal/index.js +41 -0
- package/lib/MobileOperationSheet/index.css +27 -0
- package/lib/MobileOperationSheet/index.js +92 -0
- package/lib/MobileSelector/empty/index.css +3 -0
- package/lib/MobileSelector/empty/index.js +23 -0
- package/lib/MobileSelector/index.css +32 -0
- package/lib/MobileSelector/index.js +57 -0
- package/lib/MobileSelector/option/index.css +28 -0
- package/lib/MobileSelector/option/index.js +36 -0
- package/lib/MobileSelector/options/index.css +8 -0
- package/lib/MobileSelector/options/index.js +18 -0
- package/lib/MobileSelector/search/index.css +7 -0
- package/lib/MobileSelector/search/index.js +26 -0
- package/lib/MobileUpload/index.css +1 -0
- package/lib/MobileUpload/index.js +160 -0
- package/lib/MultipleSelectEditor/index.js +9 -14
- package/lib/RowExpand/index.js +24 -0
- package/lib/RowExpandDialog/column-content/index.js +2 -2
- package/lib/RowExpandDialog/index.js +2 -0
- package/lib/RowExpandEditor/add-btn/index.js +24 -0
- package/lib/RowExpandEditor/add-btn/mb-add-btn/index.css +3 -0
- package/lib/RowExpandEditor/add-btn/mb-add-btn/index.js +19 -0
- package/lib/RowExpandEditor/{RowExpandAddBtn → add-btn/pc-add-btn}/index.js +6 -4
- package/lib/RowExpandEditor/checkbox-editor/index.js +25 -0
- package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.css +6 -0
- package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.js +36 -0
- package/lib/RowExpandEditor/{RowExpandCheckboxEditor/index.js → checkbox-editor/pc-editor.js} +9 -13
- package/lib/RowExpandEditor/collaborator-editor/index.js +24 -0
- package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.css +9 -0
- package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.js +163 -0
- package/lib/RowExpandEditor/{RowExpandCollaboratorEditor → collaborator-editor/pc-editor}/index.css +1 -1
- package/lib/RowExpandEditor/{RowExpandCollaboratorEditor → collaborator-editor/pc-editor}/index.js +6 -7
- package/lib/RowExpandEditor/constants.js +34 -34
- package/lib/RowExpandEditor/date-editor/index.js +24 -0
- package/lib/RowExpandEditor/date-editor/mb-editor.js +82 -0
- package/lib/RowExpandEditor/{RowExpandDateEditor/index.js → date-editor/pc-editor.js} +2 -2
- package/lib/RowExpandEditor/department-editor/index.js +24 -0
- package/lib/RowExpandEditor/department-editor/mb-editor.js +65 -0
- package/lib/RowExpandEditor/{RowExpandDepartmentEditor/index.js → department-editor/pc-editor.js} +44 -49
- package/lib/RowExpandEditor/digital-sign-editor/index.js +24 -0
- package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.css +1 -0
- package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +130 -0
- package/lib/RowExpandEditor/{RowExpandDigitalSignEditor → digital-sign-editor/pc-editor}/index.css +1 -1
- package/lib/RowExpandEditor/{RowExpandDigitalSignEditor → digital-sign-editor/pc-editor}/index.js +11 -11
- package/lib/RowExpandEditor/duration-editor/index.js +24 -0
- package/lib/RowExpandEditor/duration-editor/mb-editor.js +71 -0
- package/lib/RowExpandEditor/{RowExpandDurationEditor/index.js → duration-editor/pc-editor.js} +2 -2
- package/lib/RowExpandEditor/email-editor/index.js +24 -0
- package/lib/RowExpandEditor/email-editor/mb-editor/index.css +1 -0
- package/lib/RowExpandEditor/email-editor/mb-editor/index.js +84 -0
- package/lib/RowExpandEditor/email-editor/pc-editor/index.css +1 -0
- package/lib/RowExpandEditor/{RowExpandEmailEditor → email-editor/pc-editor}/index.js +3 -3
- package/lib/RowExpandEditor/file-editor/index.js +24 -0
- package/lib/RowExpandEditor/file-editor/mb-editor/index.js +114 -0
- package/lib/RowExpandEditor/file-editor/pc-editor/index.css +1 -0
- package/lib/RowExpandEditor/{RowExpandFileEditor → file-editor/pc-editor}/index.js +9 -9
- package/lib/RowExpandEditor/geolocation-editor/index.js +24 -0
- package/lib/RowExpandEditor/geolocation-editor/mb-editor/index.js +100 -0
- package/lib/RowExpandEditor/{RowExpandGeolocationEditor → geolocation-editor/pc-editor}/index.js +17 -13
- package/lib/RowExpandEditor/image-editor/index.js +24 -0
- package/lib/RowExpandEditor/image-editor/mb-editor/index.css +30 -0
- package/lib/RowExpandEditor/image-editor/mb-editor/index.js +109 -0
- package/lib/RowExpandEditor/{RowExpandImageEditor → image-editor/pc-editor}/index.js +9 -9
- package/lib/RowExpandEditor/long-text-editor/index.js +24 -0
- package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.css +10 -0
- package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.js +80 -0
- package/lib/RowExpandEditor/long-text-editor/mb-editor/index.css +3 -0
- package/lib/RowExpandEditor/long-text-editor/mb-editor/index.js +91 -0
- package/lib/RowExpandEditor/{RowExpandLongTextEditor → long-text-editor/pc-editor}/index.js +7 -7
- package/lib/RowExpandEditor/multiple-select-editor/index.js +24 -0
- package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +154 -0
- package/lib/RowExpandEditor/{RowExpandMultipleSelectEditor → multiple-select-editor/pc-editor}/index.css +1 -1
- package/lib/RowExpandEditor/{RowExpandMultipleSelectEditor → multiple-select-editor/pc-editor}/index.js +6 -6
- package/lib/RowExpandEditor/number-editor/index.js +24 -0
- package/lib/RowExpandEditor/number-editor/mb-editor/index.css +3 -0
- package/lib/RowExpandEditor/number-editor/mb-editor/index.js +76 -0
- package/lib/RowExpandEditor/{RowExpandNumberEditor/index.js → number-editor/pc-editor.js} +2 -2
- package/lib/RowExpandEditor/rate-editor/index.css +34 -0
- package/lib/RowExpandEditor/rate-editor/index.js +25 -0
- package/lib/RowExpandEditor/rate-editor/mb-editor.js +92 -0
- package/lib/RowExpandEditor/{RowExpandRateEditor/index.js → rate-editor/pc-editor.js} +2 -3
- package/lib/RowExpandEditor/right-angle/index.css +6 -0
- package/lib/RowExpandEditor/right-angle/index.js +17 -0
- package/lib/RowExpandEditor/single-select-editor/index.js +24 -0
- package/lib/RowExpandEditor/single-select-editor/mb-editor/index.css +8 -0
- package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +134 -0
- package/lib/RowExpandEditor/{RowExpandSingleSelectorEditor → single-select-editor/pc-editor}/index.js +17 -17
- package/lib/RowExpandEditor/text-editor/index.js +24 -0
- package/lib/RowExpandEditor/text-editor/mb-editor/index.css +14 -0
- package/lib/RowExpandEditor/text-editor/mb-editor/index.js +37 -0
- package/lib/RowExpandEditor/{RowExpandTextEditor → text-editor/pc-editor}/index.js +7 -7
- package/lib/RowExpandEditor/url-editor/index.js +24 -0
- package/lib/RowExpandEditor/url-editor/mb-editor/index.css +17 -0
- package/lib/RowExpandEditor/url-editor/mb-editor/index.js +87 -0
- package/lib/RowExpandEditor/{RowExpandUrlEditor → url-editor/pc-editor}/index.js +6 -6
- package/lib/RowExpandFormatter/constants.js +17 -17
- package/lib/RowExpandFormatter/department-formatter/index.js +19 -0
- package/lib/RowExpandFormatter/department-formatter/mb-formatter.js +20 -0
- package/lib/RowExpandFormatter/{RowExpandDepartmentFormatter/index.js → department-formatter/pc-formatter.js} +2 -2
- package/lib/RowExpandFormatter/{RowExpandEmailFormatter → email-formatter}/index.css +4 -4
- package/lib/RowExpandFormatter/index.css +33 -18
- package/lib/RowExpandFormatter/index.js +1 -1
- package/lib/RowExpandFormatter/rate-formatter/index.css +5 -0
- package/lib/RowExpandView/body/index.css +173 -0
- package/lib/RowExpandView/body/index.js +111 -0
- package/lib/RowExpandView/column-content/index.css +27 -0
- package/lib/RowExpandView/column-content/index.js +25 -0
- package/lib/RowExpandView/index.css +3 -0
- package/lib/RowExpandView/index.js +178 -0
- package/lib/SelectItem/index.js +57 -33
- package/lib/{Department-editor/selected-departments → SelectedDepartments}/index.css +0 -1
- package/lib/{Department-editor/selected-departments → SelectedDepartments}/index.js +3 -3
- package/lib/SingleSelectEditor/index.js +9 -14
- package/lib/SvgIcon/index.js +2 -1
- package/lib/constants/index.js +3 -2
- package/lib/css/am.css +0 -25
- package/lib/css/mb-cell-editor.css +1 -1
- package/lib/index.js +62 -6
- package/lib/locales/de.json +3 -1
- package/lib/locales/en.json +3 -1
- package/lib/locales/es.json +3 -1
- package/lib/locales/fr.json +3 -1
- package/lib/locales/pt.json +3 -1
- package/lib/locales/ru.json +3 -1
- package/lib/locales/zh-CN.json +3 -1
- package/lib/select-editor/index.js +27 -20
- package/lib/select-editor/mb-editor/index.css +1 -0
- package/lib/select-editor/mb-editor/index.js +105 -0
- package/lib/select-editor/{pc-select-editor → pc-editor}/index.css +1 -1
- package/lib/select-editor/{pc-select-editor → pc-editor}/index.js +7 -7
- package/lib/utils/editor-utils.js +6 -2
- package/lib/utils/get-event-transfer.js +2 -1
- package/lib/utils/utils.js +11 -2
- package/package.json +5 -5
- 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/DateEditor/mb-date-editor-popover/index.js +0 -226
- package/lib/FileEditor/addition-previewer/index.css +0 -1
- package/lib/FileEditor/addition-previewer/local-file-addition/index.css +0 -1
- package/lib/RowExpandEditor/RowExpandEmailEditor/index.css +0 -2
- package/lib/RowExpandEditor/RowExpandFileEditor/index.css +0 -1
- package/lib/RowExpandEditor/RowExpandRateEditor/index.css +0 -13
- package/lib/RowExpandFormatter/RowExpandRateFormatter/index.css +0 -5
- 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 → pc-editor}/index.css +0 -0
- /package/lib/CollaboratorEditor/{pc-collaborator-editor → pc-editor}/index.js +0 -0
- /package/lib/{Department-editor/department-multiple-select → DepartmentMultipleSelectEditor}/index.css +0 -0
- /package/lib/DigitalSignEditor/{index.css → pc-editor/index.css} +0 -0
- /package/lib/FileEditor/files-previewer/{file-previewer → pc-previewer/file-previewer}/file-name-editor/index.css +0 -0
- /package/lib/GeolocationEditor/{map-editor → pc-editor/map-editor}/large-editor/index.css +0 -0
- /package/lib/GeolocationEditor/{map-selection-editor → pc-editor/map-selection-editor}/large-editor/index.css +0 -0
- /package/lib/GeolocationEditor/{parse-geolocation.js → pc-editor/parse-geolocation.js} +0 -0
- /package/lib/GeolocationEditor/{selector-list.js → pc-editor/selector-list.js} +0 -0
- /package/lib/ImageEditor/{addition-previewer → pc-editor/addition-previewer}/image-link/index.css +0 -0
- /package/lib/ImageEditor/{addition-previewer → pc-editor/addition-previewer}/index.css +0 -0
- /package/lib/ImageEditor/{addition-previewer → pc-editor/addition-previewer}/local-image-addition/index.css +0 -0
- /package/lib/LinkEditor/{mb-link-editor-popover → mb-popover}/index.js +0 -0
- /package/lib/LinkEditor/{pc-link-editor-popover → pc-popover}/index.css +0 -0
- /package/lib/LinkEditor/{pc-link-editor-popover → pc-popover}/index.js +0 -0
- /package/lib/RowExpandEditor/{RowExpandAddBtn → add-btn/pc-add-btn}/index.css +0 -0
- /package/lib/RowExpandEditor/{RowExpandCheckboxEditor → checkbox-editor}/index.css +0 -0
- /package/lib/RowExpandEditor/{RowExpandGeolocationEditor → geolocation-editor/pc-editor}/index.css +0 -0
- /package/lib/RowExpandEditor/{RowExpandImageEditor → image-editor/pc-editor}/index.css +0 -0
- /package/lib/RowExpandEditor/{RowExpandLongTextEditor → long-text-editor/pc-editor}/index.css +0 -0
- /package/lib/RowExpandEditor/{RowExpandSingleSelectorEditor → single-select-editor/pc-editor}/index.css +0 -0
- /package/lib/RowExpandEditor/{RowExpandTextEditor → text-editor/pc-editor}/index.css +0 -0
- /package/lib/RowExpandEditor/{RowExpandUrlEditor → url-editor/pc-editor}/index.css +0 -0
- /package/lib/RowExpandFormatter/{RowExpandEmailFormatter → email-formatter}/index.js +0 -0
- /package/lib/RowExpandFormatter/{RowExpandFileFormatter → file-formatter}/index.css +0 -0
- /package/lib/RowExpandFormatter/{RowExpandFileFormatter → file-formatter}/index.js +0 -0
- /package/lib/RowExpandFormatter/{RowExpandFileFormatter → file-formatter}/row-expand-file-item-formatter.js +0 -0
- /package/lib/RowExpandFormatter/{RowExpandFormulaFormatter → formula-formatter}/index.js +0 -0
- /package/lib/RowExpandFormatter/{RowExpandImageFormatter → image-formatter}/index.css +0 -0
- /package/lib/RowExpandFormatter/{RowExpandImageFormatter → image-formatter}/index.js +0 -0
- /package/lib/RowExpandFormatter/{RowExpandImageFormatter → image-formatter}/row-expand-image-item-formatter.js +0 -0
- /package/lib/RowExpandFormatter/{RowExpandLinkFormatter → link-formatter}/collaborator-item-formatter.js +0 -0
- /package/lib/RowExpandFormatter/{RowExpandLinkFormatter → link-formatter}/index.css +0 -0
- /package/lib/RowExpandFormatter/{RowExpandLinkFormatter → link-formatter}/index.js +0 -0
- /package/lib/RowExpandFormatter/{RowExpandLinkFormatter → link-formatter}/value-display-utils.js +0 -0
- /package/lib/RowExpandFormatter/{RowExpandRateFormatter → rate-formatter}/index.js +0 -0
- /package/lib/RowExpandFormatter/{RowExpandUrlFormatter → url-formatter}/index.css +0 -0
- /package/lib/RowExpandFormatter/{RowExpandUrlFormatter → url-formatter}/index.js +0 -0
- /package/lib/{Department-editor/constants.js → constants/departments.js} +0 -0
- /package/lib/{Department-editor/utils.js → utils/departments.js} +0 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.OPERATION_TYPE = void 0;
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _ActionSheet = _interopRequireDefault(require("../ActionSheet"));
|
|
11
|
+
var _lang = require("../lang");
|
|
12
|
+
require("./index.css");
|
|
13
|
+
const OPERATION_TYPE = exports.OPERATION_TYPE = {
|
|
14
|
+
RENAME: 'rename',
|
|
15
|
+
DOWNLOAD: 'download',
|
|
16
|
+
DELETE: 'delete',
|
|
17
|
+
CLOSE: 'close'
|
|
18
|
+
};
|
|
19
|
+
const OPERATION_TYPES = [OPERATION_TYPE.RENAME, OPERATION_TYPE.DOWNLOAD, OPERATION_TYPE.DELETE];
|
|
20
|
+
const MobileOperationSheet = _ref => {
|
|
21
|
+
let {
|
|
22
|
+
onChange,
|
|
23
|
+
onClose,
|
|
24
|
+
operations = OPERATION_TYPES
|
|
25
|
+
} = _ref;
|
|
26
|
+
const actionSheet = (0, _react.useRef)(_ActionSheet.default);
|
|
27
|
+
const btns = (0, _react.useMemo)(() => {
|
|
28
|
+
let _btns = [];
|
|
29
|
+
if (operations.includes(OPERATION_TYPE.RENAME)) {
|
|
30
|
+
_btns.push({
|
|
31
|
+
dom: /*#__PURE__*/_react.default.createElement("div", {
|
|
32
|
+
className: "my-am-action"
|
|
33
|
+
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
34
|
+
"aria-hidden": "true",
|
|
35
|
+
className: "dtable-font dtable-icon-rename"
|
|
36
|
+
}), /*#__PURE__*/_react.default.createElement("span", null, (0, _lang.getLocale)('Rename'))),
|
|
37
|
+
value: OPERATION_TYPE.RENAME
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
if (operations.includes(OPERATION_TYPE.DOWNLOAD)) {
|
|
41
|
+
_btns.push({
|
|
42
|
+
dom: /*#__PURE__*/_react.default.createElement("div", {
|
|
43
|
+
className: "my-am-action"
|
|
44
|
+
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
45
|
+
"aria-hidden": "true",
|
|
46
|
+
className: "dtable-font dtable-icon-download"
|
|
47
|
+
}), /*#__PURE__*/_react.default.createElement("span", null, (0, _lang.getLocale)('Download'))),
|
|
48
|
+
value: OPERATION_TYPE.DOWNLOAD
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
if (operations.includes(OPERATION_TYPE.DELETE)) {
|
|
52
|
+
_btns.push({
|
|
53
|
+
dom: /*#__PURE__*/_react.default.createElement("div", {
|
|
54
|
+
className: "my-am-action"
|
|
55
|
+
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
56
|
+
"aria-hidden": "true",
|
|
57
|
+
className: "dtable-font dtable-icon-delete"
|
|
58
|
+
}), /*#__PURE__*/_react.default.createElement("span", null, (0, _lang.getLocale)('Delete'))),
|
|
59
|
+
value: OPERATION_TYPE.DELETE
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
return _btns;
|
|
63
|
+
}, [operations]);
|
|
64
|
+
const showActionSheet = (0, _react.useCallback)(() => {
|
|
65
|
+
const _btns = btns.map(btn => btn.dom);
|
|
66
|
+
actionSheet.current.showActionSheetWithOptions({
|
|
67
|
+
options: _btns,
|
|
68
|
+
maskClosable: true,
|
|
69
|
+
className: 'dtable-ui-mobile-action-sheet'
|
|
70
|
+
}, index => {
|
|
71
|
+
const {
|
|
72
|
+
value = 'close'
|
|
73
|
+
} = btns[index] || {};
|
|
74
|
+
if (value === 'close') {
|
|
75
|
+
onClose && onClose();
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
onChange && onChange(value);
|
|
79
|
+
});
|
|
80
|
+
}, [btns, onChange, onClose]);
|
|
81
|
+
(0, _react.useEffect)(() => {
|
|
82
|
+
showActionSheet();
|
|
83
|
+
return () => {
|
|
84
|
+
actionSheet.current.close();
|
|
85
|
+
actionSheet.current = null;
|
|
86
|
+
onClose && onClose();
|
|
87
|
+
};
|
|
88
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
89
|
+
}, []);
|
|
90
|
+
return null;
|
|
91
|
+
};
|
|
92
|
+
var _default = exports.default = MobileOperationSheet;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
+
var _List = _interopRequireDefault(require("../../List"));
|
|
11
|
+
require("./index.css");
|
|
12
|
+
const Empty = _ref => {
|
|
13
|
+
let {
|
|
14
|
+
children
|
|
15
|
+
} = _ref;
|
|
16
|
+
return /*#__PURE__*/_react.default.createElement(_List.default.Item, {
|
|
17
|
+
className: "dtable-ui-mobile-selector-no-options"
|
|
18
|
+
}, children);
|
|
19
|
+
};
|
|
20
|
+
Empty.propType = {
|
|
21
|
+
children: _propTypes.default.any
|
|
22
|
+
};
|
|
23
|
+
var _default = exports.default = Empty;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.dtable-ui-mobile-selector .am-list-header {
|
|
2
|
+
color: #212529;
|
|
3
|
+
font-size: 16px;
|
|
4
|
+
font-weight: bold;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.dtable-ui-mobile-selector .am-list-header .mobile-selector-editor-close-btn {
|
|
8
|
+
width: 20px;
|
|
9
|
+
font-size: 16px;
|
|
10
|
+
color: #798d99;
|
|
11
|
+
right: 0px;
|
|
12
|
+
position: absolute;
|
|
13
|
+
bottom: 0px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
html:not([data-scale]) .dtable-ui-mobile-selector .am-list-body:before,
|
|
17
|
+
html:not([data-scale]) .dtable-ui-mobile-selector .am-list-body:after {
|
|
18
|
+
background-color: #e9e9e9;
|
|
19
|
+
transform: scaleY(1) !important;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.dtable-ui-mobile-selector .am-list-body .dtable-ui-mobile-selector-search + .dtable-ui-mobile-selector-options {
|
|
23
|
+
border-top: 1px solid #e9e9e9;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.dtable-ui-mobile-selector .am-list-body .add-item-btn {
|
|
27
|
+
color: #212529;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.dtable-ui-mobile-selector .am-list-body .am-list-item {
|
|
31
|
+
min-height: 50px;
|
|
32
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
var _List = _interopRequireDefault(require("../List"));
|
|
12
|
+
var _MobileModal = _interopRequireDefault(require("../MobileModal"));
|
|
13
|
+
var _search = _interopRequireDefault(require("./search"));
|
|
14
|
+
var _options = _interopRequireDefault(require("./options"));
|
|
15
|
+
var _option = _interopRequireDefault(require("./option"));
|
|
16
|
+
var _empty = _interopRequireDefault(require("./empty"));
|
|
17
|
+
require("./index.css");
|
|
18
|
+
const MobileSelector = _ref => {
|
|
19
|
+
let {
|
|
20
|
+
className,
|
|
21
|
+
listClassName,
|
|
22
|
+
title,
|
|
23
|
+
children,
|
|
24
|
+
onClose
|
|
25
|
+
} = _ref;
|
|
26
|
+
const handleHistoryBack = (0, _react.useCallback)(event => {
|
|
27
|
+
event.preventDefault();
|
|
28
|
+
onClose && onClose();
|
|
29
|
+
}, [onClose]);
|
|
30
|
+
(0, _react.useEffect)(() => {
|
|
31
|
+
history.pushState(null, null, '#'); // eslint-disable-line
|
|
32
|
+
window.addEventListener('popstate', handleHistoryBack, false);
|
|
33
|
+
return () => {
|
|
34
|
+
window.removeEventListener('popstate', handleHistoryBack, false);
|
|
35
|
+
};
|
|
36
|
+
}, [handleHistoryBack]);
|
|
37
|
+
const renderHeader = (0, _react.useCallback)(() => {
|
|
38
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
39
|
+
className: "position-relative"
|
|
40
|
+
}, /*#__PURE__*/_react.default.createElement("span", null, title), /*#__PURE__*/_react.default.createElement("span", {
|
|
41
|
+
className: "mobile-selector-editor-close-btn dtable-font dtable-icon-x",
|
|
42
|
+
onClick: onClose
|
|
43
|
+
}));
|
|
44
|
+
}, [title, onClose]);
|
|
45
|
+
return /*#__PURE__*/_react.default.createElement(_MobileModal.default, {
|
|
46
|
+
onClose: onClose,
|
|
47
|
+
className: className
|
|
48
|
+
}, /*#__PURE__*/_react.default.createElement(_List.default, {
|
|
49
|
+
renderHeader: renderHeader,
|
|
50
|
+
className: (0, _classnames.default)('popup-list dtable-ui-mobile-selector', listClassName)
|
|
51
|
+
}, children));
|
|
52
|
+
};
|
|
53
|
+
MobileSelector.Search = _search.default;
|
|
54
|
+
MobileSelector.Option = _option.default;
|
|
55
|
+
MobileSelector.Options = _options.default;
|
|
56
|
+
MobileSelector.Empty = _empty.default;
|
|
57
|
+
var _default = exports.default = MobileSelector;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
|
|
2
|
+
.dtable-ui-mobile-selector .dtable-ui-mobile-selector-option {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 36px;
|
|
7
|
+
border-radius: 2px;
|
|
8
|
+
font-size: 13px;
|
|
9
|
+
color: #212529;
|
|
10
|
+
padding: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.dtable-ui-mobile-selector .dtable-ui-mobile-selector-option .dtable-ui-mobile-selector-option-name {
|
|
14
|
+
height: 30px;
|
|
15
|
+
flex: 1;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
text-overflow: ellipsis;
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
margin-right: 10px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.dtable-ui-mobile-selector .dtable-ui-mobile-selector-option .dtable-ui-mobile-selector-option-check-btn {
|
|
24
|
+
width: 20px;
|
|
25
|
+
text-align: center;
|
|
26
|
+
font-size: 12px;
|
|
27
|
+
color: #798d99;
|
|
28
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
+
var _List = _interopRequireDefault(require("../../List"));
|
|
11
|
+
require("./index.css");
|
|
12
|
+
const Option = _ref => {
|
|
13
|
+
let {
|
|
14
|
+
isSelected,
|
|
15
|
+
children,
|
|
16
|
+
onChange
|
|
17
|
+
} = _ref;
|
|
18
|
+
return /*#__PURE__*/_react.default.createElement(_List.default.Item, {
|
|
19
|
+
onClick: onChange
|
|
20
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
21
|
+
className: "dtable-ui-mobile-selector-option"
|
|
22
|
+
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
23
|
+
className: "dtable-ui-mobile-selector-option-name"
|
|
24
|
+
}, children), /*#__PURE__*/_react.default.createElement("span", {
|
|
25
|
+
className: "dtable-ui-mobile-selector-option-check-btn"
|
|
26
|
+
}, isSelected && /*#__PURE__*/_react.default.createElement("i", {
|
|
27
|
+
"aria-hidden": "true",
|
|
28
|
+
className: "dtable-font dtable-icon-check-mark"
|
|
29
|
+
}))));
|
|
30
|
+
};
|
|
31
|
+
Option.propType = {
|
|
32
|
+
isSelected: _propTypes.default.bool,
|
|
33
|
+
children: _propTypes.default.any,
|
|
34
|
+
onChange: _propTypes.default.func
|
|
35
|
+
};
|
|
36
|
+
var _default = exports.default = Option;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
require("./index.css");
|
|
10
|
+
const Options = _ref => {
|
|
11
|
+
let {
|
|
12
|
+
children
|
|
13
|
+
} = _ref;
|
|
14
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
15
|
+
className: "dtable-ui-mobile-selector-options"
|
|
16
|
+
}, children);
|
|
17
|
+
};
|
|
18
|
+
var _default = exports.default = Options;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _DTableSearchInput = _interopRequireDefault(require("../../DTableSearchInput"));
|
|
10
|
+
require("./index.css");
|
|
11
|
+
const Search = _ref => {
|
|
12
|
+
let {
|
|
13
|
+
value,
|
|
14
|
+
placeholder,
|
|
15
|
+
onChange
|
|
16
|
+
} = _ref;
|
|
17
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
18
|
+
className: "dtable-ui-mobile-selector-search"
|
|
19
|
+
}, /*#__PURE__*/_react.default.createElement(_DTableSearchInput.default, {
|
|
20
|
+
autoFocus: true,
|
|
21
|
+
value: value,
|
|
22
|
+
placeholder: placeholder,
|
|
23
|
+
onChange: onChange
|
|
24
|
+
}));
|
|
25
|
+
};
|
|
26
|
+
var _default = exports.default = Search;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import url('../MobileOperationSheet/index.css');
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _ActionSheet = _interopRequireDefault(require("../ActionSheet"));
|
|
11
|
+
var _lang = require("../lang");
|
|
12
|
+
require("./index.css");
|
|
13
|
+
const MobileUpload = _ref => {
|
|
14
|
+
let {
|
|
15
|
+
type = 'file',
|
|
16
|
+
onChange,
|
|
17
|
+
onClose
|
|
18
|
+
} = _ref;
|
|
19
|
+
const actionSheet = (0, _react.useRef)(_ActionSheet.default);
|
|
20
|
+
const imageRef = (0, _react.useRef)(null);
|
|
21
|
+
const fileRef = (0, _react.useRef)(null);
|
|
22
|
+
const cameraRef = (0, _react.useRef)(null);
|
|
23
|
+
const camcorderRef = (0, _react.useRef)(null);
|
|
24
|
+
const btns = (0, _react.useMemo)(() => {
|
|
25
|
+
const iconStyle = {
|
|
26
|
+
lineHeight: '56px'
|
|
27
|
+
};
|
|
28
|
+
if (type === 'image') return [/*#__PURE__*/_react.default.createElement("div", {
|
|
29
|
+
className: "my-am-action d-flex justify-content-between"
|
|
30
|
+
}, /*#__PURE__*/_react.default.createElement("span", null, (0, _lang.getLocale)('Take_a_photo')), /*#__PURE__*/_react.default.createElement("i", {
|
|
31
|
+
"aria-hidden": "true",
|
|
32
|
+
className: "dtable-font dtable-icon-camera",
|
|
33
|
+
style: iconStyle
|
|
34
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
35
|
+
className: "my-am-action d-flex justify-content-between"
|
|
36
|
+
}, /*#__PURE__*/_react.default.createElement("span", null, (0, _lang.getLocale)('Browse_documents')), /*#__PURE__*/_react.default.createElement("i", {
|
|
37
|
+
"aria-hidden": "true",
|
|
38
|
+
className: "dtable-font dtable-icon-more-level",
|
|
39
|
+
style: iconStyle
|
|
40
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
41
|
+
className: "my-am-action d-flex justify-content-center"
|
|
42
|
+
}, (0, _lang.getLocale)('Cancel'))];
|
|
43
|
+
return [/*#__PURE__*/_react.default.createElement("div", {
|
|
44
|
+
className: "my-am-action d-flex justify-content-between"
|
|
45
|
+
}, /*#__PURE__*/_react.default.createElement("span", null, (0, _lang.getLocale)('Take_a_photo')), /*#__PURE__*/_react.default.createElement("i", {
|
|
46
|
+
"aria-hidden": "true",
|
|
47
|
+
className: "dtable-font dtable-icon-camera",
|
|
48
|
+
style: iconStyle
|
|
49
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
50
|
+
className: "my-am-action d-flex justify-content-between"
|
|
51
|
+
}, /*#__PURE__*/_react.default.createElement("span", null, (0, _lang.getLocale)('Take_a_video')), /*#__PURE__*/_react.default.createElement("i", {
|
|
52
|
+
"aria-hidden": "true",
|
|
53
|
+
className: "dtable-font dtable-icon-camera",
|
|
54
|
+
style: iconStyle
|
|
55
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
56
|
+
className: "my-am-action d-flex justify-content-between"
|
|
57
|
+
}, /*#__PURE__*/_react.default.createElement("span", null, (0, _lang.getLocale)('Browse_documents')), /*#__PURE__*/_react.default.createElement("i", {
|
|
58
|
+
"aria-hidden": "true",
|
|
59
|
+
className: "dtable-font dtable-icon-more-level",
|
|
60
|
+
style: iconStyle
|
|
61
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
62
|
+
className: "my-am-action d-flex justify-content-center"
|
|
63
|
+
}, (0, _lang.getLocale)('Cancel'))];
|
|
64
|
+
}, [type]);
|
|
65
|
+
const showActionSheet = (0, _react.useCallback)(() => {
|
|
66
|
+
if (type === 'image') {
|
|
67
|
+
actionSheet.current.showActionSheetWithOptions({
|
|
68
|
+
options: btns,
|
|
69
|
+
cancelButtonIndex: 3,
|
|
70
|
+
maskClosable: true,
|
|
71
|
+
className: 'dtable-ui-mobile-action-sheet'
|
|
72
|
+
}, index => {
|
|
73
|
+
if (index === 0) {
|
|
74
|
+
imageRef.current.click();
|
|
75
|
+
} else if (index === 1) {
|
|
76
|
+
cameraRef.current.click();
|
|
77
|
+
} else {
|
|
78
|
+
onClose && onClose();
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
actionSheet.current.showActionSheetWithOptions({
|
|
84
|
+
options: btns,
|
|
85
|
+
cancelButtonIndex: 4,
|
|
86
|
+
maskClosable: true,
|
|
87
|
+
className: 'dtable-ui-mobile-action-sheet'
|
|
88
|
+
}, index => {
|
|
89
|
+
if (index === 0) {
|
|
90
|
+
fileRef.current.click();
|
|
91
|
+
} else if (index === 1) {
|
|
92
|
+
cameraRef.current.click();
|
|
93
|
+
} else if (index === 2) {
|
|
94
|
+
camcorderRef.current.click();
|
|
95
|
+
} else {
|
|
96
|
+
onClose && onClose();
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
}, [type, btns, onClose]);
|
|
100
|
+
const onInputClick = (0, _react.useCallback)(event => {
|
|
101
|
+
event.stopPropagation();
|
|
102
|
+
event.nativeEvent.stopImmediatePropagation();
|
|
103
|
+
}, []);
|
|
104
|
+
const handleChange = (0, _react.useCallback)(event => {
|
|
105
|
+
event.persist();
|
|
106
|
+
onChange && onChange(event.target.files);
|
|
107
|
+
}, [onChange]);
|
|
108
|
+
(0, _react.useEffect)(() => {
|
|
109
|
+
showActionSheet();
|
|
110
|
+
return () => {
|
|
111
|
+
actionSheet.current.close();
|
|
112
|
+
actionSheet.current = null;
|
|
113
|
+
onClose && onClose();
|
|
114
|
+
};
|
|
115
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
116
|
+
}, []);
|
|
117
|
+
if (type === 'image') {
|
|
118
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
119
|
+
className: "h-0 o-hidden"
|
|
120
|
+
}, /*#__PURE__*/_react.default.createElement("input", {
|
|
121
|
+
type: "file",
|
|
122
|
+
accept: "image/*",
|
|
123
|
+
ref: imageRef,
|
|
124
|
+
multiple: true,
|
|
125
|
+
onClick: onInputClick,
|
|
126
|
+
onChange: handleChange
|
|
127
|
+
}), /*#__PURE__*/_react.default.createElement("input", {
|
|
128
|
+
type: "file",
|
|
129
|
+
capture: "camera",
|
|
130
|
+
accept: "image/*",
|
|
131
|
+
ref: cameraRef,
|
|
132
|
+
onClick: onInputClick,
|
|
133
|
+
onChange: handleChange
|
|
134
|
+
}));
|
|
135
|
+
}
|
|
136
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
137
|
+
className: "h-0 o-hidden"
|
|
138
|
+
}, /*#__PURE__*/_react.default.createElement("input", {
|
|
139
|
+
type: "file",
|
|
140
|
+
ref: fileRef,
|
|
141
|
+
multiple: true,
|
|
142
|
+
onClick: onInputClick,
|
|
143
|
+
onChange: handleChange
|
|
144
|
+
}), /*#__PURE__*/_react.default.createElement("input", {
|
|
145
|
+
type: "file",
|
|
146
|
+
capture: "camera",
|
|
147
|
+
accept: "image/*",
|
|
148
|
+
ref: cameraRef,
|
|
149
|
+
onClick: onInputClick,
|
|
150
|
+
onChange: handleChange
|
|
151
|
+
}), /*#__PURE__*/_react.default.createElement("input", {
|
|
152
|
+
type: "file",
|
|
153
|
+
capture: "camcorder",
|
|
154
|
+
accept: "video/*",
|
|
155
|
+
ref: camcorderRef,
|
|
156
|
+
onClick: onInputClick,
|
|
157
|
+
onChange: handleChange
|
|
158
|
+
}));
|
|
159
|
+
};
|
|
160
|
+
var _default = exports.default = MobileUpload;
|
|
@@ -1,27 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.default = void 0;
|
|
8
|
-
var _react =
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
const MultipleSelectEditor = _ref => {
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _selectEditor = _interopRequireDefault(require("../select-editor"));
|
|
11
|
+
const MultipleSelectEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
12
12
|
let {
|
|
13
13
|
value: oldValue,
|
|
14
14
|
...props
|
|
15
15
|
} = _ref;
|
|
16
16
|
const value = oldValue ? Array.isArray(oldValue) ? oldValue : [oldValue] : [];
|
|
17
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
query: "(max-width: 767.8px)"
|
|
23
|
-
}, /*#__PURE__*/_react.default.createElement(_selectEditor.MBSelectEditor, Object.assign({}, props, {
|
|
24
|
-
value: value
|
|
25
|
-
}))));
|
|
26
|
-
};
|
|
17
|
+
return /*#__PURE__*/_react.default.createElement(_selectEditor.default, Object.assign({}, props, {
|
|
18
|
+
value: value,
|
|
19
|
+
ref: ref
|
|
20
|
+
}));
|
|
21
|
+
});
|
|
27
22
|
var _default = exports.default = MultipleSelectEditor;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
11
|
+
var _RowExpandDialog = _interopRequireDefault(require("../RowExpandDialog"));
|
|
12
|
+
var _RowExpandView = _interopRequireDefault(require("../RowExpandView"));
|
|
13
|
+
const RowExpand = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
14
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
|
|
15
|
+
query: '(min-width: 768px)'
|
|
16
|
+
}, /*#__PURE__*/_react.default.createElement(_RowExpandDialog.default, Object.assign({}, props, {
|
|
17
|
+
ref: ref
|
|
18
|
+
}))), /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
|
|
19
|
+
query: '(max-width: 768px)'
|
|
20
|
+
}, /*#__PURE__*/_react.default.createElement(_RowExpandView.default, Object.assign({}, props, {
|
|
21
|
+
ref: ref
|
|
22
|
+
}))));
|
|
23
|
+
});
|
|
24
|
+
var _default = exports.default = RowExpand;
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
var _reactstrap = require("reactstrap");
|
|
10
10
|
var _dtableUtils = require("dtable-utils");
|
|
11
11
|
require("./index.css");
|
|
12
|
-
const
|
|
12
|
+
const ColumnContent = _ref => {
|
|
13
13
|
let {
|
|
14
14
|
column,
|
|
15
15
|
children
|
|
@@ -47,4 +47,4 @@ const RowContent = _ref => {
|
|
|
47
47
|
className: "d-flex align-items-center dtable-ui-row-expand-column-content-value"
|
|
48
48
|
}, children));
|
|
49
49
|
};
|
|
50
|
-
var _default = exports.default =
|
|
50
|
+
var _default = exports.default = ColumnContent;
|
|
@@ -235,4 +235,6 @@ const RowExpandDialog = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
235
235
|
color: "primary"
|
|
236
236
|
}, (0, _lang.getLocale)('Submit'))))));
|
|
237
237
|
});
|
|
238
|
+
RowExpandDialog.Header = _header.default;
|
|
239
|
+
RowExpandDialog.Body = _body.default;
|
|
238
240
|
var _default = exports.default = RowExpandDialog;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
11
|
+
var _pcAddBtn = _interopRequireDefault(require("./pc-add-btn"));
|
|
12
|
+
var _mbAddBtn = _interopRequireDefault(require("./mb-add-btn"));
|
|
13
|
+
const RowExpandAddBtn = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
14
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
|
|
15
|
+
query: "(min-width: 768px)"
|
|
16
|
+
}, /*#__PURE__*/_react.default.createElement(_pcAddBtn.default, Object.assign({}, props, {
|
|
17
|
+
ref: ref
|
|
18
|
+
}))), /*#__PURE__*/_react.default.createElement(_reactResponsive.default, {
|
|
19
|
+
query: "(max-width: 768px)"
|
|
20
|
+
}, /*#__PURE__*/_react.default.createElement(_mbAddBtn.default, Object.assign({}, props, {
|
|
21
|
+
ref: ref
|
|
22
|
+
}))));
|
|
23
|
+
});
|
|
24
|
+
var _default = exports.default = RowExpandAddBtn;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
require("./index.css");
|
|
12
|
+
const RowExpandMBAddBtn = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
13
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
14
|
+
ref: ref,
|
|
15
|
+
onClick: props.onClick,
|
|
16
|
+
className: (0, _classnames.default)('dtable-ui-mobile-row-expand-add-btn', props.className)
|
|
17
|
+
}, props.text);
|
|
18
|
+
});
|
|
19
|
+
var _default = exports.default = RowExpandMBAddBtn;
|