dtable-ui-component 6.0.49 → 6.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ActionSheet/index.js +94 -68
- package/lib/ActivityIndicator/index.js +36 -28
- package/lib/AsyncUserSelect/index.css +122 -0
- package/lib/AsyncUserSelect/index.js +260 -0
- package/lib/AsyncUserSelect/user-item.js +55 -0
- package/lib/AutoNumberFormatter/index.js +5 -3
- package/lib/Badge/index.js +12 -8
- package/lib/ButtonFormatter/index.js +15 -10
- package/lib/CTimeFormatter/index.js +5 -3
- package/lib/CheckboxEditor/index.js +22 -13
- package/lib/CheckboxEditor/mb-editor.js +7 -5
- package/lib/CheckboxEditor/pc-editor.js +7 -5
- package/lib/CheckboxFormatter/index.js +7 -5
- package/lib/CollaboratorEditor/index.js +24 -15
- package/lib/CollaboratorEditor/mb-editor/index.js +19 -13
- package/lib/CollaboratorEditor/pc-editor/index.js +50 -42
- package/lib/CollaboratorFormatter/index.js +8 -7
- package/lib/CollaboratorItem/index.js +21 -16
- package/lib/CollapsibleSettingLayout/index.js +17 -12
- package/lib/Comment/body/comment.js +78 -62
- package/lib/Comment/body/index.js +14 -11
- package/lib/Comment/footer/btns/index.js +68 -53
- package/lib/Comment/footer/index.js +29 -27
- package/lib/Comment/footer/input/index.js +44 -39
- package/lib/Comment/footer/input/participant/index.js +18 -13
- package/lib/Comment/footer/participants/index.js +31 -28
- package/lib/Comment/footer/participants/participant/index.js +18 -15
- package/lib/Comment/footer/participants/participant-select/index.js +66 -55
- package/lib/Comment/index.js +33 -28
- package/lib/CreatorFormatter/index.js +8 -7
- package/lib/DTableColorPicker/ColorPickerPortal/index.js +5 -3
- package/lib/DTableColorPicker/index.js +135 -99
- package/lib/DTableCommonAddTool/index.js +10 -7
- package/lib/DTableCustomFooter/index.js +5 -3
- package/lib/DTableCustomizeCollaboratorSelect/index.js +38 -32
- package/lib/DTableCustomizeSelect/index.js +51 -44
- package/lib/DTableEmptyTip/index.js +20 -16
- package/lib/DTableFiltersPopover/index.js +71 -61
- package/lib/DTableFiltersPopover/utils/filter-item-utils.js +74 -57
- package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +64 -49
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +49 -41
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +57 -47
- package/lib/DTableFiltersPopover/widgets/filter-calendar.js +35 -31
- package/lib/DTableFiltersPopover/widgets/filter-group.js +38 -32
- package/lib/DTableFiltersPopover/widgets/filter-item.js +125 -106
- package/lib/DTableFiltersPopover/widgets/filter-list/index.js +18 -17
- package/lib/DTableFiltersPopover/widgets/rate-item.js +12 -9
- package/lib/DTableGroupSelect/index.js +52 -44
- package/lib/DTableGroupSelect/option.js +5 -3
- package/lib/DTableGroupSelect/select-option-group.js +31 -25
- package/lib/DTableModalHeader/index.js +13 -9
- package/lib/DTablePopover/index.js +9 -6
- package/lib/DTableRadio/index.js +20 -17
- package/lib/DTableRadioGroup/index.js +21 -18
- package/lib/DTableSearchInput/index.js +22 -18
- package/lib/DTableSelect/dtable-select-label.js +12 -7
- package/lib/DTableSelect/index.js +2 -1
- package/lib/DTableSelect/utils.js +34 -20
- package/lib/DTableSwitch/index.js +25 -17
- package/lib/DateEditor/index.js +25 -16
- package/lib/DateEditor/mb-editor/index.js +90 -68
- package/lib/DateEditor/pc-editor.js +38 -34
- package/lib/DateFormatter/index.js +5 -3
- package/lib/DeleteTip/index.js +29 -20
- package/lib/DepartmentMultipleSelectEditor/index.js +57 -49
- package/lib/DepartmentSelectFilter/index.js +8 -1
- package/lib/DepartmentSingleSelectEditor/index.js +22 -13
- package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +75 -55
- package/lib/DepartmentSingleSelectEditor/pc-editor/department-single-select.js +78 -61
- package/lib/DepartmentSingleSelectEditor/pc-editor/index.js +14 -11
- package/lib/DepartmentSingleSelectFormatter/index.js +13 -9
- package/lib/DigitalSignEditor/index.js +22 -13
- package/lib/DigitalSignEditor/mb-editor/index.js +39 -24
- package/lib/DigitalSignEditor/pc-editor/index.js +44 -30
- package/lib/DigitalSignEditor/signature-board/index.js +19 -15
- package/lib/DigitalSignFormatter/index.js +23 -19
- package/lib/Drawer/index.js +4 -1
- package/lib/DurationEditor/index.js +2 -1
- package/lib/DurationFormatter/index.js +5 -3
- package/lib/EditEditorButton/index.js +5 -3
- package/lib/EmailEditor/index.js +2 -1
- package/lib/EmailFormatter/index.js +5 -3
- package/lib/FieldDisplaySetting/field-item.js +25 -19
- package/lib/FieldDisplaySetting/index.js +47 -38
- package/lib/FileEditor/files-previewer/index.js +22 -13
- package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +43 -28
- package/lib/FileEditor/files-previewer/mb-previewer/index.js +24 -21
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/dropdown-menu.js +30 -24
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/file-name-editor/index.js +13 -11
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/index.js +81 -63
- package/lib/FileEditor/files-previewer/pc-previewer/index.js +81 -65
- package/lib/FileEditor/index.js +22 -13
- package/lib/FileEditor/mb-editor/index.js +43 -31
- package/lib/FileEditor/pc-editor/addition-previewer/index.js +27 -20
- package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.js +107 -81
- package/lib/FileEditor/pc-editor/index.js +46 -36
- package/lib/FileFormatter/index.js +40 -36
- package/lib/FileItemFormatter/index.js +2 -1
- package/lib/FileUploader/index.js +22 -20
- package/lib/FormulaFormatter/index.js +21 -14
- package/lib/GeolocationEditor/index.js +28 -19
- package/lib/GeolocationEditor/mb-editor/country-editor.js +42 -27
- package/lib/GeolocationEditor/mb-editor/index.js +22 -14
- package/lib/GeolocationEditor/mb-editor/location-editor.js +54 -34
- package/lib/GeolocationEditor/mb-editor/map-editor/index.js +102 -74
- package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.js +144 -110
- package/lib/GeolocationEditor/mb-editor/province-city-editor.js +42 -27
- package/lib/GeolocationEditor/mb-editor/province-editor.js +42 -27
- package/lib/GeolocationEditor/pc-editor/country-editor.js +37 -30
- package/lib/GeolocationEditor/pc-editor/index.js +26 -17
- package/lib/GeolocationEditor/pc-editor/location-editor.js +121 -95
- package/lib/GeolocationEditor/pc-editor/map-editor/index.js +99 -74
- package/lib/GeolocationEditor/pc-editor/map-editor/large-editor/index.js +99 -76
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/index.js +119 -91
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +102 -82
- package/lib/GeolocationEditor/pc-editor/province-city-editor.js +89 -69
- package/lib/GeolocationEditor/pc-editor/province-editor.js +30 -25
- package/lib/GeolocationEditor/pc-editor/selector-header-item.js +9 -5
- package/lib/GeolocationEditor/pc-editor/selector-list.js +15 -13
- package/lib/GeolocationFormatter/index.js +5 -3
- package/lib/HtmlLongTextFormatter/index.js +2 -1
- package/lib/Icon/index.js +8 -5
- package/lib/IconButton/index.js +9 -6
- package/lib/ImageEditor/images-previewer/image-preview/index.js +52 -44
- package/lib/ImageEditor/images-previewer/index.js +35 -32
- package/lib/ImageEditor/index.js +22 -13
- package/lib/ImageEditor/mb-editor/index.js +43 -31
- package/lib/ImageEditor/pc-editor/addition-previewer/image-link/index.js +19 -15
- package/lib/ImageEditor/pc-editor/addition-previewer/index.js +32 -24
- package/lib/ImageEditor/pc-editor/addition-previewer/local-image-addition/index.js +101 -76
- package/lib/ImageEditor/pc-editor/images-previewer/index.js +33 -30
- package/lib/ImageEditor/pc-editor/index.js +44 -32
- package/lib/ImageFormatter/images-lazy-load.js +12 -10
- package/lib/ImageFormatter/index.js +40 -34
- package/lib/ImagePreviewerLightbox/index.js +12 -8
- package/lib/ImageThumbnail/index.js +46 -38
- package/lib/InputItem/custom-input.js +23 -18
- package/lib/InputItem/custom-keyboard.js +65 -44
- package/lib/InputItem/index.js +66 -56
- package/lib/InputItem/input.js +5 -3
- package/lib/LastModifierFormatter/index.js +8 -7
- package/lib/LinkEditor/index.js +38 -32
- package/lib/LinkEditor/link-editor-option.js +25 -20
- package/lib/LinkEditor/mb-popover/index.js +53 -41
- package/lib/LinkEditor/pc-popover/index.js +41 -33
- package/lib/LinkFormatter/index.js +13 -10
- package/lib/List/index.js +15 -9
- package/lib/List/list-item.js +32 -23
- package/lib/Loading/index.js +2 -1
- package/lib/LongTextFormatter/index.js +3 -2
- package/lib/MBEditorHeader/index.js +19 -14
- package/lib/MTimeFormatter/index.js +5 -3
- package/lib/MobileFullScreenPage/body/index.js +5 -3
- package/lib/MobileFullScreenPage/header/index.js +21 -16
- package/lib/MobileFullScreenPage/index.js +11 -8
- package/lib/MobileModal/index.js +6 -3
- package/lib/MobileOperationSheet/index.js +28 -18
- package/lib/MobileSelector/empty/index.js +5 -3
- package/lib/MobileSelector/index.js +18 -12
- package/lib/MobileSelector/option/index.js +17 -12
- package/lib/MobileSelector/options/index.js +5 -3
- package/lib/MobileSelector/search/index.js +10 -8
- package/lib/MobileUpload/index.js +87 -67
- package/lib/Modal/alert.js +8 -5
- package/lib/Modal/modal.js +19 -15
- package/lib/Modal/operation.js +2 -1
- package/lib/Modal/prompt.js +74 -54
- package/lib/MultipleSelectEditor/index.js +4 -2
- package/lib/MultipleSelectFormatter/index.js +8 -7
- package/lib/NotificationPopover/index.js +43 -32
- package/lib/NumberEditor/index.js +2 -1
- package/lib/NumberFormatter/index.js +5 -3
- package/lib/Picker/AbstractPicker.js +26 -22
- package/lib/Picker/index.js +2 -1
- package/lib/Popover/index.js +8 -5
- package/lib/Popover/item.js +22 -15
- package/lib/Progress/index.js +12 -10
- package/lib/Radio/Radio.js +11 -7
- package/lib/Radio/RadioItem.js +9 -3
- package/lib/RateFormatter/index.js +7 -6
- package/lib/RoleStatusEditor/index.js +36 -31
- package/lib/RowExpand/index.js +16 -9
- package/lib/RowExpandDialog/body/index.js +52 -41
- package/lib/RowExpandDialog/column-content/index.js +34 -25
- package/lib/RowExpandDialog/header/index.js +28 -21
- package/lib/RowExpandDialog/index.js +40 -27
- package/lib/RowExpandEditor/add-btn/index.js +16 -9
- package/lib/RowExpandEditor/add-btn/mb-add-btn/index.js +5 -3
- package/lib/RowExpandEditor/add-btn/pc-add-btn/index.js +8 -5
- package/lib/RowExpandEditor/checkbox-editor/index.js +16 -9
- package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.js +10 -8
- package/lib/RowExpandEditor/checkbox-editor/pc-editor.js +2 -1
- package/lib/RowExpandEditor/collaborator-editor/index.js +16 -9
- package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.js +19 -17
- package/lib/RowExpandEditor/collaborator-editor/pc-editor/index.js +52 -47
- package/lib/RowExpandEditor/date-editor/index.js +16 -9
- package/lib/RowExpandEditor/date-editor/mb-editor.js +20 -15
- package/lib/RowExpandEditor/date-editor/pc-editor.js +24 -21
- package/lib/RowExpandEditor/department-editor/index.js +16 -9
- package/lib/RowExpandEditor/department-editor/mb-editor.js +27 -22
- package/lib/RowExpandEditor/department-editor/pc-editor.js +35 -29
- package/lib/RowExpandEditor/digital-sign-editor/index.js +16 -9
- package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +19 -16
- package/lib/RowExpandEditor/digital-sign-editor/pc-editor/index.js +34 -32
- package/lib/RowExpandEditor/duration-editor/index.js +16 -9
- package/lib/RowExpandEditor/duration-editor/mb-editor.js +15 -12
- package/lib/RowExpandEditor/duration-editor/pc-editor.js +17 -13
- package/lib/RowExpandEditor/email-editor/index.js +16 -9
- package/lib/RowExpandEditor/email-editor/mb-editor/index.js +19 -17
- package/lib/RowExpandEditor/email-editor/pc-editor/index.js +20 -18
- package/lib/RowExpandEditor/file-editor/index.js +16 -9
- package/lib/RowExpandEditor/file-editor/mb-editor/index.js +21 -16
- package/lib/RowExpandEditor/file-editor/pc-editor/index.js +22 -20
- package/lib/RowExpandEditor/geolocation-editor/index.js +16 -9
- package/lib/RowExpandEditor/geolocation-editor/mb-editor/index.js +12 -9
- package/lib/RowExpandEditor/geolocation-editor/pc-editor/index.js +20 -17
- package/lib/RowExpandEditor/image-editor/index.js +16 -9
- package/lib/RowExpandEditor/image-editor/mb-editor/index.js +21 -16
- package/lib/RowExpandEditor/image-editor/pc-editor/index.js +29 -25
- package/lib/RowExpandEditor/index.js +4 -2
- package/lib/RowExpandEditor/long-text-editor/index.js +16 -9
- package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.js +27 -16
- package/lib/RowExpandEditor/long-text-editor/mb-editor/index.js +19 -16
- package/lib/RowExpandEditor/long-text-editor/pc-editor/index.js +22 -18
- package/lib/RowExpandEditor/multiple-select-editor/index.js +16 -9
- package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +26 -23
- package/lib/RowExpandEditor/multiple-select-editor/pc-editor/index.js +81 -67
- package/lib/RowExpandEditor/number-editor/index.js +16 -9
- package/lib/RowExpandEditor/number-editor/mb-editor/index.js +10 -7
- package/lib/RowExpandEditor/number-editor/pc-editor.js +6 -4
- package/lib/RowExpandEditor/rate-editor/index.js +16 -9
- package/lib/RowExpandEditor/rate-editor/mb-editor.js +10 -8
- package/lib/RowExpandEditor/rate-editor/pc-editor.js +11 -9
- package/lib/RowExpandEditor/right-angle/index.js +8 -6
- package/lib/RowExpandEditor/single-select-editor/index.js +16 -9
- package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +30 -23
- package/lib/RowExpandEditor/single-select-editor/pc-editor/index.js +42 -34
- package/lib/RowExpandEditor/text-editor/index.js +16 -9
- package/lib/RowExpandEditor/text-editor/mb-editor/index.js +11 -9
- package/lib/RowExpandEditor/text-editor/pc-editor/index.js +16 -12
- package/lib/RowExpandEditor/url-editor/index.js +16 -9
- package/lib/RowExpandEditor/url-editor/mb-editor/index.js +19 -17
- package/lib/RowExpandEditor/url-editor/pc-editor/index.js +20 -18
- package/lib/RowExpandFormatter/department-formatter/index.js +14 -5
- package/lib/RowExpandFormatter/department-formatter/mb-formatter.js +2 -1
- package/lib/RowExpandFormatter/department-formatter/pc-formatter.js +15 -11
- package/lib/RowExpandFormatter/email-formatter/index.js +11 -8
- package/lib/RowExpandFormatter/file-formatter/index.js +15 -14
- package/lib/RowExpandFormatter/file-formatter/row-expand-file-item-formatter.js +43 -36
- package/lib/RowExpandFormatter/formula-formatter/index.js +37 -29
- package/lib/RowExpandFormatter/image-formatter/index.js +30 -27
- package/lib/RowExpandFormatter/image-formatter/row-expand-image-item-formatter.js +47 -39
- package/lib/RowExpandFormatter/index.js +131 -114
- package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +2 -1
- package/lib/RowExpandFormatter/link-formatter/index.js +70 -67
- package/lib/RowExpandFormatter/rate-formatter/index.js +7 -6
- package/lib/RowExpandFormatter/url-formatter/index.js +11 -8
- package/lib/RowExpandView/body/index.js +38 -32
- package/lib/RowExpandView/column-content/index.js +10 -5
- package/lib/RowExpandView/index.js +27 -16
- package/lib/SelectItem/index.js +16 -12
- package/lib/SelectOptionGroup/index.js +39 -32
- package/lib/SelectOptionGroup/option.js +5 -3
- package/lib/SelectedDepartments/index.js +54 -44
- package/lib/SimpleLongTextFormatter/index.js +39 -30
- package/lib/SimpleLongTextFormatter/widgets/LongTextPreview.js +11 -8
- package/lib/SimpleLongTextFormatter/widgets/dtable-markdown-viewer.js +3 -2
- package/lib/SingleSelectEditor/index.js +4 -2
- package/lib/SingleSelectFormatter/index.js +6 -4
- package/lib/SvgIcon/index.js +4 -1
- package/lib/TabBar/Tab.js +27 -20
- package/lib/TabBar/index.js +25 -21
- package/lib/Tabs/index.js +8 -5
- package/lib/TextEditor/index.js +21 -18
- package/lib/TextFormatter/index.js +5 -3
- package/lib/TextareaItem/index.js +35 -26
- package/lib/Toast/index.js +16 -10
- package/lib/UploadProgress/index.js +2 -1
- package/lib/UrlEditor/index.js +2 -1
- package/lib/UrlFormatter/index.js +5 -3
- package/lib/formatterConfig/base-formatter-config.js +24 -23
- package/lib/formatterConfig/index.js +3 -2
- package/lib/index.js +7 -0
- package/lib/locales/de.json +5 -1
- package/lib/locales/en.json +5 -1
- package/lib/locales/es.json +6 -2
- package/lib/locales/fr.json +5 -1
- package/lib/locales/pt.json +5 -1
- package/lib/locales/ru.json +5 -1
- package/lib/locales/zh-CN.json +5 -1
- package/lib/select-editor/index.js +22 -13
- package/lib/select-editor/mb-editor/index.js +22 -16
- package/lib/select-editor/pc-editor/index.js +74 -60
- package/lib/toaster/alert.js +25 -16
- package/lib/toaster/toast.js +27 -23
- package/lib/toaster/toastManager.js +16 -13
- package/lib/toaster/toaster.js +2 -1
- package/package.json +2 -2
|
@@ -10,15 +10,22 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
11
11
|
var _pcEditor = _interopRequireDefault(require("./pc-editor"));
|
|
12
12
|
var _mbEditor = _interopRequireDefault(require("./mb-editor"));
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
const RowExpandDurationEditor = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
14
|
-
return /*#__PURE__*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
16
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
17
|
+
query: "(min-width: 768px)",
|
|
18
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
|
|
19
|
+
...props,
|
|
20
|
+
ref: ref
|
|
21
|
+
})
|
|
22
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
23
|
+
query: "(max-width: 768px)",
|
|
24
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
|
|
25
|
+
...props,
|
|
26
|
+
ref: ref
|
|
27
|
+
})
|
|
28
|
+
})]
|
|
29
|
+
});
|
|
23
30
|
});
|
|
24
31
|
var _default = exports.default = RowExpandDurationEditor;
|
|
@@ -8,6 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _dtableUtils = require("dtable-utils");
|
|
10
10
|
var _DurationEditor = _interopRequireDefault(require("../../DurationEditor"));
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
class RowExpandMBDurationEditor extends _react.default.Component {
|
|
12
13
|
constructor(props) {
|
|
13
14
|
super(props);
|
|
@@ -54,18 +55,20 @@ class RowExpandMBDurationEditor extends _react.default.Component {
|
|
|
54
55
|
value,
|
|
55
56
|
isShowEditor
|
|
56
57
|
} = this.state;
|
|
57
|
-
return /*#__PURE__*/
|
|
58
|
-
className: "dtable-ui-mobile-row-expand-input-editor-container"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
58
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
59
|
+
className: "dtable-ui-mobile-row-expand-input-editor-container",
|
|
60
|
+
children: isShowEditor ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_DurationEditor.default, {
|
|
61
|
+
isInModal: true,
|
|
62
|
+
column: column,
|
|
63
|
+
value: value,
|
|
64
|
+
toggleEditor: this.toggleEditor,
|
|
65
|
+
onCommit: this.onCommit
|
|
66
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
67
|
+
className: "w-100 h-100",
|
|
68
|
+
onClick: this.toggleEditor,
|
|
69
|
+
children: (0, _dtableUtils.getDurationDisplayString)(value, column.data)
|
|
70
|
+
})
|
|
71
|
+
});
|
|
69
72
|
}
|
|
70
73
|
}
|
|
71
74
|
var _default = exports.default = RowExpandMBDurationEditor;
|
|
@@ -10,6 +10,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _dtableUtils = require("dtable-utils");
|
|
11
11
|
var _constants = require("../../constants");
|
|
12
12
|
var _DurationEditor = _interopRequireDefault(require("../../DurationEditor"));
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
class RowExpandPCDurationEditor extends _react.default.Component {
|
|
14
15
|
constructor(props) {
|
|
15
16
|
super(props);
|
|
@@ -87,19 +88,22 @@ class RowExpandPCDurationEditor extends _react.default.Component {
|
|
|
87
88
|
if (isEditorFocus) {
|
|
88
89
|
style = Object.assign({}, style, _constants.ROW_EXPAND_FOCUS_STYLE);
|
|
89
90
|
}
|
|
90
|
-
return /*#__PURE__*/
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
91
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Fragment, {
|
|
92
|
+
children: isShowEditor ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_DurationEditor.default, {
|
|
93
|
+
isInModal: isInModal,
|
|
94
|
+
column: column,
|
|
95
|
+
value: value,
|
|
96
|
+
toggleEditor: this.toggleEditor,
|
|
97
|
+
onCommit: this.onCommit
|
|
98
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
99
|
+
tabIndex: 0,
|
|
100
|
+
onFocus: this.toggleEditor,
|
|
101
|
+
onClick: this.toggleEditor,
|
|
102
|
+
className: "form-control",
|
|
103
|
+
style: style,
|
|
104
|
+
children: (0, _dtableUtils.getDurationDisplayString)(value, column.data)
|
|
105
|
+
})
|
|
106
|
+
});
|
|
103
107
|
}
|
|
104
108
|
}
|
|
105
109
|
var _default = exports.default = RowExpandPCDurationEditor;
|
|
@@ -10,15 +10,22 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
11
11
|
var _pcEditor = _interopRequireDefault(require("./pc-editor"));
|
|
12
12
|
var _mbEditor = _interopRequireDefault(require("./mb-editor"));
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
const RowExpandEmailEditor = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
14
|
-
return /*#__PURE__*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
16
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
17
|
+
query: "(min-width: 768px)",
|
|
18
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
|
|
19
|
+
...props,
|
|
20
|
+
ref: ref
|
|
21
|
+
})
|
|
22
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
23
|
+
query: "(max-width: 768px)",
|
|
24
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
|
|
25
|
+
...props,
|
|
26
|
+
ref: ref
|
|
27
|
+
})
|
|
28
|
+
})]
|
|
29
|
+
});
|
|
23
30
|
});
|
|
24
31
|
var _default = exports.default = RowExpandEmailEditor;
|
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
require("./index.css");
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
11
|
class RowExpandMBEmailEditor extends _react.default.Component {
|
|
11
12
|
constructor(props) {
|
|
12
13
|
super(props);
|
|
@@ -62,23 +63,24 @@ class RowExpandMBEmailEditor extends _react.default.Component {
|
|
|
62
63
|
const {
|
|
63
64
|
value
|
|
64
65
|
} = this.state;
|
|
65
|
-
return /*#__PURE__*/
|
|
66
|
-
className: "dtable-ui-mobile-row-expand-input-editor-container position-relative dtable-ui-mobile-row-expand-url-editor-container"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
66
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
67
|
+
className: "dtable-ui-mobile-row-expand-input-editor-container position-relative dtable-ui-mobile-row-expand-url-editor-container",
|
|
68
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
69
|
+
type: "text",
|
|
70
|
+
onFocus: this.onFocus,
|
|
71
|
+
onBlur: this.onBlur,
|
|
72
|
+
onCut: this.onCut,
|
|
73
|
+
onPaste: this.onPaste,
|
|
74
|
+
onChange: this.onChange,
|
|
75
|
+
className: "form-control dtable-ui-mobile-row-expand-url-input",
|
|
76
|
+
value: value,
|
|
77
|
+
onKeyDown: this.onKeyDown
|
|
78
|
+
}), value && value.trim() && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
79
|
+
"aria-hidden": "true",
|
|
80
|
+
className: "dtable-font dtable-icon-email dtable-ui-mobile-row-expand-jump-link",
|
|
81
|
+
onClick: this.onOpenEmailLink
|
|
82
|
+
})]
|
|
83
|
+
});
|
|
82
84
|
}
|
|
83
85
|
}
|
|
84
86
|
var _default = exports.default = RowExpandMBEmailEditor;
|
|
@@ -8,6 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _constants = require("../../../constants");
|
|
10
10
|
require("./index.css");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
class RowExpandPCEmailEditor extends _react.default.Component {
|
|
12
13
|
constructor(props) {
|
|
13
14
|
super(props);
|
|
@@ -102,24 +103,25 @@ class RowExpandPCEmailEditor extends _react.default.Component {
|
|
|
102
103
|
let {
|
|
103
104
|
value
|
|
104
105
|
} = this.state;
|
|
105
|
-
return /*#__PURE__*/
|
|
106
|
-
className: "dtable-ui-row-expand-url-editor"
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
106
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
107
|
+
className: "dtable-ui-row-expand-url-editor",
|
|
108
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
109
|
+
ref: ref => this.urlInputRef = ref,
|
|
110
|
+
type: "text",
|
|
111
|
+
onFocus: this.onFocus,
|
|
112
|
+
onBlur: this.onBlur,
|
|
113
|
+
onCut: this.onCut,
|
|
114
|
+
onPaste: this.onPaste,
|
|
115
|
+
onChange: this.onChange,
|
|
116
|
+
className: "form-control dtable-ui-row-expand-url-input",
|
|
117
|
+
value: value,
|
|
118
|
+
onKeyDown: this.onKeyDown
|
|
119
|
+
}), value && value.trim() && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
120
|
+
"aria-hidden": "true",
|
|
121
|
+
className: "dtable-font dtable-icon-email dtable-ui-row-expand-jump-link",
|
|
122
|
+
onClick: this.onOpenEmailLink
|
|
123
|
+
})]
|
|
124
|
+
});
|
|
123
125
|
}
|
|
124
126
|
}
|
|
125
127
|
var _default = exports.default = RowExpandPCEmailEditor;
|
|
@@ -10,15 +10,22 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
11
11
|
var _pcEditor = _interopRequireDefault(require("./pc-editor"));
|
|
12
12
|
var _mbEditor = _interopRequireDefault(require("./mb-editor"));
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
const RowExpandFileEditor = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
14
|
-
return /*#__PURE__*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
16
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
17
|
+
query: "(min-width: 768px)",
|
|
18
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
|
|
19
|
+
...props,
|
|
20
|
+
ref: ref
|
|
21
|
+
})
|
|
22
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
23
|
+
query: "(max-width: 768px)",
|
|
24
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
|
|
25
|
+
...props,
|
|
26
|
+
ref: ref
|
|
27
|
+
})
|
|
28
|
+
})]
|
|
29
|
+
});
|
|
23
30
|
});
|
|
24
31
|
var _default = exports.default = RowExpandFileEditor;
|
|
@@ -11,6 +11,7 @@ var _lang = require("../../../lang");
|
|
|
11
11
|
var _ImageThumbnail = _interopRequireDefault(require("../../../ImageThumbnail"));
|
|
12
12
|
var _url = require("../../../utils/url");
|
|
13
13
|
var _FileEditor = _interopRequireDefault(require("../../../FileEditor"));
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
15
|
class RowExpandMBFileEditor extends _react.default.Component {
|
|
15
16
|
constructor(props) {
|
|
16
17
|
super(props);
|
|
@@ -49,8 +50,7 @@ class RowExpandMBFileEditor extends _react.default.Component {
|
|
|
49
50
|
const {
|
|
50
51
|
fileIconUrl
|
|
51
52
|
} = (0, _url.getFileThumbnailInfo)(file);
|
|
52
|
-
return /*#__PURE__*/
|
|
53
|
-
key: 'file-' + index,
|
|
53
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageThumbnail.default, {
|
|
54
54
|
src: fileIconUrl,
|
|
55
55
|
name: file.name,
|
|
56
56
|
index: index,
|
|
@@ -59,7 +59,7 @@ class RowExpandMBFileEditor extends _react.default.Component {
|
|
|
59
59
|
deleteTip: (0, _lang.getLocale)('Are_you_sure_you_want_to_delete_this_file'),
|
|
60
60
|
deleteImage: this.deleteFile,
|
|
61
61
|
onClick: this.toggleEditor
|
|
62
|
-
});
|
|
62
|
+
}, 'file-' + index);
|
|
63
63
|
});
|
|
64
64
|
};
|
|
65
65
|
const {
|
|
@@ -96,19 +96,24 @@ class RowExpandMBFileEditor extends _react.default.Component {
|
|
|
96
96
|
isShowEditor,
|
|
97
97
|
value
|
|
98
98
|
} = this.state;
|
|
99
|
-
return /*#__PURE__*/
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
99
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
100
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
101
|
+
className: "dtable-ui-mobile-row-expand-image position-relative",
|
|
102
|
+
children: value.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_addBtn.default, {
|
|
103
|
+
onClick: this.toggleEditor,
|
|
104
|
+
text: (0, _lang.getLocale)('Add_files')
|
|
105
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
106
|
+
children: this.renderFiles()
|
|
107
|
+
})
|
|
108
|
+
}), isShowEditor && /*#__PURE__*/(0, _jsxRuntime.jsx)(_FileEditor.default, {
|
|
109
|
+
value: value,
|
|
110
|
+
column: column,
|
|
111
|
+
config: config,
|
|
112
|
+
onToggle: this.closeEditor,
|
|
113
|
+
onCommit: this.onCommit,
|
|
114
|
+
uploadFile: uploadFile
|
|
115
|
+
})]
|
|
116
|
+
});
|
|
112
117
|
}
|
|
113
118
|
}
|
|
114
119
|
var _default = exports.default = RowExpandMBFileEditor;
|
|
@@ -13,6 +13,7 @@ var _ImageThumbnail = _interopRequireDefault(require("../../../ImageThumbnail"))
|
|
|
13
13
|
var _url = require("../../../utils/url");
|
|
14
14
|
var _FileEditor = _interopRequireDefault(require("../../../FileEditor"));
|
|
15
15
|
require("./index.css");
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
17
|
class RowExpandPCFileEditor extends _react.default.Component {
|
|
17
18
|
constructor(props) {
|
|
18
19
|
super(props);
|
|
@@ -114,8 +115,7 @@ class RowExpandPCFileEditor extends _react.default.Component {
|
|
|
114
115
|
const {
|
|
115
116
|
fileIconUrl
|
|
116
117
|
} = (0, _url.getFileThumbnailInfo)(file);
|
|
117
|
-
return /*#__PURE__*/
|
|
118
|
-
key: 'file-' + index,
|
|
118
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageThumbnail.default, {
|
|
119
119
|
src: fileIconUrl,
|
|
120
120
|
name: file.name,
|
|
121
121
|
index: index,
|
|
@@ -123,26 +123,28 @@ class RowExpandPCFileEditor extends _react.default.Component {
|
|
|
123
123
|
deleteTip: (0, _lang.getLocale)('Are_you_sure_you_want_to_delete_this_file'),
|
|
124
124
|
deleteImage: this.deleteFile,
|
|
125
125
|
onClick: this.onClickFile
|
|
126
|
-
});
|
|
126
|
+
}, 'file-' + index);
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
|
-
return /*#__PURE__*/
|
|
130
|
-
className: "dtable-ui-row-expand-image-editor mt-2"
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
129
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
130
|
+
className: "dtable-ui-row-expand-image-editor mt-2",
|
|
131
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_addBtn.default, {
|
|
132
|
+
isFocus: isEditorFocus,
|
|
133
|
+
text: (0, _lang.getLocale)('Add_files'),
|
|
134
|
+
onFocus: this.onFocus,
|
|
135
|
+
onClick: this.onToggle
|
|
136
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
137
|
+
className: "dtable-ui-row-expand-image-container",
|
|
138
|
+
children: fileArr
|
|
139
|
+
}), this.state.isShowFileEditor && /*#__PURE__*/(0, _jsxRuntime.jsx)(_FileEditor.default, {
|
|
140
|
+
value: value,
|
|
141
|
+
isInModal: true,
|
|
142
|
+
onToggle: this.onToggle,
|
|
143
|
+
onCommit: this.onCommit,
|
|
144
|
+
config: this.props.config,
|
|
145
|
+
uploadFile: this.props.uploadFile
|
|
146
|
+
})]
|
|
147
|
+
});
|
|
146
148
|
}
|
|
147
149
|
}
|
|
148
150
|
var _default = exports.default = RowExpandPCFileEditor;
|
|
@@ -10,15 +10,22 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
11
11
|
var _pcEditor = _interopRequireDefault(require("./pc-editor"));
|
|
12
12
|
var _mbEditor = _interopRequireDefault(require("./mb-editor"));
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
const RowExpandGeolocationEditor = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
14
|
-
return /*#__PURE__*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
16
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
17
|
+
query: "(min-width: 768px)",
|
|
18
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
|
|
19
|
+
...props,
|
|
20
|
+
ref: ref
|
|
21
|
+
})
|
|
22
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
23
|
+
query: "(max-width: 768px)",
|
|
24
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
|
|
25
|
+
...props,
|
|
26
|
+
ref: ref
|
|
27
|
+
})
|
|
28
|
+
})]
|
|
29
|
+
});
|
|
23
30
|
});
|
|
24
31
|
var _default = exports.default = RowExpandGeolocationEditor;
|
|
@@ -10,6 +10,7 @@ var _dtableUtils = require("dtable-utils");
|
|
|
10
10
|
var _addBtn = _interopRequireDefault(require("../../add-btn"));
|
|
11
11
|
var _lang = require("../../../lang");
|
|
12
12
|
var _GeolocationEditor = _interopRequireDefault(require("../../../GeolocationEditor"));
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
class RowExpandMBGeolocationEditor extends _react.default.Component {
|
|
14
15
|
constructor(props) {
|
|
15
16
|
super(props);
|
|
@@ -49,7 +50,7 @@ class RowExpandMBGeolocationEditor extends _react.default.Component {
|
|
|
49
50
|
value
|
|
50
51
|
} = this.state;
|
|
51
52
|
const text = (0, _dtableUtils.isEmptyObject)(value) ? (0, _lang.getLocale)('Edit_Location') : this.getLocationInfo(value);
|
|
52
|
-
return /*#__PURE__*/
|
|
53
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_addBtn.default, {
|
|
53
54
|
onClick: this.openEditor,
|
|
54
55
|
text: text,
|
|
55
56
|
className: "py-4"
|
|
@@ -87,14 +88,16 @@ class RowExpandMBGeolocationEditor extends _react.default.Component {
|
|
|
87
88
|
const {
|
|
88
89
|
value
|
|
89
90
|
} = this.state;
|
|
90
|
-
return /*#__PURE__*/
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
91
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
92
|
+
children: [this.renderGeoLocation(), this.state.isShowEditor && /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeolocationEditor.default, {
|
|
93
|
+
column: column,
|
|
94
|
+
row: row,
|
|
95
|
+
value: value,
|
|
96
|
+
config: config,
|
|
97
|
+
onCommit: this.onCommit,
|
|
98
|
+
onToggle: this.closeEditor
|
|
99
|
+
})]
|
|
100
|
+
});
|
|
98
101
|
}
|
|
99
102
|
}
|
|
100
103
|
var _default = exports.default = RowExpandMBGeolocationEditor;
|
|
@@ -12,6 +12,7 @@ var _addBtn = _interopRequireDefault(require("../../add-btn"));
|
|
|
12
12
|
var _lang = require("../../../lang");
|
|
13
13
|
var _GeolocationEditor = _interopRequireDefault(require("../../../GeolocationEditor"));
|
|
14
14
|
require("./index.css");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
16
|
class RowExpandPCGeolocationEditor extends _react.default.Component {
|
|
16
17
|
constructor(props) {
|
|
17
18
|
super(props);
|
|
@@ -76,17 +77,18 @@ class RowExpandPCGeolocationEditor extends _react.default.Component {
|
|
|
76
77
|
} = this.state;
|
|
77
78
|
if (!(0, _dtableUtils.isEmptyObject)(value)) {
|
|
78
79
|
const displayContent = this.getLocationInfo(value);
|
|
79
|
-
return /*#__PURE__*/
|
|
80
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
80
81
|
tabIndex: 0,
|
|
81
82
|
style: isEditorFocus ? _constants.ROW_EXPAND_BTN_FOCUS_STYLE : {},
|
|
82
83
|
onFocus: this.onFocus,
|
|
83
84
|
role: "button",
|
|
84
85
|
ref: ref => this.geoLocationRef = ref,
|
|
85
86
|
className: "dtable-ui-row-expand-geolocation-value",
|
|
86
|
-
onClick: this.toggleEditor
|
|
87
|
-
|
|
87
|
+
onClick: this.toggleEditor,
|
|
88
|
+
children: displayContent
|
|
89
|
+
});
|
|
88
90
|
}
|
|
89
|
-
return /*#__PURE__*/
|
|
91
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_addBtn.default, {
|
|
90
92
|
ref: this.addBtnRef,
|
|
91
93
|
onFocus: this.onFocus,
|
|
92
94
|
onClick: this.toggleEditor,
|
|
@@ -153,20 +155,21 @@ class RowExpandPCGeolocationEditor extends _react.default.Component {
|
|
|
153
155
|
const {
|
|
154
156
|
value
|
|
155
157
|
} = this.state;
|
|
156
|
-
return /*#__PURE__*/
|
|
158
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
157
159
|
ref: ref => this.editorContainer = ref,
|
|
158
|
-
className: "mt-2"
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
160
|
+
className: "mt-2",
|
|
161
|
+
children: [this.renderGeoLocation(), this.state.isShowEditor && /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeolocationEditor.default, {
|
|
162
|
+
ref: ref => this.geoEditor = ref,
|
|
163
|
+
isInModal: true,
|
|
164
|
+
column: column,
|
|
165
|
+
value: value,
|
|
166
|
+
config: config,
|
|
167
|
+
onCommit: this.onCommit,
|
|
168
|
+
onToggle: this.closeEditor,
|
|
169
|
+
onPressTab: this.props.onPressTab,
|
|
170
|
+
toggleLargeMap: this.toggleLargeMap
|
|
171
|
+
})]
|
|
172
|
+
});
|
|
170
173
|
}
|
|
171
174
|
}
|
|
172
175
|
var _default = exports.default = RowExpandPCGeolocationEditor;
|
|
@@ -10,15 +10,22 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
11
11
|
var _pcEditor = _interopRequireDefault(require("./pc-editor"));
|
|
12
12
|
var _mbEditor = _interopRequireDefault(require("./mb-editor"));
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
const RowExpandImageEditor = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
14
|
-
return /*#__PURE__*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
16
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
17
|
+
query: "(min-width: 768px)",
|
|
18
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
|
|
19
|
+
...props,
|
|
20
|
+
ref: ref
|
|
21
|
+
})
|
|
22
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
23
|
+
query: "(max-width: 768px)",
|
|
24
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
|
|
25
|
+
...props,
|
|
26
|
+
ref: ref
|
|
27
|
+
})
|
|
28
|
+
})]
|
|
29
|
+
});
|
|
23
30
|
});
|
|
24
31
|
var _default = exports.default = RowExpandImageEditor;
|