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
|
@@ -18,6 +18,7 @@ var _editorUtils = require("../../utils/editor-utils");
|
|
|
18
18
|
var _MobileFullScreenPage = _interopRequireDefault(require("../../MobileFullScreenPage"));
|
|
19
19
|
require("@seafile/seafile-calendar/assets/index.css");
|
|
20
20
|
require("./index.css");
|
|
21
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
22
|
let now = (0, _dayjs.default)();
|
|
22
23
|
const {
|
|
23
24
|
Header,
|
|
@@ -76,7 +77,7 @@ class MBDateEditor extends _react.default.PureComponent {
|
|
|
76
77
|
const {
|
|
77
78
|
time
|
|
78
79
|
} = this.state;
|
|
79
|
-
const calendar = /*#__PURE__*/
|
|
80
|
+
const calendar = /*#__PURE__*/(0, _jsxRuntime.jsx)(_seafileCalendar.default, {
|
|
80
81
|
className: (0, _classnames.default)('dtable-rc-calendar', className),
|
|
81
82
|
locale: (0, _editorUtils.initDateEditorLanguage)(lang),
|
|
82
83
|
format: this.format,
|
|
@@ -91,7 +92,7 @@ class MBDateEditor extends _react.default.PureComponent {
|
|
|
91
92
|
},
|
|
92
93
|
firstDayOfWeek: firstDayOfWeek
|
|
93
94
|
});
|
|
94
|
-
return /*#__PURE__*/
|
|
95
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Picker.default, {
|
|
95
96
|
calendar: calendar,
|
|
96
97
|
value: time,
|
|
97
98
|
onChange: this.onChange,
|
|
@@ -99,26 +100,28 @@ class MBDateEditor extends _react.default.PureComponent {
|
|
|
99
100
|
open: true,
|
|
100
101
|
style: {
|
|
101
102
|
width: '100%'
|
|
103
|
+
},
|
|
104
|
+
children: _ref => {
|
|
105
|
+
let {
|
|
106
|
+
time
|
|
107
|
+
} = _ref;
|
|
108
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
109
|
+
tabIndex: "0",
|
|
110
|
+
onFocus: this.onReadOnlyFocus,
|
|
111
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
112
|
+
placeholder: (0, _lang.getLocale)('please_select'),
|
|
113
|
+
readOnly: true,
|
|
114
|
+
tabIndex: "-1",
|
|
115
|
+
className: "ant-calendar-picker-input ant-input form-control",
|
|
116
|
+
value: time ? (0, _dayjs.default)(time).format(this.getFormat()) : ''
|
|
117
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
118
|
+
ref: this.calendarContainerRef,
|
|
119
|
+
style: {
|
|
120
|
+
height: '22rem'
|
|
121
|
+
}
|
|
122
|
+
})]
|
|
123
|
+
});
|
|
102
124
|
}
|
|
103
|
-
}, _ref => {
|
|
104
|
-
let {
|
|
105
|
-
time
|
|
106
|
-
} = _ref;
|
|
107
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
108
|
-
tabIndex: "0",
|
|
109
|
-
onFocus: this.onReadOnlyFocus
|
|
110
|
-
}, /*#__PURE__*/_react.default.createElement("input", {
|
|
111
|
-
placeholder: (0, _lang.getLocale)('please_select'),
|
|
112
|
-
readOnly: true,
|
|
113
|
-
tabIndex: "-1",
|
|
114
|
-
className: "ant-calendar-picker-input ant-input form-control",
|
|
115
|
-
value: time ? (0, _dayjs.default)(time).format(this.getFormat()) : ''
|
|
116
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
117
|
-
ref: this.calendarContainerRef,
|
|
118
|
-
style: {
|
|
119
|
-
height: '22rem'
|
|
120
|
-
}
|
|
121
|
-
}));
|
|
122
125
|
});
|
|
123
126
|
};
|
|
124
127
|
const {
|
|
@@ -161,54 +164,73 @@ class MBDateEditor extends _react.default.PureComponent {
|
|
|
161
164
|
const {
|
|
162
165
|
time
|
|
163
166
|
} = this.state;
|
|
164
|
-
return /*#__PURE__*/
|
|
167
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_MobileFullScreenPage.default, {
|
|
165
168
|
className: "dtable-ui-mobile-date-editor",
|
|
166
|
-
onClose: this.props.onClose
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
169
|
+
onClose: this.props.onClose,
|
|
170
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(Header, {
|
|
171
|
+
onLeftClick: this.props.onClose,
|
|
172
|
+
onRightClick: this.onSave,
|
|
173
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
174
|
+
children: (0, _lang.getLocale)('Cancel')
|
|
175
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
176
|
+
children: column.name
|
|
177
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
178
|
+
style: {
|
|
179
|
+
color: '#f09f3f'
|
|
180
|
+
},
|
|
181
|
+
children: (0, _lang.getLocale)('Done')
|
|
182
|
+
})]
|
|
183
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(Body, {
|
|
184
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
185
|
+
className: "dtable-ui-mobile-date-editor-input",
|
|
186
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
187
|
+
className: "date-input",
|
|
188
|
+
style: showHourAndMinute ? {
|
|
189
|
+
width: '50%'
|
|
190
|
+
} : {
|
|
191
|
+
width: '100%'
|
|
192
|
+
},
|
|
193
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DatePicker.default, {
|
|
194
|
+
mode: "date",
|
|
195
|
+
minDate: _editorUtils.minDate,
|
|
196
|
+
maxDate: _editorUtils.maxDate,
|
|
197
|
+
locale: (0, _editorUtils.initDateEditorLanguage)(lang),
|
|
198
|
+
value: null,
|
|
199
|
+
onChange: this.handleDateChange,
|
|
200
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
201
|
+
className: "date-input-day",
|
|
202
|
+
children: (0, _dayjs.default)(time).format(this.leftFormat)
|
|
203
|
+
})
|
|
204
|
+
})
|
|
205
|
+
}), showHourAndMinute && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
206
|
+
className: "date-input",
|
|
207
|
+
style: {
|
|
208
|
+
width: '50%'
|
|
209
|
+
},
|
|
210
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DatePicker.default, {
|
|
211
|
+
mode: "time",
|
|
212
|
+
locale: (0, _editorUtils.initDateEditorLanguage)(lang),
|
|
213
|
+
value: null,
|
|
214
|
+
onChange: this.handleTimeChange,
|
|
215
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
216
|
+
className: "date-input-day",
|
|
217
|
+
children: (0, _dayjs.default)(time).format(this.rightFormat)
|
|
218
|
+
})
|
|
219
|
+
})
|
|
220
|
+
})]
|
|
221
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
222
|
+
className: "dtable-ui dtable-ui-mobile-date-editor-picker",
|
|
223
|
+
children: this.renderCalender()
|
|
224
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
225
|
+
className: "dtable-ui-mobile-date-editor-clear",
|
|
226
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
227
|
+
onClick: this.deleteDate,
|
|
228
|
+
className: "clear-date",
|
|
229
|
+
children: (0, _lang.getLocale)('Clear')
|
|
230
|
+
})
|
|
231
|
+
})]
|
|
232
|
+
})]
|
|
233
|
+
});
|
|
212
234
|
}
|
|
213
235
|
}
|
|
214
236
|
var _default = exports.default = MBDateEditor;
|
|
@@ -14,6 +14,7 @@ var _editorUtils = require("../utils/editor-utils");
|
|
|
14
14
|
var _constants = require("../constants");
|
|
15
15
|
var _lang = require("../lang");
|
|
16
16
|
require("@seafile/seafile-calendar/assets/index.css");
|
|
17
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
18
|
let now = (0, _dayjs.default)();
|
|
18
19
|
class PCDateEditor extends _react.default.Component {
|
|
19
20
|
constructor(props) {
|
|
@@ -143,7 +144,7 @@ class PCDateEditor extends _react.default.Component {
|
|
|
143
144
|
} = this.props;
|
|
144
145
|
let defaultValue = (0, _dayjs.default)().clone();
|
|
145
146
|
const defaultTime = this.getDefaultTime();
|
|
146
|
-
return /*#__PURE__*/
|
|
147
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_seafileCalendar.default, {
|
|
147
148
|
className: (0, _classnames.default)('dtable-rc-calendar', className),
|
|
148
149
|
locale: (0, _editorUtils.initDateEditorLanguage)(lang),
|
|
149
150
|
style: {
|
|
@@ -222,42 +223,45 @@ class PCDateEditor extends _react.default.Component {
|
|
|
222
223
|
value
|
|
223
224
|
} = this.state;
|
|
224
225
|
const calendar = this.getCalender();
|
|
225
|
-
return /*#__PURE__*/
|
|
226
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
226
227
|
className: "date-picker-container ".concat(isInModal ? 'modal-date-picker-container' : ''),
|
|
227
228
|
ref: ref => this.datePickerRef = ref,
|
|
228
229
|
onKeyDown: this.handleKeyDown,
|
|
229
|
-
onClick: this.onClick
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
230
|
+
onClick: this.onClick,
|
|
231
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Picker.default, {
|
|
232
|
+
open: open,
|
|
233
|
+
value: value,
|
|
234
|
+
animation: "slide-up",
|
|
235
|
+
style: {
|
|
236
|
+
zIndex: 1001
|
|
237
|
+
},
|
|
238
|
+
calendar: calendar,
|
|
239
|
+
getCalendarContainer: this.getCalendarContainer,
|
|
240
|
+
onChange: this.onChange,
|
|
241
|
+
onOpenChange: this.onOpenChange,
|
|
242
|
+
children: _ref => {
|
|
243
|
+
let {
|
|
244
|
+
value
|
|
245
|
+
} = _ref;
|
|
246
|
+
value = value && value.format(dateFormat);
|
|
247
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
248
|
+
className: "dtable-ui-date-editor-container",
|
|
249
|
+
tabIndex: "0",
|
|
250
|
+
onFocus: this.onFocusDatePicker,
|
|
251
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
252
|
+
readOnly: true,
|
|
253
|
+
tabIndex: "-1",
|
|
254
|
+
className: "form-control",
|
|
255
|
+
placeholder: (0, _lang.getLocale)('Please_select'),
|
|
256
|
+
value: value || '',
|
|
257
|
+
onMouseDown: this.handleMouseDown
|
|
258
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
259
|
+
ref: this.calendarContainerRef
|
|
260
|
+
})]
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
})
|
|
264
|
+
});
|
|
261
265
|
}
|
|
262
266
|
}
|
|
263
267
|
var _default = exports.default = PCDateEditor;
|
|
@@ -9,6 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
10
|
var _dtableUtils = require("dtable-utils");
|
|
11
11
|
require("./index.css");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
13
|
class DateFormatter extends _react.default.Component {
|
|
13
14
|
render() {
|
|
14
15
|
let {
|
|
@@ -20,10 +21,11 @@ class DateFormatter extends _react.default.Component {
|
|
|
20
21
|
if (date !== '') {
|
|
21
22
|
date = (0, _dtableUtils.getDateDisplayString)(date, format);
|
|
22
23
|
}
|
|
23
|
-
return /*#__PURE__*/
|
|
24
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
24
25
|
title: date,
|
|
25
|
-
className: classname
|
|
26
|
-
|
|
26
|
+
className: classname,
|
|
27
|
+
children: date
|
|
28
|
+
});
|
|
27
29
|
}
|
|
28
30
|
}
|
|
29
31
|
DateFormatter.defaultProps = {
|
package/lib/DeleteTip/index.js
CHANGED
|
@@ -10,6 +10,7 @@ var _ClickOutside = _interopRequireDefault(require("../ClickOutside"));
|
|
|
10
10
|
var _ModalPortal = _interopRequireDefault(require("../ModalPortal"));
|
|
11
11
|
var _lang = require("../lang");
|
|
12
12
|
require("./index.css");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
class DeleteTip extends _react.default.Component {
|
|
14
15
|
constructor() {
|
|
15
16
|
super(...arguments);
|
|
@@ -26,26 +27,34 @@ class DeleteTip extends _react.default.Component {
|
|
|
26
27
|
position,
|
|
27
28
|
deleteTip
|
|
28
29
|
} = this.props;
|
|
29
|
-
return /*#__PURE__*/
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
30
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ModalPortal.default, {
|
|
31
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ClickOutside.default, {
|
|
32
|
+
onClickOutside: this.handleOutsideClick,
|
|
33
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
34
|
+
ref: node => this.tipContainer = node,
|
|
35
|
+
className: "dtable-tip tip-container",
|
|
36
|
+
style: {
|
|
37
|
+
top: position.top,
|
|
38
|
+
left: position.left
|
|
39
|
+
},
|
|
40
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("b", {
|
|
41
|
+
className: "mb-4",
|
|
42
|
+
children: deleteTip
|
|
43
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
44
|
+
className: "d-flex justify-content-end",
|
|
45
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
46
|
+
className: "btn btn-secondary mr-2",
|
|
47
|
+
onClick: toggle,
|
|
48
|
+
children: (0, _lang.getLocale)('Cancel')
|
|
49
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
50
|
+
className: "btn btn-primary",
|
|
51
|
+
onClick: handleDelete,
|
|
52
|
+
children: (0, _lang.getLocale)('Delete')
|
|
53
|
+
})]
|
|
54
|
+
})]
|
|
55
|
+
})
|
|
56
|
+
})
|
|
57
|
+
});
|
|
49
58
|
}
|
|
50
59
|
}
|
|
51
60
|
var _default = exports.default = DeleteTip;
|
|
@@ -11,6 +11,7 @@ var _departments = require("../utils/departments");
|
|
|
11
11
|
var _SelectedDepartments = _interopRequireDefault(require("../SelectedDepartments"));
|
|
12
12
|
var _lang = require("../lang");
|
|
13
13
|
require("./index.css");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
15
|
function DepartmentMultipleSelect(props) {
|
|
15
16
|
const {
|
|
16
17
|
value,
|
|
@@ -100,32 +101,35 @@ function DepartmentMultipleSelect(props) {
|
|
|
100
101
|
} = department;
|
|
101
102
|
const newLevel = level + 1;
|
|
102
103
|
const inputChecked = value.includes(id);
|
|
103
|
-
return /*#__PURE__*/
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
104
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
|
|
105
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
106
|
+
className: "department-item",
|
|
107
|
+
onClick: event => onSelectDepartment(event, id),
|
|
108
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
109
|
+
type: "checkbox",
|
|
110
|
+
className: "vam department-select-input",
|
|
111
|
+
checked: inputChecked,
|
|
112
|
+
style: {
|
|
113
|
+
marginRight: "".concat(newLevel * 15 + 5, "px")
|
|
114
|
+
},
|
|
115
|
+
onChange: () => {}
|
|
116
|
+
}), hasChild && !searchVal && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
117
|
+
onClick: event => onExpand(event, id, isExpanded),
|
|
118
|
+
role: "button",
|
|
119
|
+
className: "department-item-fold-btn",
|
|
120
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
121
|
+
className: "dtable-font expand dtable-icon-down3 ".concat(isExpanded ? '' : 'rotate-270')
|
|
122
|
+
})
|
|
123
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
124
|
+
style: searchVal ? {} : {
|
|
125
|
+
paddingLeft: hasChild ? '' : '16px'
|
|
126
|
+
},
|
|
127
|
+
title: name,
|
|
128
|
+
className: "text-truncate",
|
|
129
|
+
children: name
|
|
130
|
+
})]
|
|
131
|
+
}), isExpanded && hasChild && renderSubDepartments(id, subDepartments, newLevel)]
|
|
132
|
+
}, id);
|
|
129
133
|
}
|
|
130
134
|
function renderSearchedDepartments() {
|
|
131
135
|
return validDepartmentsRef.current.map(department => {
|
|
@@ -137,33 +141,37 @@ function DepartmentMultipleSelect(props) {
|
|
|
137
141
|
const subDepartments = departments.filter(department => department.parent_id !== -1);
|
|
138
142
|
const topDepartment = departments.find(department => department.parent_id === -1);
|
|
139
143
|
if (!topDepartment) return null;
|
|
140
|
-
return /*#__PURE__*/
|
|
144
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
141
145
|
ref: departmentContainerRef,
|
|
142
146
|
style: getStyle(),
|
|
143
147
|
onClick: onStopPropagation,
|
|
144
148
|
onMouseDown: onStopPropagation,
|
|
145
|
-
className: "departments-container dtable-ui ".concat(classNamePrefix)
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
149
|
+
className: "departments-container dtable-ui ".concat(classNamePrefix),
|
|
150
|
+
children: [isShowSelectedDepartments && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
151
|
+
className: "selected-departments dtable-ui",
|
|
152
|
+
onClick: onClick,
|
|
153
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectedDepartments.default, {
|
|
154
|
+
value: value,
|
|
155
|
+
removeDepartment: onCommit,
|
|
156
|
+
isShowRemoveIcon: true,
|
|
157
|
+
departments: departments
|
|
158
|
+
})
|
|
159
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
160
|
+
className: "search-departments",
|
|
161
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
162
|
+
className: "form-control",
|
|
163
|
+
type: "text",
|
|
164
|
+
autoFocus: true,
|
|
165
|
+
placeholder: (0, _lang.getLocale)('Search_department'),
|
|
166
|
+
value: searchVal,
|
|
167
|
+
onChange: onChangeSearch,
|
|
168
|
+
onClick: onClick
|
|
169
|
+
})
|
|
170
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
171
|
+
className: "department-item-container",
|
|
172
|
+
children: [!searchVal && renderUserDepartmentOptions && renderUserDepartmentOptions(), validDepartmentsRef.current.length > 0 && searchVal && renderSearchedDepartments(), !searchVal && renderDepartment(topDepartment, subDepartments, level)]
|
|
173
|
+
})]
|
|
174
|
+
});
|
|
167
175
|
}
|
|
168
176
|
return renderDepartments();
|
|
169
177
|
}
|
|
@@ -8,6 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _departmentSingleSelectFilter = _interopRequireDefault(require("../DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter"));
|
|
10
10
|
var _departmentMultipleSelectFilter = _interopRequireDefault(require("../DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter"));
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
function DepartmentSelectFilter(props) {
|
|
12
13
|
const {
|
|
13
14
|
isMultiple,
|
|
@@ -24,6 +25,12 @@ function DepartmentSelectFilter(props) {
|
|
|
24
25
|
departments,
|
|
25
26
|
onCommit
|
|
26
27
|
};
|
|
27
|
-
return /*#__PURE__*/
|
|
28
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
29
|
+
children: isMultiple ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_departmentMultipleSelectFilter.default, {
|
|
30
|
+
...filterProps
|
|
31
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_departmentSingleSelectFilter.default, {
|
|
32
|
+
...filterProps
|
|
33
|
+
})
|
|
34
|
+
});
|
|
28
35
|
}
|
|
29
36
|
var _default = exports.default = DepartmentSelectFilter;
|
|
@@ -10,25 +10,34 @@ 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 DepartmentSingleSelectEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
14
15
|
let {
|
|
15
16
|
isMobile,
|
|
16
17
|
...props
|
|
17
18
|
} = _ref;
|
|
18
|
-
if (isMobile === false) return /*#__PURE__*/
|
|
19
|
+
if (isMobile === false) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
|
|
20
|
+
...props,
|
|
19
21
|
ref: ref
|
|
20
|
-
})
|
|
21
|
-
if (isMobile === true) return /*#__PURE__*/
|
|
22
|
+
});
|
|
23
|
+
if (isMobile === true) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
|
|
24
|
+
...props,
|
|
22
25
|
ref: ref
|
|
23
|
-
})
|
|
24
|
-
return /*#__PURE__*/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
});
|
|
27
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
28
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
29
|
+
query: '(min-width: 768px)',
|
|
30
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
|
|
31
|
+
...props,
|
|
32
|
+
ref: ref
|
|
33
|
+
})
|
|
34
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
35
|
+
query: '(max-width: 768px)',
|
|
36
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
|
|
37
|
+
...props,
|
|
38
|
+
ref: ref
|
|
39
|
+
})
|
|
40
|
+
})]
|
|
41
|
+
});
|
|
33
42
|
});
|
|
34
43
|
var _default = exports.default = DepartmentSingleSelectEditor;
|