@topconsultnpm/sdkui-react 6.19.0-dev2.2 → 6.19.0-dev2.20

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.
Files changed (66) hide show
  1. package/lib/components/base/TMCustomButton.js +2 -2
  2. package/lib/components/base/TMDataGridExportForm.d.ts +1 -1
  3. package/lib/components/base/TMDataGridExportForm.js +9 -3
  4. package/lib/components/base/TMFileManager.js +11 -2
  5. package/lib/components/base/TMFileManagerDataGridView.d.ts +2 -0
  6. package/lib/components/base/TMFileManagerDataGridView.js +11 -2
  7. package/lib/components/base/TMFileManagerThumbnailItems.d.ts +2 -0
  8. package/lib/components/base/TMFileManagerThumbnailItems.js +12 -2
  9. package/lib/components/base/TMFileManagerThumbnailsView.d.ts +2 -0
  10. package/lib/components/base/TMFileManagerThumbnailsView.js +2 -2
  11. package/lib/components/base/TMTooltip.d.ts +1 -1
  12. package/lib/components/base/TMTooltip.js +1 -1
  13. package/lib/components/choosers/TMMetadataChooser.d.ts +4 -1
  14. package/lib/components/choosers/TMMetadataChooser.js +14 -6
  15. package/lib/components/editors/TMDateBox.d.ts +1 -1
  16. package/lib/components/features/documents/TMDcmtForm.js +41 -38
  17. package/lib/components/features/documents/TMRelationViewer.js +56 -23
  18. package/lib/components/features/search/TMSavedQuerySelector.js +1 -1
  19. package/lib/components/features/search/TMSearch.js +2 -2
  20. package/lib/components/features/search/TMSearchQueryEditor.js +1 -1
  21. package/lib/components/features/search/TMSearchQueryPanel.js +8 -25
  22. package/lib/components/features/search/TMSearchResult.js +91 -10
  23. package/lib/components/features/search/TMSearchResultsMenuItems.d.ts +2 -1
  24. package/lib/components/features/search/TMSearchResultsMenuItems.js +97 -51
  25. package/lib/components/features/tasks/TMTaskForm.js +1 -1
  26. package/lib/components/features/tasks/TMTasksAgenda.js +3 -3
  27. package/lib/components/features/tasks/TMTasksCalendar.js +1 -1
  28. package/lib/components/features/tasks/TMTasksHeader.js +1 -1
  29. package/lib/components/features/tasks/TMTasksUtils.d.ts +1 -1
  30. package/lib/components/features/tasks/TMTasksUtils.js +1 -1
  31. package/lib/components/features/tasks/TMTasksView.js +1 -1
  32. package/lib/components/features/workflow/TMWorkflowPopup.js +1 -1
  33. package/lib/components/features/workflow/diagram/DiagramItemForm.js +11 -6
  34. package/lib/components/features/workflow/diagram/RecipientList.js +1 -1
  35. package/lib/components/features/workflow/diagram/WFDiagram.js +20 -6
  36. package/lib/components/forms/TMResultDialog.js +8 -2
  37. package/lib/components/grids/TMBlogsPost.d.ts +1 -0
  38. package/lib/components/grids/TMBlogsPost.js +6 -1
  39. package/lib/components/grids/TMBlogsPostUtils.js +1 -1
  40. package/lib/components/grids/TMRecentsManager.js +1 -1
  41. package/lib/components/layout/panelManager/TMPanelManagerContainer.d.ts +1 -0
  42. package/lib/components/layout/panelManager/TMPanelManagerContainer.js +2 -2
  43. package/lib/components/layout/panelManager/TMPanelManagerContext.js +0 -1
  44. package/lib/components/layout/panelManager/TMPanelManagerToolbar.js +2 -1
  45. package/lib/components/layout/panelManager/types.d.ts +1 -0
  46. package/lib/components/pages/TMPage.js +1 -1
  47. package/lib/components/query/TMQuerySummary.d.ts +1 -0
  48. package/lib/components/query/TMQuerySummary.js +3 -3
  49. package/lib/components/settings/SettingsAppearance.js +5 -5
  50. package/lib/components/viewers/TMDataListItemViewer.d.ts +1 -1
  51. package/lib/components/viewers/TMMidViewer.d.ts +1 -1
  52. package/lib/components/viewers/TMTidViewer.d.ts +1 -1
  53. package/lib/helper/GlobalStyles.d.ts +2 -0
  54. package/lib/helper/GlobalStyles.js +10 -0
  55. package/lib/helper/SDKUI_Localizator.d.ts +34 -1
  56. package/lib/helper/SDKUI_Localizator.js +342 -12
  57. package/lib/helper/TMCustomSearchBar.js +1 -1
  58. package/lib/helper/TMIcons.d.ts +1 -0
  59. package/lib/helper/TMIcons.js +3 -0
  60. package/lib/helper/TMUtils.d.ts +1 -4
  61. package/lib/helper/TMUtils.js +13 -9
  62. package/lib/helper/index.d.ts +1 -0
  63. package/lib/helper/index.js +1 -0
  64. package/lib/hooks/useRelatedDocuments.js +24 -24
  65. package/lib/ts/types.d.ts +1 -1
  66. package/package.json +4 -4
