dtable-ui-component 7.0.13 → 7.0.15
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 +58 -49
- package/lib/ActivityIndicator/index.js +17 -16
- package/lib/AsyncUserSelect/index.js +20 -46
- package/lib/AsyncUserSelect/user-item.js +6 -5
- package/lib/AutoNumberFormatter/index.js +4 -3
- package/lib/Badge/index.js +27 -29
- package/lib/ButtonFormatter/index.js +8 -6
- package/lib/CTimeFormatter/index.js +4 -3
- package/lib/CheckboxEditor/index.js +16 -13
- package/lib/CheckboxEditor/mb-editor.js +20 -9
- package/lib/CheckboxEditor/pc-editor.js +24 -12
- package/lib/CheckboxFormatter/index.js +5 -4
- package/lib/CollaboratorEditor/index.js +17 -14
- package/lib/CollaboratorEditor/mb-editor/index.js +19 -11
- package/lib/CollaboratorEditor/pc-editor/index.js +35 -26
- package/lib/CollaboratorFormatter/index.js +10 -8
- package/lib/CollaboratorItem/index.js +5 -4
- package/lib/CollapsibleSettingLayout/index.js +8 -10
- package/lib/Comment/body/comment.js +19 -11
- package/lib/Comment/body/index.js +8 -8
- package/lib/Comment/footer/btns/index.js +7 -4
- package/lib/Comment/footer/index.js +21 -10
- package/lib/Comment/footer/input/index.js +55 -34
- package/lib/Comment/footer/input/participant/index.js +6 -5
- package/lib/Comment/footer/participants/index.js +5 -4
- package/lib/Comment/footer/participants/participant/index.js +3 -1
- package/lib/Comment/footer/participants/participant-select/index.js +26 -10
- package/lib/Comment/index.js +57 -39
- package/lib/Comment/utils/utilities.js +22 -16
- package/lib/CreatorFormatter/index.js +8 -6
- package/lib/DTableColorPicker/ColorPickerPortal/index.js +26 -28
- package/lib/DTableColorPicker/index.js +53 -67
- package/lib/DTableColorPicker/utils.js +7 -5
- package/lib/DTableColumnIcon/index.js +7 -6
- package/lib/DTableCommonAddTool/index.js +10 -8
- package/lib/DTableCustomFooter/index.js +3 -1
- package/lib/DTableCustomizeSearchInput/index.js +41 -26
- package/lib/DTableCustomizeSelect/index.js +24 -19
- package/lib/DTableDropdownItem/index.js +28 -24
- package/lib/DTableDropdownMenu/index.js +17 -14
- package/lib/DTableEmptyTip/index.js +5 -4
- package/lib/DTableFiltersPopover/index.js +42 -27
- package/lib/DTableFiltersPopover/utils/filter-item-utils.js +3 -1
- package/lib/DTableFiltersPopover/utils/index.js +114 -64
- package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +9 -8
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +13 -16
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +15 -18
- package/lib/DTableFiltersPopover/widgets/filter-calendar.js +14 -8
- package/lib/DTableFiltersPopover/widgets/filter-group.js +57 -36
- package/lib/DTableFiltersPopover/widgets/filter-item.js +165 -106
- package/lib/DTableFiltersPopover/widgets/filter-list/index.js +162 -137
- package/lib/DTableFiltersPopover/widgets/rate-item.js +25 -20
- package/lib/DTableIcon/index.js +11 -10
- package/lib/DTableIcon/svg-icon.js +11 -9
- package/lib/DTableModalHeader/index.js +7 -7
- package/lib/DTablePopover/index.js +16 -12
- package/lib/DTableRadio/index.js +9 -10
- package/lib/DTableRadioGroup/index.js +20 -11
- package/lib/DTableSearchInput/index.js +29 -19
- package/lib/DTableSelect/dtable-select-label.js +6 -7
- package/lib/DTableSelect/index.js +26 -25
- package/lib/DTableSelect/select-dropdown-indicator/index.js +3 -1
- package/lib/DTableSelect/utils.js +83 -47
- package/lib/DTableSubDropdownMenu/index.js +16 -12
- package/lib/DTableSubDropdownToggle/index.js +16 -17
- package/lib/DTableSwitch/index.js +11 -12
- package/lib/DTableToolTip/index.js +12 -11
- package/lib/DateEditor/index.js +28 -30
- package/lib/DateEditor/mb-editor/index.js +31 -18
- package/lib/DateEditor/pc-editor.js +46 -27
- package/lib/DateFormatter/index.js +5 -4
- package/lib/DatePicker/index.js +15 -9
- package/lib/DatePicker/utils.js +7 -5
- package/lib/DeleteTip/index.js +6 -5
- package/lib/DepartmentMultipleSelectEditor/index.js +26 -28
- package/lib/DepartmentSelectFilter/index.js +13 -8
- package/lib/DepartmentSingleSelectEditor/index.js +16 -13
- package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +49 -50
- package/lib/DepartmentSingleSelectEditor/pc-editor/department-single-select.js +64 -42
- package/lib/DepartmentSingleSelectEditor/pc-editor/index.js +19 -13
- package/lib/DepartmentSingleSelectFormatter/index.js +6 -4
- package/lib/DigitalSignEditor/index.js +16 -13
- package/lib/DigitalSignEditor/mb-editor/index.js +24 -16
- package/lib/DigitalSignEditor/pc-editor/index.js +31 -23
- package/lib/DigitalSignEditor/service.js +5 -3
- package/lib/DigitalSignEditor/signature-board/index.js +10 -7
- package/lib/DigitalSignEditor/utils.js +4 -2
- package/lib/DigitalSignFormatter/index.js +15 -12
- package/lib/DigitalSignFormatter/utils.js +6 -5
- package/lib/Drawer/index.js +3 -2
- package/lib/DurationEditor/index.js +31 -21
- package/lib/DurationFormatter/index.js +5 -4
- package/lib/EditEditorButton/index.js +3 -1
- package/lib/EmailFormatter/index.js +4 -3
- package/lib/FieldDisplaySetting/field-item.js +13 -13
- package/lib/FieldDisplaySetting/index.js +20 -20
- package/lib/FileEditor/files-previewer/index.js +16 -13
- package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +20 -12
- package/lib/FileEditor/files-previewer/mb-previewer/index.js +8 -7
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/dropdown-menu.js +4 -3
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/file-name-editor/index.js +6 -5
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/index.js +24 -17
- package/lib/FileEditor/files-previewer/pc-previewer/index.js +57 -29
- package/lib/FileEditor/index.js +16 -13
- package/lib/FileEditor/mb-editor/index.js +20 -28
- package/lib/FileEditor/pc-editor/addition-previewer/index.js +4 -2
- package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.js +31 -17
- package/lib/FileEditor/pc-editor/index.js +30 -22
- package/lib/FileFormatter/index.js +20 -27
- package/lib/FileItemFormatter/index.js +10 -7
- package/lib/FileUploader/index.js +46 -29
- package/lib/FormulaFormatter/index.js +44 -24
- package/lib/GeolocationEditor/index.js +32 -27
- package/lib/GeolocationEditor/map-editor-utils.js +23 -21
- package/lib/GeolocationEditor/mb-editor/country-editor.js +14 -17
- package/lib/GeolocationEditor/mb-editor/index.js +28 -22
- package/lib/GeolocationEditor/mb-editor/location-editor.js +15 -18
- package/lib/GeolocationEditor/mb-editor/map-editor/index.js +77 -47
- package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.js +89 -50
- package/lib/GeolocationEditor/mb-editor/province-city-editor.js +14 -17
- package/lib/GeolocationEditor/mb-editor/province-editor.js +14 -17
- package/lib/GeolocationEditor/pc-editor/country-editor.js +25 -12
- package/lib/GeolocationEditor/pc-editor/index.js +41 -27
- package/lib/GeolocationEditor/pc-editor/location-editor.js +33 -28
- package/lib/GeolocationEditor/pc-editor/map-editor/index.js +67 -43
- package/lib/GeolocationEditor/pc-editor/map-editor/large-editor/index.js +69 -42
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/index.js +86 -42
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +85 -39
- package/lib/GeolocationEditor/pc-editor/province-city-editor.js +26 -20
- package/lib/GeolocationEditor/pc-editor/province-editor.js +15 -8
- package/lib/GeolocationEditor/pc-editor/selector-header-item.js +6 -5
- package/lib/GeolocationEditor/pc-editor/selector-list.js +8 -7
- package/lib/GeolocationFormatter/index.js +5 -4
- package/lib/HtmlLongTextFormatter/index.js +13 -5
- package/lib/Icon/index.js +13 -15
- package/lib/Icon/load-sprite.js +13 -2
- package/lib/IconButton/index.js +12 -13
- package/lib/ImageEditor/images-previewer/image-preview/index.js +22 -13
- package/lib/ImageEditor/images-previewer/index.js +9 -3
- package/lib/ImageEditor/index.js +16 -13
- package/lib/ImageEditor/mb-editor/index.js +20 -28
- package/lib/ImageEditor/pc-editor/addition-previewer/image-link/index.js +6 -2
- package/lib/ImageEditor/pc-editor/addition-previewer/index.js +5 -3
- package/lib/ImageEditor/pc-editor/addition-previewer/local-image-addition/index.js +26 -12
- package/lib/ImageEditor/pc-editor/images-previewer/index.js +10 -4
- package/lib/ImageEditor/pc-editor/index.js +16 -11
- package/lib/ImageFormatter/images-lazy-load.js +11 -19
- package/lib/ImageFormatter/index.js +14 -12
- package/lib/ImagePreviewerLightbox/index.js +15 -19
- package/lib/ImageThumbnail/index.js +15 -12
- package/lib/InputItem/custom-input.js +55 -35
- package/lib/InputItem/custom-keyboard.js +42 -42
- package/lib/InputItem/index.js +82 -63
- package/lib/InputItem/input.js +9 -11
- package/lib/LastModifierFormatter/index.js +8 -6
- package/lib/LinkEditor/index.js +53 -33
- package/lib/LinkEditor/link-editor-option.js +4 -3
- package/lib/LinkEditor/mb-popover/index.js +22 -9
- package/lib/LinkEditor/pc-popover/index.js +13 -7
- package/lib/LinkFormatter/index.js +37 -21
- package/lib/List/index.js +17 -19
- package/lib/List/list-item.js +59 -55
- package/lib/LongTextFormatter/index.js +5 -4
- package/lib/MBEditorHeader/index.js +9 -8
- package/lib/MTimeFormatter/index.js +4 -3
- package/lib/MobileFullScreenPage/body/index.js +6 -4
- package/lib/MobileFullScreenPage/header/index.js +10 -8
- package/lib/MobileFullScreenPage/index.js +12 -14
- package/lib/MobileModal/index.js +7 -8
- package/lib/MobileOperationSheet/index.js +8 -7
- package/lib/MobileSelector/empty/index.js +3 -1
- package/lib/MobileSelector/index.js +7 -5
- package/lib/MobileSelector/option/index.js +5 -3
- package/lib/MobileSelector/options/index.css +0 -4
- package/lib/MobileSelector/options/index.js +3 -1
- package/lib/MobileSelector/search/index.js +5 -3
- package/lib/MobileUpload/index.js +5 -4
- package/lib/Modal/alert.js +2 -2
- package/lib/Modal/modal.js +28 -30
- package/lib/Modal/prompt.js +14 -14
- package/lib/MultipleSelectEditor/index.js +7 -7
- package/lib/MultipleSelectFormatter/index.js +9 -7
- package/lib/NotificationPopover/index.js +5 -4
- package/lib/NumberEditor/index.js +21 -12
- package/lib/NumberFormatter/index.js +5 -4
- package/lib/PhoneNumberLink/index.js +5 -3
- package/lib/Picker/AbstractPicker.js +35 -33
- package/lib/Popover/index.js +9 -11
- package/lib/Popover/item.js +22 -24
- package/lib/Progress/index.js +18 -17
- package/lib/Radio/Radio.js +17 -15
- package/lib/Radio/RadioItem.js +23 -19
- package/lib/RateFormatter/index.js +15 -15
- package/lib/RoleStatusEditor/index.js +18 -19
- package/lib/RowExpand/index.js +7 -6
- package/lib/RowExpandDialog/body/index.js +57 -40
- package/lib/RowExpandDialog/column-content/index.js +10 -6
- package/lib/RowExpandDialog/header/index.js +12 -9
- package/lib/RowExpandDialog/index.js +59 -63
- package/lib/RowExpandEditor/add-btn/index.js +7 -6
- package/lib/RowExpandEditor/checkbox-editor/index.js +7 -6
- package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.js +5 -4
- package/lib/RowExpandEditor/checkbox-editor/pc-editor.js +10 -8
- package/lib/RowExpandEditor/collaborator-editor/index.js +7 -6
- package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.js +33 -22
- package/lib/RowExpandEditor/collaborator-editor/pc-editor/index.js +40 -26
- package/lib/RowExpandEditor/date-editor/index.js +7 -6
- package/lib/RowExpandEditor/date-editor/mb-editor.js +18 -12
- package/lib/RowExpandEditor/date-editor/pc-editor.js +20 -15
- package/lib/RowExpandEditor/department-editor/index.js +7 -6
- package/lib/RowExpandEditor/department-editor/mb-editor.js +11 -16
- package/lib/RowExpandEditor/department-editor/pc-editor.js +14 -19
- package/lib/RowExpandEditor/digital-sign-editor/index.js +7 -6
- package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +38 -24
- package/lib/RowExpandEditor/digital-sign-editor/pc-editor/index.js +39 -25
- package/lib/RowExpandEditor/duration-editor/index.js +7 -6
- package/lib/RowExpandEditor/duration-editor/mb-editor.js +17 -10
- package/lib/RowExpandEditor/duration-editor/pc-editor.js +19 -13
- package/lib/RowExpandEditor/email-editor/index.js +7 -6
- package/lib/RowExpandEditor/email-editor/mb-editor/index.js +20 -10
- package/lib/RowExpandEditor/email-editor/pc-editor/index.js +25 -14
- package/lib/RowExpandEditor/file-editor/index.js +7 -6
- package/lib/RowExpandEditor/file-editor/mb-editor/index.js +31 -18
- package/lib/RowExpandEditor/file-editor/pc-editor/index.js +23 -16
- package/lib/RowExpandEditor/geolocation-editor/index.js +7 -6
- package/lib/RowExpandEditor/geolocation-editor/mb-editor/index.js +29 -17
- package/lib/RowExpandEditor/geolocation-editor/pc-editor/index.js +26 -13
- package/lib/RowExpandEditor/image-editor/index.js +7 -6
- package/lib/RowExpandEditor/image-editor/mb-editor/index.js +26 -16
- package/lib/RowExpandEditor/image-editor/pc-editor/index.js +24 -14
- package/lib/RowExpandEditor/index.js +16 -11
- package/lib/RowExpandEditor/long-text-editor/index.js +7 -6
- package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.js +18 -17
- package/lib/RowExpandEditor/long-text-editor/mb-editor/index.js +16 -10
- package/lib/RowExpandEditor/long-text-editor/pc-editor/index.js +23 -16
- package/lib/RowExpandEditor/multiple-select-editor/index.js +7 -6
- package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +20 -12
- package/lib/RowExpandEditor/multiple-select-editor/pc-editor/index.js +38 -27
- package/lib/RowExpandEditor/number-editor/index.js +7 -6
- package/lib/RowExpandEditor/number-editor/mb-editor/index.js +14 -8
- package/lib/RowExpandEditor/number-editor/pc-editor.js +20 -13
- package/lib/RowExpandEditor/rate-editor/index.js +7 -6
- package/lib/RowExpandEditor/rate-editor/mb-editor.js +26 -13
- package/lib/RowExpandEditor/rate-editor/pc-editor.js +41 -25
- package/lib/RowExpandEditor/single-select-editor/index.js +7 -6
- package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +32 -21
- package/lib/RowExpandEditor/single-select-editor/pc-editor/index.js +37 -25
- package/lib/RowExpandEditor/text-editor/index.js +7 -6
- package/lib/RowExpandEditor/text-editor/mb-editor/index.js +5 -4
- package/lib/RowExpandEditor/text-editor/pc-editor/index.js +26 -15
- package/lib/RowExpandEditor/url-editor/index.js +7 -6
- package/lib/RowExpandEditor/url-editor/mb-editor/index.js +15 -7
- package/lib/RowExpandEditor/url-editor/pc-editor/index.js +20 -11
- package/lib/RowExpandFormatter/department-formatter/index.js +6 -3
- package/lib/RowExpandFormatter/department-formatter/mb-formatter.js +4 -2
- package/lib/RowExpandFormatter/department-formatter/pc-formatter.js +4 -2
- package/lib/RowExpandFormatter/email-formatter/index.js +8 -5
- package/lib/RowExpandFormatter/file-formatter/index.js +9 -8
- package/lib/RowExpandFormatter/file-formatter/row-expand-file-item-formatter.js +14 -12
- package/lib/RowExpandFormatter/formula-formatter/index.js +51 -30
- package/lib/RowExpandFormatter/image-formatter/index.js +11 -9
- package/lib/RowExpandFormatter/image-formatter/row-expand-image-item-formatter.js +10 -9
- package/lib/RowExpandFormatter/index.js +52 -34
- package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +15 -9
- package/lib/RowExpandFormatter/link-formatter/index.js +25 -17
- package/lib/RowExpandFormatter/link-formatter/value-display-utils.js +5 -3
- package/lib/RowExpandFormatter/rate-formatter/index.js +14 -13
- package/lib/RowExpandFormatter/text/index.js +5 -4
- package/lib/RowExpandFormatter/url-formatter/index.js +9 -6
- package/lib/RowExpandView/body/index.js +43 -32
- package/lib/RowExpandView/column-content/index.js +7 -3
- package/lib/RowExpandView/index.js +52 -53
- package/lib/SelectItem/index.js +7 -5
- package/lib/SelectOptionGroup/index.js +40 -30
- package/lib/SelectedDepartments/index.js +12 -10
- package/lib/SimpleLongTextFormatter/index.js +18 -12
- package/lib/SimpleLongTextFormatter/normalize-long-text-value.js +4 -3
- package/lib/SimpleLongTextFormatter/widgets/LongTextPreview.js +21 -12
- package/lib/SimpleLongTextFormatter/widgets/dtable-markdown-viewer.js +4 -3
- package/lib/SingleSelectEditor/index.js +7 -7
- package/lib/SingleSelectFormatter/index.js +9 -8
- package/lib/TabBar/Tab.js +26 -24
- package/lib/TabBar/index.js +28 -24
- package/lib/Tabs/index.js +13 -10
- package/lib/TextEditor/index.js +23 -14
- package/lib/TextFormatter/index.js +4 -3
- package/lib/TextareaItem/index.js +53 -48
- package/lib/Toast/index.js +9 -8
- package/lib/UrlFormatter/index.js +4 -3
- package/lib/common/editor-base.js +12 -7
- package/lib/formatterConfig/index.js +3 -3
- package/lib/hooks/common-hooks.js +4 -2
- package/lib/select-editor/index.js +16 -13
- package/lib/select-editor/mb-editor/index.js +28 -17
- package/lib/select-editor/pc-editor/index.js +47 -32
- package/lib/toaster/alert.js +8 -7
- package/lib/toaster/toast.js +4 -3
- package/lib/toaster/toastManager.js +13 -13
- package/lib/toaster/toaster.js +12 -9
- package/lib/utils/cell.js +11 -8
- package/lib/utils/class.js +3 -3
- package/lib/utils/column-utils.js +14 -8
- package/lib/utils/departments.js +6 -5
- package/lib/utils/getLocale.js +11 -5
- package/lib/utils/object-utils.js +5 -4
- package/lib/utils/url.js +29 -22
- package/lib/utils/utils.js +6 -2
- package/package.json +2 -2
|
@@ -30,18 +30,22 @@ class RowExpandMBDateEditor extends _react.default.Component {
|
|
|
30
30
|
value
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
const {
|
|
34
|
+
column,
|
|
35
|
+
row,
|
|
36
|
+
valueKey
|
|
37
|
+
} = props;
|
|
36
38
|
this.state = {
|
|
37
39
|
isShowEditor: false,
|
|
38
40
|
value: row[column[valueKey]]
|
|
39
41
|
};
|
|
40
42
|
}
|
|
41
43
|
UNSAFE_componentWillReceiveProps(nextProps) {
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
const {
|
|
45
|
+
column,
|
|
46
|
+
row,
|
|
47
|
+
valueKey
|
|
48
|
+
} = nextProps;
|
|
45
49
|
if (row._id !== this.props.row._id) {
|
|
46
50
|
this.setState({
|
|
47
51
|
value: row[column[valueKey]],
|
|
@@ -50,12 +54,14 @@ class RowExpandMBDateEditor extends _react.default.Component {
|
|
|
50
54
|
}
|
|
51
55
|
}
|
|
52
56
|
render() {
|
|
53
|
-
let
|
|
54
|
-
column
|
|
55
|
-
lang
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
let {
|
|
58
|
+
column,
|
|
59
|
+
lang
|
|
60
|
+
} = this.props;
|
|
61
|
+
let {
|
|
62
|
+
value,
|
|
63
|
+
isShowEditor
|
|
64
|
+
} = this.state;
|
|
59
65
|
const format = (0, _columnUtils.getDateColumnFormat)(column);
|
|
60
66
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
61
67
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
@@ -57,19 +57,22 @@ class RowExpandPCDateEditor extends _react.default.Component {
|
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
componentDidMount() {
|
|
60
|
-
const
|
|
61
|
-
column
|
|
62
|
-
row
|
|
63
|
-
valueKey
|
|
60
|
+
const {
|
|
61
|
+
column,
|
|
62
|
+
row,
|
|
63
|
+
valueKey
|
|
64
|
+
} = this.props;
|
|
64
65
|
this.setState({
|
|
65
66
|
value: row[column[valueKey]]
|
|
66
67
|
});
|
|
67
68
|
document.addEventListener('keydown', this.onKeyDown);
|
|
68
69
|
}
|
|
69
70
|
UNSAFE_componentWillReceiveProps(nextProps) {
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
const {
|
|
72
|
+
column,
|
|
73
|
+
row,
|
|
74
|
+
valueKey
|
|
75
|
+
} = nextProps;
|
|
73
76
|
if (row._id !== this.props.row._id) {
|
|
74
77
|
this.setState({
|
|
75
78
|
value: row[column[valueKey]],
|
|
@@ -91,14 +94,16 @@ class RowExpandPCDateEditor extends _react.default.Component {
|
|
|
91
94
|
document.removeEventListener('keydown', this.onKeyDown);
|
|
92
95
|
}
|
|
93
96
|
render() {
|
|
94
|
-
let
|
|
95
|
-
column
|
|
96
|
-
isInModal
|
|
97
|
-
isEditorFocus
|
|
98
|
-
lang
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
97
|
+
let {
|
|
98
|
+
column,
|
|
99
|
+
isInModal,
|
|
100
|
+
isEditorFocus,
|
|
101
|
+
lang
|
|
102
|
+
} = this.props;
|
|
103
|
+
let {
|
|
104
|
+
value,
|
|
105
|
+
isShowEditor
|
|
106
|
+
} = this.state;
|
|
102
107
|
const format = (0, _columnUtils.getDateColumnFormat)(column);
|
|
103
108
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
104
109
|
ref: ref => this.dateSelectRef = ref,
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
10
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
10
|
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
12
11
|
var _pcEditor = _interopRequireDefault(require("./pc-editor"));
|
|
@@ -16,14 +15,16 @@ const RowExpandDepartmentEditor = /*#__PURE__*/(0, _react.forwardRef)((props, re
|
|
|
16
15
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
17
16
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
18
17
|
query: "(min-width: 768px)",
|
|
19
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default,
|
|
18
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
|
|
19
|
+
...props,
|
|
20
20
|
ref: ref
|
|
21
|
-
})
|
|
21
|
+
})
|
|
22
22
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
23
23
|
query: "(max-width: 768px)",
|
|
24
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default,
|
|
24
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
|
|
25
|
+
...props,
|
|
25
26
|
ref: ref
|
|
26
|
-
})
|
|
27
|
+
})
|
|
27
28
|
})]
|
|
28
29
|
});
|
|
29
30
|
});
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
10
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
10
|
var _rightAngle = _interopRequireDefault(require("../right-angle"));
|
|
12
11
|
var _addBtn = _interopRequireDefault(require("../add-btn"));
|
|
@@ -15,20 +14,16 @@ var _DepartmentSingleSelectEditor = _interopRequireDefault(require("../../Depart
|
|
|
15
14
|
var _lang = require("../../lang");
|
|
16
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
16
|
const RowExpandMBDepartmentEditor = _ref => {
|
|
18
|
-
let
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const _useState3 = (0, _react.useState)(false),
|
|
29
|
-
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
30
|
-
showEditor = _useState4[0],
|
|
31
|
-
setShowEditor = _useState4[1];
|
|
17
|
+
let {
|
|
18
|
+
row,
|
|
19
|
+
column,
|
|
20
|
+
valueKey,
|
|
21
|
+
departments,
|
|
22
|
+
userDepartmentIdsMap,
|
|
23
|
+
onCommit
|
|
24
|
+
} = _ref;
|
|
25
|
+
const [value, setValue] = (0, _react.useState)(row[column[valueKey]] || '');
|
|
26
|
+
const [showEditor, setShowEditor] = (0, _react.useState)(false);
|
|
32
27
|
const openEditor = (0, _react.useCallback)(() => {
|
|
33
28
|
setShowEditor(true);
|
|
34
29
|
}, []);
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
10
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
11
|
var _DepartmentSingleSelectFormatter = _interopRequireDefault(require("../../DepartmentSingleSelectFormatter"));
|
|
@@ -14,23 +13,19 @@ var _constants = require("../../constants");
|
|
|
14
13
|
var _DepartmentSingleSelectEditor = _interopRequireDefault(require("../../DepartmentSingleSelectEditor"));
|
|
15
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
15
|
const RowExpandPCDepartmentEditor = _ref => {
|
|
17
|
-
let
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
const _useState3 = (0, _react.useState)(false),
|
|
31
|
-
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
32
|
-
showEditor = _useState4[0],
|
|
33
|
-
setShowEditor = _useState4[1];
|
|
16
|
+
let {
|
|
17
|
+
row,
|
|
18
|
+
column,
|
|
19
|
+
valueKey,
|
|
20
|
+
departments,
|
|
21
|
+
userDepartmentIdsMap,
|
|
22
|
+
isEditorFocus,
|
|
23
|
+
columnIndex,
|
|
24
|
+
onCommit,
|
|
25
|
+
updateTabIndex
|
|
26
|
+
} = _ref;
|
|
27
|
+
const [value, setValue] = (0, _react.useState)(row[column[valueKey]] || '');
|
|
28
|
+
const [showEditor, setShowEditor] = (0, _react.useState)(false);
|
|
34
29
|
const departmentSelectContainer = (0, _react.useRef)(null);
|
|
35
30
|
const departmentSelectContent = (0, _react.useRef)(null);
|
|
36
31
|
const onKeyDown = (0, _react.useCallback)(event => {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
10
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
10
|
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
12
11
|
var _pcEditor = _interopRequireDefault(require("./pc-editor"));
|
|
@@ -16,14 +15,16 @@ const RowExpandDigitalSignEditor = /*#__PURE__*/(0, _react.forwardRef)((props, r
|
|
|
16
15
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
17
16
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
18
17
|
query: "(min-width: 768px)",
|
|
19
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default,
|
|
18
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
|
|
19
|
+
...props,
|
|
20
20
|
ref: ref
|
|
21
|
-
})
|
|
21
|
+
})
|
|
22
22
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
23
23
|
query: "(max-width: 768px)",
|
|
24
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default,
|
|
24
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
|
|
25
|
+
...props,
|
|
25
26
|
ref: ref
|
|
26
|
-
})
|
|
27
|
+
})
|
|
27
28
|
})]
|
|
28
29
|
});
|
|
29
30
|
});
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
9
8
|
var _react = _interopRequireDefault(require("react"));
|
|
10
9
|
var _ImageThumbnail = _interopRequireDefault(require("../../../ImageThumbnail"));
|
|
11
10
|
var _utils = _interopRequireDefault(require("../../../DigitalSignEditor/utils"));
|
|
@@ -31,17 +30,21 @@ class RowExpandMBDigitalSignEditor extends _react.default.Component {
|
|
|
31
30
|
});
|
|
32
31
|
};
|
|
33
32
|
this.getValue = () => {
|
|
34
|
-
const
|
|
35
|
-
column
|
|
36
|
-
row
|
|
37
|
-
valueKey
|
|
38
|
-
|
|
33
|
+
const {
|
|
34
|
+
column,
|
|
35
|
+
row,
|
|
36
|
+
valueKey
|
|
37
|
+
} = this.props;
|
|
38
|
+
const {
|
|
39
|
+
updated
|
|
40
|
+
} = this.state;
|
|
39
41
|
return updated ? updated : row[column[valueKey]];
|
|
40
42
|
};
|
|
41
43
|
this.deleteImage = () => {
|
|
42
|
-
const
|
|
43
|
-
column
|
|
44
|
-
onCommit
|
|
44
|
+
const {
|
|
45
|
+
column,
|
|
46
|
+
onCommit
|
|
47
|
+
} = this.props;
|
|
45
48
|
const updated = {
|
|
46
49
|
[column.key]: null
|
|
47
50
|
};
|
|
@@ -51,18 +54,24 @@ class RowExpandMBDigitalSignEditor extends _react.default.Component {
|
|
|
51
54
|
});
|
|
52
55
|
};
|
|
53
56
|
this.getSignImages = () => {
|
|
54
|
-
const
|
|
57
|
+
const {
|
|
58
|
+
config
|
|
59
|
+
} = this.props;
|
|
55
60
|
const value = this.getValue();
|
|
56
|
-
const signImageUrl = (0, _url.generateCurrentBaseImageUrl)(
|
|
61
|
+
const signImageUrl = (0, _url.generateCurrentBaseImageUrl)({
|
|
62
|
+
...config,
|
|
57
63
|
partUrl: _utils.default.getSignImageUrl(value)
|
|
58
|
-
})
|
|
64
|
+
});
|
|
59
65
|
return [signImageUrl].filter(Boolean);
|
|
60
66
|
};
|
|
61
67
|
this.renderSignature = signImages => {
|
|
62
|
-
const
|
|
63
|
-
column
|
|
64
|
-
config
|
|
65
|
-
|
|
68
|
+
const {
|
|
69
|
+
column,
|
|
70
|
+
config
|
|
71
|
+
} = this.props;
|
|
72
|
+
const {
|
|
73
|
+
key
|
|
74
|
+
} = column;
|
|
66
75
|
return signImages.map((src, index) => {
|
|
67
76
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageThumbnail.default, {
|
|
68
77
|
index: index,
|
|
@@ -72,7 +81,7 @@ class RowExpandMBDigitalSignEditor extends _react.default.Component {
|
|
|
72
81
|
onClick: this.toggleEditor,
|
|
73
82
|
deleteImage: this.deleteImage,
|
|
74
83
|
disableImageTooltip: true
|
|
75
|
-
},
|
|
84
|
+
}, `sing-image-${key}-${index}`);
|
|
76
85
|
});
|
|
77
86
|
};
|
|
78
87
|
this.state = {
|
|
@@ -81,9 +90,11 @@ class RowExpandMBDigitalSignEditor extends _react.default.Component {
|
|
|
81
90
|
};
|
|
82
91
|
}
|
|
83
92
|
UNSAFE_componentWillReceiveProps(nextProps) {
|
|
84
|
-
const
|
|
85
|
-
|
|
86
|
-
|
|
93
|
+
const {
|
|
94
|
+
column,
|
|
95
|
+
row,
|
|
96
|
+
valueKey
|
|
97
|
+
} = nextProps;
|
|
87
98
|
if (row._id !== this.props.row._id) {
|
|
88
99
|
this.setState({
|
|
89
100
|
updated: row[column[valueKey]] || [],
|
|
@@ -92,10 +103,13 @@ class RowExpandMBDigitalSignEditor extends _react.default.Component {
|
|
|
92
103
|
}
|
|
93
104
|
}
|
|
94
105
|
render() {
|
|
95
|
-
const
|
|
96
|
-
config
|
|
97
|
-
column
|
|
98
|
-
|
|
106
|
+
const {
|
|
107
|
+
config,
|
|
108
|
+
column
|
|
109
|
+
} = this.props;
|
|
110
|
+
const {
|
|
111
|
+
isShowEditor
|
|
112
|
+
} = this.state;
|
|
99
113
|
const signImages = this.getSignImages();
|
|
100
114
|
const signImageExisted = Array.isArray(signImages) && signImages.length > 0;
|
|
101
115
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
9
8
|
var _react = _interopRequireDefault(require("react"));
|
|
10
9
|
var _ImagePreviewerLightbox = _interopRequireDefault(require("../../../ImagePreviewerLightbox"));
|
|
11
10
|
var _ImageThumbnail = _interopRequireDefault(require("../../../ImageThumbnail"));
|
|
@@ -62,17 +61,21 @@ class RowExpandPCDigitalSignEditor extends _react.default.Component {
|
|
|
62
61
|
this.props.onCommit(value);
|
|
63
62
|
};
|
|
64
63
|
this.getValue = () => {
|
|
65
|
-
const
|
|
66
|
-
column
|
|
67
|
-
row
|
|
68
|
-
valueKey
|
|
69
|
-
|
|
64
|
+
const {
|
|
65
|
+
column,
|
|
66
|
+
row,
|
|
67
|
+
valueKey
|
|
68
|
+
} = this.props;
|
|
69
|
+
const {
|
|
70
|
+
updated
|
|
71
|
+
} = this.state;
|
|
70
72
|
return updated ? updated : row[column[valueKey]];
|
|
71
73
|
};
|
|
72
74
|
this.deleteImage = () => {
|
|
73
|
-
const
|
|
74
|
-
column
|
|
75
|
-
onCommit
|
|
75
|
+
const {
|
|
76
|
+
column,
|
|
77
|
+
onCommit
|
|
78
|
+
} = this.props;
|
|
76
79
|
const updated = {
|
|
77
80
|
[column.key]: null
|
|
78
81
|
};
|
|
@@ -82,11 +85,14 @@ class RowExpandPCDigitalSignEditor extends _react.default.Component {
|
|
|
82
85
|
});
|
|
83
86
|
};
|
|
84
87
|
this.getSignImages = () => {
|
|
85
|
-
const
|
|
88
|
+
const {
|
|
89
|
+
config
|
|
90
|
+
} = this.props;
|
|
86
91
|
const value = this.getValue();
|
|
87
|
-
const signImageUrl = (0, _url.generateCurrentBaseImageUrl)(
|
|
92
|
+
const signImageUrl = (0, _url.generateCurrentBaseImageUrl)({
|
|
93
|
+
...config,
|
|
88
94
|
partUrl: _utils.default.getSignImageUrl(value)
|
|
89
|
-
})
|
|
95
|
+
});
|
|
90
96
|
return [signImageUrl].filter(Boolean);
|
|
91
97
|
};
|
|
92
98
|
this.setLargeImageIndex = index => {
|
|
@@ -100,8 +106,12 @@ class RowExpandPCDigitalSignEditor extends _react.default.Component {
|
|
|
100
106
|
this.setLargeImageIndex(-1);
|
|
101
107
|
};
|
|
102
108
|
this.renderSignature = signImages => {
|
|
103
|
-
const
|
|
104
|
-
|
|
109
|
+
const {
|
|
110
|
+
column
|
|
111
|
+
} = this.props;
|
|
112
|
+
const {
|
|
113
|
+
key
|
|
114
|
+
} = column;
|
|
105
115
|
return signImages.map((src, index) => {
|
|
106
116
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageThumbnail.default, {
|
|
107
117
|
index: index,
|
|
@@ -110,7 +120,7 @@ class RowExpandPCDigitalSignEditor extends _react.default.Component {
|
|
|
110
120
|
onClick: this.setLargeImageIndex,
|
|
111
121
|
deleteImage: this.deleteImage,
|
|
112
122
|
disableImageTooltip: true
|
|
113
|
-
},
|
|
123
|
+
}, `sing-image-${key}-${index}`);
|
|
114
124
|
});
|
|
115
125
|
};
|
|
116
126
|
this.state = {
|
|
@@ -124,9 +134,11 @@ class RowExpandPCDigitalSignEditor extends _react.default.Component {
|
|
|
124
134
|
document.addEventListener('keydown', this.onKeyDown);
|
|
125
135
|
}
|
|
126
136
|
UNSAFE_componentWillReceiveProps(nextProps) {
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
-
|
|
137
|
+
const {
|
|
138
|
+
column,
|
|
139
|
+
row,
|
|
140
|
+
valueKey
|
|
141
|
+
} = nextProps;
|
|
130
142
|
if (row._id !== this.props.row._id) {
|
|
131
143
|
this.setState({
|
|
132
144
|
updated: row[column[valueKey]] || [],
|
|
@@ -150,13 +162,15 @@ class RowExpandPCDigitalSignEditor extends _react.default.Component {
|
|
|
150
162
|
document.removeEventListener('keydown', this.onKeyDown);
|
|
151
163
|
}
|
|
152
164
|
render() {
|
|
153
|
-
const
|
|
154
|
-
config
|
|
155
|
-
column
|
|
156
|
-
isEditorFocus
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
165
|
+
const {
|
|
166
|
+
config,
|
|
167
|
+
column,
|
|
168
|
+
isEditorFocus
|
|
169
|
+
} = this.props;
|
|
170
|
+
const {
|
|
171
|
+
isShowEditor,
|
|
172
|
+
largeImageIndex
|
|
173
|
+
} = this.state;
|
|
160
174
|
const signImages = this.getSignImages();
|
|
161
175
|
const signImageExisted = Array.isArray(signImages) && signImages.length > 0;
|
|
162
176
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
10
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
10
|
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
12
11
|
var _pcEditor = _interopRequireDefault(require("./pc-editor"));
|
|
@@ -16,14 +15,16 @@ const RowExpandDurationEditor = /*#__PURE__*/(0, _react.forwardRef)((props, ref)
|
|
|
16
15
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
17
16
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
18
17
|
query: "(min-width: 768px)",
|
|
19
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default,
|
|
18
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
|
|
19
|
+
...props,
|
|
20
20
|
ref: ref
|
|
21
|
-
})
|
|
21
|
+
})
|
|
22
22
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
23
23
|
query: "(max-width: 768px)",
|
|
24
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default,
|
|
24
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
|
|
25
|
+
...props,
|
|
25
26
|
ref: ref
|
|
26
|
-
})
|
|
27
|
+
})
|
|
27
28
|
})]
|
|
28
29
|
});
|
|
29
30
|
});
|
|
@@ -24,18 +24,22 @@ class RowExpandMBDurationEditor extends _react.default.Component {
|
|
|
24
24
|
isShowEditor: false
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
|
-
let
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
let {
|
|
28
|
+
row,
|
|
29
|
+
column,
|
|
30
|
+
valueKey
|
|
31
|
+
} = props;
|
|
30
32
|
this.state = {
|
|
31
33
|
isShowEditor: false,
|
|
32
34
|
value: row[column[valueKey]]
|
|
33
35
|
};
|
|
34
36
|
}
|
|
35
37
|
UNSAFE_componentWillReceiveProps(nextProps) {
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
const {
|
|
39
|
+
column,
|
|
40
|
+
row,
|
|
41
|
+
valueKey
|
|
42
|
+
} = nextProps;
|
|
39
43
|
if (row._id !== this.props.row._id) {
|
|
40
44
|
this.setState({
|
|
41
45
|
value: row[column[valueKey]],
|
|
@@ -44,10 +48,13 @@ class RowExpandMBDurationEditor extends _react.default.Component {
|
|
|
44
48
|
}
|
|
45
49
|
}
|
|
46
50
|
render() {
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
+
const {
|
|
52
|
+
column
|
|
53
|
+
} = this.props;
|
|
54
|
+
const {
|
|
55
|
+
value,
|
|
56
|
+
isShowEditor
|
|
57
|
+
} = this.state;
|
|
51
58
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
52
59
|
className: "dtable-ui-mobile-row-expand-input-editor-container",
|
|
53
60
|
children: isShowEditor ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_DurationEditor.default, {
|
|
@@ -34,9 +34,11 @@ class RowExpandPCDurationEditor extends _react.default.Component {
|
|
|
34
34
|
isShowEditor: false
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
|
-
let
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
let {
|
|
38
|
+
row,
|
|
39
|
+
column,
|
|
40
|
+
valueKey
|
|
41
|
+
} = props;
|
|
40
42
|
this.state = {
|
|
41
43
|
isShowEditor: false,
|
|
42
44
|
value: row[column[valueKey]]
|
|
@@ -46,9 +48,11 @@ class RowExpandPCDurationEditor extends _react.default.Component {
|
|
|
46
48
|
document.addEventListener('keydown', this.onKeyDown);
|
|
47
49
|
}
|
|
48
50
|
UNSAFE_componentWillReceiveProps(nextProps) {
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
const {
|
|
52
|
+
column,
|
|
53
|
+
row,
|
|
54
|
+
valueKey
|
|
55
|
+
} = nextProps;
|
|
52
56
|
if (row._id !== this.props.row._id) {
|
|
53
57
|
this.setState({
|
|
54
58
|
value: row[column[valueKey]],
|
|
@@ -69,13 +73,15 @@ class RowExpandPCDurationEditor extends _react.default.Component {
|
|
|
69
73
|
document.removeEventListener('keydown', this.onKeyDown);
|
|
70
74
|
}
|
|
71
75
|
render() {
|
|
72
|
-
let
|
|
73
|
-
column
|
|
74
|
-
isEditorFocus
|
|
75
|
-
isInModal
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
let {
|
|
77
|
+
column,
|
|
78
|
+
isEditorFocus,
|
|
79
|
+
isInModal
|
|
80
|
+
} = this.props;
|
|
81
|
+
let {
|
|
82
|
+
value,
|
|
83
|
+
isShowEditor
|
|
84
|
+
} = this.state;
|
|
79
85
|
let style = {
|
|
80
86
|
width: 320
|
|
81
87
|
};
|