@topconsultnpm/sdkui-react 6.22.0-dev4.18 → 6.22.0-dev4.19
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/base/TMAlert.d.ts +2 -1
- package/lib/components/base/TMAlert.js +7 -6
- package/lib/components/features/documents/TMDcmtForm.js +37 -32
- package/lib/components/features/documents/TMDcmtPreview.js +6 -2
- package/lib/components/features/search/TMSearchResult.js +5 -2
- package/lib/helper/SDKUI_Localizator.d.ts +3 -0
- package/lib/helper/SDKUI_Localizator.js +30 -0
- package/lib/helper/TMIcons.d.ts +2 -1
- package/lib/helper/TMIcons.js +4 -1
- package/lib/helper/queryHelper.d.ts +7 -1
- package/lib/helper/queryHelper.js +15 -2
- package/package.json +1 -1
|
@@ -63,11 +63,12 @@ declare const TMAlertPosition: {
|
|
|
63
63
|
readonly position: 'absolute';
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
|
-
declare const ShowAlert: ({ mode, message, duration, title, position }: {
|
|
66
|
+
declare const ShowAlert: ({ mode, message, duration, title, tooltip, position }: {
|
|
67
67
|
mode: keyof AlertModes;
|
|
68
68
|
message: string;
|
|
69
69
|
duration?: number;
|
|
70
70
|
title?: string;
|
|
71
|
+
tooltip?: string;
|
|
71
72
|
position?: keyof typeof TMAlertPosition;
|
|
72
73
|
}) => void;
|
|
73
74
|
export default ShowAlert;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React, { useState, useEffect } from 'react';
|
|
3
3
|
import ReactDOM from 'react-dom/client';
|
|
4
|
-
import { IconCloseCircle, IconInfo, IconSuccess,
|
|
4
|
+
import { IconCloseCircle, IconInfo, IconSuccess, IconWarningCircle } from '../../helper';
|
|
5
5
|
import { DeviceType, TMDeviceProvider, useDeviceType } from './TMDeviceProvider';
|
|
6
6
|
const TMAlertPosition = {
|
|
7
7
|
TOP_RIGHT: { top: '10px', right: '10px', position: 'absolute' },
|
|
@@ -20,7 +20,8 @@ const Mode = {
|
|
|
20
20
|
color: 'transparent linear-gradient(272deg, #FFFFFF 0%, #EAD305 100%) 0% 0% no-repeat padding-box',
|
|
21
21
|
borderColor: '#ba873d',
|
|
22
22
|
textColor: '#6e5024',
|
|
23
|
-
|
|
23
|
+
// Icona tonda come le altre: concentrica al cerchio bianco, il triangolo sembrava decentrato
|
|
24
|
+
icon: _jsx(IconWarningCircle, { fontSize: 16, color: '#F0AD4E' }),
|
|
24
25
|
},
|
|
25
26
|
error: {
|
|
26
27
|
variant: 'error',
|
|
@@ -45,7 +46,7 @@ const Mode = {
|
|
|
45
46
|
},
|
|
46
47
|
};
|
|
47
48
|
// const TMAlert = ({ mode, duration = 5000, message, position = 'BOTTOM_CENTER' }: { mode: keyof AlertModes, duration?: number, message: string, position?: keyof typeof TMAlertPosition }) => {
|
|
48
|
-
const TMAlert = ({ mode, duration = 1000, title, message, position = 'BOTTOM_RIGHT' }) => {
|
|
49
|
+
const TMAlert = ({ mode, duration = 1000, title, message, tooltip, position = 'BOTTOM_RIGHT' }) => {
|
|
49
50
|
const deviceType = useDeviceType();
|
|
50
51
|
const [container] = useState(document.getElementsByClassName('tm-alert-temporary-container'));
|
|
51
52
|
useEffect(() => {
|
|
@@ -61,15 +62,15 @@ const TMAlert = ({ mode, duration = 1000, title, message, position = 'BOTTOM_RIG
|
|
|
61
62
|
const alertContainerStyle = TMAlertPosition[position];
|
|
62
63
|
// Su mobile l'alert e' piu' basso e con testo piu' piccolo: la versione desktop copre troppo schermo.
|
|
63
64
|
const isMobile = deviceType === DeviceType.MOBILE;
|
|
64
|
-
return (_jsx("div", { style: { width: '100%', paddingTop: '3px', ...alertContainerStyle }, children: _jsx("div", { className: 'tm-alert-animation-style', style: { animationDuration: `${duration}ms`, position: 'relative', float: 'right', zIndex: '20000999', width: isMobile ? 'min(300px, calc(100vw - 20px))' : '356px', height: isMobile ? '58px' : '86px', borderRadius: '8px', overflow: 'hidden', border: '2px white solid', boxShadow: '0px 3px 6px #00000029' }, children: _jsx("div", { className: 'tm-alert-animation-style', style: { animationDuration: `${duration}ms` }, children: _jsxs("div", { className: 'tm-alert-container', style: { background: Mode[mode].color, animationDuration: `${duration}ms` }, children: [_jsxs("div", { className: "tm-alert-context", style: { position: 'relative' }, children: [_jsx("div", { className: 'tm-alert-icon', style: { position: 'absolute', top: isMobile ? '8px' : '12px', left: isMobile ? '8px' : '12px'
|
|
65
|
+
return (_jsx("div", { style: { width: '100%', paddingTop: '3px', ...alertContainerStyle }, children: _jsx("div", { className: 'tm-alert-animation-style', title: tooltip, style: { animationDuration: `${duration}ms`, position: 'relative', float: 'right', zIndex: '20000999', width: isMobile ? 'min(300px, calc(100vw - 20px))' : '356px', height: isMobile ? '58px' : '86px', borderRadius: '8px', overflow: 'hidden', border: '2px white solid', boxShadow: '0px 3px 6px #00000029' }, children: _jsx("div", { className: 'tm-alert-animation-style', style: { animationDuration: `${duration}ms` }, children: _jsxs("div", { className: 'tm-alert-container', style: { background: Mode[mode].color, animationDuration: `${duration}ms` }, children: [_jsxs("div", { className: "tm-alert-context", style: { position: 'relative' }, children: [_jsx("div", { className: 'tm-alert-icon', style: { position: 'absolute', top: isMobile ? '8px' : '12px', left: isMobile ? '8px' : '12px' }, children: Mode[mode].icon }), _jsx("div", { style: { color: Mode[mode].textColor, position: 'absolute', top: isMobile ? '7px' : '15px', left: isMobile ? '38px' : '45px', textAlign: 'left', fontSize: isMobile ? '0.85rem' : '1.1rem', fontWeight: 'bold', maxWidth: isMobile ? 'calc(100% - 46px)' : '280px', ...(isMobile && { whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }) }, children: title }), _jsx("div", { style: { color: Mode[mode].textColor, position: 'absolute', top: isMobile ? '25px' : '35px', left: isMobile ? '38px' : '45px', textAlign: 'left', fontSize: isMobile ? '0.8rem' : '1rem', maxWidth: isMobile ? 'calc(100% - 46px)' : '280px', ...(isMobile ? { whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' } : { display: '-webkit-box', WebkitLineClamp: 2, WebkitBoxOrient: 'vertical', overflow: 'hidden', wordBreak: 'break-word' }) }, children: message })] }), _jsx("div", { className: 'tm-alert-loading', style: { backgroundImage: `linear-gradient(to right, ${Mode[mode].borderColor}, ${Mode[mode].textColor})`, animationDuration: `${duration}ms` } })] }) }) }) }));
|
|
65
66
|
};
|
|
66
|
-
const ShowAlert = ({ mode, message, duration, title, position = 'BOTTOM_RIGHT' }) => {
|
|
67
|
+
const ShowAlert = ({ mode, message, duration, title, tooltip, position = 'BOTTOM_RIGHT' }) => {
|
|
67
68
|
let container = document.createElement('div');
|
|
68
69
|
container.setAttribute("class", 'tm-alert-temporary-container');
|
|
69
70
|
document.body.appendChild(container);
|
|
70
71
|
// container.style.position = 'relative'
|
|
71
72
|
container.style.display = 'flex';
|
|
72
73
|
const root = ReactDOM.createRoot(container);
|
|
73
|
-
root.render(_jsx(React.StrictMode, { children: _jsx(TMDeviceProvider, { children: _jsx(TMAlert, { message: message, mode: mode, duration: duration, title: title, position: position }) }) }));
|
|
74
|
+
root.render(_jsx(React.StrictMode, { children: _jsx(TMDeviceProvider, { children: _jsx(TMAlert, { message: message, mode: mode, duration: duration, title: title, tooltip: tooltip, position: position }) }) }));
|
|
74
75
|
};
|
|
75
76
|
export default ShowAlert;
|
|
@@ -4,7 +4,7 @@ import TMDcmtPreview from './TMDcmtPreview';
|
|
|
4
4
|
import { AccessLevels, AccessLevelsEx, AppModules, ArchiveConstraints, ArchiveEngineByID, DcmtTypeDescriptor, DcmtTypeListCacheService, DcmtTypePermission, DossierCacheService, LayoutCacheService, LayoutModes, MetadataDataDomains, MetadataDataTypes, MetadataFormats, ObjectClasses, ResultTypes, SDK_Globals, SDK_Localizator, SystemMIDsAsNumber, SystemTIDs, Task_States, TID_DID, UpdateEngineByID, UserListCacheService, ValidationItem, WorkflowCacheService, WorkingGroupCacheService, WorkItemMetadataNames } from '@topconsultnpm/sdk-ts';
|
|
5
5
|
import { FormModes, SearchResultContext } from '../../../ts';
|
|
6
6
|
import { DeviceType, useDeviceType } from '../../base/TMDeviceProvider';
|
|
7
|
-
import { getDcmtMetadataValuesAsync, getTraceShowFileMids, getWorkItemSetIDAsync, handleArchiveVisibility, searchResultToMetadataValues } from '../../../helper/queryHelper';
|
|
7
|
+
import { getDcmtMetadataValuesAsync, getTraceShowFileMids, getTraceShowFileNotUpdatedMessage, getWorkItemSetIDAsync, handleArchiveVisibility, searchResultToMetadataValues } from '../../../helper/queryHelper';
|
|
8
8
|
import { genUniqueId, IconShow, SDKUI_Localizator, updateMruTids, IconBoard, IconDcmtTypeSys, calcIsModified, IconMenuVertical, Globalization, getListMaxItems, getSystemMetadata, IconBoxArchiveIn, IconClear, IconUndo, SDKUI_Globals, IconPreview, isTaskMoreInfo, IconWorkflow, IconSearch, deepCompare, IconActivity, getExceptionMessage, isApprovalWorkflowView, getDcmtCicoStatus, buildWorkItemsFromWFCtrl, IconLock, getDcmtFormToolbarVisibility, taskModalSizes, IconArchiveMultipleDetailDocuments, isNotGrantedDraftsDTD } from '../../../helper';
|
|
9
9
|
import { hasDetailRelations, hasMasterRelations } from '../../../helper/dcmtsHelper';
|
|
10
10
|
import { Gutters, TMColors } from '../../../utils/theme';
|
|
@@ -397,6 +397,11 @@ const TMDcmtForm = ({ TID, DID, groupId, layoutMode = LayoutModes.Update, formMo
|
|
|
397
397
|
return;
|
|
398
398
|
try {
|
|
399
399
|
const res = await getDcmtMetadataValuesAsync(TID, DID, traceMids);
|
|
400
|
+
// Uscito dalla vista: form e riga della griglia restano invariati
|
|
401
|
+
if (res === null) {
|
|
402
|
+
ShowAlert({ mode: 'warning', title: SDKUI_Localizator.DcmtNoLongerAvailable, ...getTraceShowFileNotUpdatedMessage(fromDTDRef.current), duration: 6000 });
|
|
403
|
+
return;
|
|
404
|
+
}
|
|
400
405
|
const row = res?.dtdResult?.rows?.[0];
|
|
401
406
|
const mids = res?.selectMIDs ?? [];
|
|
402
407
|
if (!row)
|
|
@@ -1905,35 +1910,35 @@ const TMDcmtPreviewWrapper = ({ refreshPreviewTrigger, fromDTD, currentDcmt, lay
|
|
|
1905
1910
|
_jsx(TMDcmtPreview, { dcmtData: currentDcmt, isVisible: isVisible, onClosePanel: (!isMobile && countVisibleLeafPanels() > 1) ? () => setPanelVisibilityById('tmDcmtPreview', false) : undefined, allowMaximize: !isMobile && countVisibleLeafPanels() > 1, onMaximizePanel: (!isMobile && countVisibleLeafPanels() > 1) ? () => toggleMaximize("tmDcmtPreview") : undefined, onBack: onBack, isResizingActive: isResizingActive, onFileRetrieved: onFileRetrieved }, refreshPreviewTrigger) :
|
|
1906
1911
|
_jsx(TMFileUploader, { fromDTD: fromDTD, onFileUpload: onFileUpload, openFileUploaderPdfEditor: openFileUploaderPdfEditor, onClose: (!isMobile && countVisibleLeafPanels() > 1) ? () => setPanelVisibilityById('tmDcmtPreview', false) : undefined, isRequired: fromDTD?.archiveConstraint === ArchiveConstraints.ContentCompulsory && dcmtFile === null, defaultBlob: dcmtFile, deviceType: deviceType, isResizingActive: isResizingActive, enableDragDropOverlay: panelVisibility['tmDcmtPreview'] && enableDragDropOverlay, onScanRequest: onScanRequest }));
|
|
1907
1912
|
};
|
|
1908
|
-
const Ribbon = styled.div `
|
|
1909
|
-
font-size: 0.85rem;
|
|
1910
|
-
font-weight: 600;
|
|
1911
|
-
color: #fff;
|
|
1912
|
-
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
|
|
1913
|
-
--f: .4em; /* control the folded part */
|
|
1914
|
-
position: absolute;
|
|
1915
|
-
top: 2px;
|
|
1916
|
-
left: 2px;
|
|
1917
|
-
z-index: 1200;
|
|
1918
|
-
line-height: 1.6;
|
|
1919
|
-
padding-inline: 0.8lh;
|
|
1920
|
-
padding-bottom: var(--f);
|
|
1921
|
-
border-image: conic-gradient(#0008 0 0) 51%/var(--f);
|
|
1922
|
-
clip-path: polygon(100% calc(100% - var(--f)),100% 100%,calc(100% - var(--f)) calc(100% - var(--f)),var(--f) calc(100% - var(--f)), 0 100%,0 calc(100% - var(--f)),999px calc(100% - var(--f) - 999px),calc(100% - 999px) calc(100% - var(--f) - 999px));
|
|
1923
|
-
transform: translate(calc((cos(45deg) - 1)*100%), -100%) rotate(-45deg);
|
|
1924
|
-
transform-origin: 100% 100%;
|
|
1925
|
-
background-color: rgba(217, 148, 13, 0.92);
|
|
1926
|
-
display: inline-block;
|
|
1927
|
-
padding-top: 0.1em;
|
|
1928
|
-
white-space: nowrap;
|
|
1929
|
-
transition: ${props => props.$isMobile ? 'none' : 'all 0.3s ease'};
|
|
1930
|
-
cursor: 'default';
|
|
1931
|
-
|
|
1932
|
-
${props => !props.$isMobile && `
|
|
1933
|
-
&:hover {
|
|
1934
|
-
background-color: #d9940d;
|
|
1935
|
-
font-size: 1.1rem;
|
|
1936
|
-
transform: translate(calc((cos(45deg) - 1)*100%), -100%) rotate(-45deg) scale(1.05);
|
|
1937
|
-
}
|
|
1938
|
-
`}
|
|
1913
|
+
const Ribbon = styled.div `
|
|
1914
|
+
font-size: 0.85rem;
|
|
1915
|
+
font-weight: 600;
|
|
1916
|
+
color: #fff;
|
|
1917
|
+
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
|
|
1918
|
+
--f: .4em; /* control the folded part */
|
|
1919
|
+
position: absolute;
|
|
1920
|
+
top: 2px;
|
|
1921
|
+
left: 2px;
|
|
1922
|
+
z-index: 1200;
|
|
1923
|
+
line-height: 1.6;
|
|
1924
|
+
padding-inline: 0.8lh;
|
|
1925
|
+
padding-bottom: var(--f);
|
|
1926
|
+
border-image: conic-gradient(#0008 0 0) 51%/var(--f);
|
|
1927
|
+
clip-path: polygon(100% calc(100% - var(--f)),100% 100%,calc(100% - var(--f)) calc(100% - var(--f)),var(--f) calc(100% - var(--f)), 0 100%,0 calc(100% - var(--f)),999px calc(100% - var(--f) - 999px),calc(100% - 999px) calc(100% - var(--f) - 999px));
|
|
1928
|
+
transform: translate(calc((cos(45deg) - 1)*100%), -100%) rotate(-45deg);
|
|
1929
|
+
transform-origin: 100% 100%;
|
|
1930
|
+
background-color: rgba(217, 148, 13, 0.92);
|
|
1931
|
+
display: inline-block;
|
|
1932
|
+
padding-top: 0.1em;
|
|
1933
|
+
white-space: nowrap;
|
|
1934
|
+
transition: ${props => props.$isMobile ? 'none' : 'all 0.3s ease'};
|
|
1935
|
+
cursor: 'default';
|
|
1936
|
+
|
|
1937
|
+
${props => !props.$isMobile && `
|
|
1938
|
+
&:hover {
|
|
1939
|
+
background-color: #d9940d;
|
|
1940
|
+
font-size: 1.1rem;
|
|
1941
|
+
transform: translate(calc((cos(45deg) - 1)*100%), -100%) rotate(-45deg) scale(1.05);
|
|
1942
|
+
}
|
|
1943
|
+
`}
|
|
1939
1944
|
`;
|
|
@@ -40,9 +40,12 @@ const TMDcmtPreview = ({ dcmtData, isResizingActive, isVisible, canNext, canPrev
|
|
|
40
40
|
const cacheKey = getCacheKey();
|
|
41
41
|
const [hasLoadedDataOnce, setHasLoadedDataOnce] = useState(false);
|
|
42
42
|
const [lastLoadedDid, setLastLoadedDid] = useState(undefined);
|
|
43
|
+
// Aggiornato subito, a differenza dello stato: evita il doppio caricamento (es. StrictMode)
|
|
44
|
+
const lastLoadedDidRef = useRef(undefined);
|
|
43
45
|
useEffect(() => {
|
|
44
46
|
if (!dcmtData) {
|
|
45
|
-
|
|
47
|
+
lastLoadedDidRef.current = undefined;
|
|
48
|
+
setLastLoadedDid(undefined); // Reset
|
|
46
49
|
setDcmtBlob(undefined);
|
|
47
50
|
setError('');
|
|
48
51
|
setIsAbortError(false);
|
|
@@ -54,8 +57,9 @@ const TMDcmtPreview = ({ dcmtData, isResizingActive, isVisible, canNext, canPrev
|
|
|
54
57
|
if (!isVisible)
|
|
55
58
|
return;
|
|
56
59
|
// Documento già caricato: ricaricarlo ricreerebbe il visualizzatore senza motivo
|
|
57
|
-
if (hasLoadedDataOnce && currentCacheKey === lastLoadedDid)
|
|
60
|
+
if ((hasLoadedDataOnce && currentCacheKey === lastLoadedDid) || currentCacheKey === lastLoadedDidRef.current)
|
|
58
61
|
return;
|
|
62
|
+
lastLoadedDidRef.current = currentCacheKey;
|
|
59
63
|
if (isDcmtFileInCache(currentCacheKey)) {
|
|
60
64
|
isBasketMode ? loadBasketFile() : loadDocumentWithCache();
|
|
61
65
|
setShowPreview(true);
|
|
@@ -3,7 +3,7 @@ import React, { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useSta
|
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import { LoadIndicator } from 'devextreme-react';
|
|
5
5
|
import { AppModules, DataColumnTypes, DataListViewModes, DcmtTypeListCacheService, LayoutCacheService, LayoutModes, MetadataDataDomains, SDK_Globals, SystemMIDsAsNumber, UserListCacheService, } from '@topconsultnpm/sdk-ts';
|
|
6
|
-
import { customizeSearchByDisplayText, deepCompare, formatDateTimeByMetadataFormat, formatNumberByMetadataFormat, generateUniqueColumnKeys, genUniqueId, getColumnFormatInfo, getDateDisplayText, getNumberDisplayText, getSearchToolbarVisibility, IconAll, IconBoard, IconDcmtTypeSys, IconDelete, IconDuplicate, IconEdit, IconMenuVertical, IconPlatform, IconRefresh, IconSearchCheck, IconShow, isApprovalWorkflowView, isSign4TopEnabled, searchResultDescriptorToSimpleArray, searchResultToMetadataValues, getTraceShowFileMids, getDcmtMetadataValuesAsync, SDKUI_Globals, SDKUI_Localizator, IconCloseOutline, getSearchResultPanelLayout, getSearchResultPanelLayoutSignature, hasSearchResultPanelLayout, saveSearchResultPanelLayout, subscribeSearchResultPanelLayout, VIRTUAL_RENDERING_THRESHOLD, VIRTUAL_RENDERING_CELL_THRESHOLD } from '../../../helper';
|
|
6
|
+
import { customizeSearchByDisplayText, deepCompare, formatDateTimeByMetadataFormat, formatNumberByMetadataFormat, generateUniqueColumnKeys, genUniqueId, getColumnFormatInfo, getDateDisplayText, getNumberDisplayText, getSearchToolbarVisibility, IconAll, IconBoard, IconDcmtTypeSys, IconDelete, IconDuplicate, IconEdit, IconMenuVertical, IconPlatform, IconRefresh, IconSearchCheck, IconShow, isApprovalWorkflowView, isSign4TopEnabled, searchResultDescriptorToSimpleArray, searchResultToMetadataValues, getTraceShowFileMids, getTraceShowFileNotUpdatedMessage, getDcmtMetadataValuesAsync, SDKUI_Globals, SDKUI_Localizator, IconCloseOutline, getSearchResultPanelLayout, getSearchResultPanelLayoutSignature, hasSearchResultPanelLayout, saveSearchResultPanelLayout, subscribeSearchResultPanelLayout, VIRTUAL_RENDERING_THRESHOLD, VIRTUAL_RENDERING_CELL_THRESHOLD } from '../../../helper';
|
|
7
7
|
import { CounterItemKey, formatCount } from '../../base/TMCounterContainer';
|
|
8
8
|
import { getDcmtCicoStatus } from '../../../helper/checkinCheckoutManager';
|
|
9
9
|
import { DcmtOperationTypes, SearchResultContext, } from '../../../ts';
|
|
@@ -295,7 +295,10 @@ handleNavigateToWGs, handleNavigateToDossiers, fetchRemoteCertificates, graphome
|
|
|
295
295
|
return;
|
|
296
296
|
try {
|
|
297
297
|
const res = await getDcmtMetadataValuesAsync(tid, did, traceMids);
|
|
298
|
-
|
|
298
|
+
// Uscito dalla vista: la riga resta per non chiudere l'anteprima aperta
|
|
299
|
+
if (res === null)
|
|
300
|
+
ShowAlert({ mode: 'warning', title: SDKUI_Localizator.DcmtNoLongerAvailable, ...getTraceShowFileNotUpdatedMessage(fromDTD), duration: 6000 });
|
|
301
|
+
else if (res)
|
|
299
302
|
await refreshFocusedDataRowRef.current(tid, did, true, res);
|
|
300
303
|
}
|
|
301
304
|
catch (e) {
|
|
@@ -180,6 +180,9 @@ export declare class SDKUI_Localizator {
|
|
|
180
180
|
static get DcmtsDetail(): "Detail documents" | "Detail-Dokumente" | "Documenti dettaglio" | "Documentos detail" | "Documents detail";
|
|
181
181
|
static get DcmtsMaster(): "Documenti master" | "Documentos master" | "Documents master" | "Master documents" | "Master-Dokumente";
|
|
182
182
|
static get DcmtOutOfView(): "As alterações feitas no documento removeram-no da vista e já não é acessível.<br>Foi redireccionado para os resultados da pesquisa." | "Die am Dokument vorgenommenen Änderungen haben es aus der Ansicht entfernt und es ist nicht mehr zugänglich.<br>Sie wurden zur Suchergebnisliste weitergeleitet." | "Le modifiche apportate al documento lo hanno rimosso dalla vista e non è più possibile accedervi.<br>Sei stato reindirizzato al risultato della ricerca." | "Les modifications apportées au document l'ont supprimé de la vue et il n'est plus accessible.<br>Vous avez été redirigé vers les résultats de recherche." | "Los cambios realizados en el documento lo han eliminado de la vista y ya no es accesible.<br>Has sido redirigido al resultado de la búsqueda." | "The changes made to the document have removed it from view and it is no longer accessible.<br>You have been redirected to the search results.";
|
|
183
|
+
static get DcmtNoLongerAvailable(): "Document no longer available" | "Document plus disponible" | "Documento já não disponível" | "Documento non più disponibile" | "Documento ya no disponible" | "Dokument nicht mehr verfügbar";
|
|
184
|
+
static get DcmtNoLongerAvailable_MetadataNotUpdated(): "Impossibile aggiornare il metadato \"{{0}}\". Aggiornare la ricerca." | "Impossible de mettre à jour la métadonnée \"{{0}}\". Actualisez la recherche." | "Metadatum \"{{0}}\" konnte nicht aktualisiert werden. Aktualisieren Sie die Suche." | "No se puede actualizar el metadato \"{{0}}\". Actualice la búsqueda." | "Não é possível atualizar o metadado \"{{0}}\". Atualize a pesquisa." | "Unable to update the metadata \"{{0}}\". Refresh the search.";
|
|
185
|
+
static get DcmtNoLongerAvailable_MetadataNotUpdatedMulti(): "Impossibile aggiornare {{0}} metadati. Aggiornare la ricerca." | "Impossible de mettre à jour {{0}} métadonnées. Actualisez la recherche." | "No se pueden actualizar {{0}} metadatos. Actualice la búsqueda." | "Não é possível atualizar {{0}} metadados. Atualize a pesquisa." | "Unable to update {{0}} metadata. Refresh the search." | "{{0}} Metadaten konnten nicht aktualisiert werden. Aktualisieren Sie die Suche.";
|
|
183
186
|
static get DcmtType(): "Document type" | "Dokumententyp" | "Tipo de documento" | "Tipo documento" | "Type de document";
|
|
184
187
|
static get DcmtTypesSelected(): "Ausgewählte Dokumenttypen" | "Selected document types" | "Tipi documento selezionati" | "Tipos de documentos seleccionados" | "Tipos de documentos selecionados" | "Types de documents sélectionnés";
|
|
185
188
|
static get DcmtTypeSelect(): "Seleccione un tipo de documento" | "Selecione um tipo de documento" | "Select a document type" | "Selezionare un tipo documento" | "Sélectionnez un type de document" | "Wählen Sie einen Dokumenttyp aus";
|
|
@@ -1786,6 +1786,36 @@ export class SDKUI_Localizator {
|
|
|
1786
1786
|
default: return "Le modifiche apportate al documento lo hanno rimosso dalla vista e non è più possibile accedervi.<br>Sei stato reindirizzato al risultato della ricerca.";
|
|
1787
1787
|
}
|
|
1788
1788
|
}
|
|
1789
|
+
static get DcmtNoLongerAvailable() {
|
|
1790
|
+
switch (this._cultureID) {
|
|
1791
|
+
case CultureIDs.De_DE: return "Dokument nicht mehr verfügbar";
|
|
1792
|
+
case CultureIDs.En_US: return "Document no longer available";
|
|
1793
|
+
case CultureIDs.Es_ES: return "Documento ya no disponible";
|
|
1794
|
+
case CultureIDs.Fr_FR: return "Document plus disponible";
|
|
1795
|
+
case CultureIDs.Pt_PT: return "Documento já não disponível";
|
|
1796
|
+
default: return "Documento non più disponibile";
|
|
1797
|
+
}
|
|
1798
|
+
}
|
|
1799
|
+
static get DcmtNoLongerAvailable_MetadataNotUpdated() {
|
|
1800
|
+
switch (this._cultureID) {
|
|
1801
|
+
case CultureIDs.De_DE: return "Metadatum \"{{0}}\" konnte nicht aktualisiert werden. Aktualisieren Sie die Suche.";
|
|
1802
|
+
case CultureIDs.En_US: return "Unable to update the metadata \"{{0}}\". Refresh the search.";
|
|
1803
|
+
case CultureIDs.Es_ES: return "No se puede actualizar el metadato \"{{0}}\". Actualice la búsqueda.";
|
|
1804
|
+
case CultureIDs.Fr_FR: return "Impossible de mettre à jour la métadonnée \"{{0}}\". Actualisez la recherche.";
|
|
1805
|
+
case CultureIDs.Pt_PT: return "Não é possível atualizar o metadado \"{{0}}\". Atualize a pesquisa.";
|
|
1806
|
+
default: return "Impossibile aggiornare il metadato \"{{0}}\". Aggiornare la ricerca.";
|
|
1807
|
+
}
|
|
1808
|
+
}
|
|
1809
|
+
static get DcmtNoLongerAvailable_MetadataNotUpdatedMulti() {
|
|
1810
|
+
switch (this._cultureID) {
|
|
1811
|
+
case CultureIDs.De_DE: return "{{0}} Metadaten konnten nicht aktualisiert werden. Aktualisieren Sie die Suche.";
|
|
1812
|
+
case CultureIDs.En_US: return "Unable to update {{0}} metadata. Refresh the search.";
|
|
1813
|
+
case CultureIDs.Es_ES: return "No se pueden actualizar {{0}} metadatos. Actualice la búsqueda.";
|
|
1814
|
+
case CultureIDs.Fr_FR: return "Impossible de mettre à jour {{0}} métadonnées. Actualisez la recherche.";
|
|
1815
|
+
case CultureIDs.Pt_PT: return "Não é possível atualizar {{0}} metadados. Atualize a pesquisa.";
|
|
1816
|
+
default: return "Impossibile aggiornare {{0}} metadati. Aggiornare la ricerca.";
|
|
1817
|
+
}
|
|
1818
|
+
}
|
|
1789
1819
|
static get DcmtType() {
|
|
1790
1820
|
switch (this._cultureID) {
|
|
1791
1821
|
case CultureIDs.De_DE: return "Dokumententyp";
|
package/lib/helper/TMIcons.d.ts
CHANGED
|
@@ -77,6 +77,7 @@ declare function IconCalendar(props: React.SVGProps<SVGSVGElement>): React.JSX.E
|
|
|
77
77
|
declare function IconAtSign(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
|
|
78
78
|
declare function IconEdit(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
|
|
79
79
|
declare function IconWarning(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
|
|
80
|
+
declare function IconWarningCircle(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
|
|
80
81
|
declare function IconInfo(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
|
|
81
82
|
declare function IconSuccess(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
|
|
82
83
|
declare function IconAlarmPlus(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
|
|
@@ -282,4 +283,4 @@ export declare function IconCustom(props: React.SVGProps<SVGSVGElement>): React.
|
|
|
282
283
|
export declare function IconSeparator(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
|
|
283
284
|
export declare function IconCache(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
|
|
284
285
|
declare function IconScanner(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
|
|
285
|
-
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, IconNewSignature, IconScanner };
|
|
286
|
+
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, IconWarningCircle, 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, IconNewSignature, IconScanner };
|
package/lib/helper/TMIcons.js
CHANGED
|
@@ -234,6 +234,9 @@ function IconEdit(props) {
|
|
|
234
234
|
function IconWarning(props) {
|
|
235
235
|
return (_jsxs("svg", { fontSize: props.fontSize ? props.fontSize : FONTSIZE, viewBox: "0 0 1024 1024", fill: "currentColor", height: "1em", width: "1em", ...props, children: [" ", _jsx("path", { d: "M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" }), " "] }));
|
|
236
236
|
}
|
|
237
|
+
function IconWarningCircle(props) {
|
|
238
|
+
return (_jsxs("svg", { fontSize: props.fontSize ? props.fontSize : FONTSIZE, viewBox: "0 0 1024 1024", fill: "currentColor", height: "1em", width: "1em", ...props, children: [" ", _jsx("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" }), " "] }));
|
|
239
|
+
}
|
|
237
240
|
function IconInfo(props) {
|
|
238
241
|
return (_jsxs("svg", { fontSize: props.fontSize ? props.fontSize : FONTSIZE, viewBox: "0 0 1024 1024", fill: "currentColor", height: "1em", width: "1em", ...props, children: [" ", _jsx("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" }), " "] }));
|
|
239
242
|
}
|
|
@@ -704,4 +707,4 @@ export function IconCache(props) {
|
|
|
704
707
|
function IconScanner(props) {
|
|
705
708
|
return (_jsxs("svg", { fontSize: props.fontSize ? props.fontSize : FONTSIZE, viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em", ...props, children: [_jsx("path", { d: "M4 3.5 L20 3.5 L21 9 L3 9 Z", opacity: "0.5" }), _jsx("rect", { x: "2", y: "10", width: "20", height: "7", rx: "1.5" }), _jsx("rect", { x: "4", y: "11.5", width: "16", height: "4", rx: "0.5", opacity: "0.25", fill: "white" }), _jsx("rect", { x: "4", y: "13", width: "16", height: "0.8", fill: "white", opacity: "0.7" }), _jsx("rect", { x: "4", y: "18", width: "16", height: "1.5", rx: "0.5" }), _jsx("circle", { cx: "5", cy: "9.5", r: "0.7" }), _jsx("circle", { cx: "19", cy: "9.5", r: "0.7" })] }));
|
|
706
709
|
}
|
|
707
|
-
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, IconNewSignature, IconScanner };
|
|
710
|
+
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, IconWarningCircle, 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, IconNewSignature, IconScanner };
|
|
@@ -25,7 +25,13 @@ export declare const getTraceShowFileMids: (dtd: DcmtTypeDescriptor | undefined)
|
|
|
25
25
|
/**
|
|
26
26
|
* Legge solo i metadati indicati del documento con una ricerca mirata.
|
|
27
27
|
* Se la ricerca fallisce o non li restituisce tutti (es. permessi), ripiega sulla GetMetadata completa.
|
|
28
|
+
* Restituisce null se il documento non rientra più nel tipo documento (es. vista filtrata sui metadati aggiornati).
|
|
28
29
|
*/
|
|
29
|
-
export declare const getDcmtMetadataValuesAsync: (tid: number, did: number, mids: number[]) => Promise<SearchResultDescriptor | undefined>;
|
|
30
|
+
export declare const getDcmtMetadataValuesAsync: (tid: number, did: number, mids: number[]) => Promise<SearchResultDescriptor | null | undefined>;
|
|
31
|
+
/** Testo dell'avviso quando i metadati "Mostra file" non si aggiornano: con più metadati i nomi vanno nel tooltip */
|
|
32
|
+
export declare const getTraceShowFileNotUpdatedMessage: (dtd: DcmtTypeDescriptor | undefined) => {
|
|
33
|
+
message: string;
|
|
34
|
+
tooltip: string;
|
|
35
|
+
};
|
|
30
36
|
export declare const searchResultToMetadataValues: (tid: number | undefined, dtd: DataTableDescriptor | undefined, rows: string[], mids: number[], metadata: MetadataDescriptor[], layoutMode: LayoutModes, isReadOnlyOrigin?: boolean) => MetadataValueDescriptorEx[];
|
|
31
37
|
export declare const handleArchiveVisibility: (md: MetadataDescriptor) => boolean;
|
|
@@ -270,6 +270,7 @@ export const getTraceShowFileMids = (dtd) => dtd?.metadata?.filter(md => md.spec
|
|
|
270
270
|
/**
|
|
271
271
|
* Legge solo i metadati indicati del documento con una ricerca mirata.
|
|
272
272
|
* Se la ricerca fallisce o non li restituisce tutti (es. permessi), ripiega sulla GetMetadata completa.
|
|
273
|
+
* Restituisce null se il documento non rientra più nel tipo documento (es. vista filtrata sui metadati aggiornati).
|
|
273
274
|
*/
|
|
274
275
|
export const getDcmtMetadataValuesAsync = async (tid, did, mids) => {
|
|
275
276
|
const searchEngine = SDK_Globals.tmSession?.NewSearchEngine();
|
|
@@ -294,8 +295,10 @@ export const getDcmtMetadataValuesAsync = async (tid, did, mids) => {
|
|
|
294
295
|
wiDID.rightBrackets = ')';
|
|
295
296
|
qd.where = [wiDID];
|
|
296
297
|
const result = await searchEngine?.SearchByIDAsync(qd);
|
|
297
|
-
if (result
|
|
298
|
-
|
|
298
|
+
if (result && mids.every(mid => result.selectMIDs?.includes(mid))) {
|
|
299
|
+
// Ricerca riuscita ma senza righe: il documento è uscito dalla vista, GetMetadata andrebbe in errore
|
|
300
|
+
return result.dtdResult?.rows?.[0] ? result : null;
|
|
301
|
+
}
|
|
299
302
|
}
|
|
300
303
|
}
|
|
301
304
|
catch (e) {
|
|
@@ -303,6 +306,16 @@ export const getDcmtMetadataValuesAsync = async (tid, did, mids) => {
|
|
|
303
306
|
}
|
|
304
307
|
return await searchEngine?.GetMetadataAsync(tid, did, true);
|
|
305
308
|
};
|
|
309
|
+
/** Testo dell'avviso quando i metadati "Mostra file" non si aggiornano: con più metadati i nomi vanno nel tooltip */
|
|
310
|
+
export const getTraceShowFileNotUpdatedMessage = (dtd) => {
|
|
311
|
+
const names = (dtd?.metadata ?? [])
|
|
312
|
+
.filter(md => md.special === MetadataSpecials.Trace_ShowFile && md.id !== undefined)
|
|
313
|
+
.map(md => ((SDK_Globals.useLocalizedName ? md.nameLoc : md.name) ?? md.name ?? md.nameLoc ?? '').toString());
|
|
314
|
+
const message = names.length === 1
|
|
315
|
+
? SDKUI_Localizator.DcmtNoLongerAvailable_MetadataNotUpdated.replace('{{0}}', names[0])
|
|
316
|
+
: SDKUI_Localizator.DcmtNoLongerAvailable_MetadataNotUpdatedMulti.replace('{{0}}', String(names.length));
|
|
317
|
+
return { message, tooltip: names.length === 1 ? message : names.join('\n') };
|
|
318
|
+
};
|
|
306
319
|
export const searchResultToMetadataValues = (tid, dtd, rows, mids, metadata, layoutMode, isReadOnlyOrigin = false) => {
|
|
307
320
|
if (!metadata || metadata.length === 0) {
|
|
308
321
|
return [];
|