@@ -667,4 +667,7 @@ export function IconUnpair(props) {
667
667
  export function IconBackhandIndexPointingRight(props) {
668
668
  return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 128 128", width: "1em", height: "1em", ...props, children: [_jsx("path", { fill: "#E0BB95", d: "M58.7 41.1c10.8.1 53.3.4 54.9.4c12.8.3 12.7 16.7.7 16.9c-1.5 0-25 1.1-32.2 1.3c5.2 2 7.5 11.9-3.1 14.9c5 2.6 6.4 12.9-4.2 14.7c3.8 2.5 4.3 10.9-6 14.2c-8.4 2.7-28.2 2-40.3-2.3c-9.1-3.3-8.4-5.8-16.7-5.6c-1.4 0-2.1-1.1-2.4-2.4c-1.3-5.9-1.9-26.3-.3-33.8c.4-1.6 1.7-1.8 2.2-1.9c2.1-.4 4.2-2.5 5-4.3c3.2-6.4 12.8-12.8 23.4-18.2c5.5-2.8 9.2-8.8 10.4-18.3c.8-6.3 8.6-7.7 11.8-2.5c2.2 3.6 2.9 7 2.9 10.4c.2 6.2-1.6 10.1-6.1 16.5" }), _jsx("defs", { children: _jsx("path", { id: "notoBackhandIndexPointingRightMediumLightSkinTone0", d: "M58.7 41.1c10.8.1 53.3.4 54.9.4c12.8.3 12.7 16.7.7 16.9c-1.5 0-25 1.1-32.2 1.3c5.2 2 7.5 11.9-3.1 14.9c5 2.6 6.4 12.9-4.2 14.7c3.8 2.5 4.3 10.9-6 14.2c-8.4 2.7-28.2 2-40.3-2.3c-9.1-3.3-8.4-5.8-16.7-5.6c-1.4 0-2.1-1.1-2.4-2.4c-1.3-5.9-1.9-26.3-.3-33.8c.4-1.6 1.7-1.8 2.2-1.9c2.1-.4 4.2-2.5 5-4.3c3.2-6.4 12.8-12.8 23.4-18.2c5.5-2.8 9.2-8.8 10.4-18.3c.8-6.3 8.6-7.7 11.8-2.5c2.2 3.6 2.9 7 2.9 10.4c.2 6.2-1.6 10.1-6.1 16.5" }) }), _jsx("clipPath", { id: "notoBackhandIndexPointingRightMediumLightSkinTone1", children: _jsx("use", { href: "#notoBackhandIndexPointingRightMediumLightSkinTone0" }) }), _jsx("g", { fill: "#D19661", clipPath: "url(#notoBackhandIndexPointingRightMediumLightSkinTone1)", children: _jsx("path", { d: "M73.3 59.5c.1 1.6 2.8 2.9 2.8 6.4c0 3.7-3 4.7-3.1 7.5c-.1 2.7 2 3.8 1.5 7.7c-.6 4.5-4.1 4-4.2 7.1c0 2.7 1.8 3.2 1.8 6.6c0 3.1-3 5.8-5.5 7s-1.2 3.4 0 3.4s11.9-1.3 14.5-8.2c3-8 11-29.6 8.8-36.9c-7.1-1-11.5-1.6-13.7-1.8c-.7-.1-2.9-.6-2.9 1.2M60.1 40.7c0 .9.1 1.5 1 1.5c1 0 43.6 2.1 51.6 2.3c9.2.2 8.7 7.6 5.9 10.1c-1.9 1.7.6 4 2.2 2.6s4.4-3.4 4.3-8.4s-4.4-8.6-8.4-8.9c-3.8-.3-56.6.8-56.6.8m-51.9 21c15.9 0 14.1-11.7 25.2-18.9c15.4-10.1 16.3-11.1 19.7-25.2c1.2-4.9 5.7-4.4 7.7-2.1s4.9-1.3 3.6-2.7s-7.8-7.7-14.8-1.1s-42 46.2-42 46.2z" }) }), _jsx("defs", { children: _jsx("use", { href: "#notoBackhandIndexPointingRightMediumLightSkinTone0", id: "notoBackhandIndexPointingRightMediumLightSkinTone2" }) }), _jsx("clipPath", { id: "notoBackhandIndexPointingRightMediumLightSkinTone3", children: _jsx("use", { href: "#notoBackhandIndexPointingRightMediumLightSkinTone2" }) }), _jsx("g", { fill: "#8D542E", clipPath: "url(#notoBackhandIndexPointingRightMediumLightSkinTone3)", children: _jsx("path", { d: "M58.7 41.1h-1.9c-.4 0-.8-.4-.2-1.3s5.8-8 5.8-15c0-3.2-.5-7.7-3.4-12.4c-.6-.9.2-1.4.9-1c.7.5 6.4 3.2 6.5 13.4s-7.7 16.3-7.7 16.3m65.1 8.8c-.5 0-1.1-.2-1.7 1c-.7 1.5-3.1 4.4-8.4 4.7s-38.1 2.5-38.9 2.5c-1.1 0-1.2 1.9.1 1.8c1.7-.1 7.2-.2 7.2-.2s30.9 1.8 36.9-.6c6.1-2.4 4.8-9.2 4.8-9.2M86.6 68.5c-.3-.1-.7-.1-1 .3c-1.5 2-4.6 3.5-10.6 3.3c-1.4 0-1.6 2.7.1 2.7c.7 0 4-.1 4-.1l6.6-.2zm-3.6 15c-.3-.1-.7-.1-1.1.4c-1.5 2-3.5 2.8-9.7 3c-1.5.1-1.4 2.6.2 2.6c1.1 0 2.4-.1 2.4-.1l7-.6zm-5.4 12.7c-.3-.1-.8-.2-1.2.4c-.8 1.1-2.9 3-7.5 4.4c-3.7 1.1-21.3 1.9-32.5-.7c-2.3-.5-9.9-3-13.6-5.3s-7.3-1.6-8.3-1.4s-6.3.7-6.3.7l2.5 3.7l27 8.6l38.5-.6z" }) })] }));
669
669
  }
670
+ export function IconMoveToFolder(props) {
671
+ return (_jsx("svg", { fontSize: props.fontSize ?? FONTSIZE, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 28 28", width: "1em", height: "1em", ...props, children: _jsx("path", { d: "M21.5 15a5.5 5.5 0 1 1 0 11a5.5 5.5 0 0 1 0-11zM10.207 4c.46 0 .908.141 1.284.402l.156.12L14.022 6.5h9.728a2.25 2.25 0 0 1 2.229 1.938l.016.158l.005.154v7.06a6.518 6.518 0 0 0-1.499-1.077L24.5 8.75a.75.75 0 0 0-.648-.743L23.75 8h-9.729l-2.374 1.978a2.25 2.25 0 0 1-1.244.513l-.196.009l-6.707-.001V21.75c0 .38.282.693.648.743l.102.007h11.064a6.47 6.47 0 0 0 .709 1.501L4.25 24a2.25 2.25 0 0 1-2.245-2.096L2 21.75V6.25a2.25 2.25 0 0 1 2.096-2.245L4.25 4h5.957zm11.585 13.545l-.076.044l-.07.057l-.057.07a.5.5 0 0 0 0 .568l.057.07l1.646 1.645l-4.798.001l-.09.008a.5.5 0 0 0-.402.402l-.008.09l.008.09a.5.5 0 0 0 .402.402l.09.008l4.8-.001l-1.648 1.647l-.057.07a.5.5 0 0 0 .695.695l.07-.057l2.535-2.541l.031-.042l.042-.08l.026-.083l.01-.064l-.002-.11l-.008-.042l-.026-.083l-.042-.08l-.037-.05l-2.53-2.533l-.069-.057a.5.5 0 0 0-.492-.044zM10.207 5.5H4.25a.75.75 0 0 0-.743.648L3.5 6.25v2.749L10.207 9a.75.75 0 0 0 .395-.113l.085-.06l1.891-1.578l-1.89-1.575a.75.75 0 0 0-.377-.167l-.104-.007z", fill: "currentColor", fillRule: "nonzero" }) }));
672
+ }
670
673
  export { Icon123, IconABC, IconAccessPoint, IconAddressBook, IconSignCert, IconServerService, IconActivity, IconActivityLog, IconAdd, IconAddCircleOutline, IconAll, IconApply, IconApplyAndClose, IconArchive, IconArchiveDoc, IconArrowDown, IconArrowLeft, IconArrowRight, IconArrowUp, IconAtSign, IconAttachment, IconAutoConfig, IconBackward, IconBasket, IconBoard, IconBoxArchiveIn, IconBxInfo, IconBxLock, IconCalendar, IconCloseCircle, IconCloseOutline, IconCloud, IconCircleInfo, IconClear, IconColumns, IconCommand, IconCopy, IconCount, IconCrown, IconDashboard, IconDcmtType, IconDcmtTypeOnlyMetadata, IconDcmtTypeSys, IconDelete, IconDetails, IconDown, IconDownload, IconDotsVerticalCircleOutline, IconDuplicate, IconEdit, IconEqual, IconEqualNot, IconEraser, IconExpandRight, IconExport, IconFastBackward, IconFoldeAdd, IconFolderSearch, IconFolderZip, IconFastForward, IconFastSearch, IconFileDots, IconFilter, IconForceStop, IconForward, IconFreeze, IconFreeSearch, IconGreaterThan, IconGreaterThanOrEqual, IconHistory, IconImport, IconTag, IconInfo, IconInsertAbove, IconInsertBelow, IconHeart, IconHide, IconLanguage, IconLeft, IconLessThan, IconLessThanOrEqual, IconLock, IconLockClosed, IconLogin, IconLink, IconLogout, IconMail, IconMapping, IconMic, IconMenuHorizontal, IconMenuKebab, IconMenuVertical, IconMetadata, IconMetadata_Computed, IconMetadata_DataList, IconMetadata_Date, IconMetadata_DynamicDataList, IconMetadata_Numerator, IconMetadata_Numeric, IconMetadata_Special, IconMetadata_Text, IconMetadata_User, IconMonitor, IconOpenInNew, IconNotification, IconPassword, IconPencil, IconPlatform, IconPlay, IconPreview, IconPrinter, IconPrintOutline, IconProcess, IconProgressAbortRequested, IconProgressCompleted, IconProgressNotCompleted, IconProgressReady, IconProgressRunning, IconProgressStarted, IconRefresh, IconReset, IconRecentlyViewed, IconRight, IconSave, IconSearch, IconSelected, IconSettings, IconShow, IconSort, IconStop, IconStopwatch, IconSuccess, IconAlarmPlus, IconHourglass, IconNone, IconNotStarted, IconProgress, IconSuccessCirlce, IconSuitcase, IconSupport, IconUndo, IconUnFreeze, IconUp, IconUpdate, IconUpload, IconUser, IconUserProfile, IconVisible, IconWarning, IconWeb, IconWifi, IconWindowMaximize, IconWindowMinimize, IconWorkflow, IconWorkspace, IconUserGroup, IconUserGroupOutline, IconUserLevelMember, IconUserLevelAdministrator, IconUserLevelSystemAdministrator, IconUserLevelAutonomousAdministrator, IconDraggabledots, IconRelation, IconEasy, IconSum, IconDisk, IconDataList, IconPalette, IconFormatPageSplit, IconPaste, IconFileSearch, IconStar, IconStarRemove, IconSearchCheck, IconLightningFill, IconArrowUnsorted, IconArrowSortedUp, IconArrowSortedDown, IconConvertFilePdf, IconExportTo, IconSharedDcmt, IconShare, IconBatchUpdate, IconCheckFile, IconStatistics, IconSubstFile, IconAdvanced, IconSync, IconSavedQuery, IconSignature, IconSignaturePencil, IconRecursiveOps, IconCheckIn, IconTree, IconGrid, IconList, IconFolder, IconFolderOpen, IconFactory, IconTest, IconCheck, IconUncheck, IconSortAsc, IconSortDesc, IconRoundFileUpload, IconSortAscLetters, IconSortDescLetters, IconRotate, IconSortAscNumbers, IconSortDescNumbers, IconSortAscClock, IconSortDescClock, IconLayerGroup, IconBell, IconBellCheck, IconBellOutline, IconBellCheckOutline, IconEnvelopeOpenText, IconChangeUser, IconUserCheck, IconRelationManyToMany, IconRelationOneToMany, IconUserExpired, IconKey, IconZoomInLinear, IconZoomOutLinear, IconMenuCAWorkingGroups, IconCADossier, IconMenuCACaseflow, IconMenuDashboard, IconMenuCAAreas, IconMenuTask, IconMenuSearch, IconMenuFullTextSearch, IconMenuFavourite, IconSAPLogin, IconSAPLogin2, IconView, };
@@ -6,10 +6,7 @@ export interface RowData {
6
6
  [key: string]: string | number | null;
7
7
  }
8
8
  export declare const associateColumnsToRows: (columns: Array<DataColumnDescriptor> | undefined, rows: Array<Array<string>> | undefined) => Array<RowData>;
9
- export declare const buildValueToLabelMapFromDataColumns: (columns: Array<DataColumnDescriptor>) => Promise<{
10
- valueToNameMap: Map<string, string>;
11
- captions: Set<string>;
12
- }>;
9
+ export declare const buildValueToLabelMapFromDataColumns: (columns: Array<DataColumnDescriptor>) => Promise<Map<string, Map<string, string>>>;
13
10
  export declare const getAvatarColor: (name: string) => string;
14
11
  export declare const extractInitialsFromName: (name: string) => string;
15
12
  export declare const SIGN4_TOP_WIDGET_ID = "60003";
@@ -119,23 +119,27 @@ export const associateColumnsToRows = (columns, rows) => {
119
119
  };
120
120
  export const buildValueToLabelMapFromDataColumns = async (columns) => {
121
121
  const valueToNameMap = new Map();
122
- const captions = new Set();
123
- for (const col of columns) {
124
- const dataDomain = MetadataDataDomains[(col.extendedProperties?.["DataDomain"] ?? "None")];
122
+ const dataListColumns = columns.filter(col => {
123
+ const dataDomainRaw = col.extendedProperties?.["DataDomain"];
124
+ const dataDomain = MetadataDataDomains[(dataDomainRaw ?? "None")];
125
+ return dataDomain === MetadataDataDomains.DataList;
126
+ });
127
+ for (const col of dataListColumns) {
128
+ const tid = Number(col.extendedProperties?.["TID"]);
129
+ const mid = Number(col.extendedProperties?.["MID"]);
125
130
  const dataListID = Number(col.extendedProperties?.["DataListID"]);
126
- if (dataDomain === MetadataDataDomains.DataList) {
127
- if (col.caption) {
128
- captions.add(col.caption);
129
- }
131
+ if (tid && mid && dataListID) {
132
+ const tid_mid = `${tid}_${mid}`;
133
+ valueToNameMap.set(tid_mid, new Map());
130
134
  const dl = await DataListCacheService.GetAsync(dataListID);
131
135
  dl?.items?.forEach((item) => {
132
136
  if (item?.name !== undefined && item?.value !== undefined) {
133
- valueToNameMap.set(item.value, item.name);
137
+ valueToNameMap.get(tid_mid)?.set(item.value, item.name);
134
138
  }
135
139
  });
136
140
  }
137
141
  }
138
- return { valueToNameMap, captions };
142
+ return valueToNameMap;
139
143
  };
140
144
  export const getAvatarColor = (name) => {
141
145
  const colors = [
@@ -10,3 +10,4 @@ export * from './TMUtils';
10
10
  export * from './TMCommandsContextMenu';
11
11
  export * from './TMConditionalWrapper';
12
12
  export * from './TMToppyMessage';
13
+ export * from './GlobalStyles';
@@ -10,3 +10,4 @@ export * from './TMUtils';
10
10
  export * from './TMCommandsContextMenu';
11
11
  export * from './TMConditionalWrapper';
12
12
  export * from './TMToppyMessage';
13
+ export * from './GlobalStyles';
@@ -222,8 +222,8 @@ export const useRelatedDocuments = ({ selectedSearchResult, focusedItem, current
222
222
  const showNoRelationsAlert = (type) => {
223
223
  ShowAlert({
224
224
  message: type === 'detail'
225
- ? "Nessun documento di dettaglio trovato per l'archiviazione."
226
- : "Nessun documento di master trovato per l'archiviazione.",
225
+ ? SDKUI_Localizator.NoDetailDocumentFoundForArchiving
226
+ : SDKUI_Localizator.NoMasterDocumentFoundForArchiving,
227
227
  mode: 'info',
228
228
  title: type === 'detail' ? SDKUI_Localizator.DcmtsDetail : SDKUI_Localizator.DcmtsMaster,
229
229
  duration: 5000
@@ -232,8 +232,8 @@ export const useRelatedDocuments = ({ selectedSearchResult, focusedItem, current
232
232
  const showNoAssociationsAlert = (type) => {
233
233
  ShowAlert({
234
234
  message: type === 'detail'
235
- ? "Nessuna associazione trovata per i documenti di dettaglio."
236
- : "Nessuna associazione trovata per i documenti di master.",
235
+ ? SDKUI_Localizator.NoMatchFoundForDetailDocuments
236
+ : SDKUI_Localizator.NoMatchFoundForMasterDocuments,
237
237
  mode: 'info',
238
238
  title: type === 'detail' ? SDKUI_Localizator.DcmtsDetail : SDKUI_Localizator.DcmtsMaster,
239
239
  duration: 5000
@@ -254,8 +254,8 @@ export const useRelatedDocuments = ({ selectedSearchResult, focusedItem, current
254
254
  if (dtd?.perm?.canArchive !== AccessLevelsEx.Yes && dtd?.perm?.canArchive !== AccessLevelsEx.Mixed) {
255
255
  ShowAlert({
256
256
  message: type === 'detail'
257
- ? "Non hai i permessi per archiviare documenti di dettaglio di questo tipo."
258
- : "Non hai i permessi per archiviare documenti master di questo tipo.",
257
+ ? SDKUI_Localizator.YouDoNotHavePermissionsToArchiveDetailDocumentsOfThisType
258
+ : SDKUI_Localizator.YouDoNotHavePermissionsToArchiveMasterDocumentsOfThisType,
259
259
  mode: 'warning',
260
260
  title: type === 'detail' ? SDKUI_Localizator.DcmtsDetail : SDKUI_Localizator.DcmtsMaster,
261
261
  duration: 5000
@@ -365,10 +365,10 @@ export const useRelatedDocuments = ({ selectedSearchResult, focusedItem, current
365
365
  if (!focusedItem?.TID || !focusedItem?.DID) {
366
366
  ShowAlert({
367
367
  message: isPairing
368
- ? "Nessun documento selezionato per l'abbinamento molti a molti."
369
- : "Nessun documento selezionato per il disabbinamento molti a molti.",
368
+ ? SDKUI_Localizator.NoDocumentSelectedForManyToManyMatching
369
+ : SDKUI_Localizator.NoDocumentSelectedForManyToManyUnmatching,
370
370
  mode: 'warning',
371
- title: isPairing ? 'Abbina documenti molti a molti' : 'Disabbina documenti molti a molti',
371
+ title: isPairing ? SDKUI_Localizator.MatchManyDocumentsManyToMany : SDKUI_Localizator.UnmatchManyDocumentsManyToMany,
372
372
  duration: 5000
373
373
  });
374
374
  return;
@@ -384,10 +384,10 @@ export const useRelatedDocuments = ({ selectedSearchResult, focusedItem, current
384
384
  if (!qd) {
385
385
  ShowAlert({
386
386
  message: isPairing
387
- ? "Nessuna query di recupero associata alla relazione di abbinamento molti a molti."
388
- : "Nessuna query di recupero associata alla relazione di disabbinamento molti a molti.",
387
+ ? SDKUI_Localizator.NoManyToManyMatchingRelationshipAssociatedWithRetrievalQuery
388
+ : SDKUI_Localizator.NoManyToManyUnmatchingRelationshipAssociatedWithRetrievalQuery,
389
389
  mode: 'warning',
390
- title: isPairing ? 'Abbina documenti molti a molti' : 'Disabbina documenti molti a molti',
390
+ title: isPairing ? SDKUI_Localizator.MatchManyDocumentsManyToMany : SDKUI_Localizator.UnmatchManyDocumentsManyToMany,
391
391
  duration: 5000
392
392
  });
393
393
  return;
@@ -490,9 +490,9 @@ export const useRelatedDocuments = ({ selectedSearchResult, focusedItem, current
490
490
  if (!isPairing) {
491
491
  if (!pairedDocumentsResult?.dtdResult?.rows || pairedDocumentsResult.dtdResult.rows.length === 0) {
492
492
  ShowAlert({
493
- message: "Nessun documento abbinato trovato.",
493
+ message: SDKUI_Localizator.NoDocumentMatchFound,
494
494
  mode: 'warning',
495
- title: 'Disabbina documenti molti a molti',
495
+ title: SDKUI_Localizator.UnmatchManyDocumentsManyToMany,
496
496
  duration: 5000
497
497
  });
498
498
  return;
@@ -514,9 +514,9 @@ export const useRelatedDocuments = ({ selectedSearchResult, focusedItem, current
514
514
  const sq = await searchEngine.SearchByIDAsync(qd);
515
515
  if (!sq?.dtdResult?.rows || sq.dtdResult.rows.length === 0) {
516
516
  ShowAlert({
517
- message: "Nessun documento trovato.",
517
+ message: SDKUI_Localizator.NoDcmtFound,
518
518
  mode: 'warning',
519
- title: 'Abbina documenti molti a molti',
519
+ title: SDKUI_Localizator.MatchManyDocumentsManyToMany,
520
520
  duration: 5000
521
521
  });
522
522
  openPairSearchModal(relation, targetTID, qd);
@@ -539,9 +539,9 @@ export const useRelatedDocuments = ({ selectedSearchResult, focusedItem, current
539
539
  };
540
540
  if (filteredRows.length === 0) {
541
541
  ShowAlert({
542
- message: "Nessun documento da abbinare. Tutti i documenti risultanti sono già abbinati.",
542
+ message: SDKUI_Localizator.NoDocumentToMatch,
543
543
  mode: 'warning',
544
- title: 'Abbina documenti molti a molti',
544
+ title: SDKUI_Localizator.MatchManyDocumentsManyToMany,
545
545
  duration: 5000
546
546
  });
547
547
  openPairSearchModal(relation, targetTID, qd);
@@ -560,10 +560,10 @@ export const useRelatedDocuments = ({ selectedSearchResult, focusedItem, current
560
560
  if (!relations.some(r => r.relationType === RelationTypes.ManyToMany)) {
561
561
  ShowAlert({
562
562
  message: isPairing
563
- ? "Nessuna relazione di abbinamento molti a molti definita nel sistema."
564
- : "Nessuna relazione di disabbinamento molti a molti definita nel sistema.",
563
+ ? SDKUI_Localizator.NoManyToManyMatchingRelationshipDefined
564
+ : SDKUI_Localizator.NoManyToManyUnmatchingRelationshipDefined,
565
565
  mode: 'warning',
566
- title: isPairing ? 'Abbina documenti molti a molti' : 'Disabbina documenti molti a molti',
566
+ title: isPairing ? SDKUI_Localizator.MatchManyDocumentsManyToMany : SDKUI_Localizator.UnmatchManyDocumentsManyToMany,
567
567
  duration: 5000
568
568
  });
569
569
  return;
@@ -572,10 +572,10 @@ export const useRelatedDocuments = ({ selectedSearchResult, focusedItem, current
572
572
  if (!manyToManyRels.some(r => r.masterTID === selectedSearchResult?.fromTID || r.detailTID === selectedSearchResult?.fromTID)) {
573
573
  ShowAlert({
574
574
  message: isPairing
575
- ? "Nessuna relazione di abbinamento molti a molti definita per il tipo di documento selezionato."
576
- : "Nessuna relazione di disabbinamento molti a molti definita per il tipo di documento selezionato.",
575
+ ? SDKUI_Localizator.NoManyToManyMatchingRelationshipDefinedForSelectedDocumentType
576
+ : SDKUI_Localizator.NoManyToManyUnmatchingRelationshipDefinedForSelectedDocumentType,
577
577
  mode: 'warning',
578
- title: isPairing ? 'Abbina documenti molti a molti' : 'Disabbina documenti molti a molti',
578
+ title: isPairing ? SDKUI_Localizator.MatchManyDocumentsManyToMany : SDKUI_Localizator.UnmatchManyDocumentsManyToMany,
579
579
  duration: 5000
580
580
  });
581
581
  return;
package/lib/ts/types.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from "react";
2
2
  import { FileFormats, ITopMediaSession, MetadataDescriptor, MetadataValueDescriptor, UserDescriptor, ValidationItem } from "@topconsultnpm/sdk-ts";
3
3
  import { ITMEditorBase } from "../components/base/TMEditorBase";
4
- import { IColumnProps } from "devextreme-react/cjs/data-grid";
4
+ import { IColumnProps } from "devextreme-react/data-grid";
5
5
  export declare enum FormModes {
6
6
  None = 0,
7
7
  Create = 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topconsultnpm/sdkui-react",
3
- "version": "6.19.0-dev2.2",
3
+ "version": "6.19.0-dev2.20",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -39,10 +39,10 @@
39
39
  "lib"
40
40
  ],
41
41
  "dependencies": {
42
- "@topconsultnpm/sdk-ts": "6.19.0-test.1",
42
+ "@topconsultnpm/sdk-ts": "6.19.0-dev2.4",
43
43
  "buffer": "^6.0.3",
44
- "devextreme": "25.1.4",
45
- "devextreme-react": "25.1.4",
44
+ "devextreme": "25.1.7",
45
+ "devextreme-react": "25.1.7",
46
46
  "exceljs": "^4.4.0",
47
47
  "htmlparser2": "^10.0.0",
48
48
  "react-router-dom": "^6.15.0",