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
|
@@ -15,6 +15,7 @@ var _departments = require("../../utils/departments");
|
|
|
15
15
|
var _departments2 = require("../../constants/departments");
|
|
16
16
|
var _lang = require("../../lang");
|
|
17
17
|
require("./index.css");
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
19
|
const Item = _List.default.Item;
|
|
19
20
|
const {
|
|
20
21
|
Header,
|
|
@@ -112,7 +113,7 @@ const MBDepartmentSingleSelectEditor = _ref => {
|
|
|
112
113
|
const renderLeftContent = (0, _react.useCallback)(() => {
|
|
113
114
|
const parentDepartment = departments.find(item => item.id === parentId);
|
|
114
115
|
if (!parentDepartment && !isFilterEditor) return (0, _lang.getLocale)('Cancel');
|
|
115
|
-
return /*#__PURE__*/
|
|
116
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
116
117
|
"aria-hidden": "true",
|
|
117
118
|
className: "dtable-font dtable-icon-return"
|
|
118
119
|
});
|
|
@@ -128,52 +129,60 @@ const MBDepartmentSingleSelectEditor = _ref => {
|
|
|
128
129
|
currentDepartments = departments.filter(department => department.parent_id === parentId);
|
|
129
130
|
}
|
|
130
131
|
if (currentDepartments.length === 0) {
|
|
131
|
-
return /*#__PURE__*/
|
|
132
|
-
className: "d-flex justify-content-center seatable-tip-default h-100 w-100 align-items-center"
|
|
133
|
-
|
|
132
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
133
|
+
className: "d-flex justify-content-center seatable-tip-default h-100 w-100 align-items-center",
|
|
134
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
135
|
+
children: (0, _lang.getLocale)('No_departments_available')
|
|
136
|
+
})
|
|
137
|
+
});
|
|
134
138
|
}
|
|
135
|
-
return /*#__PURE__*/
|
|
139
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_List.default, {
|
|
136
140
|
className: "my-list dtable-ui-mobile-department-editor-departments",
|
|
137
|
-
renderHeader: () => (0, _lang.getLocale)('Select_department')
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
141
|
+
renderHeader: () => (0, _lang.getLocale)('Select_department'),
|
|
142
|
+
children: [isFilterEditor && parentId === -1 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
143
|
+
children: _departments2.DEPARTMENT_SELECT_RANGE_OPTIONS.slice(0, 2).map((option, index) => {
|
|
144
|
+
const {
|
|
145
|
+
type,
|
|
146
|
+
name
|
|
147
|
+
} = option;
|
|
148
|
+
const isChecked = isSupportMultiple ? value.includes(type) : value === type;
|
|
149
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Item, {
|
|
150
|
+
multipleLine: true,
|
|
151
|
+
onClick: event => onParentDepartmentClick(event, type),
|
|
152
|
+
className: "dtable-ui-mobile-department-editor-department-item",
|
|
153
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
154
|
+
className: "d-flex",
|
|
155
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableRadio.default, {
|
|
156
|
+
isChecked: isChecked,
|
|
157
|
+
onCheckedChange: event => onParentDepartmentClick(event, type),
|
|
158
|
+
label: (0, _lang.getLocale)(name)
|
|
159
|
+
})
|
|
160
|
+
})
|
|
161
|
+
}, "department-range-item-".concat(index));
|
|
162
|
+
})
|
|
163
|
+
}), currentDepartments.map((department, index) => {
|
|
164
|
+
const {
|
|
165
|
+
hasChild,
|
|
166
|
+
name,
|
|
167
|
+
id
|
|
168
|
+
} = department;
|
|
169
|
+
const isChecked = isSupportMultiple ? value.includes(id) : value === id;
|
|
170
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Item, {
|
|
171
|
+
arrow: hasChild ? 'horizontal' : '',
|
|
172
|
+
multipleLine: true,
|
|
173
|
+
onClick: event => onDepartmentClick(event, department),
|
|
174
|
+
className: "dtable-ui-mobile-department-editor-department-item",
|
|
175
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
176
|
+
className: "d-flex",
|
|
177
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableRadio.default, {
|
|
178
|
+
isChecked: isChecked,
|
|
179
|
+
onCheckedChange: event => onParentDepartmentClick(event, department),
|
|
180
|
+
label: name
|
|
181
|
+
})
|
|
182
|
+
})
|
|
183
|
+
}, "department-item-".concat(index));
|
|
184
|
+
})]
|
|
185
|
+
});
|
|
177
186
|
}, [initColumnData, parentId, isFilterEditor, isSupportMultiple, departments, value, topParentIds, onParentDepartmentClick, onDepartmentClick]);
|
|
178
187
|
(0, _react.useEffect)(() => {
|
|
179
188
|
const {
|
|
@@ -212,16 +221,27 @@ const MBDepartmentSingleSelectEditor = _ref => {
|
|
|
212
221
|
setParentId(-1);
|
|
213
222
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
214
223
|
}, []);
|
|
215
|
-
return /*#__PURE__*/
|
|
224
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_MobileFullScreenPage.default, {
|
|
216
225
|
className: "dtable-ui-mobile-department-editor",
|
|
217
|
-
onClose: onClose
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
+
onClose: onClose,
|
|
227
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(Header, {
|
|
228
|
+
onLeftClick: onLeftClick,
|
|
229
|
+
onRightClick: onSave,
|
|
230
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
231
|
+
children: renderLeftContent()
|
|
232
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
233
|
+
children: column.name
|
|
234
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
235
|
+
children: isFilterEditor ? null : /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
236
|
+
style: {
|
|
237
|
+
color: '#f09f3f'
|
|
238
|
+
},
|
|
239
|
+
children: (0, _lang.getLocale)('Submit')
|
|
240
|
+
})
|
|
241
|
+
})]
|
|
242
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Body, {
|
|
243
|
+
children: renderDepartments()
|
|
244
|
+
})]
|
|
245
|
+
});
|
|
226
246
|
};
|
|
227
247
|
var _default = exports.default = MBDepartmentSingleSelectEditor;
|
|
@@ -12,6 +12,7 @@ var _Loading = _interopRequireDefault(require("../../Loading"));
|
|
|
12
12
|
var _departments = require("../../utils/departments");
|
|
13
13
|
var _lang = require("../../lang");
|
|
14
14
|
require("./index.css");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
16
|
class DepartmentSingleSelect extends _react.Component {
|
|
16
17
|
constructor(props) {
|
|
17
18
|
var _this;
|
|
@@ -136,33 +137,38 @@ class DepartmentSingleSelect extends _react.Component {
|
|
|
136
137
|
id
|
|
137
138
|
} = department;
|
|
138
139
|
const isChecked = value === id;
|
|
139
|
-
return /*#__PURE__*/
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
140
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
|
|
141
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
142
|
+
className: "department-item",
|
|
143
|
+
onClick: event => this.onSelectDepartment(event, id),
|
|
144
|
+
style: {
|
|
145
|
+
paddingLeft: "".concat(newLevel * 15 + 10, "px")
|
|
146
|
+
},
|
|
147
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
148
|
+
className: "department-item-left-content d-flex align-items-center",
|
|
149
|
+
children: [hasChild && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
150
|
+
onClick: event => this.onExpand(event, id, isExpanded),
|
|
151
|
+
role: "button",
|
|
152
|
+
className: "department-item-fold-btn",
|
|
153
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
154
|
+
className: "dtable-font expand dtable-icon-down3 ".concat(isExpanded ? '' : 'rotate-270')
|
|
155
|
+
})
|
|
156
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
157
|
+
style: {
|
|
158
|
+
paddingLeft: hasChild ? '' : hasNextLevel ? '16px' : '12px'
|
|
159
|
+
},
|
|
160
|
+
title: name,
|
|
161
|
+
className: "text-truncate department-name",
|
|
162
|
+
children: name
|
|
163
|
+
}), isChecked && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
164
|
+
className: "department-check-icon",
|
|
165
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
166
|
+
className: "dtable-font dtable-icon-check-mark"
|
|
167
|
+
})
|
|
168
|
+
})]
|
|
169
|
+
})
|
|
170
|
+
}), isExpanded && hasChild && this.renderSubDepartments(id, subDepartments, newLevel)]
|
|
171
|
+
}, id);
|
|
166
172
|
};
|
|
167
173
|
this.renderAllDepartments = () => {
|
|
168
174
|
const {
|
|
@@ -170,19 +176,23 @@ class DepartmentSingleSelect extends _react.Component {
|
|
|
170
176
|
} = this.state;
|
|
171
177
|
const topDepartment = departments.find(department => department.parent_id === -1);
|
|
172
178
|
const subDepartments = departments.filter(department => department.parent_id !== -1);
|
|
173
|
-
return /*#__PURE__*/
|
|
179
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
180
|
+
children: topDepartment ? this.renderDepartment(topDepartment, subDepartments, -1, true) : this.renderEmptyTip()
|
|
181
|
+
});
|
|
174
182
|
};
|
|
175
183
|
this.renderSpecificDepartments = () => {
|
|
176
184
|
const {
|
|
177
185
|
departments
|
|
178
186
|
} = this.state;
|
|
179
|
-
return /*#__PURE__*/
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
187
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
188
|
+
children: [this.validDepartments.length === 0 && this.renderEmptyTip(), this.validDepartments.length > 0 && this.validDepartments.map(department => {
|
|
189
|
+
const value = {
|
|
190
|
+
...department,
|
|
191
|
+
hasChild: false
|
|
192
|
+
};
|
|
193
|
+
return this.renderDepartment(value, departments, -1, false);
|
|
194
|
+
})]
|
|
195
|
+
});
|
|
186
196
|
};
|
|
187
197
|
this.renderCurrentDepartmentsAndSub = () => {
|
|
188
198
|
const {
|
|
@@ -191,16 +201,19 @@ class DepartmentSingleSelect extends _react.Component {
|
|
|
191
201
|
} = this.state;
|
|
192
202
|
const nextLevelDepartment = this.validDepartments.find(department => topParentIds.includes(department.parent_id));
|
|
193
203
|
const hasNextLevel = !!nextLevelDepartment;
|
|
194
|
-
return /*#__PURE__*/
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
204
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
205
|
+
children: [this.validDepartments.length === 0 && this.renderEmptyTip(), this.validDepartments.length > 0 && this.validDepartments.map(department => {
|
|
206
|
+
let value = department;
|
|
207
|
+
if (!topParentIds.includes(department.id)) return null;
|
|
208
|
+
return this.renderDepartment(value, departments, -1, hasNextLevel);
|
|
209
|
+
})]
|
|
210
|
+
});
|
|
199
211
|
};
|
|
200
212
|
this.renderEmptyTip = () => {
|
|
201
|
-
return /*#__PURE__*/
|
|
202
|
-
className: "none-search-result pl-4 pr-4"
|
|
203
|
-
|
|
213
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
214
|
+
className: "none-search-result pl-4 pr-4",
|
|
215
|
+
children: (0, _lang.getLocale)('No_departments_available')
|
|
216
|
+
});
|
|
204
217
|
};
|
|
205
218
|
this.renderMenuContent = () => {
|
|
206
219
|
const {
|
|
@@ -219,10 +232,11 @@ class DepartmentSingleSelect extends _react.Component {
|
|
|
219
232
|
} else if (enableSelectRange && selectedRange === _dtableUtils.DEPARTMENT_SELECT_RANGE_MAP.CURRENT_USER_DEPARTMENT_AND_SUB) {
|
|
220
233
|
menuContent = this.renderCurrentDepartmentsAndSub();
|
|
221
234
|
}
|
|
222
|
-
return /*#__PURE__*/
|
|
235
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
223
236
|
className: "editor-department-container",
|
|
224
|
-
ref: ref => this.departmentContainerRef = ref
|
|
225
|
-
|
|
237
|
+
ref: ref => this.departmentContainerRef = ref,
|
|
238
|
+
children: [!searchVal && renderUserDepartmentOptions && renderUserDepartmentOptions(this.onSelectDepartment), menuContent]
|
|
239
|
+
});
|
|
226
240
|
};
|
|
227
241
|
this.state = {
|
|
228
242
|
searchVal: '',
|
|
@@ -249,25 +263,28 @@ class DepartmentSingleSelect extends _react.Component {
|
|
|
249
263
|
}
|
|
250
264
|
}
|
|
251
265
|
render() {
|
|
252
|
-
return /*#__PURE__*/
|
|
266
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
253
267
|
className: "department-editor-list dtable-ui",
|
|
254
268
|
style: this.props.menuStyle || {},
|
|
255
269
|
ref: ref => this.departmentsRef = ref,
|
|
256
270
|
onClick: this.onStopPropagation,
|
|
257
|
-
onMouseDown: this.onStopPropagation
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
+
onMouseDown: this.onStopPropagation,
|
|
272
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
273
|
+
className: "search-departments",
|
|
274
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
275
|
+
className: "form-control",
|
|
276
|
+
type: "text",
|
|
277
|
+
autoFocus: true,
|
|
278
|
+
placeholder: (0, _lang.getLocale)('Search_department'),
|
|
279
|
+
value: this.state.searchVal,
|
|
280
|
+
onChange: this.onChangeSearch,
|
|
281
|
+
onClick: this.onStopPropagation
|
|
282
|
+
})
|
|
283
|
+
}), this.state.isLoading ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
284
|
+
className: "mt-4",
|
|
285
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loading.default, {})
|
|
286
|
+
}) : this.renderMenuContent()]
|
|
287
|
+
});
|
|
271
288
|
}
|
|
272
289
|
}
|
|
273
290
|
var _default = exports.default = DepartmentSingleSelect;
|
|
@@ -10,6 +10,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _DTablePopover = _interopRequireDefault(require("../../DTablePopover"));
|
|
11
11
|
var _departmentSingleSelect = _interopRequireDefault(require("./department-single-select"));
|
|
12
12
|
require("./index.css");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
class PCDepartmentSingleSelectEditor extends _react.Component {
|
|
14
15
|
constructor(props) {
|
|
15
16
|
super(props);
|
|
@@ -65,7 +66,7 @@ class PCDepartmentSingleSelectEditor extends _react.Component {
|
|
|
65
66
|
userDepartmentIdsMap,
|
|
66
67
|
departments
|
|
67
68
|
} = this.props;
|
|
68
|
-
const dom = /*#__PURE__*/
|
|
69
|
+
const dom = /*#__PURE__*/(0, _jsxRuntime.jsx)(_departmentSingleSelect.default, {
|
|
69
70
|
column: column,
|
|
70
71
|
value: this.state.value,
|
|
71
72
|
enableSelectRange: this.enableSelectRange,
|
|
@@ -74,16 +75,18 @@ class PCDepartmentSingleSelectEditor extends _react.Component {
|
|
|
74
75
|
departments: departments,
|
|
75
76
|
onCommit: this.onCommit
|
|
76
77
|
});
|
|
77
|
-
return this.isRowExpand ? /*#__PURE__*/
|
|
78
|
-
ref: ref => this.outerRef = ref
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
78
|
+
return this.isRowExpand ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
79
|
+
ref: ref => this.outerRef = ref,
|
|
80
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTablePopover.default, {
|
|
81
|
+
hideArrow: true,
|
|
82
|
+
popoverClassName: "select-editor-popover",
|
|
83
|
+
target: target,
|
|
84
|
+
placement: "bottom-start",
|
|
85
|
+
hideDTablePopover: this.props.toggleDepartmentSelect,
|
|
86
|
+
hideDTablePopoverWithEsc: this.props.toggleDepartmentSelect,
|
|
87
|
+
children: dom
|
|
88
|
+
})
|
|
89
|
+
}) : dom;
|
|
87
90
|
}
|
|
88
91
|
}
|
|
89
92
|
var _default = exports.default = PCDepartmentSingleSelectEditor;
|
|
@@ -9,6 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
10
|
var _lang = require("../lang");
|
|
11
11
|
require("./index.css");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
13
|
function DepartmentSingleSelectFormatter(props) {
|
|
13
14
|
const {
|
|
14
15
|
value,
|
|
@@ -20,15 +21,18 @@ function DepartmentSingleSelectFormatter(props) {
|
|
|
20
21
|
const deletedTip = tip || (0, _lang.getLocale)('Deleted_department');
|
|
21
22
|
const department = departments.find(department => department.id === value);
|
|
22
23
|
const name = department ? department.name : deletedTip;
|
|
23
|
-
return /*#__PURE__*/
|
|
24
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
24
25
|
title: name,
|
|
25
|
-
className: (0, _classnames.default)('dtable-ui cell-formatter-container department-single-select-formatter text-truncate', containerClassName)
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
className: (0, _classnames.default)('dtable-ui cell-formatter-container department-single-select-formatter text-truncate', containerClassName),
|
|
27
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
28
|
+
className: "department-avatar-container d-flex align-items-center justify-content-center",
|
|
29
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
30
|
+
className: "dtable-font dtable-icon-department-single-selection"
|
|
31
|
+
})
|
|
32
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
33
|
+
className: "department-name text-truncate",
|
|
34
|
+
children: name
|
|
35
|
+
})]
|
|
36
|
+
});
|
|
33
37
|
}
|
|
34
38
|
var _default = exports.default = DepartmentSingleSelectFormatter;
|
|
@@ -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 DigitalSignEditor = /*#__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 = DigitalSignEditor;
|
|
@@ -16,6 +16,7 @@ var _toaster = _interopRequireDefault(require("../../toaster"));
|
|
|
16
16
|
var _lang = require("../../lang");
|
|
17
17
|
var _utils2 = require("../../utils/utils");
|
|
18
18
|
require("./index.css");
|
|
19
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
20
|
const {
|
|
20
21
|
Header,
|
|
21
22
|
Body
|
|
@@ -113,32 +114,46 @@ class MBDigitalSignEditor extends _react.Component {
|
|
|
113
114
|
...config,
|
|
114
115
|
partUrl: _utils.default.getSignImageUrl(value)
|
|
115
116
|
});
|
|
116
|
-
return /*#__PURE__*/
|
|
117
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_MobileFullScreenPage.default, {
|
|
117
118
|
className: "dtable-ui dtable-ui-mobile-digital-sign-editor",
|
|
118
119
|
zIndex: 101,
|
|
119
|
-
historyCallback: this.historyCallback
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
120
|
+
historyCallback: this.historyCallback,
|
|
121
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(Header, {
|
|
122
|
+
onLeftClick: this.onToggle,
|
|
123
|
+
onRightClick: this.onSave,
|
|
124
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
125
|
+
children: (0, _lang.getLocale)('Cancel')
|
|
126
|
+
}), column.name, /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
127
|
+
style: {
|
|
128
|
+
color: '#f09f3f'
|
|
129
|
+
},
|
|
130
|
+
children: (0, _lang.getLocale)('Submit')
|
|
131
|
+
})]
|
|
132
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(Body, {
|
|
133
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
134
|
+
className: "dtable-ui-digital-sign-panel position-relative",
|
|
135
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
136
|
+
className: "dtable-ui-digital-sign-editor-operations position-absolute",
|
|
137
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
138
|
+
className: "btn-clear-dtable-ui-digital-sign",
|
|
139
|
+
onClick: this.clearSignature,
|
|
140
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
141
|
+
children: (0, _lang.getLocale)('Re-sign')
|
|
142
|
+
})
|
|
143
|
+
})
|
|
144
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_signatureBoard.default, {
|
|
145
|
+
ref: ref => this.signatureBoard = ref,
|
|
146
|
+
signImageUrl: signImageUrl
|
|
147
|
+
})]
|
|
148
|
+
}), saving && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
149
|
+
className: "dtable-ui-digital-sign-panel-mask position-absolute",
|
|
150
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
151
|
+
className: "dtable-ui-digital-sign-panel-mask-container",
|
|
152
|
+
children: (0, _lang.getLocale)('Saving...')
|
|
153
|
+
})
|
|
154
|
+
})]
|
|
155
|
+
})]
|
|
156
|
+
});
|
|
142
157
|
}
|
|
143
158
|
}
|
|
144
159
|
var _default = exports.default = MBDigitalSignEditor;
|