@topconsultnpm/sdkui-react 6.20.0-dev1.10 → 6.20.0-dev1.101
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/assets/Toppy-help-center.png +0 -0
- package/lib/components/NewComponents/ContextMenu/TMContextMenu.d.ts +4 -0
- package/lib/components/NewComponents/ContextMenu/TMContextMenu.js +441 -0
- package/lib/components/NewComponents/ContextMenu/hooks.d.ts +18 -0
- package/lib/components/NewComponents/ContextMenu/hooks.js +120 -0
- package/lib/components/NewComponents/ContextMenu/index.d.ts +5 -0
- package/lib/components/NewComponents/ContextMenu/index.js +3 -0
- package/lib/components/NewComponents/ContextMenu/styles.d.ts +35 -0
- package/lib/components/NewComponents/ContextMenu/styles.js +428 -0
- package/lib/components/NewComponents/ContextMenu/types.d.ts +39 -0
- package/lib/components/NewComponents/ContextMenu/types.js +1 -0
- package/lib/components/NewComponents/ContextMenu/useLongPress.d.ts +21 -0
- package/lib/components/NewComponents/ContextMenu/useLongPress.js +112 -0
- package/lib/components/NewComponents/FloatingMenuBar/TMFloatingMenuBar.d.ts +4 -0
- package/lib/components/NewComponents/FloatingMenuBar/TMFloatingMenuBar.js +821 -0
- package/lib/components/NewComponents/FloatingMenuBar/index.d.ts +2 -0
- package/lib/components/NewComponents/FloatingMenuBar/index.js +2 -0
- package/lib/components/NewComponents/FloatingMenuBar/styles.d.ts +54 -0
- package/lib/components/NewComponents/FloatingMenuBar/styles.js +419 -0
- package/lib/components/NewComponents/FloatingMenuBar/types.d.ts +36 -0
- package/lib/components/NewComponents/FloatingMenuBar/types.js +1 -0
- package/lib/components/base/TMAccordionNew.js +35 -14
- package/lib/components/base/TMCustomButton.js +61 -17
- package/lib/components/base/TMDataGrid.d.ts +7 -4
- package/lib/components/base/TMDataGrid.js +153 -11
- package/lib/components/base/TMDropDownMenu.js +19 -18
- package/lib/components/base/TMFileManager.d.ts +4 -3
- package/lib/components/base/TMFileManager.js +32 -24
- package/lib/components/base/TMFileManagerDataGridView.d.ts +3 -2
- package/lib/components/base/TMFileManagerDataGridView.js +1 -11
- package/lib/components/base/TMFileManagerThumbnailItems.d.ts +7 -1
- package/lib/components/base/TMFileManagerThumbnailItems.js +5 -2
- package/lib/components/base/TMFileManagerThumbnailsView.d.ts +17 -4
- package/lib/components/base/TMFileManagerThumbnailsView.js +18 -6
- package/lib/components/base/TMFileManagerUtils.d.ts +0 -12
- package/lib/components/base/TMListView.js +33 -15
- package/lib/components/base/TMPanel.d.ts +1 -1
- package/lib/components/base/TMPanel.js +1 -1
- package/lib/components/choosers/TMDistinctValues.js +1 -1
- package/lib/components/choosers/TMInvoiceRetrieveFormats.js +1 -1
- package/lib/components/choosers/TMMetadataChooser.js +8 -1
- package/lib/components/choosers/TMOrderRetrieveFormats.js +1 -1
- package/lib/components/choosers/TMUserChooser.d.ts +0 -5
- package/lib/components/choosers/TMUserChooser.js +25 -45
- package/lib/components/editors/TMDateBox.js +18 -9
- package/lib/components/editors/TMMetadataValues.js +23 -5
- package/lib/components/editors/TMTextArea.js +18 -30
- package/lib/components/editors/TMTextBox.js +6 -3
- package/lib/components/features/archive/TMArchive.js +2 -2
- package/lib/components/features/assistant/TMToppyDraggableHelpCenter.d.ts +15 -0
- package/lib/components/features/assistant/TMToppyDraggableHelpCenter.js +460 -0
- package/lib/components/features/assistant/TMToppySpeechBubble.d.ts +11 -0
- package/lib/components/features/assistant/TMToppySpeechBubble.js +126 -0
- package/lib/components/features/documents/TMDcmtForm.d.ts +14 -2
- package/lib/components/features/documents/TMDcmtForm.js +457 -206
- package/lib/components/features/documents/TMDcmtPreview.js +45 -108
- package/lib/components/features/documents/TMDcmtTasks.js +9 -9
- package/lib/components/features/documents/TMMasterDetailDcmts.js +38 -53
- package/lib/components/features/documents/TMRelationViewer.d.ts +1 -1
- package/lib/components/features/documents/TMRelationViewer.js +2 -2
- package/lib/components/features/search/TMDcmtCheckoutInfoForm.d.ts +8 -0
- package/lib/components/features/search/{TMSearchResultCheckoutInfoForm.js → TMDcmtCheckoutInfoForm.js} +2 -2
- package/lib/components/features/search/TMSavedQuerySelector.js +72 -67
- package/lib/components/features/search/TMSearch.d.ts +3 -0
- package/lib/components/features/search/TMSearch.js +50 -11
- package/lib/components/features/search/TMSearchQueryPanel.d.ts +1 -0
- package/lib/components/features/search/TMSearchQueryPanel.js +29 -21
- package/lib/components/features/search/TMSearchResult.d.ts +3 -0
- package/lib/components/features/search/TMSearchResult.js +208 -250
- package/lib/components/features/search/TMSearchResultsMenuItems.d.ts +3 -3
- package/lib/components/features/search/TMSearchResultsMenuItems.js +205 -169
- package/lib/components/features/search/TMSignSettingsForm.js +1 -1
- package/lib/components/features/search/TMSignatureInfoContent.d.ts +6 -0
- package/lib/components/features/search/TMSignatureInfoContent.js +140 -0
- package/lib/components/features/search/TMViewHistoryDcmt.js +2 -2
- package/lib/components/features/tasks/TMTaskForm.js +20 -1
- package/lib/components/features/tasks/TMTasksAgenda.d.ts +3 -1
- package/lib/components/features/tasks/TMTasksAgenda.js +48 -9
- package/lib/components/features/tasks/TMTasksCalendar.d.ts +2 -0
- package/lib/components/features/tasks/TMTasksCalendar.js +19 -7
- package/lib/components/features/tasks/TMTasksUtils.d.ts +2 -2
- package/lib/components/features/tasks/TMTasksUtils.js +43 -36
- package/lib/components/features/tasks/TMTasksView.js +28 -19
- package/lib/components/features/workflow/TMWorkflowPopup.d.ts +33 -2
- package/lib/components/features/workflow/TMWorkflowPopup.js +139 -34
- package/lib/components/features/workflow/diagram/DiagramItemComponent.d.ts +2 -0
- package/lib/components/features/workflow/diagram/DiagramItemComponent.js +12 -7
- package/lib/components/features/workflow/diagram/RecipientList.js +3 -2
- package/lib/components/features/workflow/diagram/WFDiagram.d.ts +4 -0
- package/lib/components/features/workflow/diagram/WFDiagram.js +164 -13
- 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/components/forms/TMChooserForm.js +1 -1
- package/lib/components/grids/TMBlogsPost.js +56 -31
- package/lib/components/grids/TMRecentsManager.js +20 -10
- package/lib/components/index.d.ts +5 -3
- package/lib/components/index.js +5 -3
- package/lib/components/query/TMQueryEditor.d.ts +2 -1
- package/lib/components/query/TMQueryEditor.js +92 -92
- package/lib/components/settings/SettingsAppearance.d.ts +2 -1
- package/lib/components/settings/SettingsAppearance.js +99 -30
- package/lib/components/viewers/TMDataListItemViewer.d.ts +2 -1
- package/lib/components/viewers/TMDataListItemViewer.js +35 -71
- package/lib/components/viewers/TMDataUserIdItemViewer.d.ts +8 -0
- package/lib/components/viewers/TMDataUserIdItemViewer.js +39 -0
- package/lib/css/tm-sdkui.css +1 -1
- package/lib/helper/SDKUI_Globals.d.ts +22 -0
- package/lib/helper/SDKUI_Globals.js +10 -1
- package/lib/helper/SDKUI_Localizator.d.ts +17 -1
- package/lib/helper/SDKUI_Localizator.js +167 -1
- package/lib/helper/TMCommandsContextMenu.d.ts +4 -2
- package/lib/helper/TMCommandsContextMenu.js +15 -4
- package/lib/helper/TMIcons.d.ts +4 -0
- package/lib/helper/TMIcons.js +13 -3
- package/lib/helper/TMPdfViewer.d.ts +8 -0
- package/lib/helper/TMPdfViewer.js +373 -0
- package/lib/helper/checkinCheckoutManager.d.ts +31 -1
- package/lib/helper/checkinCheckoutManager.js +112 -30
- package/lib/helper/devextremeCustomMessages.d.ts +30 -0
- package/lib/helper/devextremeCustomMessages.js +30 -0
- package/lib/helper/helpers.d.ts +3 -1
- package/lib/helper/helpers.js +25 -3
- package/lib/helper/index.d.ts +2 -0
- package/lib/helper/index.js +2 -0
- package/lib/helper/queryHelper.d.ts +1 -1
- package/lib/helper/queryHelper.js +33 -3
- package/lib/helper/workItemsHelper.d.ts +6 -0
- package/lib/helper/workItemsHelper.js +230 -0
- package/lib/hooks/useCheckInOutOperations.d.ts +28 -0
- package/lib/hooks/useCheckInOutOperations.js +223 -0
- package/lib/hooks/useDataListItem.d.ts +12 -0
- package/lib/hooks/useDataListItem.js +132 -0
- package/lib/hooks/useDataUserIdItem.d.ts +10 -0
- package/lib/hooks/useDataUserIdItem.js +96 -0
- package/lib/hooks/useSettingsFeedback.d.ts +11 -0
- package/lib/hooks/useSettingsFeedback.js +38 -0
- package/lib/hooks/useWorkflowApprove.d.ts +4 -0
- package/lib/hooks/useWorkflowApprove.js +14 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -2
- package/lib/services/platform_services.d.ts +3 -3
- package/lib/ts/types.d.ts +61 -1
- package/lib/utils/theme.d.ts +1 -1
- package/lib/utils/theme.js +1 -1
- package/package.json +7 -4
- package/lib/components/base/TMContextMenu.d.ts +0 -25
- package/lib/components/base/TMContextMenu.js +0 -109
- package/lib/components/base/TMContextMenuOLD.d.ts +0 -26
- package/lib/components/base/TMContextMenuOLD.js +0 -56
- package/lib/components/base/TMFloatingToolbar.d.ts +0 -9
- package/lib/components/base/TMFloatingToolbar.js +0 -101
- package/lib/components/features/assistant/ToppyDraggableHelpCenter.d.ts +0 -30
- package/lib/components/features/assistant/ToppyDraggableHelpCenter.js +0 -482
- package/lib/components/features/assistant/ToppySpeechBubble.d.ts +0 -9
- package/lib/components/features/assistant/ToppySpeechBubble.js +0 -117
- package/lib/components/features/search/TMSearchResultCheckoutInfoForm.d.ts +0 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { AccessLevels, CICO_MetadataNames, SDK_Globals } from "@topconsultnpm/sdk-ts";
|
|
2
|
+
import { AccessLevels, CICO_MetadataNames, SDK_Globals, SystemMIDsAsNumber } from "@topconsultnpm/sdk-ts";
|
|
3
3
|
import TMTooltip from "../components/base/TMTooltip";
|
|
4
4
|
import { Globalization, SDKUI_Globals, SDKUI_Localizator } from "./index";
|
|
5
5
|
import { DownloadTypes } from "../ts/types";
|
|
@@ -191,7 +191,7 @@ export const renderCicoCheckInContent = (source, selectedFilename, isValid, vali
|
|
|
191
191
|
const fileName = source.type === 'fileItem' ? source.fileItem.name : (source.dcmtInfo.fileName ?? SDKUI_Localizator.SearchResult);
|
|
192
192
|
return _jsxs("div", { style: { width: "100%", height: "100%" }, children: [SDKUI_Localizator.CheckInElementConfirm.replaceParams(fileName), !isValid && _jsxs("div", { style: { width: "100%", height: "100%", marginTop: '15px' }, children: [_jsxs("div", { style: { display: 'flex', flexDirection: 'column' }, children: [_jsx("div", { style: { fontSize: '12px', color, marginBottom: '12px' }, children: SDKUI_Localizator.ElementNameConventionError }), _jsxs("div", { style: { display: 'flex', flexDirection: 'column', gap: '6px' }, children: [_jsxs("div", { style: { color }, children: [_jsx("strong", { style: { color }, children: SDKUI_Localizator.Expected }), ":", ' ', _jsx("span", { style: { fontStyle: 'italic' }, children: getCicoDownloadFileName(source, true, false) })] }), _jsxs("div", { style: { color }, children: [_jsx("strong", { style: { color }, children: SDKUI_Localizator.SelectedSingular }), ":", ' ', _jsx("span", { style: { fontStyle: 'italic' }, children: selectedFilename.name })] })] })] }), validationItems && Object.entries(validationItems).filter(([_, value]) => !value.isValid).length > 0 && (_jsxs("div", { style: { width: "100%", height: "100%", marginTop: '15px' }, children: [_jsx("hr", {}), _jsxs("table", { style: { width: "100%", borderCollapse: "collapse", color }, children: [_jsx("caption", { style: { textAlign: "center", fontWeight: "bold", marginBottom: "5px" }, children: SDKUI_Localizator.Anomalies }), _jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { style: { textAlign: "left", borderBottom: "1px solid #eee" }, children: SDKUI_Localizator.Value }), _jsx("th", { style: { textAlign: "left", borderBottom: "1px solid #eee" }, children: SDKUI_Localizator.Expected }), _jsx("th", { style: { textAlign: "left", borderBottom: "1px solid #eee" }, children: SDKUI_Localizator.Current })] }) }), _jsx("tbody", { children: Object.entries(validationItems).filter(([_, value]) => !value.isValid).map(([key, result]) => (_jsxs("tr", { children: [_jsx("td", { style: { borderBottom: "1px solid #eee" }, children: _jsx("strong", { style: { textTransform: "capitalize" }, children: key }) }), _jsxs("td", { style: { borderBottom: "1px solid #eee" }, children: [" ", result.expected || "-"] }), _jsxs("td", { style: { borderBottom: "1px solid #eee" }, children: [" ", result.current || "-"] })] }, key))) })] }), _jsx("hr", {})] })), _jsx("div", { style: { fontSize: '12px', marginTop: '15px', marginBottom: '15px' }, children: SDKUI_Localizator.ProceedAnyway })] })] });
|
|
193
193
|
};
|
|
194
|
-
const getDcmtCicoInfo = (dtd) => {
|
|
194
|
+
export const getDcmtCicoInfo = (dtd) => {
|
|
195
195
|
const cico = {
|
|
196
196
|
CICO: 0,
|
|
197
197
|
CanCICO: AccessLevels.No,
|
|
@@ -210,57 +210,139 @@ const getDcmtCicoInfo = (dtd) => {
|
|
|
210
210
|
cico.CanDelChronology = dtd.perm?.canDelChron ?? AccessLevels.No;
|
|
211
211
|
const mdCheckout = dtd.metadata?.find(md => md.name === CICO_MetadataNames.CICO_CheckoutUserID);
|
|
212
212
|
if (mdCheckout) {
|
|
213
|
-
cico.UserID_MID = mdCheckout.
|
|
213
|
+
cico.UserID_MID = mdCheckout.id;
|
|
214
214
|
cico.UserID_CanViewOrUpdate = (mdCheckout.perm?.canView == AccessLevels.Yes || mdCheckout.perm?.canUpdate == AccessLevels.Yes) ? AccessLevels.Yes : AccessLevels.No;
|
|
215
215
|
}
|
|
216
216
|
const mdDate = dtd.metadata?.find(md => md.name === CICO_MetadataNames.CICO_CheckoutDate);
|
|
217
217
|
if (mdDate) {
|
|
218
|
-
cico.Date_MID = mdDate.
|
|
218
|
+
cico.Date_MID = mdDate.id;
|
|
219
219
|
cico.Date_CanViewOrUpdate = (mdDate.perm?.canView == AccessLevels.Yes || mdDate.perm?.canUpdate == AccessLevels.Yes) ? AccessLevels.Yes : AccessLevels.No;
|
|
220
220
|
}
|
|
221
221
|
const mdVer = dtd.metadata?.find(md => md.name === CICO_MetadataNames.CICO_Version);
|
|
222
222
|
if (mdVer) {
|
|
223
|
-
cico.Ver_MID = mdVer.
|
|
223
|
+
cico.Ver_MID = mdVer.id;
|
|
224
224
|
cico.Ver_CanViewOrUpdate = (mdVer.perm?.canView == AccessLevels.Yes || mdVer.perm?.canUpdate == AccessLevels.Yes) ? AccessLevels.Yes : AccessLevels.No;
|
|
225
225
|
}
|
|
226
226
|
return cico;
|
|
227
227
|
};
|
|
228
|
+
/**
|
|
229
|
+
* Determina lo stato di check-in/check-out di un documento
|
|
230
|
+
*
|
|
231
|
+
* @param dcmt - Il documento in formato array (MetadataValueDescriptorEx[]) o oggetto piatto
|
|
232
|
+
* @param allUsers - Lista di tutti gli utenti per risolvere i nomi
|
|
233
|
+
* @param dtd - Descrittore del tipo documento contenente le definizioni dei metadati CICO
|
|
234
|
+
* @returns Oggetto con cicoEnabled (se CICO è abilitato) e checkoutStatus (dettagli dello stato)
|
|
235
|
+
*/
|
|
228
236
|
export const getDcmtCicoStatus = (dcmt, allUsers, dtd) => {
|
|
237
|
+
// ========================================================================
|
|
238
|
+
// VALIDAZIONE PARAMETRI
|
|
239
|
+
// ========================================================================
|
|
240
|
+
// Se i parametri essenziali non sono forniti, ritorna stato di default
|
|
229
241
|
if (dcmt === undefined || dtd === undefined) {
|
|
230
242
|
return {
|
|
231
243
|
cicoEnabled: false,
|
|
232
|
-
checkoutStatus: { isCheckedOut: false, mode: '', version: 1, icon: null }
|
|
244
|
+
checkoutStatus: { isCheckedOut: false, mode: '', version: 1, icon: null, editLockTooltipText: null }
|
|
233
245
|
};
|
|
234
246
|
}
|
|
247
|
+
// ========================================================================
|
|
248
|
+
// ESTRAZIONE INFORMAZIONI CICO DAL DTD
|
|
249
|
+
// ========================================================================
|
|
250
|
+
// Recupera le configurazioni e permessi CICO dal tipo documento
|
|
235
251
|
const cicoInfo = getDcmtCicoInfo(dtd);
|
|
236
|
-
const CICO_CheckoutUserID_Meta = dtd?.metadata?.find(md => md.name === CICO_MetadataNames.CICO_CheckoutUserID);
|
|
237
|
-
const CICO_CheckoutDate_Meta = dtd?.metadata?.find(md => md.name === CICO_MetadataNames.CICO_CheckoutDate);
|
|
238
|
-
const CICO_Version_Meta = dtd?.metadata?.find(md => md.name === CICO_MetadataNames.CICO_Version);
|
|
239
|
-
const keyVersion = dcmt.TID + "_" + (CICO_Version_Meta?.id ?? 0);
|
|
240
|
-
const versionRaw = CICO_Version_Meta?.id ? dcmt[keyVersion] : undefined;
|
|
241
|
-
const version = (versionRaw != null && !isNaN(Number(versionRaw))) ? Number(versionRaw) : 1;
|
|
242
|
-
let checkoutStatus = { isCheckedOut: false, mode: '', version: version, icon: null, };
|
|
243
252
|
const userID = SDK_Globals.tmSession?.SessionDescr?.userID;
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
253
|
+
// Variabili comuni per entrambi i formati di documento
|
|
254
|
+
let checkoutUserId;
|
|
255
|
+
let checkoutDate;
|
|
256
|
+
let version = 1;
|
|
257
|
+
let fileExt;
|
|
258
|
+
// ========================================================================
|
|
259
|
+
// CASO 1: Documento come Array di MetadataValueDescriptorEx
|
|
260
|
+
// ========================================================================
|
|
261
|
+
// Questo formato viene utilizzato quando il documento proviene da query
|
|
262
|
+
// o liste dove ogni metadato è un oggetto separato con proprietà 'md' e 'value'
|
|
263
|
+
if (Array.isArray(dcmt) && dcmt.length > 0 && dcmt[0]?.md !== undefined) {
|
|
264
|
+
const dcmtsArray = dcmt;
|
|
265
|
+
// Estrai l'ID dell'utente che ha effettuato il checkout
|
|
266
|
+
const checkoutUserIdProperty = dcmtsArray.find((item) => item.md?.name === CICO_MetadataNames.CICO_CheckoutUserID);
|
|
267
|
+
const checkoutUserIdValue = checkoutUserIdProperty?.value;
|
|
268
|
+
checkoutUserId = checkoutUserIdValue ? Number(checkoutUserIdValue) : undefined;
|
|
269
|
+
// Estrai la data di checkout
|
|
270
|
+
const checkoutDateProperty = dcmtsArray.find((item) => item.md?.name === CICO_MetadataNames.CICO_CheckoutDate);
|
|
271
|
+
checkoutDate = checkoutDateProperty?.value;
|
|
272
|
+
// Estrai la versione del documento
|
|
273
|
+
const versionProperty = dcmtsArray.find((item) => item.md?.name === CICO_MetadataNames.CICO_Version);
|
|
274
|
+
const versionRaw = versionProperty?.value;
|
|
275
|
+
version = (versionRaw != null && !isNaN(Number(versionRaw))) ? Number(versionRaw) : 1;
|
|
276
|
+
const fileExtProperty = dcmtsArray.find((item) => item.mid === SystemMIDsAsNumber.FileExt);
|
|
277
|
+
fileExt = fileExtProperty?.value ? fileExtProperty.value.toString() : null;
|
|
278
|
+
}
|
|
279
|
+
// ========================================================================
|
|
280
|
+
// CASO 2: Documento come Oggetto Piatto (formato standard)
|
|
281
|
+
// ========================================================================
|
|
282
|
+
// Questo formato viene utilizzato quando il documento ha proprietà dirette
|
|
283
|
+
// nel formato chiave-valore: TID, DID, e "TID_MetadataID" per i metadati
|
|
284
|
+
else {
|
|
285
|
+
// Trova i metadati CICO nel descrittore del tipo documento
|
|
286
|
+
const CICO_CheckoutUserID_Meta = dtd.metadata?.find(md => md.name === CICO_MetadataNames.CICO_CheckoutUserID);
|
|
287
|
+
const CICO_CheckoutDate_Meta = dtd.metadata?.find(md => md.name === CICO_MetadataNames.CICO_CheckoutDate);
|
|
288
|
+
const CICO_Version_Meta = dtd.metadata?.find(md => md.name === CICO_MetadataNames.CICO_Version);
|
|
289
|
+
fileExt = dcmt.FILEEXT ? dcmt.FILEEXT.toString() : null;
|
|
290
|
+
// Estrai l'ID dell'utente che ha effettuato il checkout
|
|
291
|
+
if (CICO_CheckoutUserID_Meta?.id) {
|
|
292
|
+
const keyUserID = dcmt.TID + "_" + CICO_CheckoutUserID_Meta.id;
|
|
293
|
+
const checkoutUserIdValue = dcmt[keyUserID];
|
|
294
|
+
checkoutUserId = checkoutUserIdValue ? Number(checkoutUserIdValue) : undefined;
|
|
295
|
+
}
|
|
296
|
+
// Estrai la data di checkout
|
|
297
|
+
if (CICO_CheckoutDate_Meta?.id) {
|
|
298
|
+
const keyDate = dcmt.TID + "_" + CICO_CheckoutDate_Meta.id;
|
|
299
|
+
checkoutDate = dcmt[keyDate];
|
|
300
|
+
}
|
|
301
|
+
// Estrai la versione del documento
|
|
302
|
+
if (CICO_Version_Meta?.id) {
|
|
303
|
+
const keyVersion = dcmt.TID + "_" + CICO_Version_Meta.id;
|
|
304
|
+
const versionRaw = dcmt[keyVersion];
|
|
305
|
+
version = (versionRaw != null && !isNaN(Number(versionRaw))) ? Number(versionRaw) : 1;
|
|
260
306
|
}
|
|
261
307
|
}
|
|
308
|
+
// ========================================================================
|
|
309
|
+
// COSTRUZIONE DELLO STATO DI CHECKOUT
|
|
310
|
+
// ========================================================================
|
|
311
|
+
let checkoutStatus = {
|
|
312
|
+
isCheckedOut: false,
|
|
313
|
+
mode: '',
|
|
314
|
+
version: version,
|
|
315
|
+
icon: null,
|
|
316
|
+
editLockTooltipText: null
|
|
317
|
+
};
|
|
318
|
+
// Verifica se il documento è effettivamente in stato di checkout
|
|
319
|
+
if (userID && checkoutUserId && !isNaN(checkoutUserId) && checkoutUserId > 0) {
|
|
320
|
+
// Determina la modalità in base all'utente:
|
|
321
|
+
// - editMode: l'utente corrente può modificare (è lui che ha fatto il checkout)
|
|
322
|
+
// - lockMode: il documento è bloccato da un altro utente
|
|
323
|
+
const mode = (userID === checkoutUserId) ? 'editMode' : 'lockMode';
|
|
324
|
+
// ====================================================================
|
|
325
|
+
// COSTRUZIONE DEL TOOLTIP INFORMATIVO
|
|
326
|
+
// ====================================================================
|
|
327
|
+
const editLockTooltipText = (_jsxs(_Fragment, { children: [_jsxs("div", { style: { textAlign: "center" }, children: [mode === 'editMode' && (_jsxs(_Fragment, { children: [_jsx("i", { style: { fontSize: "18px", color: colors.MEDIUM_GREEN, fontWeight: "bold" }, className: "dx-icon-edit" }), SDKUI_Localizator.CurrentUserExtract] })), mode === 'lockMode' && (_jsxs(_Fragment, { children: [_jsx("i", { style: { fontSize: "18px", color: colors.MEDIUM_GREEN, fontWeight: "bold" }, className: "dx-icon-lock" }), SDKUI_Localizator.ExtractedFromOtherUser] }))] }), _jsx("hr", {}), _jsxs("div", { style: { textAlign: "left" }, children: [_jsxs("ul", { children: [_jsxs("li", { children: ["- ", _jsx("span", { style: { fontWeight: 'bold' }, children: SDKUI_Localizator.ExtractedBy }), ": ", findCheckOutUserName(allUsers, checkoutUserId), " (ID: ", checkoutUserId, ")"] }), _jsxs("li", { children: ["- ", _jsx("span", { style: { fontWeight: 'bold' }, children: SDKUI_Localizator.ExtractedOn }), ": ", Globalization.getDateTimeDisplayValue(checkoutDate?.toString())] })] }), _jsx("hr", {}), _jsx("ul", { children: _jsxs("li", { children: ["- ", _jsx("span", { style: { fontWeight: 'bold' }, children: SDKUI_Localizator.Version }), ": ", version] }) })] })] }));
|
|
328
|
+
// Crea l'icona con tooltip appropriata alla modalità
|
|
329
|
+
const icon = mode === 'editMode'
|
|
330
|
+
? _jsx(TMTooltip, { content: editLockTooltipText, children: _jsx("i", { style: { fontSize: "18px", color: colors.MEDIUM_GREEN, fontWeight: "bold" }, className: "dx-icon-edit" }) })
|
|
331
|
+
: _jsx(TMTooltip, { content: editLockTooltipText, children: _jsx("i", { style: { fontSize: "18px", color: colors.MEDIUM_GREEN, fontWeight: "bold" }, className: "dx-icon-lock" }) });
|
|
332
|
+
checkoutStatus = {
|
|
333
|
+
isCheckedOut: true,
|
|
334
|
+
mode: mode,
|
|
335
|
+
icon: icon,
|
|
336
|
+
version: version,
|
|
337
|
+
editLockTooltipText: editLockTooltipText
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
// ========================================================================
|
|
341
|
+
// RESTITUZIONE RISULTATO FINALE
|
|
342
|
+
// ========================================================================
|
|
262
343
|
return {
|
|
263
|
-
|
|
344
|
+
// CICO è abilitato se configurato nel DTD e l'utente ha i permessi
|
|
345
|
+
cicoEnabled: cicoInfo.CICO === 1 && cicoInfo.CanCICO === AccessLevels.Yes && fileExt !== null && fileExt !== '',
|
|
264
346
|
checkoutStatus: checkoutStatus
|
|
265
347
|
};
|
|
266
348
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom DevExtreme localization messages
|
|
3
|
+
* Contains missing translations for DevExtreme components
|
|
4
|
+
*/
|
|
5
|
+
export declare const devextremeCustomMessages: {
|
|
6
|
+
de: {
|
|
7
|
+
"dxDataGrid-moveColumnToTheRight": string;
|
|
8
|
+
"dxDataGrid-moveColumnToTheLeft": string;
|
|
9
|
+
};
|
|
10
|
+
en: {
|
|
11
|
+
"dxDataGrid-moveColumnToTheRight": string;
|
|
12
|
+
"dxDataGrid-moveColumnToTheLeft": string;
|
|
13
|
+
};
|
|
14
|
+
es: {
|
|
15
|
+
"dxDataGrid-moveColumnToTheRight": string;
|
|
16
|
+
"dxDataGrid-moveColumnToTheLeft": string;
|
|
17
|
+
};
|
|
18
|
+
fr: {
|
|
19
|
+
"dxDataGrid-moveColumnToTheRight": string;
|
|
20
|
+
"dxDataGrid-moveColumnToTheLeft": string;
|
|
21
|
+
};
|
|
22
|
+
it: {
|
|
23
|
+
"dxDataGrid-moveColumnToTheRight": string;
|
|
24
|
+
"dxDataGrid-moveColumnToTheLeft": string;
|
|
25
|
+
};
|
|
26
|
+
pt: {
|
|
27
|
+
"dxDataGrid-moveColumnToTheRight": string;
|
|
28
|
+
"dxDataGrid-moveColumnToTheLeft": string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom DevExtreme localization messages
|
|
3
|
+
* Contains missing translations for DevExtreme components
|
|
4
|
+
*/
|
|
5
|
+
export const devextremeCustomMessages = {
|
|
6
|
+
"de": {
|
|
7
|
+
"dxDataGrid-moveColumnToTheRight": "Nach rechts verschieben",
|
|
8
|
+
"dxDataGrid-moveColumnToTheLeft": "Nach links verschieben"
|
|
9
|
+
},
|
|
10
|
+
"en": {
|
|
11
|
+
"dxDataGrid-moveColumnToTheRight": "Move to the right",
|
|
12
|
+
"dxDataGrid-moveColumnToTheLeft": "Move to the left"
|
|
13
|
+
},
|
|
14
|
+
"es": {
|
|
15
|
+
"dxDataGrid-moveColumnToTheRight": "Mover a la derecha",
|
|
16
|
+
"dxDataGrid-moveColumnToTheLeft": "Mover a la izquierda"
|
|
17
|
+
},
|
|
18
|
+
"fr": {
|
|
19
|
+
"dxDataGrid-moveColumnToTheRight": "Déplacer vers la droite",
|
|
20
|
+
"dxDataGrid-moveColumnToTheLeft": "Déplacer vers la gauche"
|
|
21
|
+
},
|
|
22
|
+
"it": {
|
|
23
|
+
"dxDataGrid-moveColumnToTheRight": "Sposta a destra",
|
|
24
|
+
"dxDataGrid-moveColumnToTheLeft": "Sposta a sinistra"
|
|
25
|
+
},
|
|
26
|
+
"pt": {
|
|
27
|
+
"dxDataGrid-moveColumnToTheRight": "Mover para a direita",
|
|
28
|
+
"dxDataGrid-moveColumnToTheLeft": "Mover para a esquerda"
|
|
29
|
+
}
|
|
30
|
+
};
|
package/lib/helper/helpers.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Colors as ColorsType } from "../components/base/TMEditorBase";
|
|
2
2
|
import { DeviceType } from "../components";
|
|
3
|
-
import { AppModules, DataColumnDescriptor, ITopMediaSession, MetadataDescriptor, QueryDescriptor, SearchResultDescriptor } from "@topconsultnpm/sdk-ts";
|
|
3
|
+
import { AppModules, DataColumnDescriptor, DcmtTypeDescriptor, ITopMediaSession, MetadataDescriptor, QueryDescriptor, SearchResultDescriptor, TaskDescriptor } from "@topconsultnpm/sdk-ts";
|
|
4
4
|
import { FileExtensionHandler, FormModes, moduleTypes } from "../ts";
|
|
5
5
|
declare const TABLET_WIDTH = 1024;
|
|
6
6
|
declare const MOBILE_WIDTH = 640;
|
|
@@ -37,6 +37,7 @@ export declare const extensionHandler: (fileExt: string | undefined) => FileExte
|
|
|
37
37
|
export declare const downloadBase64File: (base64Data: string, fileName: string) => void;
|
|
38
38
|
export declare const TASK_MORE_INFO_PREFIX_NAME: string;
|
|
39
39
|
export declare const isTaskMoreInfo: (taskName: string | undefined) => boolean | undefined;
|
|
40
|
+
export declare const getMoreInfoTasksForDocument: (allTasks: TaskDescriptor[], TID: number | null | undefined, DID: number | null | undefined) => TaskDescriptor[];
|
|
40
41
|
export declare const canNext: (visibleItems: any[], selectedItems: any[]) => boolean;
|
|
41
42
|
export declare const getNext: (visibleItems: any[], selectedItems: any[]) => any;
|
|
42
43
|
export declare const canPrev: (visibleItems: any[], selectedItems: any[]) => boolean;
|
|
@@ -89,3 +90,4 @@ export declare class AreaHelper {
|
|
|
89
90
|
static ExtractAreaInfo_1(areaPath: string): AreaValues;
|
|
90
91
|
static ExtractAreaInfo_2(areaPath: string, extractFileName: boolean): AreaValues;
|
|
91
92
|
}
|
|
93
|
+
export declare const isApprovalWorkflowView: (dtd: DcmtTypeDescriptor) => boolean;
|
package/lib/helper/helpers.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Colors } from "../utils/theme";
|
|
3
3
|
import { ButtonNames, DeviceType, TMExceptionBoxManager, TMMessageBoxManager, TMSpinner } from "../components";
|
|
4
|
-
import { AccessLevels, MetadataDataDomains, MetadataDataTypes, MetadataDescriptor, MetadataFormatDescriptor, MetadataFormats, MetadataPermission, SDK_Globals, SetGlobalsInfoAsync, SystemMIDs, SystemMIDsAsNumber, TopMediaServer } from "@topconsultnpm/sdk-ts";
|
|
4
|
+
import { AccessLevels, MetadataDataDomains, MetadataDataTypes, MetadataDescriptor, MetadataFormatDescriptor, MetadataFormats, MetadataPermission, SDK_Globals, SetGlobalsInfoAsync, SystemMIDs, SystemMIDsAsNumber, Task_States, TopMediaServer, WorkItemMetadataNames } from "@topconsultnpm/sdk-ts";
|
|
5
5
|
import { Buffer } from 'buffer';
|
|
6
6
|
import { buildTypes, FileExtensionHandler, FormModes, moduleTypes } from "../ts";
|
|
7
7
|
import { SDKUI_Localizator } from "./SDKUI_Localizator";
|
|
@@ -505,7 +505,8 @@ export const extensionHandler = (fileExt) => {
|
|
|
505
505
|
case 'txt': return FileExtensionHandler.READY_TO_SHOW;
|
|
506
506
|
case 'config':
|
|
507
507
|
case 'cfg':
|
|
508
|
-
case 'json':
|
|
508
|
+
case 'json':
|
|
509
|
+
case 'sql': return FileExtensionHandler.READY_TO_SHOW;
|
|
509
510
|
default: return FileExtensionHandler.NONE;
|
|
510
511
|
}
|
|
511
512
|
};
|
|
@@ -531,6 +532,17 @@ export const downloadBase64File = (base64Data, fileName) => {
|
|
|
531
532
|
};
|
|
532
533
|
export const TASK_MORE_INFO_PREFIX_NAME = `${SDKUI_Localizator.MoreInformation} - `;
|
|
533
534
|
export const isTaskMoreInfo = (taskName) => taskName?.startsWith(TASK_MORE_INFO_PREFIX_NAME);
|
|
535
|
+
// Filtra i task di tipo "More Info" non completati associati a un documento specifico.
|
|
536
|
+
export const getMoreInfoTasksForDocument = (allTasks, TID, DID) => {
|
|
537
|
+
if (TID === null || DID === null)
|
|
538
|
+
return [];
|
|
539
|
+
if (TID === undefined || DID === undefined)
|
|
540
|
+
return [];
|
|
541
|
+
return allTasks.filter(task => isTaskMoreInfo(task.name) &&
|
|
542
|
+
task.state !== Task_States.Completed &&
|
|
543
|
+
task.iD1?.toString() === TID.toString() &&
|
|
544
|
+
task.iD2?.toString() === DID.toString());
|
|
545
|
+
};
|
|
534
546
|
//#region Form, Page Helpers
|
|
535
547
|
export const canNext = (visibleItems, selectedItems) => {
|
|
536
548
|
if (!visibleItems)
|
|
@@ -664,7 +676,13 @@ export const renderHighlightedText = (text, searchText, isSelected) => {
|
|
|
664
676
|
return text.split(regex).map((part, index) => regex.test(part) ? (_jsx("span", { style: { backgroundColor: isSelected ? '#6c9023' : 'yellow' }, children: part }, index)) : (part));
|
|
665
677
|
};
|
|
666
678
|
export function versionAndBuildtypeInfo(module) {
|
|
667
|
-
|
|
679
|
+
switch (module) {
|
|
680
|
+
case moduleTypes.SDK:
|
|
681
|
+
case moduleTypes.SDKUI:
|
|
682
|
+
return moduleVersion(module).replace("-hotfix.", "+hotfix").replace("-hotfix", "+hotfix");
|
|
683
|
+
default:
|
|
684
|
+
return moduleVersion(module);
|
|
685
|
+
}
|
|
668
686
|
}
|
|
669
687
|
export const getListMaxItems = (deviceType) => { return deviceType === DeviceType.MOBILE ? 8 : 12; };
|
|
670
688
|
export const svgToString = (icon) => {
|
|
@@ -850,3 +868,7 @@ export class AreaHelper {
|
|
|
850
868
|
}
|
|
851
869
|
AreaHelper.AreaPathPrefix = "tmarea:\\\\";
|
|
852
870
|
AreaHelper.AreaFolderNamePrefix = "AID_";
|
|
871
|
+
export const isApprovalWorkflowView = (dtd) => {
|
|
872
|
+
return Boolean(dtd?.isView &&
|
|
873
|
+
dtd.metadata?.some(data => data.name === WorkItemMetadataNames.WI_DID));
|
|
874
|
+
};
|
package/lib/helper/index.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export * from './queryHelper';
|
|
|
9
9
|
export * from './TMUtils';
|
|
10
10
|
export * from './TMCommandsContextMenu';
|
|
11
11
|
export * from './TMConditionalWrapper';
|
|
12
|
+
export * from './TMPdfViewer';
|
|
12
13
|
export * from './TMToppyMessage';
|
|
13
14
|
export * from './GlobalStyles';
|
|
14
15
|
export * from './checkinCheckoutManager';
|
|
16
|
+
export * from './workItemsHelper';
|
package/lib/helper/index.js
CHANGED
|
@@ -9,6 +9,8 @@ export * from './queryHelper';
|
|
|
9
9
|
export * from './TMUtils';
|
|
10
10
|
export * from './TMCommandsContextMenu';
|
|
11
11
|
export * from './TMConditionalWrapper';
|
|
12
|
+
export * from './TMPdfViewer';
|
|
12
13
|
export * from './TMToppyMessage';
|
|
13
14
|
export * from './GlobalStyles';
|
|
14
15
|
export * from './checkinCheckoutManager';
|
|
16
|
+
export * from './workItemsHelper';
|
|
@@ -12,7 +12,7 @@ export declare const addHiddenSelectItem: (select: SelectItem[], tid: number | u
|
|
|
12
12
|
export declare const prepareQdForSearchAsync: (qdInput?: QueryDescriptor, removeWhereItemNoValue?: boolean) => Promise<QueryDescriptor>;
|
|
13
13
|
export declare function addWhereClausesForConnect(qd: QueryDescriptor): void;
|
|
14
14
|
export declare function getDefaultOperator(dataDomain: MetadataDataDomains | undefined, dataType: MetadataDataTypes | undefined): QueryOperators.Equal | QueryOperators.Contain | QueryOperators.In;
|
|
15
|
-
export declare const getQD: (tid: number | undefined, easyOr: boolean) => Promise<QueryDescriptor | undefined>;
|
|
15
|
+
export declare const getQD: (tid: number | undefined, easyOr: boolean, newMaxDcmtsToBeReturned: number) => Promise<QueryDescriptor | undefined>;
|
|
16
16
|
export declare const getWorkItemSetIDAsync: (vid: number, did: number) => Promise<string | undefined>;
|
|
17
17
|
export declare const getSysAllDcmtsSQD: (tid: number | undefined, easyOr: boolean) => Promise<SavedQueryDescriptor>;
|
|
18
18
|
export declare const searchResultToMetadataValues: (tid: number | undefined, dtd: DataTableDescriptor | undefined, rows: string[], mids: number[], metadata: MetadataDescriptor[], layoutMode: LayoutModes) => MetadataValueDescriptorEx[];
|
|
@@ -2,6 +2,8 @@ import { AccessLevels, MetadataDataDomains, DcmtTypeListCacheService, SystemMIDs
|
|
|
2
2
|
import { DateDisplayTypes, Globalization } from './Globalization';
|
|
3
3
|
import { ChronologyMIDs, DraftsMIDs, MetadataValueDescriptorEx } from '../ts';
|
|
4
4
|
import { SDKUI_Localizator } from './SDKUI_Localizator';
|
|
5
|
+
import { getDcmtCicoInfo } from './checkinCheckoutManager';
|
|
6
|
+
import { SDKUI_Globals } from './SDKUI_Globals';
|
|
5
7
|
export const getTIDsByQd = (qd) => {
|
|
6
8
|
let tids = [];
|
|
7
9
|
qd?.from?.tid && tids.push({ tid: qd.from?.tid, alias: undefined });
|
|
@@ -82,6 +84,22 @@ export const prepareQdForSearchAsync = async (qdInput, removeWhereItemNoValue) =
|
|
|
82
84
|
addHiddenSelectItem(qd.select, fromTID, SystemMIDsAsNumber.IsMail);
|
|
83
85
|
addHiddenSelectItem(qd.select, fromTID, SystemMIDsAsNumber.IsSigned);
|
|
84
86
|
addHiddenSelectItem(qd.select, fromTID, SystemMIDsAsNumber.IsShared);
|
|
87
|
+
const dtd = await DcmtTypeListCacheService.GetAsync(fromTID);
|
|
88
|
+
if (dtd) {
|
|
89
|
+
const cicoInfo = getDcmtCicoInfo(dtd);
|
|
90
|
+
const canCICO = cicoInfo.CICO === 1 && cicoInfo.CanCICO === AccessLevels.Yes;
|
|
91
|
+
if (canCICO) {
|
|
92
|
+
if (!qd.select.find(o => o.mid == cicoInfo.UserID_MID) && cicoInfo.UserID_CanViewOrUpdate == AccessLevels.Yes) {
|
|
93
|
+
addHiddenSelectItem(qd.select, fromTID, cicoInfo.UserID_MID);
|
|
94
|
+
}
|
|
95
|
+
if (!qd.select.find(o => o.mid == cicoInfo.Date_MID) && cicoInfo.Date_CanViewOrUpdate == AccessLevels.Yes) {
|
|
96
|
+
addHiddenSelectItem(qd.select, fromTID, cicoInfo.Date_MID);
|
|
97
|
+
}
|
|
98
|
+
if (!qd.select.find(o => o.mid == cicoInfo.Ver_MID) && cicoInfo.Ver_CanViewOrUpdate == AccessLevels.Yes) {
|
|
99
|
+
addHiddenSelectItem(qd.select, fromTID, cicoInfo.Ver_MID);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
85
103
|
if (qd.orderBy && qd.orderBy.length <= 0) {
|
|
86
104
|
let obi = new OrderByItem();
|
|
87
105
|
obi.tid = fromTID;
|
|
@@ -164,14 +182,14 @@ export function getDefaultOperator(dataDomain, dataType) {
|
|
|
164
182
|
return QueryOperators.In;
|
|
165
183
|
return dataType == MetadataDataTypes.Varchar ? QueryOperators.Contain : QueryOperators.Equal;
|
|
166
184
|
}
|
|
167
|
-
export const getQD = async (tid, easyOr) => {
|
|
185
|
+
export const getQD = async (tid, easyOr, newMaxDcmtsToBeReturned) => {
|
|
168
186
|
let dtd = await DcmtTypeListCacheService.GetAsync(tid);
|
|
169
187
|
if (!dtd?.metadata)
|
|
170
188
|
return;
|
|
171
189
|
let qd = SearchEngine.NewQueryDescriptor();
|
|
172
190
|
qd.isDistinct = false;
|
|
173
191
|
qd.id = 1;
|
|
174
|
-
qd.maxDcmtsToBeReturned =
|
|
192
|
+
qd.maxDcmtsToBeReturned = newMaxDcmtsToBeReturned;
|
|
175
193
|
qd.from = new FromItem();
|
|
176
194
|
qd.from.tid = tid;
|
|
177
195
|
qd.select = [];
|
|
@@ -239,7 +257,7 @@ export const getSysAllDcmtsSQD = async (tid, easyOr) => {
|
|
|
239
257
|
sqd.masterTID = tid;
|
|
240
258
|
sqd.isEasyWhere = 1;
|
|
241
259
|
sqd.name = SDKUI_Localizator.AllDcmts;
|
|
242
|
-
sqd.qd = await getQD(tid, easyOr);
|
|
260
|
+
sqd.qd = await getQD(tid, easyOr, SDKUI_Globals.userSettings.searchSettings?.maxDcmtsToBeReturned ?? 1000);
|
|
243
261
|
return sqd;
|
|
244
262
|
};
|
|
245
263
|
export const searchResultToMetadataValues = (tid, dtd, rows, mids, metadata, layoutMode) => {
|
|
@@ -311,6 +329,18 @@ export const searchResultToMetadataValues = (tid, dtd, rows, mids, metadata, lay
|
|
|
311
329
|
mvd.customName = SDKUI_Localizator.Author;
|
|
312
330
|
mvd.isReadOnly = true;
|
|
313
331
|
break;
|
|
332
|
+
case ChronologyMIDs.CheckInTime:
|
|
333
|
+
mvd.customName = SDKUI_Localizator.LastUpdateTime;
|
|
334
|
+
mvd.isReadOnly = true;
|
|
335
|
+
break;
|
|
336
|
+
case SystemMIDsAsNumber.FileExt:
|
|
337
|
+
mvd.customName = SDKUI_Localizator.Extension;
|
|
338
|
+
mvd.isReadOnly = true;
|
|
339
|
+
break;
|
|
340
|
+
case SystemMIDsAsNumber.FileSize:
|
|
341
|
+
mvd.customName = SDKUI_Localizator.File_Size;
|
|
342
|
+
mvd.isReadOnly = true;
|
|
343
|
+
break;
|
|
314
344
|
}
|
|
315
345
|
}
|
|
316
346
|
return mvd;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IWorkItemData, WFInstanceDescriptor } from '../ts';
|
|
2
|
+
/**
|
|
3
|
+
* Helper function per costruire IWorkItemData da un WFInstanceDescriptor
|
|
4
|
+
* Effettua le chiamate API necessarie e popola tutti i campi disponibili
|
|
5
|
+
*/
|
|
6
|
+
export declare const buildWorkItemsFromWFCtrl: (wfInstance: WFInstanceDescriptor) => Promise<IWorkItemData[]>;
|