@topconsultnpm/sdkui-react 6.20.0-dev1.3 → 6.20.0-dev1.31
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/components/NewComponents/ContextMenu/TMContextMenu.js +29 -11
- package/lib/components/NewComponents/ContextMenu/hooks.d.ts +1 -0
- package/lib/components/NewComponents/ContextMenu/hooks.js +8 -4
- package/lib/components/NewComponents/ContextMenu/styles.d.ts +5 -1
- package/lib/components/NewComponents/ContextMenu/styles.js +56 -28
- package/lib/components/NewComponents/ContextMenu/types.d.ts +10 -0
- package/lib/components/NewComponents/FloatingMenuBar/TMFloatingMenuBar.js +39 -51
- package/lib/components/NewComponents/FloatingMenuBar/styles.d.ts +8 -0
- package/lib/components/NewComponents/FloatingMenuBar/styles.js +29 -19
- package/lib/components/NewComponents/FloatingMenuBar/types.d.ts +0 -1
- package/lib/components/base/TMAccordion.js +2 -2
- package/lib/components/base/TMCustomButton.js +61 -17
- package/lib/components/base/TMDataGrid.d.ts +5 -2
- package/lib/components/base/TMDataGrid.js +98 -7
- package/lib/components/editors/TMHtmlEditor.js +1 -1
- package/lib/components/editors/TMMetadataValues.js +20 -2
- package/lib/components/features/documents/TMDcmtBlog.d.ts +1 -7
- package/lib/components/features/documents/TMDcmtBlog.js +29 -2
- package/lib/components/features/documents/TMDcmtForm.js +268 -168
- package/lib/components/features/documents/TMDcmtPreview.js +37 -66
- package/lib/components/features/search/TMDcmtCheckoutInfoForm.d.ts +8 -0
- package/lib/components/features/search/{TMSearchResultCheckoutInfoForm.js → TMDcmtCheckoutInfoForm.js} +6 -11
- package/lib/components/features/search/TMSearchQueryPanel.js +13 -12
- package/lib/components/features/search/TMSearchResult.js +66 -117
- package/lib/components/features/search/TMSearchResultsMenuItems.d.ts +3 -3
- package/lib/components/features/search/TMSearchResultsMenuItems.js +163 -180
- package/lib/components/features/search/TMSignatureInfoContent.d.ts +6 -0
- package/lib/components/features/search/TMSignatureInfoContent.js +140 -0
- package/lib/components/forms/Login/LoginValidatorService.d.ts +2 -0
- package/lib/components/forms/Login/LoginValidatorService.js +7 -2
- package/lib/components/forms/Login/TMLoginForm.js +34 -6
- package/lib/css/tm-sdkui.css +1 -1
- package/lib/helper/SDKUI_Globals.d.ts +12 -14
- package/lib/helper/SDKUI_Globals.js +8 -0
- package/lib/helper/SDKUI_Localizator.d.ts +8 -0
- package/lib/helper/SDKUI_Localizator.js +98 -0
- package/lib/helper/TMPdfViewer.d.ts +8 -0
- package/lib/helper/TMPdfViewer.js +187 -0
- package/lib/helper/TMUtils.d.ts +3 -1
- package/lib/helper/TMUtils.js +51 -0
- package/lib/helper/checkinCheckoutManager.d.ts +85 -0
- package/lib/helper/checkinCheckoutManager.js +348 -0
- package/lib/helper/devextremeCustomMessages.d.ts +30 -0
- package/lib/helper/devextremeCustomMessages.js +30 -0
- package/lib/helper/helpers.js +7 -1
- package/lib/helper/index.d.ts +2 -0
- package/lib/helper/index.js +2 -0
- package/lib/helper/queryHelper.js +29 -0
- package/lib/hooks/useCheckInOutOperations.d.ts +28 -0
- package/lib/hooks/useCheckInOutOperations.js +223 -0
- package/lib/services/platform_services.d.ts +1 -1
- package/package.json +5 -2
- package/lib/components/NewComponents/Notification/Notification.d.ts +0 -4
- package/lib/components/NewComponents/Notification/Notification.js +0 -60
- package/lib/components/NewComponents/Notification/NotificationContainer.d.ts +0 -8
- package/lib/components/NewComponents/Notification/NotificationContainer.js +0 -33
- package/lib/components/NewComponents/Notification/index.d.ts +0 -2
- package/lib/components/NewComponents/Notification/index.js +0 -2
- package/lib/components/NewComponents/Notification/styles.d.ts +0 -21
- package/lib/components/NewComponents/Notification/styles.js +0 -180
- package/lib/components/NewComponents/Notification/types.d.ts +0 -18
- package/lib/components/NewComponents/Notification/types.js +0 -1
- package/lib/components/features/search/TMSearchResultCheckoutInfoForm.d.ts +0 -8
- package/lib/helper/cicoHelper.d.ts +0 -31
- package/lib/helper/cicoHelper.js +0 -155
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { AccessLevels, AccessLevelsEx, AppModules, FileFormats, LayoutModes, SDK_Globals, DcmtTypeListCacheService, LicenseModuleStatus } from '@topconsultnpm/sdk-ts';
|
|
3
|
-
import { IconActivity, IconArchiveDoc, IconBatchUpdate, IconCheckFile, IconCheckIn, IconCircleInfo, IconCloseCircle, IconConvertFilePdf, IconDelete, IconDotsVerticalCircleOutline, IconDownload, IconEdit, IconExportTo, IconFileDots, IconHide, IconInfo, IconMenuCAArchive, IconPlatform, IconPreview, IconRelation, IconSearch, IconShow, IconStar, IconSubstFile, IconUndo, IconUserGroupOutline, SDKUI_Localizator,
|
|
3
|
+
import { IconActivity, IconArchiveDoc, IconBatchUpdate, IconCheckFile, IconCheckIn, IconCircleInfo, IconCloseCircle, IconConvertFilePdf, IconDelete, IconDotsVerticalCircleOutline, IconDownload, IconEdit, IconExportTo, IconFileDots, IconHide, IconInfo, IconMenuCAArchive, IconPlatform, IconPreview, IconRelation, IconSearch, IconShow, IconStar, IconSubstFile, IconUndo, IconUserGroupOutline, SDKUI_Localizator, searchResultToMetadataValues, IconSignaturePencil, IconArchiveMaster, IconArchiveDetail, IconDetailDcmts, isPdfEditorEnabled, IconPair, IconUnpair, IconSharedDcmt, IconShare, IconCopy, IconMoveToFolder } from '../../../helper';
|
|
4
4
|
import ShowAlert from '../../base/TMAlert';
|
|
5
5
|
import { TMMessageBoxManager, ButtonNames, TMExceptionBoxManager } from '../../base/TMPopUp';
|
|
6
6
|
import TMSpinner from '../../base/TMSpinner';
|
|
7
7
|
import { DcmtOperationTypes, DownloadTypes, SearchResultContext } from '../../../ts';
|
|
8
8
|
import { isXMLFileExt } from '../../../helper/dcmtsHelper';
|
|
9
|
-
import {
|
|
9
|
+
import { getDcmtCicoStatus } from '../../../helper/checkinCheckoutManager';
|
|
10
|
+
import TMSignatureInfoContent from './TMSignatureInfoContent';
|
|
10
11
|
const disabledForSingleRow = (selectedItems, focusedItem) => {
|
|
11
12
|
// Disabilita se ci sono più item selezionati o se focusedItem non ha TID/DID validi
|
|
12
13
|
return selectedItems.length > 1 || focusedItem === undefined || focusedItem.TID === undefined || focusedItem.DID === undefined;
|
|
@@ -62,31 +63,14 @@ export const signatureInformationCallback = async (isMobile, inputDcmts) => {
|
|
|
62
63
|
});
|
|
63
64
|
return;
|
|
64
65
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
TMMessageBoxManager.show({
|
|
75
|
-
title: SDKUI_Localizator.SignatureInformation,
|
|
76
|
-
buttons: [ButtonNames.OK],
|
|
77
|
-
showToppy: false,
|
|
78
|
-
resizable: true,
|
|
79
|
-
initialWidth: !isMobile ? '500px' : undefined,
|
|
80
|
-
message: (_jsx("div", { style: { lineHeight: "1.4em", overflowY: "auto", maxHeight: "400px", paddingRight: "8px", boxSizing: "border-box" }, children: res.signers && res.signers.length > 0 ? (res.signers.map((signer, idx) => (_jsxs("div", { style: {
|
|
81
|
-
border: "1px solid #ccc",
|
|
82
|
-
borderRadius: "10px",
|
|
83
|
-
padding: "12px",
|
|
84
|
-
marginBottom: "12px",
|
|
85
|
-
background: "#f9f9f9",
|
|
86
|
-
boxShadow: "0 1px 3px rgba(0,0,0,0.1)"
|
|
87
|
-
}, children: [_jsxs("h3", { style: { margin: "0 0 8px", color: "#333" }, children: ["Firma ", signer.levelAndIndex] }), _jsxs("p", { style: { margin: "4px 0" }, children: [_jsx("strong", { children: "Intestatario:" }), _jsx("br", {}), signer.info1 ?? '-'] }), _jsxs("p", { style: { margin: "4px 0" }, children: [_jsx("strong", { children: "Riferimento temporale:" }), _jsx("br", {}), signer.info2 ?? '-'] }), _jsxs("p", { style: { margin: "4px 0" }, children: [_jsx("strong", { children: "Dettagli:" }), _jsx("br", {}), signer.info3 ?? '-'] })] }, idx)))) : (_jsx("p", { children: "Nessuna firma trovata" })) }))
|
|
88
|
-
});
|
|
89
|
-
}
|
|
66
|
+
TMMessageBoxManager.show({
|
|
67
|
+
title: SDKUI_Localizator.SignatureInformation,
|
|
68
|
+
buttons: [ButtonNames.OK],
|
|
69
|
+
showToppy: false,
|
|
70
|
+
resizable: true,
|
|
71
|
+
initialWidth: !isMobile ? '700px' : undefined,
|
|
72
|
+
message: _jsx(TMSignatureInfoContent, { inputDcmt: inputDcmts[0] })
|
|
73
|
+
});
|
|
90
74
|
}
|
|
91
75
|
catch (error) {
|
|
92
76
|
console.error(error);
|
|
@@ -96,7 +80,7 @@ export const signatureInformationCallback = async (isMobile, inputDcmts) => {
|
|
|
96
80
|
TMSpinner.hide();
|
|
97
81
|
}
|
|
98
82
|
};
|
|
99
|
-
export const getCommandsMenuItems = (isMobile, dtd, allUsers, selectedItems, focusedItem, context, showFloatingBar, workingGroupContext, showSearch, setShowFloatingBar, openFormHandler, openSharedArchiveHandler, showSharedDcmtsHandler, downloadDcmtsAsync, runOperationAsync, onRefreshSearchAsync, onRefreshDataRowsAsync, onRefreshAfterAddDcmtToFavs, confirmFormat, confirmAttachments, openTaskFormHandler, openDetailDcmtsFormHandler, openMasterDcmtsFormHandler, openBatchUpdateFormHandler, openExportForm, handleToggleSearch, handleSignApprove, openSignSettingsForm, handleCheckOutOperationCallback, showCheckoutInformationFormCallback, viewHistoryCallback, openWGsCopyMoveForm, openCommentFormCallback, openEditPdf, openAddDocumentForm, passToArchiveCallback, archiveMasterDocuments, archiveDetailDocuments, hasMasterRelation, hasDetailRelation, canArchiveMasterRelation, canArchiveDetailRelation, pairManyToManyDocuments, hasManyToManyRelation) => {
|
|
83
|
+
export const getCommandsMenuItems = (isMobile, dtd, allUsers, selectedItems, focusedItem, context, showFloatingBar, workingGroupContext, showSearch, setShowFloatingBar, openFormHandler, openSharedArchiveHandler, showSharedDcmtsHandler, downloadDcmtsAsync, runOperationAsync, onRefreshSearchAsync, onRefreshDataRowsAsync, onRefreshAfterAddDcmtToFavs, confirmFormat, confirmAttachments, openTaskFormHandler, openDetailDcmtsFormHandler, openMasterDcmtsFormHandler, openBatchUpdateFormHandler, openExportForm, handleToggleSearch, handleSignApprove, openSignSettingsForm, handleCheckOutOperationCallback, handleCheckInOperationCallback, showCheckoutInformationFormCallback, viewHistoryCallback, copyCheckoutPathToClipboardOperationCallback, openWGsCopyMoveForm, openCommentFormCallback, openEditPdf, openAddDocumentForm, passToArchiveCallback, archiveMasterDocuments, archiveDetailDocuments, hasMasterRelation, hasDetailRelation, canArchiveMasterRelation, canArchiveDetailRelation, pairManyToManyDocuments, hasManyToManyRelation) => {
|
|
100
84
|
const isPdfEditorLicensed = SDK_Globals?.license?.dcmtArchiveLicenses?.[0]?.siX_60007?.status === LicenseModuleStatus.Licensed;
|
|
101
85
|
let pdfEditorAvailable = false;
|
|
102
86
|
if (dtd && dtd.widgets && dtd.widgets.length > 0) {
|
|
@@ -104,8 +88,8 @@ export const getCommandsMenuItems = (isMobile, dtd, allUsers, selectedItems, foc
|
|
|
104
88
|
}
|
|
105
89
|
const addToFavoriteMenuItem = () => {
|
|
106
90
|
return {
|
|
107
|
-
icon:
|
|
108
|
-
|
|
91
|
+
icon: _jsx(IconStar, {}),
|
|
92
|
+
name: SDKUI_Localizator.AddTo + ' ' + SDKUI_Localizator.Favorites,
|
|
109
93
|
operationType: 'multiRow',
|
|
110
94
|
disabled: context === SearchResultContext.FAVORITES_AND_RECENTS || disabledForMultiRow(selectedItems, focusedItem),
|
|
111
95
|
onClick: async () => { await runOperationAsync(getSelectedDcmtsOrFocused(selectedItems, focusedItem), DcmtOperationTypes.AddToFavs); onRefreshAfterAddDcmtToFavs?.(); },
|
|
@@ -113,8 +97,8 @@ export const getCommandsMenuItems = (isMobile, dtd, allUsers, selectedItems, foc
|
|
|
113
97
|
};
|
|
114
98
|
const addReplaceFileMenuItem = () => {
|
|
115
99
|
return {
|
|
116
|
-
icon:
|
|
117
|
-
|
|
100
|
+
icon: _jsx(IconSubstFile, {}),
|
|
101
|
+
name: SDKUI_Localizator.AddOrSubstFile,
|
|
118
102
|
operationType: 'singleRow',
|
|
119
103
|
disabled: dtd?.perm?.canSubstFile !== AccessLevels.Yes ? true : disabledForSingleRow(selectedItems, focusedItem),
|
|
120
104
|
onClick: async () => { await runOperationAsync(getSelectedDcmtsOrFocused(selectedItems, focusedItem), DcmtOperationTypes.SubstituteFile, onRefreshDataRowsAsync); }
|
|
@@ -122,8 +106,8 @@ export const getCommandsMenuItems = (isMobile, dtd, allUsers, selectedItems, foc
|
|
|
122
106
|
};
|
|
123
107
|
const openFormMenuItem = () => {
|
|
124
108
|
return {
|
|
125
|
-
icon:
|
|
126
|
-
|
|
109
|
+
icon: _jsx(IconPreview, {}),
|
|
110
|
+
name: SDKUI_Localizator.OpenForm,
|
|
127
111
|
operationType: 'singleRow',
|
|
128
112
|
disabled: disabledForSingleRow(selectedItems, focusedItem),
|
|
129
113
|
onClick: () => openFormHandler?.(LayoutModes.Update)
|
|
@@ -131,25 +115,24 @@ export const getCommandsMenuItems = (isMobile, dtd, allUsers, selectedItems, foc
|
|
|
131
115
|
};
|
|
132
116
|
const deletetionMenuItem = () => {
|
|
133
117
|
return {
|
|
134
|
-
icon:
|
|
135
|
-
|
|
118
|
+
icon: _jsx(IconDelete, {}),
|
|
119
|
+
name: SDKUI_Localizator.Deletion,
|
|
136
120
|
operationType: 'multiRow',
|
|
137
121
|
disabled: disabledForMultiRow(selectedItems, focusedItem),
|
|
138
|
-
|
|
122
|
+
submenu: [
|
|
139
123
|
{
|
|
140
|
-
icon:
|
|
141
|
-
|
|
124
|
+
icon: _jsx(IconDelete, {}),
|
|
125
|
+
name: SDKUI_Localizator.LogDelete,
|
|
142
126
|
operationType: 'multiRow',
|
|
143
127
|
disabled: dtd?.perm?.canLogicalDelete !== AccessLevels.Yes ? true : disabledForMultiRow(selectedItems, focusedItem),
|
|
144
|
-
beginGroup: true,
|
|
145
128
|
onClick: async () => {
|
|
146
129
|
let dcmts = getSelectedDcmtsOrFocused(selectedItems, focusedItem);
|
|
147
130
|
await runOperationAsync(dcmts, DcmtOperationTypes.LogDelete, dcmts.length <= MAX_DCMTS_FOR_SELECTION_REFRESH ? onRefreshDataRowsAsync : onRefreshSearchAsync);
|
|
148
131
|
}
|
|
149
132
|
},
|
|
150
133
|
{
|
|
151
|
-
icon:
|
|
152
|
-
|
|
134
|
+
icon: _jsx(IconUndo, {}),
|
|
135
|
+
name: SDKUI_Localizator.Restore,
|
|
153
136
|
operationType: 'multiRow',
|
|
154
137
|
disabled: dtd?.perm?.canLogicalDelete !== AccessLevels.Yes ? true : disabledForMultiRow(selectedItems, focusedItem),
|
|
155
138
|
onClick: async () => {
|
|
@@ -158,8 +141,8 @@ export const getCommandsMenuItems = (isMobile, dtd, allUsers, selectedItems, foc
|
|
|
158
141
|
}
|
|
159
142
|
},
|
|
160
143
|
{
|
|
161
|
-
icon:
|
|
162
|
-
|
|
144
|
+
icon: _jsx(IconCloseCircle, {}),
|
|
145
|
+
name: SDKUI_Localizator.PhysDelete,
|
|
163
146
|
operationType: 'multiRow',
|
|
164
147
|
disabled: dtd?.perm?.canPhysicalDelete !== AccessLevels.Yes ? true : disabledForMultiRow(selectedItems, focusedItem),
|
|
165
148
|
onClick: async () => { await runOperationAsync(getSelectedDcmtsOrFocused(selectedItems, focusedItem), DcmtOperationTypes.PhysDelete, onRefreshSearchAsync); }
|
|
@@ -169,8 +152,8 @@ export const getCommandsMenuItems = (isMobile, dtd, allUsers, selectedItems, foc
|
|
|
169
152
|
};
|
|
170
153
|
const fileCheckMenuItem = () => {
|
|
171
154
|
return {
|
|
172
|
-
icon:
|
|
173
|
-
|
|
155
|
+
icon: _jsx(IconCheckFile, {}),
|
|
156
|
+
name: SDKUI_Localizator.FileCheck,
|
|
174
157
|
operationType: 'multiRow',
|
|
175
158
|
disabled: disabledForMultiRow(selectedItems, focusedItem),
|
|
176
159
|
onClick: async () => { await runOperationAsync(getSelectedDcmtsOrFocused(selectedItems, focusedItem), DcmtOperationTypes.CheckFile); }
|
|
@@ -178,8 +161,8 @@ export const getCommandsMenuItems = (isMobile, dtd, allUsers, selectedItems, foc
|
|
|
178
161
|
};
|
|
179
162
|
const fileConversionsMenuItem = () => {
|
|
180
163
|
return {
|
|
181
|
-
icon:
|
|
182
|
-
|
|
164
|
+
icon: _jsx(IconConvertFilePdf, {}),
|
|
165
|
+
name: SDKUI_Localizator.FileConversion,
|
|
183
166
|
operationType: 'multiRow',
|
|
184
167
|
disabled: disabledForMultiRow(selectedItems, focusedItem),
|
|
185
168
|
onClick: async () => {
|
|
@@ -193,8 +176,8 @@ export const getCommandsMenuItems = (isMobile, dtd, allUsers, selectedItems, foc
|
|
|
193
176
|
};
|
|
194
177
|
const createContextualTaskMenuItem = () => {
|
|
195
178
|
return {
|
|
196
|
-
icon:
|
|
197
|
-
|
|
179
|
+
icon: _jsx(IconActivity, {}),
|
|
180
|
+
name: SDKUI_Localizator.CreateContextualTask,
|
|
198
181
|
operationType: 'singleRow',
|
|
199
182
|
disabled: disabledForSingleRow(selectedItems, focusedItem),
|
|
200
183
|
onClick: () => { openTaskFormHandler(); }
|
|
@@ -202,24 +185,24 @@ export const getCommandsMenuItems = (isMobile, dtd, allUsers, selectedItems, foc
|
|
|
202
185
|
};
|
|
203
186
|
const downloadFileMenuItem = () => {
|
|
204
187
|
return {
|
|
205
|
-
icon:
|
|
188
|
+
icon: _jsx(IconDownload, {}),
|
|
206
189
|
operationType: 'multiRow',
|
|
207
190
|
disabled: dtd?.perm?.canRetrieveFile !== AccessLevels.Yes ? true : disabledForMultiRow(selectedItems, focusedItem),
|
|
208
|
-
|
|
191
|
+
name: SDKUI_Localizator.DownloadFile, onClick: () => downloadDcmtsAsync(getSelectedDcmtsOrFocused(selectedItems, focusedItem), DownloadTypes.Dcmt, "download", undefined, undefined, true)
|
|
209
192
|
};
|
|
210
193
|
};
|
|
211
194
|
const downloadXMLAttachmentsMenuItem = () => {
|
|
212
195
|
return {
|
|
213
|
-
icon:
|
|
196
|
+
icon: _jsx(IconDownload, {}),
|
|
214
197
|
operationType: 'singleRow',
|
|
215
198
|
disabled: !isXMLFileExt(getSelectedDcmtsOrFocused(selectedItems, focusedItem)?.[0]?.FILEEXT) ? true : disabledForSingleRow(selectedItems, focusedItem),
|
|
216
|
-
|
|
199
|
+
name: SDKUI_Localizator.DownloadXMLAttachments, onClick: () => downloadDcmtsAsync(getSelectedDcmtsOrFocused(selectedItems, focusedItem), DownloadTypes.Attachment, "download", undefined, confirmAttachments, true)
|
|
217
200
|
};
|
|
218
201
|
};
|
|
219
202
|
const duplicateDocumentMenuItem = () => {
|
|
220
203
|
return {
|
|
221
|
-
icon:
|
|
222
|
-
|
|
204
|
+
icon: _jsx(IconArchiveDoc, {}),
|
|
205
|
+
name: SDKUI_Localizator.DuplicateDocument,
|
|
223
206
|
operationType: 'singleRow',
|
|
224
207
|
disabled: dtd?.perm?.canArchive !== AccessLevelsEx.Yes && dtd?.perm?.canArchive !== AccessLevelsEx.Mixed ? true : disabledForSingleRow(selectedItems, focusedItem),
|
|
225
208
|
onClick: () => { openFormHandler?.(LayoutModes.Ark); }
|
|
@@ -227,8 +210,8 @@ export const getCommandsMenuItems = (isMobile, dtd, allUsers, selectedItems, foc
|
|
|
227
210
|
};
|
|
228
211
|
const batchUpdateMenuItem = () => {
|
|
229
212
|
return {
|
|
230
|
-
icon:
|
|
231
|
-
|
|
213
|
+
icon: _jsx(IconBatchUpdate, {}),
|
|
214
|
+
name: SDKUI_Localizator.BatchUpdate,
|
|
232
215
|
operationType: 'multiRow',
|
|
233
216
|
disabled: dtd?.perm?.canUpdate !== AccessLevelsEx.Yes && dtd?.perm?.canUpdate !== AccessLevelsEx.Mixed ? true : disabledForMultiRow(selectedItems, focusedItem),
|
|
234
217
|
onClick: () => openBatchUpdateFormHandler?.(true)
|
|
@@ -236,8 +219,8 @@ export const getCommandsMenuItems = (isMobile, dtd, allUsers, selectedItems, foc
|
|
|
236
219
|
};
|
|
237
220
|
const passToArchive = () => {
|
|
238
221
|
return {
|
|
239
|
-
icon:
|
|
240
|
-
|
|
222
|
+
icon: _jsx(IconMenuCAArchive, { fontSize: 16, viewBox: '11 11.5 26 27', strokeWidth: 2, color: 'black' }),
|
|
223
|
+
name: SDKUI_Localizator.PassToArchive,
|
|
241
224
|
operationType: 'singleRow',
|
|
242
225
|
disabled: disabledForSingleRow(selectedItems, focusedItem),
|
|
243
226
|
onClick: async () => {
|
|
@@ -279,8 +262,8 @@ export const getCommandsMenuItems = (isMobile, dtd, allUsers, selectedItems, foc
|
|
|
279
262
|
// Determine whether the menu item should be disabled
|
|
280
263
|
const isDisabled = !canSubstitute || disabledForSingleRow(selectedItems, focusedItem) || !isPdf || isSigned;
|
|
281
264
|
return {
|
|
282
|
-
icon:
|
|
283
|
-
|
|
265
|
+
icon: _jsx(IconEdit, {}),
|
|
266
|
+
name: "PDF Editor",
|
|
284
267
|
operationType: 'singleRow',
|
|
285
268
|
disabled: isDisabled,
|
|
286
269
|
onClick: () => openEditPdfCallback(getSelectedDcmtsOrFocused(selectedItems, focusedItem)),
|
|
@@ -288,34 +271,34 @@ export const getCommandsMenuItems = (isMobile, dtd, allUsers, selectedItems, foc
|
|
|
288
271
|
};
|
|
289
272
|
const signatureMenuItem = () => {
|
|
290
273
|
return {
|
|
291
|
-
icon:
|
|
292
|
-
|
|
274
|
+
icon: _jsx(IconSignaturePencil, {}),
|
|
275
|
+
name: SDKUI_Localizator.Signature,
|
|
293
276
|
disabled: disabledForSingleRow(selectedItems, focusedItem) && disabledForMultiRow(selectedItems, focusedItem),
|
|
294
|
-
|
|
277
|
+
submenu: [
|
|
295
278
|
{
|
|
296
|
-
icon:
|
|
279
|
+
icon: _jsx(IconSignaturePencil, {}),
|
|
297
280
|
operationType: 'singleRow',
|
|
298
281
|
disabled: disabledForSingleRow(selectedItems, focusedItem),
|
|
299
|
-
|
|
282
|
+
name: SDKUI_Localizator.Signature,
|
|
300
283
|
onClick: handleSignApprove
|
|
301
284
|
},
|
|
302
285
|
/* {
|
|
303
|
-
icon:
|
|
286
|
+
icon: <IconSettings />,
|
|
304
287
|
operationType: 'singleRow',
|
|
305
288
|
disabled: disabledForSingleRow(selectedItems, focusedItem),
|
|
306
|
-
|
|
289
|
+
name: SDKUI_Localizator.SignatureSettings,
|
|
307
290
|
onClick: openSignSettingsForm
|
|
308
291
|
}, */
|
|
309
292
|
{
|
|
310
|
-
icon:
|
|
311
|
-
|
|
293
|
+
icon: _jsx(IconCircleInfo, {}),
|
|
294
|
+
name: SDKUI_Localizator.SignatureInformation,
|
|
312
295
|
operationType: 'singleRow',
|
|
313
296
|
disabled: disabledForSingleRow(selectedItems, focusedItem),
|
|
314
297
|
onClick: () => signatureInformationCallback(isMobile, getSelectedDcmtsOrFocused(selectedItems, focusedItem))
|
|
315
298
|
},
|
|
316
299
|
{
|
|
317
|
-
icon:
|
|
318
|
-
|
|
300
|
+
icon: _jsx(IconCheckIn, {}),
|
|
301
|
+
name: SDKUI_Localizator.VerifySignature,
|
|
319
302
|
operationType: 'multiRow',
|
|
320
303
|
disabled: disabledForMultiRow(selectedItems, focusedItem),
|
|
321
304
|
onClick: async () => { await runOperationAsync(getSelectedDcmtsOrFocused(selectedItems, focusedItem), DcmtOperationTypes.VerifySign); }
|
|
@@ -328,90 +311,90 @@ export const getCommandsMenuItems = (isMobile, dtd, allUsers, selectedItems, foc
|
|
|
328
311
|
const selectedDocs = getAllFieldSelectedDcmtsOrFocused(selectedItems, focusedItem);
|
|
329
312
|
// Take the first document (used for validation checks)
|
|
330
313
|
const firstDoc = selectedDocs?.[0];
|
|
331
|
-
const { cicoEnabled, checkoutStatus } =
|
|
314
|
+
const { cicoEnabled, checkoutStatus } = getDcmtCicoStatus(firstDoc, allUsers, dtd);
|
|
332
315
|
return {
|
|
333
|
-
icon:
|
|
334
|
-
|
|
316
|
+
icon: _jsx(IconFileDots, {}),
|
|
317
|
+
name: "Check in/Check out",
|
|
335
318
|
disabled: firstDoc === undefined || disabledForSingleRow(selectedItems, focusedItem),
|
|
336
|
-
|
|
319
|
+
submenu: [
|
|
337
320
|
{
|
|
338
|
-
icon: "edit",
|
|
339
|
-
|
|
321
|
+
icon: _jsx("span", { className: "dx-icon-edit" }),
|
|
322
|
+
name: 'Check out',
|
|
340
323
|
disabled: !cicoEnabled || checkoutStatus.isCheckedOut || disabledForSingleRow(selectedItems, focusedItem),
|
|
341
324
|
onClick: () => handleCheckOutOperationCallback(true),
|
|
342
325
|
},
|
|
343
|
-
|
|
344
|
-
icon: "unlock",
|
|
345
|
-
|
|
346
|
-
|
|
326
|
+
{
|
|
327
|
+
icon: _jsx("span", { className: "dx-icon-unlock" }),
|
|
328
|
+
name: 'Check in',
|
|
329
|
+
onClick: () => handleCheckInOperationCallback(),
|
|
347
330
|
disabled: !cicoEnabled || !checkoutStatus.isCheckedOut || checkoutStatus.mode === 'lockMode' || disabledForSingleRow(selectedItems, focusedItem)
|
|
348
|
-
},
|
|
331
|
+
},
|
|
349
332
|
{
|
|
350
|
-
icon: "remove",
|
|
351
|
-
|
|
333
|
+
icon: _jsx("span", { className: "dx-icon-remove" }),
|
|
334
|
+
name: SDKUI_Localizator.CancelCheckOut,
|
|
352
335
|
disabled: !cicoEnabled || !checkoutStatus.isCheckedOut || checkoutStatus.mode === 'lockMode' || disabledForSingleRow(selectedItems, focusedItem),
|
|
353
336
|
onClick: () => handleCheckOutOperationCallback(false),
|
|
354
337
|
},
|
|
355
338
|
{
|
|
356
|
-
icon: "
|
|
357
|
-
|
|
358
|
-
disabled: checkoutStatus.version === 1 || disabledForSingleRow(selectedItems, focusedItem),
|
|
359
|
-
onClick: viewHistoryCallback,
|
|
360
|
-
},
|
|
361
|
-
{
|
|
362
|
-
icon: "info",
|
|
363
|
-
text: SDKUI_Localizator.CheckoutInfo,
|
|
339
|
+
icon: _jsx("span", { className: "dx-icon-info" }),
|
|
340
|
+
name: SDKUI_Localizator.CheckoutInfo,
|
|
364
341
|
onClick: showCheckoutInformationFormCallback,
|
|
365
342
|
disabled: !checkoutStatus.isCheckedOut || disabledForSingleRow(selectedItems, focusedItem)
|
|
366
343
|
},
|
|
367
|
-
|
|
368
|
-
icon: "copy",
|
|
369
|
-
|
|
370
|
-
|
|
344
|
+
{
|
|
345
|
+
icon: _jsx("span", { className: "dx-icon-copy" }),
|
|
346
|
+
name: SDKUI_Localizator.CopyCheckoutPath,
|
|
347
|
+
onClick: copyCheckoutPathToClipboardOperationCallback,
|
|
371
348
|
disabled: !checkoutStatus.isCheckedOut || disabledForSingleRow(selectedItems, focusedItem)
|
|
372
|
-
},
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
icon: _jsx("span", { className: "dx-icon-clock" }),
|
|
352
|
+
name: SDKUI_Localizator.History,
|
|
353
|
+
disabled: !cicoEnabled || disabledForSingleRow(selectedItems, focusedItem),
|
|
354
|
+
onClick: viewHistoryCallback,
|
|
355
|
+
},
|
|
373
356
|
]
|
|
374
357
|
};
|
|
375
358
|
};
|
|
376
359
|
const relationsMenuItem = () => {
|
|
377
360
|
return {
|
|
378
|
-
icon:
|
|
379
|
-
|
|
361
|
+
icon: _jsx(IconRelation, {}),
|
|
362
|
+
name: SDKUI_Localizator.Relations,
|
|
380
363
|
operationType: 'multiRow',
|
|
381
364
|
disabled: disabledForMultiRow(selectedItems, focusedItem),
|
|
382
|
-
|
|
365
|
+
submenu: [
|
|
383
366
|
{
|
|
384
|
-
icon:
|
|
385
|
-
|
|
367
|
+
icon: _jsx(IconPair, {}),
|
|
368
|
+
name: SDKUI_Localizator.MatchManyDocumentsManyToMany,
|
|
386
369
|
operationType: 'multiRow',
|
|
387
370
|
disabled: !hasManyToManyRelation || disabledForMultiRow(selectedItems, focusedItem),
|
|
388
371
|
onClick: async () => await pairManyToManyDocuments?.(true)
|
|
389
372
|
},
|
|
390
373
|
{
|
|
391
|
-
icon:
|
|
392
|
-
|
|
374
|
+
icon: _jsx(IconUnpair, {}),
|
|
375
|
+
name: SDKUI_Localizator.UnmatchManyDocumentsManyToMany,
|
|
393
376
|
operationType: 'multiRow',
|
|
394
377
|
disabled: !hasManyToManyRelation || disabledForMultiRow(selectedItems, focusedItem),
|
|
395
378
|
onClick: async () => await pairManyToManyDocuments?.(false)
|
|
396
379
|
},
|
|
397
380
|
{
|
|
398
|
-
icon:
|
|
399
|
-
|
|
381
|
+
icon: _jsx(IconArchiveMaster, {}),
|
|
382
|
+
name: SDKUI_Localizator.ArchiveMasterDocument,
|
|
400
383
|
operationType: 'multiRow',
|
|
401
384
|
beginGroup: true,
|
|
402
385
|
disabled: canArchiveMasterRelation !== true,
|
|
403
386
|
onClick: async () => await archiveMasterDocuments?.(focusedItem?.TID)
|
|
404
387
|
},
|
|
405
388
|
{
|
|
406
|
-
icon:
|
|
407
|
-
|
|
389
|
+
icon: _jsx(IconArchiveDetail, {}),
|
|
390
|
+
name: SDKUI_Localizator.ArchiveDetailDocument,
|
|
408
391
|
operationType: 'multiRow',
|
|
409
392
|
disabled: canArchiveDetailRelation !== true,
|
|
410
393
|
onClick: async () => await archiveDetailDocuments?.(focusedItem?.TID)
|
|
411
394
|
},
|
|
412
395
|
{
|
|
413
|
-
icon:
|
|
414
|
-
|
|
396
|
+
icon: _jsx(IconDetailDcmts, { transform: 'scale(-1, 1)' }),
|
|
397
|
+
name: SDKUI_Localizator.DcmtsMaster,
|
|
415
398
|
operationType: 'singleRow',
|
|
416
399
|
visible: true,
|
|
417
400
|
beginGroup: true,
|
|
@@ -419,8 +402,8 @@ export const getCommandsMenuItems = (isMobile, dtd, allUsers, selectedItems, foc
|
|
|
419
402
|
onClick: () => openMasterDcmtsFormHandler?.(true)
|
|
420
403
|
},
|
|
421
404
|
{
|
|
422
|
-
icon:
|
|
423
|
-
|
|
405
|
+
icon: _jsx(IconDetailDcmts, {}),
|
|
406
|
+
name: SDKUI_Localizator.DcmtsDetail,
|
|
424
407
|
operationType: 'multiRow',
|
|
425
408
|
disabled: !hasDetailRelation || disabledForMultiRow(selectedItems, focusedItem),
|
|
426
409
|
visible: true,
|
|
@@ -431,21 +414,21 @@ export const getCommandsMenuItems = (isMobile, dtd, allUsers, selectedItems, foc
|
|
|
431
414
|
};
|
|
432
415
|
const sharedDcmtsMenuItem = () => {
|
|
433
416
|
return {
|
|
434
|
-
icon:
|
|
435
|
-
|
|
417
|
+
icon: _jsx(IconSharedDcmt, {}),
|
|
418
|
+
name: SDKUI_Localizator.SharedDocuments,
|
|
436
419
|
operationType: 'multiRow',
|
|
437
420
|
disabled: disabledForMultiRow(selectedItems, focusedItem),
|
|
438
|
-
|
|
421
|
+
submenu: [
|
|
439
422
|
{
|
|
440
|
-
icon:
|
|
441
|
-
|
|
423
|
+
icon: _jsx(IconSharedDcmt, {}),
|
|
424
|
+
name: SDKUI_Localizator.SharedArchiving,
|
|
442
425
|
operationType: 'singleRow',
|
|
443
426
|
disabled: disabledForSingleRow(selectedItems, focusedItem),
|
|
444
427
|
onClick: async () => { await openSharedArchiveHandler(); }
|
|
445
428
|
},
|
|
446
429
|
{
|
|
447
|
-
icon:
|
|
448
|
-
|
|
430
|
+
icon: _jsx(IconSharedDcmt, {}),
|
|
431
|
+
name: SDKUI_Localizator.ShowSharedDocuments,
|
|
449
432
|
operationType: 'multiRow',
|
|
450
433
|
disabled: disabledForSingleRow(selectedItems, focusedItem),
|
|
451
434
|
onClick: async () => { await showSharedDcmtsHandler(); }
|
|
@@ -453,23 +436,23 @@ export const getCommandsMenuItems = (isMobile, dtd, allUsers, selectedItems, foc
|
|
|
453
436
|
]
|
|
454
437
|
};
|
|
455
438
|
};
|
|
456
|
-
/* const shareMenuItem = ():
|
|
439
|
+
/* const shareMenuItem = (): TMContextMenuItemProps => {
|
|
457
440
|
return {
|
|
458
|
-
icon:
|
|
459
|
-
|
|
441
|
+
icon: <IconShare />,
|
|
442
|
+
name: "Condivisione",
|
|
460
443
|
operationType: 'multiRow',
|
|
461
444
|
disabled: fromDatagrid ? false : disabledForMultiRow(selectedItems, focusedItem),
|
|
462
|
-
|
|
445
|
+
submenu: [
|
|
463
446
|
{
|
|
464
|
-
icon:
|
|
465
|
-
|
|
447
|
+
icon: <IconShare />,
|
|
448
|
+
name: "Archiviazione condivisa",
|
|
466
449
|
operationType: 'multiRow',
|
|
467
450
|
disabled: fromDatagrid ? false : disabledForMultiRow(selectedItems, focusedItem),
|
|
468
451
|
onClick: () => ShowAlert({ message: "TODO Archiviazione condivisa", mode: 'info', title: `${"TODO"}`, duration: 3000 })
|
|
469
452
|
},
|
|
470
453
|
{
|
|
471
|
-
icon:
|
|
472
|
-
|
|
454
|
+
icon: <IconSharedDcmt />,
|
|
455
|
+
name: "Documenti condivisi",
|
|
473
456
|
operationType: 'multiRow',
|
|
474
457
|
disabled: fromDatagrid ? false : disabledForMultiRow(selectedItems, focusedItem),
|
|
475
458
|
onClick: () => ShowAlert({ message: "TODO Documenti condivisi", mode: 'info', title: `${"TODO"}`, duration: 3000 })
|
|
@@ -479,14 +462,14 @@ export const getCommandsMenuItems = (isMobile, dtd, allUsers, selectedItems, foc
|
|
|
479
462
|
} */
|
|
480
463
|
const fullTextSearchMenuItem = () => {
|
|
481
464
|
return {
|
|
482
|
-
icon:
|
|
483
|
-
|
|
465
|
+
icon: _jsx(IconSearch, {}),
|
|
466
|
+
name: SDKUI_Localizator.FullTextSearch,
|
|
484
467
|
operationType: 'multiRow',
|
|
485
468
|
disabled: disabledForMultiRow(selectedItems, focusedItem),
|
|
486
|
-
|
|
469
|
+
submenu: [
|
|
487
470
|
{
|
|
488
|
-
icon:
|
|
489
|
-
|
|
471
|
+
icon: _jsx(IconInfo, {}),
|
|
472
|
+
name: SDKUI_Localizator.IndexingInformation,
|
|
490
473
|
operationType: 'singleRow',
|
|
491
474
|
disabled: disabledForSingleRow(selectedItems, focusedItem),
|
|
492
475
|
onClick: async () => {
|
|
@@ -505,23 +488,23 @@ export const getCommandsMenuItems = (isMobile, dtd, allUsers, selectedItems, foc
|
|
|
505
488
|
}
|
|
506
489
|
},
|
|
507
490
|
{
|
|
508
|
-
icon:
|
|
509
|
-
|
|
491
|
+
icon: _jsx(IconArchiveDoc, {}),
|
|
492
|
+
name: SDKUI_Localizator.IndexOrReindex,
|
|
510
493
|
operationType: 'multiRow',
|
|
511
494
|
disabled: disabledForMultiRow(selectedItems, focusedItem),
|
|
512
495
|
onClick: async () => { await runOperationAsync(getSelectedDcmtsOrFocused(selectedItems, focusedItem), DcmtOperationTypes.FreeSearchReindex); }
|
|
513
496
|
},
|
|
514
497
|
{
|
|
515
|
-
icon:
|
|
516
|
-
|
|
498
|
+
icon: _jsx(IconDelete, {}),
|
|
499
|
+
name: SDKUI_Localizator.IndexingDelete,
|
|
517
500
|
operationType: 'multiRow',
|
|
518
501
|
disabled: disabledForMultiRow(selectedItems, focusedItem),
|
|
519
502
|
onClick: async () => { await runOperationAsync(getSelectedDcmtsOrFocused(selectedItems, focusedItem), DcmtOperationTypes.FreeSearchPurge); }
|
|
520
503
|
},
|
|
521
504
|
...(focusedItem?.FTExplanations !== undefined
|
|
522
505
|
? [{
|
|
523
|
-
icon:
|
|
524
|
-
|
|
506
|
+
icon: _jsx(IconPlatform, {}),
|
|
507
|
+
name: SDKUI_Localizator.ResultDetails,
|
|
525
508
|
operationType: 'singleRow',
|
|
526
509
|
disabled: disabledForSingleRow(selectedItems, focusedItem),
|
|
527
510
|
onClick: () => {
|
|
@@ -533,53 +516,53 @@ export const getCommandsMenuItems = (isMobile, dtd, allUsers, selectedItems, foc
|
|
|
533
516
|
};
|
|
534
517
|
const otherMenuItem = () => {
|
|
535
518
|
return {
|
|
536
|
-
icon:
|
|
537
|
-
|
|
538
|
-
|
|
519
|
+
icon: _jsx(IconDotsVerticalCircleOutline, {}),
|
|
520
|
+
name: SDKUI_Localizator.Other,
|
|
521
|
+
submenu: [
|
|
539
522
|
{
|
|
540
|
-
icon:
|
|
541
|
-
|
|
523
|
+
icon: _jsx(IconSearch, {}),
|
|
524
|
+
name: showSearch ? SDKUI_Localizator.HideSearch : SDKUI_Localizator.ShowSearch,
|
|
542
525
|
disabled: false,
|
|
543
526
|
onClick: handleToggleSearch
|
|
544
527
|
},
|
|
545
528
|
{
|
|
546
|
-
icon:
|
|
547
|
-
|
|
529
|
+
icon: _jsx(IconExportTo, {}),
|
|
530
|
+
name: SDKUI_Localizator.ExportTo,
|
|
548
531
|
operationType: 'multiRow',
|
|
549
532
|
disabled: false,
|
|
550
533
|
onClick: openExportForm
|
|
551
534
|
},
|
|
552
535
|
// {
|
|
553
|
-
// icon:
|
|
554
|
-
//
|
|
536
|
+
// icon: <IconShow />,
|
|
537
|
+
// name: "Mostra footer",
|
|
555
538
|
// disabled: false,
|
|
556
539
|
// onClick: () => ShowAlert({ message: "TODO Mostra footer", mode: 'info', title: `${"TODO"}`, duration: 3000 })
|
|
557
540
|
// },
|
|
558
541
|
{
|
|
559
|
-
icon:
|
|
560
|
-
|
|
542
|
+
icon: showFloatingBar ? _jsx(IconHide, {}) : _jsx(IconShow, {}),
|
|
543
|
+
name: showFloatingBar ? SDKUI_Localizator.HideFloatingBar : SDKUI_Localizator.ShowFloatingBar,
|
|
561
544
|
disabled: false,
|
|
562
545
|
onClick: () => setShowFloatingBar(!showFloatingBar)
|
|
563
546
|
},
|
|
564
547
|
// {
|
|
565
|
-
// icon:
|
|
566
|
-
//
|
|
548
|
+
// icon: <IconSave />,
|
|
549
|
+
// name: "Salva layout",
|
|
567
550
|
// disabled: false,
|
|
568
551
|
// onClick: () => ShowAlert({ message: "TODO Salva layout", mode: 'info', title: `${"TODO"}`, duration: 3000 })
|
|
569
552
|
// },
|
|
570
553
|
// {
|
|
571
|
-
// icon:
|
|
572
|
-
//
|
|
573
|
-
//
|
|
554
|
+
// icon: <IconSearch />,
|
|
555
|
+
// name: "Trova tutti i riferimenti",
|
|
556
|
+
// submenu: [
|
|
574
557
|
// {
|
|
575
|
-
// icon:
|
|
576
|
-
//
|
|
558
|
+
// icon: <IconSearch />,
|
|
559
|
+
// name: "Trova tutti i riferimenti",
|
|
577
560
|
// disabled: false,
|
|
578
561
|
// onClick: () => ShowAlert({ message: "TODO Trova tutti i riferimenti", mode: 'info', title: `${"TODO"}`, duration: 3000 })
|
|
579
562
|
// },
|
|
580
563
|
// {
|
|
581
|
-
// icon:
|
|
582
|
-
//
|
|
564
|
+
// icon: <IconSearch />,
|
|
565
|
+
// name: "Trova tutti i riferimenti (anche nello storico)",
|
|
583
566
|
// disabled: false,
|
|
584
567
|
// onClick: () => ShowAlert({ message: "TODO Trova tutti i riferimenti (anche nello storico)", mode: 'info', title: `${"TODO"}`, duration: 3000 })
|
|
585
568
|
// },
|
|
@@ -590,8 +573,8 @@ export const getCommandsMenuItems = (isMobile, dtd, allUsers, selectedItems, foc
|
|
|
590
573
|
};
|
|
591
574
|
const shareFromWgMenuItem = () => {
|
|
592
575
|
return {
|
|
593
|
-
icon:
|
|
594
|
-
|
|
576
|
+
icon: _jsx(IconShare, {}),
|
|
577
|
+
name: SDKUI_Localizator.Share,
|
|
595
578
|
visible: workingGroupContext !== undefined && openAddDocumentForm !== undefined,
|
|
596
579
|
disabled: workingGroupContext === undefined,
|
|
597
580
|
onClick: () => openAddDocumentForm && openAddDocumentForm(),
|
|
@@ -599,8 +582,8 @@ export const getCommandsMenuItems = (isMobile, dtd, allUsers, selectedItems, foc
|
|
|
599
582
|
};
|
|
600
583
|
const copyFromWgMenuItem = () => {
|
|
601
584
|
return {
|
|
602
|
-
icon:
|
|
603
|
-
|
|
585
|
+
icon: _jsx(IconCopy, {}),
|
|
586
|
+
name: SDKUI_Localizator.CopyToDrafts,
|
|
604
587
|
operationType: 'multiRow',
|
|
605
588
|
visible: openWGsCopyMoveForm !== undefined,
|
|
606
589
|
disabled: disabledForMultiRow(selectedItems, focusedItem),
|
|
@@ -609,8 +592,8 @@ export const getCommandsMenuItems = (isMobile, dtd, allUsers, selectedItems, foc
|
|
|
609
592
|
};
|
|
610
593
|
const movetofolderFromWgMenuItem = () => {
|
|
611
594
|
return {
|
|
612
|
-
icon:
|
|
613
|
-
|
|
595
|
+
icon: _jsx(IconMoveToFolder, {}),
|
|
596
|
+
name: !isMobile ? SDKUI_Localizator.CopyToArchivedDocuments : SDKUI_Localizator.CopyToArchived,
|
|
614
597
|
operationType: 'multiRow',
|
|
615
598
|
visible: openWGsCopyMoveForm !== undefined,
|
|
616
599
|
disabled: disabledForMultiRow(selectedItems, focusedItem),
|
|
@@ -619,8 +602,8 @@ export const getCommandsMenuItems = (isMobile, dtd, allUsers, selectedItems, foc
|
|
|
619
602
|
};
|
|
620
603
|
const commentFromWgMenuItem = (beginGroup) => {
|
|
621
604
|
return {
|
|
622
|
-
icon: "chat",
|
|
623
|
-
|
|
605
|
+
icon: _jsx("span", { className: "dx-icon-chat" }),
|
|
606
|
+
name: SDKUI_Localizator.Comment,
|
|
624
607
|
operationType: 'multiRow',
|
|
625
608
|
visible: workingGroupContext !== undefined && openCommentFormCallback !== undefined,
|
|
626
609
|
disabled: workingGroupContext === undefined || disabledForMultiRow(selectedItems, focusedItem),
|
|
@@ -628,10 +611,10 @@ export const getCommandsMenuItems = (isMobile, dtd, allUsers, selectedItems, foc
|
|
|
628
611
|
beginGroup: beginGroup,
|
|
629
612
|
};
|
|
630
613
|
};
|
|
631
|
-
const removeFromWgMenuItem = (
|
|
614
|
+
const removeFromWgMenuItem = (name) => {
|
|
632
615
|
return {
|
|
633
|
-
icon:
|
|
634
|
-
|
|
616
|
+
icon: _jsx(IconDelete, {}),
|
|
617
|
+
name: name,
|
|
635
618
|
operationType: 'multiRow',
|
|
636
619
|
visible: workingGroupContext !== undefined,
|
|
637
620
|
disabled: workingGroupContext === undefined || disabledForMultiRow(selectedItems, focusedItem),
|
|
@@ -658,16 +641,16 @@ export const getCommandsMenuItems = (isMobile, dtd, allUsers, selectedItems, foc
|
|
|
658
641
|
commentFromWgMenuItem(false),
|
|
659
642
|
removeFromWgMenuItem(SDKUI_Localizator.RemoveFromWorkgroup),
|
|
660
643
|
];
|
|
661
|
-
return items.sort((a, b) => a.
|
|
644
|
+
return items.sort((a, b) => a.name.localeCompare(b.name));
|
|
662
645
|
};
|
|
663
646
|
// MENU STANDARD
|
|
664
647
|
const getDefaultMenuItems = () => {
|
|
665
648
|
return [
|
|
666
649
|
{
|
|
667
|
-
icon:
|
|
668
|
-
|
|
650
|
+
icon: _jsx(IconFileDots, {}),
|
|
651
|
+
name: !isMobile ? SDKUI_Localizator.DocumentOperations : SDKUI_Localizator.Documents,
|
|
669
652
|
disabled: disabledForSingleRow(selectedItems, focusedItem) && disabledForMultiRow(selectedItems, focusedItem),
|
|
670
|
-
|
|
653
|
+
submenu: [
|
|
671
654
|
addToFavoriteMenuItem(),
|
|
672
655
|
addReplaceFileMenuItem(),
|
|
673
656
|
openFormMenuItem(),
|
|
@@ -684,20 +667,20 @@ export const getCommandsMenuItems = (isMobile, dtd, allUsers, selectedItems, foc
|
|
|
684
667
|
]
|
|
685
668
|
},
|
|
686
669
|
signatureMenuItem(),
|
|
687
|
-
|
|
670
|
+
checkinMenuItem(),
|
|
688
671
|
relationsMenuItem(),
|
|
689
672
|
sharedDcmtsMenuItem(),
|
|
690
673
|
// shareMenuItem(),
|
|
691
674
|
fullTextSearchMenuItem(),
|
|
692
675
|
otherMenuItem(),
|
|
693
676
|
{
|
|
694
|
-
icon:
|
|
695
|
-
|
|
677
|
+
icon: _jsx(IconUserGroupOutline, {}),
|
|
678
|
+
name: !isMobile ? SDKUI_Localizator.WorkgroupOperations : SDKUI_Localizator.WorkingGroups,
|
|
696
679
|
operationType: 'multiRow',
|
|
697
680
|
visible: openWGsCopyMoveForm !== undefined || workingGroupContext !== undefined,
|
|
698
681
|
disabled: disabledForMultiRow(selectedItems, focusedItem),
|
|
699
682
|
beginGroup: true,
|
|
700
|
-
|
|
683
|
+
submenu: [
|
|
701
684
|
shareFromWgMenuItem(),
|
|
702
685
|
copyFromWgMenuItem(),
|
|
703
686
|
movetofolderFromWgMenuItem(),
|