dtable-ui-component 7.0.0-xia.1 → 7.0.0-xia.2
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 +14 -16
- package/lib/ActivityIndicator/index.js +7 -8
- package/lib/AsyncUserSelect/index.js +40 -19
- package/lib/AsyncUserSelect/user-item.js +5 -6
- package/lib/AutoNumberFormatter/index.js +3 -4
- package/lib/Badge/index.js +9 -11
- package/lib/ButtonFormatter/index.js +6 -8
- package/lib/CTimeFormatter/index.js +3 -4
- package/lib/CheckboxEditor/index.js +1 -3
- package/lib/CheckboxEditor/mb-editor.js +9 -20
- package/lib/CheckboxEditor/pc-editor.js +12 -24
- package/lib/CheckboxFormatter/index.js +4 -5
- package/lib/CollaboratorEditor/index.js +2 -4
- package/lib/CollaboratorEditor/mb-editor/index.js +11 -19
- package/lib/CollaboratorEditor/pc-editor/index.js +25 -34
- package/lib/CollaboratorFormatter/index.js +8 -10
- package/lib/CollaboratorItem/index.js +4 -5
- package/lib/CollapsibleSettingLayout/index.js +9 -7
- package/lib/Comment/body/comment.js +10 -18
- package/lib/Comment/body/index.js +2 -4
- package/lib/Comment/footer/btns/index.js +4 -7
- package/lib/Comment/footer/index.js +9 -20
- package/lib/Comment/footer/input/index.js +29 -50
- package/lib/Comment/footer/input/participant/index.js +4 -5
- package/lib/Comment/footer/participants/index.js +4 -5
- package/lib/Comment/footer/participants/participant/index.js +1 -3
- package/lib/Comment/footer/participants/participant-select/index.js +8 -24
- package/lib/Comment/index.js +39 -57
- package/lib/Comment/utils/utilities.js +15 -21
- package/lib/CreatorFormatter/index.js +6 -8
- package/lib/DTableColorPicker/ColorPickerPortal/index.js +22 -18
- package/lib/DTableColorPicker/index.js +55 -40
- package/lib/DTableColorPicker/utils.js +4 -6
- package/lib/DTableColumnIcon/index.js +6 -7
- package/lib/DTableCommonAddTool/index.js +6 -8
- package/lib/DTableCustomFooter/index.js +1 -3
- package/lib/DTableCustomizeCollaboratorSelect/index.js +17 -20
- package/lib/DTableCustomizeSelect/index.js +19 -24
- package/lib/DTableDropdownItem/index.js +16 -18
- package/lib/DTableDropdownMenu/index.js +8 -10
- package/lib/DTableEmptyTip/index.js +4 -5
- package/lib/DTableFiltersPopover/index.js +26 -41
- package/lib/DTableFiltersPopover/utils/filter-item-utils.js +1 -3
- package/lib/DTableFiltersPopover/utils/index.js +63 -113
- package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +8 -9
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +16 -13
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +18 -15
- package/lib/DTableFiltersPopover/widgets/filter-calendar.js +8 -14
- package/lib/DTableFiltersPopover/widgets/filter-group.js +34 -55
- package/lib/DTableFiltersPopover/widgets/filter-item.js +107 -170
- package/lib/DTableFiltersPopover/widgets/filter-list/index.js +136 -161
- package/lib/DTableFiltersPopover/widgets/rate-item.js +15 -20
- package/lib/DTableGroupSelect/index.js +11 -15
- package/lib/DTableGroupSelect/select-option-group.js +23 -32
- package/lib/DTableIcon/index.js +6 -7
- package/lib/DTableIcon/svg-icon.js +5 -7
- package/lib/DTableModalHeader/index.js +4 -13
- package/lib/DTablePopover/index.js +11 -15
- package/lib/DTableRadio/index.js +10 -9
- package/lib/DTableRadioGroup/index.js +8 -17
- package/lib/DTableSearchInput/index.js +19 -29
- package/lib/DTableSelect/dtable-select-label.js +6 -5
- package/lib/DTableSelect/index.js +21 -22
- package/lib/DTableSelect/utils.js +7 -15
- package/lib/DTableSubDropdownMenu/index.js +8 -10
- package/lib/DTableSubDropdownToggle/index.js +12 -12
- package/lib/DTableSwitch/index.js +12 -11
- package/lib/DTableToolTip/index.js +7 -8
- package/lib/DateEditor/index.js +20 -15
- package/lib/DateEditor/mb-editor/index.js +18 -31
- package/lib/DateEditor/pc-editor.js +26 -45
- package/lib/DateFormatter/index.js +4 -5
- package/lib/DatePicker/index.js +9 -15
- package/lib/DatePicker/utils.js +1 -3
- package/lib/DeleteTip/index.js +5 -6
- package/lib/DepartmentMultipleSelectEditor/index.js +25 -23
- package/lib/DepartmentSelectFilter/index.js +6 -8
- package/lib/DepartmentSingleSelectEditor/index.js +1 -3
- package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +48 -47
- package/lib/DepartmentSingleSelectEditor/pc-editor/department-single-select.js +36 -58
- package/lib/DepartmentSingleSelectEditor/pc-editor/index.js +13 -19
- package/lib/DepartmentSingleSelectFormatter/index.js +4 -6
- package/lib/DigitalSignEditor/index.js +1 -3
- package/lib/DigitalSignEditor/mb-editor/index.js +12 -20
- package/lib/DigitalSignEditor/pc-editor/index.js +17 -24
- package/lib/DigitalSignEditor/service.js +2 -4
- package/lib/DigitalSignEditor/signature-board/index.js +5 -8
- package/lib/DigitalSignEditor/utils.js +2 -4
- package/lib/DigitalSignFormatter/index.js +12 -15
- package/lib/DigitalSignFormatter/utils.js +4 -5
- package/lib/DurationEditor/index.js +21 -31
- package/lib/DurationFormatter/index.js +4 -5
- package/lib/EditEditorButton/index.js +1 -3
- package/lib/EmailFormatter/index.js +3 -4
- package/lib/FieldDisplaySetting/field-item.js +12 -12
- package/lib/FieldDisplaySetting/index.js +11 -9
- package/lib/FileEditor/files-previewer/index.js +1 -3
- package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +10 -18
- package/lib/FileEditor/files-previewer/mb-previewer/index.js +7 -8
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/dropdown-menu.js +3 -4
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/file-name-editor/index.js +5 -6
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/index.js +14 -21
- package/lib/FileEditor/files-previewer/pc-previewer/index.js +29 -57
- package/lib/FileEditor/index.js +1 -3
- package/lib/FileEditor/mb-editor/index.js +28 -20
- package/lib/FileEditor/pc-editor/addition-previewer/index.js +1 -3
- package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.js +11 -25
- package/lib/FileEditor/pc-editor/index.js +19 -27
- package/lib/FileFormatter/index.js +26 -19
- package/lib/FileItemFormatter/index.js +6 -9
- package/lib/FileUploader/index.js +28 -45
- package/lib/FormulaFormatter/index.js +15 -29
- package/lib/GeolocationEditor/index.js +11 -12
- package/lib/GeolocationEditor/map-editor-utils.js +17 -15
- package/lib/GeolocationEditor/mb-editor/country-editor.js +17 -14
- package/lib/GeolocationEditor/mb-editor/index.js +4 -6
- package/lib/GeolocationEditor/mb-editor/location-editor.js +18 -15
- package/lib/GeolocationEditor/mb-editor/map-editor/index.js +41 -68
- package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.js +50 -89
- package/lib/GeolocationEditor/mb-editor/province-city-editor.js +17 -14
- package/lib/GeolocationEditor/mb-editor/province-editor.js +17 -14
- package/lib/GeolocationEditor/pc-editor/country-editor.js +10 -23
- package/lib/GeolocationEditor/pc-editor/index.js +12 -20
- package/lib/GeolocationEditor/pc-editor/location-editor.js +26 -31
- package/lib/GeolocationEditor/pc-editor/map-editor/index.js +34 -54
- package/lib/GeolocationEditor/pc-editor/map-editor/large-editor/index.js +36 -60
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/index.js +35 -62
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +36 -65
- package/lib/GeolocationEditor/pc-editor/province-city-editor.js +19 -25
- package/lib/GeolocationEditor/pc-editor/province-editor.js +6 -13
- package/lib/GeolocationEditor/pc-editor/selector-header-item.js +5 -6
- package/lib/GeolocationEditor/pc-editor/selector-list.js +6 -7
- package/lib/GeolocationFormatter/index.js +4 -5
- package/lib/HtmlLongTextFormatter/index.js +4 -12
- package/lib/Icon/index.js +3 -5
- package/lib/IconButton/index.js +4 -6
- package/lib/ImageEditor/images-previewer/image-preview/index.js +12 -21
- package/lib/ImageEditor/images-previewer/index.js +3 -9
- package/lib/ImageEditor/index.js +1 -3
- package/lib/ImageEditor/mb-editor/index.js +28 -20
- package/lib/ImageEditor/pc-editor/addition-previewer/image-link/index.js +2 -6
- package/lib/ImageEditor/pc-editor/addition-previewer/index.js +1 -3
- package/lib/ImageEditor/pc-editor/addition-previewer/local-image-addition/index.js +7 -21
- package/lib/ImageEditor/pc-editor/images-previewer/index.js +3 -9
- package/lib/ImageEditor/pc-editor/index.js +11 -16
- package/lib/ImageFormatter/images-lazy-load.js +19 -11
- package/lib/ImageFormatter/index.js +11 -13
- package/lib/ImagePreviewerLightbox/index.js +15 -13
- package/lib/ImageThumbnail/index.js +10 -13
- package/lib/InputItem/custom-input.js +26 -46
- package/lib/InputItem/custom-keyboard.js +15 -18
- package/lib/InputItem/index.js +34 -50
- package/lib/InputItem/input.js +2 -4
- package/lib/LastModifierFormatter/index.js +6 -8
- package/lib/LinkEditor/index.js +33 -53
- package/lib/LinkEditor/link-editor-option.js +3 -4
- package/lib/LinkEditor/mb-popover/index.js +9 -22
- package/lib/LinkEditor/pc-popover/index.js +5 -10
- package/lib/LinkFormatter/index.js +21 -37
- package/lib/List/index.js +6 -8
- package/lib/List/list-item.js +22 -28
- package/lib/LongTextFormatter/index.js +4 -5
- package/lib/MBEditorHeader/index.js +7 -8
- package/lib/MTimeFormatter/index.js +3 -4
- package/lib/MobileFullScreenPage/body/index.js +3 -5
- package/lib/MobileFullScreenPage/header/index.js +4 -6
- package/lib/MobileFullScreenPage/index.js +13 -11
- package/lib/MobileModal/index.js +1 -3
- package/lib/MobileOperationSheet/index.js +7 -8
- package/lib/MobileSelector/empty/index.js +1 -3
- package/lib/MobileSelector/index.js +5 -7
- package/lib/MobileSelector/option/index.js +3 -5
- package/lib/MobileSelector/options/index.js +1 -3
- package/lib/MobileSelector/search/index.js +3 -5
- package/lib/MobileUpload/index.js +4 -5
- package/lib/Modal/modal.js +14 -15
- package/lib/Modal/prompt.js +4 -4
- package/lib/MultipleSelectEditor/index.js +1 -3
- package/lib/MultipleSelectFormatter/index.js +6 -8
- package/lib/NotificationPopover/index.js +4 -5
- package/lib/NumberEditor/index.js +12 -21
- package/lib/NumberFormatter/index.js +4 -5
- package/lib/PhoneNumberLink/index.js +2 -4
- package/lib/Picker/AbstractPicker.js +23 -27
- package/lib/Popover/index.js +3 -4
- package/lib/Popover/item.js +7 -9
- package/lib/Progress/index.js +9 -8
- package/lib/Radio/Radio.js +4 -8
- package/lib/Radio/RadioItem.js +8 -12
- package/lib/RateFormatter/index.js +13 -13
- package/lib/RoleStatusEditor/index.js +18 -17
- package/lib/RowExpandDialog/body/index.js +32 -49
- package/lib/RowExpandDialog/column-content/index.js +5 -9
- package/lib/RowExpandDialog/header/index.js +6 -8
- package/lib/RowExpandDialog/index.js +49 -34
- package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.js +4 -5
- package/lib/RowExpandEditor/checkbox-editor/pc-editor.js +8 -10
- package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.js +22 -33
- package/lib/RowExpandEditor/collaborator-editor/pc-editor/index.js +26 -40
- package/lib/RowExpandEditor/date-editor/mb-editor.js +12 -18
- package/lib/RowExpandEditor/date-editor/pc-editor.js +15 -20
- package/lib/RowExpandEditor/department-editor/mb-editor.js +16 -11
- package/lib/RowExpandEditor/department-editor/pc-editor.js +19 -14
- package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +20 -34
- package/lib/RowExpandEditor/digital-sign-editor/pc-editor/index.js +21 -35
- package/lib/RowExpandEditor/duration-editor/mb-editor.js +10 -17
- package/lib/RowExpandEditor/duration-editor/pc-editor.js +13 -19
- package/lib/RowExpandEditor/email-editor/mb-editor/index.js +9 -19
- package/lib/RowExpandEditor/email-editor/pc-editor/index.js +13 -24
- package/lib/RowExpandEditor/file-editor/mb-editor/index.js +18 -31
- package/lib/RowExpandEditor/file-editor/pc-editor/index.js +16 -23
- package/lib/RowExpandEditor/geolocation-editor/mb-editor/index.js +17 -29
- package/lib/RowExpandEditor/geolocation-editor/pc-editor/index.js +13 -26
- package/lib/RowExpandEditor/image-editor/mb-editor/index.js +15 -25
- package/lib/RowExpandEditor/image-editor/pc-editor/index.js +13 -23
- package/lib/RowExpandEditor/index.js +4 -8
- package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.js +17 -18
- package/lib/RowExpandEditor/long-text-editor/mb-editor/index.js +10 -16
- package/lib/RowExpandEditor/long-text-editor/pc-editor/index.js +16 -23
- package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +11 -19
- package/lib/RowExpandEditor/multiple-select-editor/pc-editor/index.js +22 -33
- package/lib/RowExpandEditor/number-editor/mb-editor/index.js +8 -14
- package/lib/RowExpandEditor/number-editor/pc-editor.js +13 -20
- package/lib/RowExpandEditor/rate-editor/mb-editor.js +12 -25
- package/lib/RowExpandEditor/rate-editor/pc-editor.js +20 -36
- package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +17 -28
- package/lib/RowExpandEditor/single-select-editor/pc-editor/index.js +22 -34
- package/lib/RowExpandEditor/text-editor/mb-editor/index.js +4 -5
- package/lib/RowExpandEditor/text-editor/pc-editor/index.js +15 -26
- package/lib/RowExpandEditor/url-editor/mb-editor/index.js +5 -13
- package/lib/RowExpandEditor/url-editor/pc-editor/index.js +9 -18
- package/lib/RowExpandFormatter/department-formatter/mb-formatter.js +2 -4
- package/lib/RowExpandFormatter/department-formatter/pc-formatter.js +2 -4
- package/lib/RowExpandFormatter/email-formatter/index.js +4 -7
- package/lib/RowExpandFormatter/file-formatter/index.js +8 -9
- package/lib/RowExpandFormatter/file-formatter/row-expand-file-item-formatter.js +10 -12
- package/lib/RowExpandFormatter/formula-formatter/index.js +19 -34
- package/lib/RowExpandFormatter/image-formatter/index.js +9 -11
- package/lib/RowExpandFormatter/image-formatter/row-expand-image-item-formatter.js +7 -8
- package/lib/RowExpandFormatter/index.js +27 -41
- package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +8 -14
- package/lib/RowExpandFormatter/link-formatter/index.js +11 -19
- package/lib/RowExpandFormatter/link-formatter/value-display-utils.js +3 -5
- package/lib/RowExpandFormatter/rate-formatter/index.js +11 -12
- package/lib/RowExpandFormatter/text/index.js +4 -5
- package/lib/RowExpandFormatter/url-formatter/index.js +4 -7
- package/lib/RowExpandView/body/index.js +22 -35
- package/lib/RowExpandView/column-content/index.js +3 -7
- package/lib/RowExpandView/index.js +42 -30
- package/lib/SelectItem/index.js +5 -7
- package/lib/SelectOptionGroup/index.js +30 -40
- package/lib/SelectedDepartments/index.js +7 -9
- package/lib/SimpleLongTextFormatter/index.js +10 -16
- package/lib/SimpleLongTextFormatter/normalize-long-text-value.js +3 -4
- package/lib/SimpleLongTextFormatter/widgets/LongTextPreview.js +12 -21
- package/lib/SimpleLongTextFormatter/widgets/dtable-markdown-viewer.js +3 -4
- package/lib/SingleSelectEditor/index.js +1 -3
- package/lib/SingleSelectFormatter/index.js +8 -9
- package/lib/TabBar/Tab.js +14 -16
- package/lib/TabBar/index.js +18 -21
- package/lib/Tabs/index.js +1 -3
- package/lib/TextEditor/index.js +14 -23
- package/lib/TextFormatter/index.js +3 -4
- package/lib/TextareaItem/index.js +19 -26
- package/lib/Toast/index.js +3 -4
- package/lib/UrlFormatter/index.js +3 -4
- package/lib/common/editor-base.js +7 -12
- package/lib/hooks/common-hooks.js +2 -4
- package/lib/select-editor/index.js +1 -3
- package/lib/select-editor/mb-editor/index.js +17 -28
- package/lib/select-editor/pc-editor/index.js +27 -42
- package/lib/toaster/alert.js +6 -7
- package/lib/toaster/toast.js +2 -3
- package/lib/toaster/toastManager.js +2 -4
- package/lib/utils/cell.js +8 -11
- package/lib/utils/column-utils.js +8 -14
- package/lib/utils/departments.js +1 -3
- package/lib/utils/url.js +24 -31
- package/lib/utils/utils.js +2 -6
- package/package.json +1 -1
- package/lib/DTableModalHeader/index.css +0 -5
|
@@ -18,10 +18,9 @@ class DTablePopover extends _react.default.Component {
|
|
|
18
18
|
this.props.hideDTablePopover(e);
|
|
19
19
|
};
|
|
20
20
|
this.onKeyDown = e => {
|
|
21
|
-
const
|
|
22
|
-
canHideDTablePopover,
|
|
23
|
-
hideDTablePopoverWithEsc
|
|
24
|
-
} = this.props;
|
|
21
|
+
const _this$props = this.props,
|
|
22
|
+
canHideDTablePopover = _this$props.canHideDTablePopover,
|
|
23
|
+
hideDTablePopoverWithEsc = _this$props.hideDTablePopoverWithEsc;
|
|
25
24
|
if (e.keyCode === 27 && typeof hideDTablePopoverWithEsc === 'function') {
|
|
26
25
|
e.preventDefault();
|
|
27
26
|
hideDTablePopoverWithEsc();
|
|
@@ -32,9 +31,7 @@ class DTablePopover extends _react.default.Component {
|
|
|
32
31
|
}
|
|
33
32
|
};
|
|
34
33
|
this.onMousedown = e => {
|
|
35
|
-
const
|
|
36
|
-
canHideDTablePopover
|
|
37
|
-
} = this.props;
|
|
34
|
+
const canHideDTablePopover = this.props.canHideDTablePopover;
|
|
38
35
|
if (!canHideDTablePopover) return;
|
|
39
36
|
if (this.dtablePopoverRef && e && (0, _utils.getEventClassName)(e).indexOf('popover') === -1 && !this.dtablePopoverRef.contains(e.target)) {
|
|
40
37
|
this.props.hideDTablePopover(e);
|
|
@@ -55,14 +52,13 @@ class DTablePopover extends _react.default.Component {
|
|
|
55
52
|
window.removeEventListener('popstate', this.onHistoryState);
|
|
56
53
|
}
|
|
57
54
|
render() {
|
|
58
|
-
const
|
|
59
|
-
target,
|
|
60
|
-
innerClassName,
|
|
61
|
-
popoverClassName,
|
|
62
|
-
hideArrow,
|
|
63
|
-
modifiers,
|
|
64
|
-
placement
|
|
65
|
-
} = this.props;
|
|
55
|
+
const _this$props2 = this.props,
|
|
56
|
+
target = _this$props2.target,
|
|
57
|
+
innerClassName = _this$props2.innerClassName,
|
|
58
|
+
popoverClassName = _this$props2.popoverClassName,
|
|
59
|
+
hideArrow = _this$props2.hideArrow,
|
|
60
|
+
modifiers = _this$props2.modifiers,
|
|
61
|
+
placement = _this$props2.placement;
|
|
66
62
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Popover, {
|
|
67
63
|
placement: placement,
|
|
68
64
|
isOpen: true,
|
package/lib/DTableRadio/index.js
CHANGED
|
@@ -10,15 +10,16 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
10
10
|
require("./index.css");
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
12
|
function DTableRadio(_ref) {
|
|
13
|
-
let
|
|
14
|
-
disabled = false,
|
|
15
|
-
name =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
let _ref$disabled = _ref.disabled,
|
|
14
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
15
|
+
_ref$name = _ref.name,
|
|
16
|
+
name = _ref$name === void 0 ? 'dtable-radio-input' : _ref$name,
|
|
17
|
+
_ref$onCheckedChange = _ref.onCheckedChange,
|
|
18
|
+
onCheckedChange = _ref$onCheckedChange === void 0 ? () => {} : _ref$onCheckedChange,
|
|
19
|
+
className = _ref.className,
|
|
20
|
+
isChecked = _ref.isChecked,
|
|
21
|
+
value = _ref.value,
|
|
22
|
+
label = _ref.label;
|
|
22
23
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("label", {
|
|
23
24
|
className: (0, _classnames.default)('dtable-radio w-100 align-items-center position-relative', {
|
|
24
25
|
'dtable-radio-disable': disabled,
|
|
@@ -28,9 +28,7 @@ class DTableRadioGroup extends _react.default.Component {
|
|
|
28
28
|
this.setTransitionTimer = null;
|
|
29
29
|
};
|
|
30
30
|
this.onSelectChanged = event => {
|
|
31
|
-
const
|
|
32
|
-
option
|
|
33
|
-
} = event.target.dataset;
|
|
31
|
+
const option = event.target.dataset.option;
|
|
34
32
|
if (option === this.state.activeOption) return;
|
|
35
33
|
this.setState({
|
|
36
34
|
activeOption: option
|
|
@@ -45,17 +43,13 @@ class DTableRadioGroup extends _react.default.Component {
|
|
|
45
43
|
this.setTransitionTimer = null;
|
|
46
44
|
}
|
|
47
45
|
componentDidMount() {
|
|
48
|
-
const
|
|
49
|
-
options
|
|
50
|
-
} = this.props;
|
|
46
|
+
const options = this.props.options;
|
|
51
47
|
if (!this.btn || !this.slider || !Array.isArray(options)) return;
|
|
52
48
|
this.slider.style.width = "".concat(100 / options.length, "%");
|
|
53
49
|
this.setSliderTransition();
|
|
54
50
|
}
|
|
55
51
|
componentDidUpdate(prevProps) {
|
|
56
|
-
const
|
|
57
|
-
activeOption
|
|
58
|
-
} = this.props;
|
|
52
|
+
const activeOption = this.props.activeOption;
|
|
59
53
|
if (activeOption !== prevProps.activeOption && activeOption !== this.state.activeOption) {
|
|
60
54
|
this.setState({
|
|
61
55
|
activeOption
|
|
@@ -66,14 +60,11 @@ class DTableRadioGroup extends _react.default.Component {
|
|
|
66
60
|
this.clearTransitionTimer();
|
|
67
61
|
}
|
|
68
62
|
render() {
|
|
69
|
-
const
|
|
70
|
-
options,
|
|
71
|
-
optionsDisplay,
|
|
72
|
-
readOnly
|
|
73
|
-
|
|
74
|
-
const {
|
|
75
|
-
activeOption
|
|
76
|
-
} = this.state;
|
|
63
|
+
const _this$props = this.props,
|
|
64
|
+
options = _this$props.options,
|
|
65
|
+
optionsDisplay = _this$props.optionsDisplay,
|
|
66
|
+
readOnly = _this$props.readOnly;
|
|
67
|
+
const activeOption = this.state.activeOption;
|
|
77
68
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
78
69
|
className: "radio-group-wrapper",
|
|
79
70
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
@@ -18,10 +18,9 @@ class DtableSearchInput extends _react.Component {
|
|
|
18
18
|
};
|
|
19
19
|
this.onChange = e => {
|
|
20
20
|
this.timer && clearTimeout(this.timer);
|
|
21
|
-
const
|
|
22
|
-
onChange,
|
|
23
|
-
wait
|
|
24
|
-
} = this.props;
|
|
21
|
+
const _this$props = this.props,
|
|
22
|
+
onChange = _this$props.onChange,
|
|
23
|
+
wait = _this$props.wait;
|
|
25
24
|
let text = e.target.value;
|
|
26
25
|
this.setState({
|
|
27
26
|
searchValue: text || ''
|
|
@@ -37,9 +36,7 @@ class DtableSearchInput extends _react.Component {
|
|
|
37
36
|
this.onChange(e);
|
|
38
37
|
};
|
|
39
38
|
this.clearSearch = () => {
|
|
40
|
-
const
|
|
41
|
-
clearValue
|
|
42
|
-
} = this.props;
|
|
39
|
+
const clearValue = this.props.clearValue;
|
|
43
40
|
this.setState({
|
|
44
41
|
searchValue: ''
|
|
45
42
|
}, () => {
|
|
@@ -55,18 +52,14 @@ class DtableSearchInput extends _react.Component {
|
|
|
55
52
|
}
|
|
56
53
|
};
|
|
57
54
|
this.renderClear = () => {
|
|
58
|
-
const
|
|
59
|
-
isClearable,
|
|
60
|
-
clearClassName,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
const
|
|
64
|
-
searchValue
|
|
65
|
-
} = this.state;
|
|
55
|
+
const _this$props2 = this.props,
|
|
56
|
+
isClearable = _this$props2.isClearable,
|
|
57
|
+
clearClassName = _this$props2.clearClassName,
|
|
58
|
+
_this$props2$componen = _this$props2.components,
|
|
59
|
+
components = _this$props2$componen === void 0 ? {} : _this$props2$componen;
|
|
60
|
+
const searchValue = this.state.searchValue;
|
|
66
61
|
if (!isClearable || !searchValue) return null;
|
|
67
|
-
const
|
|
68
|
-
ClearIndicator
|
|
69
|
-
} = components;
|
|
62
|
+
const ClearIndicator = components.ClearIndicator;
|
|
70
63
|
if (/*#__PURE__*/_react.default.isValidElement(ClearIndicator)) {
|
|
71
64
|
return /*#__PURE__*/_react.default.cloneElement(ClearIndicator, {
|
|
72
65
|
clearValue: this.clearSearch
|
|
@@ -102,17 +95,14 @@ class DtableSearchInput extends _react.Component {
|
|
|
102
95
|
this.inputRef = null;
|
|
103
96
|
}
|
|
104
97
|
render() {
|
|
105
|
-
const
|
|
106
|
-
placeholder,
|
|
107
|
-
autoFocus,
|
|
108
|
-
className,
|
|
109
|
-
onKeyDown,
|
|
110
|
-
disabled,
|
|
111
|
-
style
|
|
112
|
-
|
|
113
|
-
const {
|
|
114
|
-
searchValue
|
|
115
|
-
} = this.state;
|
|
98
|
+
const _this$props3 = this.props,
|
|
99
|
+
placeholder = _this$props3.placeholder,
|
|
100
|
+
autoFocus = _this$props3.autoFocus,
|
|
101
|
+
className = _this$props3.className,
|
|
102
|
+
onKeyDown = _this$props3.onKeyDown,
|
|
103
|
+
disabled = _this$props3.disabled,
|
|
104
|
+
style = _this$props3.style;
|
|
105
|
+
const searchValue = this.state.searchValue;
|
|
116
106
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
|
|
117
107
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
118
108
|
ref: ref => this.inputRef = ref,
|
|
@@ -9,11 +9,12 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
require("./dtable-select-label.css");
|
|
10
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
11
|
function DTableSelectLabel(_ref) {
|
|
12
|
-
let
|
|
13
|
-
classname = '',
|
|
14
|
-
name =
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
let _ref$classname = _ref.classname,
|
|
13
|
+
classname = _ref$classname === void 0 ? '' : _ref$classname,
|
|
14
|
+
_ref$name = _ref.name,
|
|
15
|
+
name = _ref$name === void 0 ? '' : _ref$name,
|
|
16
|
+
_ref$isSelect = _ref.isSelect,
|
|
17
|
+
isSelect = _ref$isSelect === void 0 ? false : _ref$isSelect;
|
|
17
18
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
18
19
|
className: "".concat(classname, " w-100 d-flex justify-content-between"),
|
|
19
20
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
@@ -12,28 +12,27 @@ var _utils = require("./utils");
|
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
13
|
class DTableSelect extends _react.default.Component {
|
|
14
14
|
render() {
|
|
15
|
-
const
|
|
16
|
-
options,
|
|
17
|
-
onChange,
|
|
18
|
-
value,
|
|
19
|
-
isSearchable,
|
|
20
|
-
placeholder,
|
|
21
|
-
isMulti,
|
|
22
|
-
menuPosition,
|
|
23
|
-
isClearable,
|
|
24
|
-
noOptionsMessage,
|
|
25
|
-
classNamePrefix,
|
|
26
|
-
style,
|
|
27
|
-
innerRef,
|
|
28
|
-
isDisabled,
|
|
29
|
-
form,
|
|
30
|
-
customFilterOption,
|
|
31
|
-
autoFocus,
|
|
32
|
-
className,
|
|
33
|
-
closeMenuOnSelect,
|
|
34
|
-
onMenuClose,
|
|
35
|
-
components
|
|
36
|
-
} = this.props;
|
|
15
|
+
const _this$props = this.props,
|
|
16
|
+
options = _this$props.options,
|
|
17
|
+
onChange = _this$props.onChange,
|
|
18
|
+
value = _this$props.value,
|
|
19
|
+
isSearchable = _this$props.isSearchable,
|
|
20
|
+
placeholder = _this$props.placeholder,
|
|
21
|
+
isMulti = _this$props.isMulti,
|
|
22
|
+
menuPosition = _this$props.menuPosition,
|
|
23
|
+
isClearable = _this$props.isClearable,
|
|
24
|
+
noOptionsMessage = _this$props.noOptionsMessage,
|
|
25
|
+
classNamePrefix = _this$props.classNamePrefix,
|
|
26
|
+
style = _this$props.style,
|
|
27
|
+
innerRef = _this$props.innerRef,
|
|
28
|
+
isDisabled = _this$props.isDisabled,
|
|
29
|
+
form = _this$props.form,
|
|
30
|
+
customFilterOption = _this$props.customFilterOption,
|
|
31
|
+
autoFocus = _this$props.autoFocus,
|
|
32
|
+
className = _this$props.className,
|
|
33
|
+
closeMenuOnSelect = _this$props.closeMenuOnSelect,
|
|
34
|
+
onMenuClose = _this$props.onMenuClose,
|
|
35
|
+
userComponents = _this$props.components;
|
|
37
36
|
const mergedComponents = (0, _objectSpread2.default)({
|
|
38
37
|
Option: _utils.Option,
|
|
39
38
|
DropdownIndicator: _utils.DropdownIndicator,
|
|
@@ -25,10 +25,8 @@ const noneCallback = () => ({
|
|
|
25
25
|
display: 'none'
|
|
26
26
|
});
|
|
27
27
|
const controlCallback = (provided, state) => {
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
isFocused
|
|
31
|
-
} = state;
|
|
28
|
+
const isDisabled = state.isDisabled,
|
|
29
|
+
isFocused = state.isFocused;
|
|
32
30
|
if (isFocused && !isDisabled) {
|
|
33
31
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, provided), FOCUS_CONTROL_STYLE), {}, {
|
|
34
32
|
'&:hover': (0, _objectSpread2.default)((0, _objectSpread2.default)({}, provided), FOCUS_CONTROL_STYLE)
|
|
@@ -44,10 +42,8 @@ const controlCallback = (provided, state) => {
|
|
|
44
42
|
};
|
|
45
43
|
const UserSelectStyle = exports.UserSelectStyle = {
|
|
46
44
|
option: (provided, state) => {
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
isFocused
|
|
50
|
-
} = state;
|
|
45
|
+
const isDisabled = state.isDisabled,
|
|
46
|
+
isFocused = state.isFocused;
|
|
51
47
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, provided), {}, {
|
|
52
48
|
cursor: isDisabled ? 'default' : 'pointer',
|
|
53
49
|
backgroundColor: isFocused ? '#f5f5f5' : '#fff'
|
|
@@ -95,10 +91,8 @@ const UserSelectStyle = exports.UserSelectStyle = {
|
|
|
95
91
|
};
|
|
96
92
|
const MenuSelectStyle = exports.MenuSelectStyle = {
|
|
97
93
|
option: (provided, state) => {
|
|
98
|
-
const
|
|
99
|
-
|
|
100
|
-
isFocused
|
|
101
|
-
} = state;
|
|
94
|
+
const isDisabled = state.isDisabled,
|
|
95
|
+
isFocused = state.isFocused;
|
|
102
96
|
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, provided), {}, {
|
|
103
97
|
fontSize: '13px',
|
|
104
98
|
color: '#212529',
|
|
@@ -134,9 +128,7 @@ const DropdownIndicator = props => {
|
|
|
134
128
|
};
|
|
135
129
|
exports.DropdownIndicator = DropdownIndicator;
|
|
136
130
|
const ClearIndicator = _ref => {
|
|
137
|
-
let
|
|
138
|
-
innerProps
|
|
139
|
-
} = _ref,
|
|
131
|
+
let innerProps = _ref.innerProps,
|
|
140
132
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
141
133
|
const onMouseDown = e => {
|
|
142
134
|
e.nativeEvent.stopImmediatePropagation();
|
|
@@ -10,16 +10,14 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
10
10
|
var _DTableDropdownMenu = _interopRequireDefault(require("../DTableDropdownMenu"));
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
12
|
const DTableSubDropdownMenu = _ref => {
|
|
13
|
-
let
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
children
|
|
22
|
-
} = _ref;
|
|
13
|
+
let id = _ref.id,
|
|
14
|
+
className = _ref.className,
|
|
15
|
+
container = _ref.container,
|
|
16
|
+
modifiers = _ref.modifiers,
|
|
17
|
+
flip = _ref.flip,
|
|
18
|
+
style = _ref.style,
|
|
19
|
+
menuProps = _ref.menuProps,
|
|
20
|
+
children = _ref.children;
|
|
23
21
|
let customMenuProps = (0, _objectSpread2.default)({}, menuProps);
|
|
24
22
|
if (container) {
|
|
25
23
|
customMenuProps.container = container;
|
|
@@ -12,18 +12,18 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
12
12
|
var _lang = require("../lang");
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
14
|
const DTableSubDropdownToggle = _ref => {
|
|
15
|
-
let
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
hideArrow = false,
|
|
22
|
-
title,
|
|
23
|
-
ariaLabel,
|
|
24
|
-
ariaExpanded =
|
|
25
|
-
|
|
26
|
-
|
|
15
|
+
let className = _ref.className,
|
|
16
|
+
id = _ref.id,
|
|
17
|
+
text = _ref.text,
|
|
18
|
+
icon = _ref.icon,
|
|
19
|
+
disabled = _ref.disabled,
|
|
20
|
+
_ref$hideArrow = _ref.hideArrow,
|
|
21
|
+
hideArrow = _ref$hideArrow === void 0 ? false : _ref$hideArrow,
|
|
22
|
+
title = _ref.title,
|
|
23
|
+
ariaLabel = _ref.ariaLabel,
|
|
24
|
+
_ref$ariaExpanded = _ref.ariaExpanded,
|
|
25
|
+
ariaExpanded = _ref$ariaExpanded === void 0 ? false : _ref$ariaExpanded,
|
|
26
|
+
toggleProps = _ref.toggleProps;
|
|
27
27
|
const renderedIcon = () => {
|
|
28
28
|
if (!icon || ! /*#__PURE__*/_react.default.isValidElement(icon)) return null;
|
|
29
29
|
return /*#__PURE__*/_react.default.cloneElement(icon, {
|
|
@@ -11,17 +11,18 @@ var _dtableUtils = require("dtable-utils");
|
|
|
11
11
|
require("./index.css");
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
13
|
function DTableSwitch(_ref) {
|
|
14
|
-
let
|
|
15
|
-
|
|
16
|
-
checked = false,
|
|
17
|
-
placeholder,
|
|
18
|
-
disabled,
|
|
19
|
-
size =
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
14
|
+
let onChange = _ref.onChange,
|
|
15
|
+
_ref$checked = _ref.checked,
|
|
16
|
+
checked = _ref$checked === void 0 ? false : _ref$checked,
|
|
17
|
+
placeholder = _ref.placeholder,
|
|
18
|
+
disabled = _ref.disabled,
|
|
19
|
+
_ref$size = _ref.size,
|
|
20
|
+
size = _ref$size === void 0 ? 'sm' : _ref$size,
|
|
21
|
+
_ref$switchPosition = _ref.switchPosition,
|
|
22
|
+
switchPosition = _ref$switchPosition === void 0 ? 'right' : _ref$switchPosition,
|
|
23
|
+
switchClassName = _ref.switchClassName,
|
|
24
|
+
innerClassName = _ref.innerClassName,
|
|
25
|
+
inputId = _ref.inputId;
|
|
25
26
|
const switchNode = /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
26
27
|
className: "custom-switch-indicator"
|
|
27
28
|
});
|
|
@@ -11,14 +11,13 @@ var _reactstrap = require("reactstrap");
|
|
|
11
11
|
require("./index.css");
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
13
|
const DTableToolTip = _ref => {
|
|
14
|
-
let
|
|
15
|
-
|
|
16
|
-
placement = 'bottom',
|
|
17
|
-
className,
|
|
18
|
-
children,
|
|
19
|
-
shortcut,
|
|
20
|
-
modifiers
|
|
21
|
-
} = _ref;
|
|
14
|
+
let target = _ref.target,
|
|
15
|
+
_ref$placement = _ref.placement,
|
|
16
|
+
placement = _ref$placement === void 0 ? 'bottom' : _ref$placement,
|
|
17
|
+
className = _ref.className,
|
|
18
|
+
children = _ref.children,
|
|
19
|
+
shortcut = _ref.shortcut,
|
|
20
|
+
modifiers = _ref.modifiers;
|
|
22
21
|
const hasShortcut = Boolean(shortcut);
|
|
23
22
|
const renderContent = () => {
|
|
24
23
|
if (hasShortcut) {
|
package/lib/DateEditor/index.js
CHANGED
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
10
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
12
|
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
12
13
|
var _dtableUtils = require("dtable-utils");
|
|
@@ -18,21 +19,25 @@ require("dayjs/locale/en-gb");
|
|
|
18
19
|
require("./index.css");
|
|
19
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
21
|
const DateEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
21
|
-
let
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
22
|
+
let isMobile = _ref.isMobile,
|
|
23
|
+
lang = _ref.lang,
|
|
24
|
+
isReadOnly = _ref.isReadOnly,
|
|
25
|
+
column = _ref.column,
|
|
26
|
+
className = _ref.className,
|
|
27
|
+
isInModal = _ref.isInModal,
|
|
28
|
+
firstDayOfWeek = _ref.firstDayOfWeek,
|
|
29
|
+
size = _ref.size,
|
|
30
|
+
oldValue = _ref.value,
|
|
31
|
+
hideCalendar = _ref.hideCalendar,
|
|
32
|
+
onCommit = _ref.onCommit;
|
|
33
|
+
const _useState = (0, _react.useState)(false),
|
|
34
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
35
|
+
isDateInit = _useState2[0],
|
|
36
|
+
setDateInit = _useState2[1];
|
|
37
|
+
const _useState3 = (0, _react.useState)(oldValue || ''),
|
|
38
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
39
|
+
value = _useState4[0],
|
|
40
|
+
setValue = _useState4[1];
|
|
36
41
|
const format = (0, _react.useMemo)(() => {
|
|
37
42
|
var _column$data;
|
|
38
43
|
return (column === null || column === void 0 ? void 0 : column.data) && (column === null || column === void 0 ? void 0 : (_column$data = column.data) === null || _column$data === void 0 ? void 0 : _column$data.format) || _dtableUtils.DEFAULT_DATE_FORMAT;
|
|
@@ -20,10 +20,8 @@ require("@seafile/seafile-calendar/assets/index.css");
|
|
|
20
20
|
require("./index.css");
|
|
21
21
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
22
22
|
let now = (0, _dayjs.default)();
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
Body
|
|
26
|
-
} = _MobileFullScreenPage.default;
|
|
23
|
+
const Header = _MobileFullScreenPage.default.Header,
|
|
24
|
+
Body = _MobileFullScreenPage.default.Body;
|
|
27
25
|
class MBDateEditor extends _react.default.PureComponent {
|
|
28
26
|
constructor(props) {
|
|
29
27
|
super(props);
|
|
@@ -69,14 +67,11 @@ class MBDateEditor extends _react.default.PureComponent {
|
|
|
69
67
|
});
|
|
70
68
|
};
|
|
71
69
|
this.renderCalender = () => {
|
|
72
|
-
const
|
|
73
|
-
lang,
|
|
74
|
-
className,
|
|
75
|
-
firstDayOfWeek
|
|
76
|
-
|
|
77
|
-
const {
|
|
78
|
-
time
|
|
79
|
-
} = this.state;
|
|
70
|
+
const _this$props = this.props,
|
|
71
|
+
lang = _this$props.lang,
|
|
72
|
+
className = _this$props.className,
|
|
73
|
+
firstDayOfWeek = _this$props.firstDayOfWeek;
|
|
74
|
+
const time = this.state.time;
|
|
80
75
|
const calendar = /*#__PURE__*/(0, _jsxRuntime.jsx)(_seafileCalendar.default, {
|
|
81
76
|
className: (0, _classnames.default)('dtable-rc-calendar', className),
|
|
82
77
|
locale: (0, _editorUtils.initDateEditorLanguage)(lang),
|
|
@@ -102,9 +97,7 @@ class MBDateEditor extends _react.default.PureComponent {
|
|
|
102
97
|
width: '100%'
|
|
103
98
|
},
|
|
104
99
|
children: _ref => {
|
|
105
|
-
let
|
|
106
|
-
time
|
|
107
|
-
} = _ref;
|
|
100
|
+
let time = _ref.time;
|
|
108
101
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
109
102
|
tabIndex: "0",
|
|
110
103
|
onFocus: this.onReadOnlyFocus,
|
|
@@ -124,10 +117,8 @@ class MBDateEditor extends _react.default.PureComponent {
|
|
|
124
117
|
}
|
|
125
118
|
});
|
|
126
119
|
};
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
-
showHourAndMinute
|
|
130
|
-
} = props;
|
|
120
|
+
const dateFormat = props.dateFormat,
|
|
121
|
+
showHourAndMinute = props.showHourAndMinute;
|
|
131
122
|
this.state = {
|
|
132
123
|
time: null
|
|
133
124
|
};
|
|
@@ -137,10 +128,9 @@ class MBDateEditor extends _react.default.PureComponent {
|
|
|
137
128
|
this.format = showHourAndMinute ? 'YYYY-MM-DD HH:mm' : 'YYYY-MM-DD';
|
|
138
129
|
}
|
|
139
130
|
componentDidMount() {
|
|
140
|
-
let
|
|
141
|
-
value,
|
|
142
|
-
lang
|
|
143
|
-
} = this.props;
|
|
131
|
+
let _this$props2 = this.props,
|
|
132
|
+
value = _this$props2.value,
|
|
133
|
+
lang = _this$props2.lang;
|
|
144
134
|
const iszhcn = lang === 'zh-cn';
|
|
145
135
|
if (iszhcn) {
|
|
146
136
|
now = now.locale('zh-cn');
|
|
@@ -156,14 +146,11 @@ class MBDateEditor extends _react.default.PureComponent {
|
|
|
156
146
|
});
|
|
157
147
|
}
|
|
158
148
|
render() {
|
|
159
|
-
const
|
|
160
|
-
lang,
|
|
161
|
-
column,
|
|
162
|
-
showHourAndMinute
|
|
163
|
-
|
|
164
|
-
const {
|
|
165
|
-
time
|
|
166
|
-
} = this.state;
|
|
149
|
+
const _this$props3 = this.props,
|
|
150
|
+
lang = _this$props3.lang,
|
|
151
|
+
column = _this$props3.column,
|
|
152
|
+
showHourAndMinute = _this$props3.showHourAndMinute;
|
|
153
|
+
const time = this.state.time;
|
|
167
154
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_MobileFullScreenPage.default, {
|
|
168
155
|
className: "dtable-ui-mobile-date-editor",
|
|
169
156
|
onClose: this.props.onClose,
|