dtable-ui-component 6.0.91 → 6.0.92
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 +96 -70
- package/lib/ActivityIndicator/index.js +41 -33
- 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 +22 -18
- 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 +8 -6
- package/lib/CheckboxEditor/pc-editor.js +8 -6
- package/lib/CheckboxFormatter/index.js +8 -6
- package/lib/CollaboratorEditor/index.js +24 -15
- package/lib/CollaboratorEditor/mb-editor/index.js +19 -13
- package/lib/CollaboratorEditor/pc-editor/index.js +51 -43
- package/lib/CollaboratorFormatter/index.js +8 -7
- package/lib/CollaboratorItem/index.js +21 -16
- package/lib/CollapsibleSettingLayout/index.css +0 -5
- package/lib/CollapsibleSettingLayout/index.js +17 -12
- package/lib/Comment/body/comment.js +79 -63
- package/lib/Comment/body/index.js +14 -11
- package/lib/Comment/footer/btns/index.js +68 -53
- package/lib/Comment/footer/index.js +30 -28
- package/lib/Comment/footer/input/index.js +49 -44
- package/lib/Comment/footer/input/participant/index.js +19 -14
- 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 +68 -57
- package/lib/Comment/index.js +33 -28
- package/lib/Comment/utils/utilities.js +1 -1
- package/lib/CreatorFormatter/index.js +8 -7
- package/lib/DTableColorPicker/ColorPickerPortal/index.js +60 -35
- package/lib/DTableColorPicker/index.js +135 -99
- package/lib/DTableColorPicker/utils.js +1 -1
- package/lib/DTableCommonAddTool/index.js +11 -8
- package/lib/DTableCustomFooter/index.js +5 -3
- package/lib/DTableCustomizeCollaboratorSelect/index.css +1 -39
- 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/utils/index.js +1 -1
- 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.css +1 -5
- 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.css +0 -37
- 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 +22 -19
- package/lib/DTableSearchInput/index.js +23 -19
- 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.css +1 -2
- package/lib/DTableSwitch/index.js +30 -18
- package/lib/DateEditor/index.js +25 -16
- package/lib/DateEditor/mb-editor/index.js +90 -68
- package/lib/DateEditor/pc-editor.js +39 -35
- package/lib/DateFormatter/index.js +5 -3
- package/lib/DatePicker/utils.js +4 -4
- 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 -10
- 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/service.js +1 -1
- package/lib/DigitalSignEditor/signature-board/index.js +21 -17
- package/lib/DigitalSignFormatter/index.js +23 -19
- package/lib/DigitalSignFormatter/utils.js +1 -1
- 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 +26 -20
- package/lib/FieldDisplaySetting/index.css +0 -6
- package/lib/FieldDisplaySetting/index.js +50 -41
- 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 +82 -64
- 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 +108 -82
- package/lib/FileEditor/pc-editor/index.js +46 -36
- package/lib/FileFormatter/index.js +40 -36
- package/lib/FileItemFormatter/index.js +3 -2
- package/lib/FileUploader/index.js +23 -21
- package/lib/FormulaFormatter/index.js +24 -17
- package/lib/GeolocationEditor/index.js +31 -22
- package/lib/GeolocationEditor/map-editor-utils.js +2 -2
- 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 +38 -31
- package/lib/GeolocationEditor/pc-editor/index.js +26 -17
- package/lib/GeolocationEditor/pc-editor/location-editor.js +122 -96
- 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 +139 -94
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +122 -85
- package/lib/GeolocationEditor/pc-editor/province-city-editor.js +89 -69
- package/lib/GeolocationEditor/pc-editor/province-editor.js +31 -26
- 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 +3 -2
- package/lib/Icon/index.js +9 -6
- package/lib/Icon/load-sprite.js +13 -2
- package/lib/IconButton/index.js +9 -6
- package/lib/ImageEditor/images-previewer/image-preview/index.js +53 -45
- 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 +102 -77
- 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 +47 -39
- package/lib/InputItem/custom-input.js +32 -27
- package/lib/InputItem/custom-keyboard.js +68 -47
- package/lib/InputItem/index.js +81 -71
- 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 +51 -42
- 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 +6 -4
- package/lib/MobileFullScreenPage/header/index.js +22 -17
- 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 +9 -6
- package/lib/Modal/modal.js +26 -22
- package/lib/Modal/operation.js +2 -1
- package/lib/Modal/prompt.js +76 -56
- 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 +26 -19
- package/lib/Progress/index.js +17 -15
- package/lib/Radio/Radio.js +12 -8
- package/lib/Radio/RadioItem.js +11 -5
- package/lib/RateFormatter/index.js +8 -7
- package/lib/RoleStatusEditor/index.js +36 -31
- package/lib/RowExpand/index.js +16 -9
- package/lib/RowExpandDialog/body/index.js +53 -42
- package/lib/RowExpandDialog/column-content/index.js +34 -25
- package/lib/RowExpandDialog/header/index.js +29 -22
- package/lib/RowExpandDialog/index.js +43 -30
- 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 +20 -18
- package/lib/RowExpandEditor/email-editor/pc-editor/index.js +21 -19
- 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 +82 -68
- 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 +12 -10
- 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 +43 -35
- 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 +20 -18
- package/lib/RowExpandEditor/url-editor/pc-editor/index.js +21 -19
- 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 +12 -9
- 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 +41 -33
- 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 +132 -115
- package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +3 -2
- package/lib/RowExpandFormatter/link-formatter/index.js +70 -67
- package/lib/RowExpandFormatter/rate-formatter/index.js +8 -7
- package/lib/RowExpandFormatter/url-formatter/index.js +12 -9
- package/lib/RowExpandView/body/index.js +39 -33
- 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.css +4 -2
- 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 +5 -2
- package/lib/TabBar/Tab.js +28 -21
- package/lib/TabBar/index.js +28 -24
- 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 +49 -40
- package/lib/Toast/index.js +20 -14
- 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 +75 -61
- package/lib/toaster/alert.js +25 -16
- package/lib/toaster/toast.js +27 -23
- package/lib/toaster/toastManager.js +17 -14
- package/lib/toaster/toaster.js +8 -4
- package/lib/utils/class.js +3 -3
- package/lib/utils/object-utils.js +1 -1
- package/lib/utils/url.js +4 -4
- package/package.json +13 -29
|
@@ -11,6 +11,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
11
11
|
var _DepartmentSingleSelectFormatter = _interopRequireDefault(require("../../DepartmentSingleSelectFormatter"));
|
|
12
12
|
var _constants = require("../../constants");
|
|
13
13
|
var _DepartmentSingleSelectEditor = _interopRequireDefault(require("../../DepartmentSingleSelectEditor"));
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
15
|
const RowExpandPCDepartmentEditor = _ref => {
|
|
15
16
|
let {
|
|
16
17
|
row,
|
|
@@ -65,35 +66,40 @@ const RowExpandPCDepartmentEditor = _ref => {
|
|
|
65
66
|
setShowEditor(false);
|
|
66
67
|
// eslint-disable-next-line
|
|
67
68
|
}, [row, column]);
|
|
68
|
-
return /*#__PURE__*/
|
|
69
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
69
70
|
className: "position-relative w-100",
|
|
70
|
-
ref: departmentSelectContainer
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
71
|
+
ref: departmentSelectContainer,
|
|
72
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
73
|
+
tabIndex: 0,
|
|
74
|
+
onFocus: onFocus,
|
|
75
|
+
onClick: onToggleSelect,
|
|
76
|
+
ref: departmentSelectContent,
|
|
77
|
+
className: (0, _classnames.default)('dtable-ui dtable-ui-row-expand-select-editor', 'custom-select', {
|
|
78
|
+
'focus': isEditorFocus
|
|
79
|
+
}),
|
|
80
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
81
|
+
className: "dtable-ui-row-expand-select-editor-inner",
|
|
82
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
83
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DepartmentSingleSelectFormatter.default, {
|
|
84
|
+
value: value,
|
|
85
|
+
departments: departments
|
|
86
|
+
})
|
|
87
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
88
|
+
"aria-hidden": "true",
|
|
89
|
+
className: "dtable-font dtable-icon-down3"
|
|
90
|
+
})]
|
|
91
|
+
})
|
|
92
|
+
}), showEditor && /*#__PURE__*/(0, _jsxRuntime.jsx)(_DepartmentSingleSelectEditor.default, {
|
|
93
|
+
isInModal: true,
|
|
94
|
+
enableSelectRange: false,
|
|
95
|
+
target: departmentSelectContent.current,
|
|
96
|
+
column: column,
|
|
97
|
+
value: value,
|
|
98
|
+
onCommit: handleCommit,
|
|
99
|
+
userDepartmentIdsMap: userDepartmentIdsMap,
|
|
100
|
+
departments: departments,
|
|
101
|
+
toggleDepartmentSelect: closeEditor
|
|
102
|
+
})]
|
|
103
|
+
});
|
|
98
104
|
};
|
|
99
105
|
var _default = exports.default = RowExpandPCDepartmentEditor;
|
|
@@ -10,15 +10,22 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
11
11
|
var _pcEditor = _interopRequireDefault(require("./pc-editor"));
|
|
12
12
|
var _mbEditor = _interopRequireDefault(require("./mb-editor"));
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
const RowExpandDigitalSignEditor = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
14
|
-
return /*#__PURE__*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
16
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
17
|
+
query: "(min-width: 768px)",
|
|
18
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
|
|
19
|
+
...props,
|
|
20
|
+
ref: ref
|
|
21
|
+
})
|
|
22
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
23
|
+
query: "(max-width: 768px)",
|
|
24
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
|
|
25
|
+
...props,
|
|
26
|
+
ref: ref
|
|
27
|
+
})
|
|
28
|
+
})]
|
|
29
|
+
});
|
|
23
30
|
});
|
|
24
31
|
var _default = exports.default = RowExpandDigitalSignEditor;
|
|
@@ -13,6 +13,7 @@ var _DigitalSignEditor = _interopRequireDefault(require("../../../DigitalSignEdi
|
|
|
13
13
|
var _lang = require("../../../lang");
|
|
14
14
|
var _url = require("../../../utils/url");
|
|
15
15
|
require("./index.css");
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
17
|
class RowExpandMBDigitalSignEditor extends _react.default.Component {
|
|
17
18
|
constructor(props) {
|
|
18
19
|
super(props);
|
|
@@ -72,8 +73,7 @@ class RowExpandMBDigitalSignEditor extends _react.default.Component {
|
|
|
72
73
|
key
|
|
73
74
|
} = column;
|
|
74
75
|
return signImages.map((src, index) => {
|
|
75
|
-
return /*#__PURE__*/
|
|
76
|
-
key: "sing-image-".concat(key, "-").concat(index),
|
|
76
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageThumbnail.default, {
|
|
77
77
|
index: index,
|
|
78
78
|
src: src,
|
|
79
79
|
className: "dtable-ui-mobile-row-expand-img-item",
|
|
@@ -81,7 +81,7 @@ class RowExpandMBDigitalSignEditor extends _react.default.Component {
|
|
|
81
81
|
onClick: this.toggleEditor,
|
|
82
82
|
deleteImage: this.deleteImage,
|
|
83
83
|
disableImageTooltip: true
|
|
84
|
-
});
|
|
84
|
+
}, `sing-image-${key}-${index}`);
|
|
85
85
|
});
|
|
86
86
|
};
|
|
87
87
|
this.state = {
|
|
@@ -112,19 +112,22 @@ class RowExpandMBDigitalSignEditor extends _react.default.Component {
|
|
|
112
112
|
} = this.state;
|
|
113
113
|
const signImages = this.getSignImages();
|
|
114
114
|
const signImageExisted = Array.isArray(signImages) && signImages.length > 0;
|
|
115
|
-
return /*#__PURE__*/
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
115
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
116
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
117
|
+
className: "dtable-ui-mobile-row-expand-image position-relative",
|
|
118
|
+
children: [!signImageExisted && /*#__PURE__*/(0, _jsxRuntime.jsx)(_addBtn.default, {
|
|
119
|
+
onClick: this.toggleEditor,
|
|
120
|
+
text: (0, _lang.getLocale)('Edit_signature')
|
|
121
|
+
}), this.renderSignature(signImages)]
|
|
122
|
+
}), isShowEditor && /*#__PURE__*/(0, _jsxRuntime.jsx)(_DigitalSignEditor.default, {
|
|
123
|
+
config: config,
|
|
124
|
+
value: this.getValue(),
|
|
125
|
+
column: column,
|
|
126
|
+
onCommitCancel: this.toggleEditor,
|
|
127
|
+
onCommit: this.onCommit,
|
|
128
|
+
uploadFile: this.props.uploadFile
|
|
129
|
+
})]
|
|
130
|
+
});
|
|
128
131
|
}
|
|
129
132
|
}
|
|
130
133
|
var _default = exports.default = RowExpandMBDigitalSignEditor;
|
|
@@ -15,6 +15,7 @@ var _DigitalSignEditor = _interopRequireDefault(require("../../../DigitalSignEdi
|
|
|
15
15
|
var _lang = require("../../../lang");
|
|
16
16
|
var _url = require("../../../utils/url");
|
|
17
17
|
require("./index.css");
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
19
|
class RowExpandPCDigitalSignEditor extends _react.default.Component {
|
|
19
20
|
constructor(props) {
|
|
20
21
|
super(props);
|
|
@@ -112,15 +113,14 @@ class RowExpandPCDigitalSignEditor extends _react.default.Component {
|
|
|
112
113
|
key
|
|
113
114
|
} = column;
|
|
114
115
|
return signImages.map((src, index) => {
|
|
115
|
-
return /*#__PURE__*/
|
|
116
|
-
key: "sing-image-".concat(key, "-").concat(index),
|
|
116
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageThumbnail.default, {
|
|
117
117
|
index: index,
|
|
118
118
|
src: src,
|
|
119
119
|
column: column,
|
|
120
120
|
onClick: this.setLargeImageIndex,
|
|
121
121
|
deleteImage: this.deleteImage,
|
|
122
122
|
disableImageTooltip: true
|
|
123
|
-
});
|
|
123
|
+
}, `sing-image-${key}-${index}`);
|
|
124
124
|
});
|
|
125
125
|
};
|
|
126
126
|
this.state = {
|
|
@@ -173,36 +173,38 @@ class RowExpandPCDigitalSignEditor extends _react.default.Component {
|
|
|
173
173
|
} = this.state;
|
|
174
174
|
const signImages = this.getSignImages();
|
|
175
175
|
const signImageExisted = Array.isArray(signImages) && signImages.length > 0;
|
|
176
|
-
return /*#__PURE__*/
|
|
176
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
177
177
|
className: "position-relative mt-2",
|
|
178
|
-
ref: ref => this.editorContainer = ref
|
|
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
|
-
|
|
178
|
+
ref: ref => this.editorContainer = ref,
|
|
179
|
+
children: [!signImageExisted && /*#__PURE__*/(0, _jsxRuntime.jsx)(_addBtn.default, {
|
|
180
|
+
onClick: this.toggleEditor,
|
|
181
|
+
onFocus: this.onFocus,
|
|
182
|
+
isFocus: isEditorFocus,
|
|
183
|
+
text: (0, _lang.getLocale)('Edit_signature')
|
|
184
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
185
|
+
className: "dtable-ui-row-expand-image-container dtable-ui-row-expand-digital-sign-container",
|
|
186
|
+
children: this.renderSignature(signImages)
|
|
187
|
+
}), isShowEditor && /*#__PURE__*/(0, _jsxRuntime.jsx)(_DigitalSignEditor.default, {
|
|
188
|
+
isInModal: true,
|
|
189
|
+
config: config,
|
|
190
|
+
value: this.getValue(),
|
|
191
|
+
column: column,
|
|
192
|
+
onCommitCancel: this.toggleEditor,
|
|
193
|
+
onCommit: this.onCommit,
|
|
194
|
+
uploadFile: this.props.uploadFile
|
|
195
|
+
}), largeImageIndex > -1 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImagePreviewerLightbox.default, {
|
|
196
|
+
imageItems: signImages,
|
|
197
|
+
imageIndex: largeImageIndex,
|
|
198
|
+
wrapperClassName: 'digital-sign-image',
|
|
199
|
+
closeImagePopup: this.hideLargeImage,
|
|
200
|
+
moveToPrevImage: this.moveToPrevImage,
|
|
201
|
+
moveToNextImage: this.moveToNextImage,
|
|
202
|
+
deleteImage: index => {
|
|
203
|
+
this.deleteImage(index);
|
|
204
|
+
this.hideLargeImage();
|
|
205
|
+
}
|
|
206
|
+
})]
|
|
207
|
+
});
|
|
206
208
|
}
|
|
207
209
|
}
|
|
208
210
|
var _default = exports.default = RowExpandPCDigitalSignEditor;
|
|
@@ -10,15 +10,22 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
11
11
|
var _pcEditor = _interopRequireDefault(require("./pc-editor"));
|
|
12
12
|
var _mbEditor = _interopRequireDefault(require("./mb-editor"));
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
const RowExpandDurationEditor = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
14
|
-
return /*#__PURE__*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
16
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
17
|
+
query: "(min-width: 768px)",
|
|
18
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
|
|
19
|
+
...props,
|
|
20
|
+
ref: ref
|
|
21
|
+
})
|
|
22
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
23
|
+
query: "(max-width: 768px)",
|
|
24
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
|
|
25
|
+
...props,
|
|
26
|
+
ref: ref
|
|
27
|
+
})
|
|
28
|
+
})]
|
|
29
|
+
});
|
|
23
30
|
});
|
|
24
31
|
var _default = exports.default = RowExpandDurationEditor;
|
|
@@ -8,6 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _dtableUtils = require("dtable-utils");
|
|
10
10
|
var _DurationEditor = _interopRequireDefault(require("../../DurationEditor"));
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
class RowExpandMBDurationEditor extends _react.default.Component {
|
|
12
13
|
constructor(props) {
|
|
13
14
|
super(props);
|
|
@@ -54,18 +55,20 @@ class RowExpandMBDurationEditor extends _react.default.Component {
|
|
|
54
55
|
value,
|
|
55
56
|
isShowEditor
|
|
56
57
|
} = this.state;
|
|
57
|
-
return /*#__PURE__*/
|
|
58
|
-
className: "dtable-ui-mobile-row-expand-input-editor-container"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
58
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
59
|
+
className: "dtable-ui-mobile-row-expand-input-editor-container",
|
|
60
|
+
children: isShowEditor ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_DurationEditor.default, {
|
|
61
|
+
isInModal: true,
|
|
62
|
+
column: column,
|
|
63
|
+
value: value,
|
|
64
|
+
toggleEditor: this.toggleEditor,
|
|
65
|
+
onCommit: this.onCommit
|
|
66
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
67
|
+
className: "w-100 h-100",
|
|
68
|
+
onClick: this.toggleEditor,
|
|
69
|
+
children: (0, _dtableUtils.getDurationDisplayString)(value, column.data)
|
|
70
|
+
})
|
|
71
|
+
});
|
|
69
72
|
}
|
|
70
73
|
}
|
|
71
74
|
var _default = exports.default = RowExpandMBDurationEditor;
|
|
@@ -10,6 +10,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _dtableUtils = require("dtable-utils");
|
|
11
11
|
var _constants = require("../../constants");
|
|
12
12
|
var _DurationEditor = _interopRequireDefault(require("../../DurationEditor"));
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
class RowExpandPCDurationEditor extends _react.default.Component {
|
|
14
15
|
constructor(props) {
|
|
15
16
|
super(props);
|
|
@@ -87,19 +88,22 @@ class RowExpandPCDurationEditor extends _react.default.Component {
|
|
|
87
88
|
if (isEditorFocus) {
|
|
88
89
|
style = Object.assign({}, style, _constants.ROW_EXPAND_FOCUS_STYLE);
|
|
89
90
|
}
|
|
90
|
-
return /*#__PURE__*/
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
91
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Fragment, {
|
|
92
|
+
children: isShowEditor ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_DurationEditor.default, {
|
|
93
|
+
isInModal: isInModal,
|
|
94
|
+
column: column,
|
|
95
|
+
value: value,
|
|
96
|
+
toggleEditor: this.toggleEditor,
|
|
97
|
+
onCommit: this.onCommit
|
|
98
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
99
|
+
tabIndex: 0,
|
|
100
|
+
onFocus: this.toggleEditor,
|
|
101
|
+
onClick: this.toggleEditor,
|
|
102
|
+
className: "form-control",
|
|
103
|
+
style: style,
|
|
104
|
+
children: (0, _dtableUtils.getDurationDisplayString)(value, column.data)
|
|
105
|
+
})
|
|
106
|
+
});
|
|
103
107
|
}
|
|
104
108
|
}
|
|
105
109
|
var _default = exports.default = RowExpandPCDurationEditor;
|
|
@@ -10,15 +10,22 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
11
11
|
var _pcEditor = _interopRequireDefault(require("./pc-editor"));
|
|
12
12
|
var _mbEditor = _interopRequireDefault(require("./mb-editor"));
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
const RowExpandEmailEditor = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
14
|
-
return /*#__PURE__*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
16
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
17
|
+
query: "(min-width: 768px)",
|
|
18
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
|
|
19
|
+
...props,
|
|
20
|
+
ref: ref
|
|
21
|
+
})
|
|
22
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
23
|
+
query: "(max-width: 768px)",
|
|
24
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
|
|
25
|
+
...props,
|
|
26
|
+
ref: ref
|
|
27
|
+
})
|
|
28
|
+
})]
|
|
29
|
+
});
|
|
23
30
|
});
|
|
24
31
|
var _default = exports.default = RowExpandEmailEditor;
|
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
require("./index.css");
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
11
|
class RowExpandMBEmailEditor extends _react.default.Component {
|
|
11
12
|
constructor(props) {
|
|
12
13
|
super(props);
|
|
@@ -35,7 +36,7 @@ class RowExpandMBEmailEditor extends _react.default.Component {
|
|
|
35
36
|
value
|
|
36
37
|
} = this.state;
|
|
37
38
|
let newValue = value.trim();
|
|
38
|
-
window.location.href =
|
|
39
|
+
window.location.href = `mailto:${newValue}`;
|
|
39
40
|
};
|
|
40
41
|
const {
|
|
41
42
|
row,
|
|
@@ -62,23 +63,24 @@ class RowExpandMBEmailEditor extends _react.default.Component {
|
|
|
62
63
|
const {
|
|
63
64
|
value
|
|
64
65
|
} = this.state;
|
|
65
|
-
return /*#__PURE__*/
|
|
66
|
-
className: "dtable-ui-mobile-row-expand-input-editor-container position-relative dtable-ui-mobile-row-expand-url-editor-container"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
66
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
67
|
+
className: "dtable-ui-mobile-row-expand-input-editor-container position-relative dtable-ui-mobile-row-expand-url-editor-container",
|
|
68
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
69
|
+
type: "text",
|
|
70
|
+
onFocus: this.onFocus,
|
|
71
|
+
onBlur: this.onBlur,
|
|
72
|
+
onCut: this.onCut,
|
|
73
|
+
onPaste: this.onPaste,
|
|
74
|
+
onChange: this.onChange,
|
|
75
|
+
className: "form-control dtable-ui-mobile-row-expand-url-input",
|
|
76
|
+
value: value,
|
|
77
|
+
onKeyDown: this.onKeyDown
|
|
78
|
+
}), value && value.trim() && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
79
|
+
"aria-hidden": "true",
|
|
80
|
+
className: "dtable-font dtable-icon-email dtable-ui-mobile-row-expand-jump-link",
|
|
81
|
+
onClick: this.onOpenEmailLink
|
|
82
|
+
})]
|
|
83
|
+
});
|
|
82
84
|
}
|
|
83
85
|
}
|
|
84
86
|
var _default = exports.default = RowExpandMBEmailEditor;
|
|
@@ -8,6 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _constants = require("../../../constants");
|
|
10
10
|
require("./index.css");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
class RowExpandPCEmailEditor extends _react.default.Component {
|
|
12
13
|
constructor(props) {
|
|
13
14
|
super(props);
|
|
@@ -65,7 +66,7 @@ class RowExpandPCEmailEditor extends _react.default.Component {
|
|
|
65
66
|
value
|
|
66
67
|
} = this.state;
|
|
67
68
|
let newValue = value.trim();
|
|
68
|
-
window.location.href =
|
|
69
|
+
window.location.href = `mailto:${newValue}`;
|
|
69
70
|
};
|
|
70
71
|
const {
|
|
71
72
|
row,
|
|
@@ -102,24 +103,25 @@ class RowExpandPCEmailEditor extends _react.default.Component {
|
|
|
102
103
|
let {
|
|
103
104
|
value
|
|
104
105
|
} = this.state;
|
|
105
|
-
return /*#__PURE__*/
|
|
106
|
-
className: "dtable-ui-row-expand-url-editor"
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
106
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
107
|
+
className: "dtable-ui-row-expand-url-editor",
|
|
108
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
109
|
+
ref: ref => this.urlInputRef = ref,
|
|
110
|
+
type: "text",
|
|
111
|
+
onFocus: this.onFocus,
|
|
112
|
+
onBlur: this.onBlur,
|
|
113
|
+
onCut: this.onCut,
|
|
114
|
+
onPaste: this.onPaste,
|
|
115
|
+
onChange: this.onChange,
|
|
116
|
+
className: "form-control dtable-ui-row-expand-url-input",
|
|
117
|
+
value: value,
|
|
118
|
+
onKeyDown: this.onKeyDown
|
|
119
|
+
}), value && value.trim() && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
120
|
+
"aria-hidden": "true",
|
|
121
|
+
className: "dtable-font dtable-icon-email dtable-ui-row-expand-jump-link",
|
|
122
|
+
onClick: this.onOpenEmailLink
|
|
123
|
+
})]
|
|
124
|
+
});
|
|
123
125
|
}
|
|
124
126
|
}
|
|
125
127
|
var _default = exports.default = RowExpandPCEmailEditor;
|
|
@@ -10,15 +10,22 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
11
11
|
var _pcEditor = _interopRequireDefault(require("./pc-editor"));
|
|
12
12
|
var _mbEditor = _interopRequireDefault(require("./mb-editor"));
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
const RowExpandFileEditor = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
14
|
-
return /*#__PURE__*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
16
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
17
|
+
query: "(min-width: 768px)",
|
|
18
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
|
|
19
|
+
...props,
|
|
20
|
+
ref: ref
|
|
21
|
+
})
|
|
22
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
23
|
+
query: "(max-width: 768px)",
|
|
24
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
|
|
25
|
+
...props,
|
|
26
|
+
ref: ref
|
|
27
|
+
})
|
|
28
|
+
})]
|
|
29
|
+
});
|
|
23
30
|
});
|
|
24
31
|
var _default = exports.default = RowExpandFileEditor;
|