@topconsultnpm/sdkui-react-beta 6.13.66 → 6.13.67
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/TMShowAllOrMaxItemsButton.js +6 -5
- package/lib/components/features/archive/TMArchive.js +1 -1
- package/lib/components/features/documents/TMDcmtPreview.js +2 -2
- package/lib/components/features/documents/TMFileUploader.js +1 -1
- package/lib/components/features/search/TMSavedQuerySelector.js +3 -4
- package/lib/components/features/search/TMSearchQueryPanel.js +1 -1
- package/lib/helper/SDKUI_Localizator.d.ts +4 -0
- package/lib/helper/SDKUI_Localizator.js +40 -0
- package/lib/hooks/useDcmtOperations.js +2 -2
- package/lib/utils/theme.d.ts +1 -0
- package/lib/utils/theme.js +1 -0
- package/package.json +1 -1
@@ -1,18 +1,19 @@
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
2
|
-
import { getListMaxItems } from '../../helper';
|
2
|
+
import { getListMaxItems, SDKUI_Localizator } from '../../helper';
|
3
|
+
import { TMColors } from '../../utils/theme';
|
3
4
|
import TMButton from './TMButton';
|
4
5
|
import { useDeviceType, DeviceType } from './TMDeviceProvider';
|
5
6
|
const TMShowAllOrMaxItemsButton = ({ showAll, dataSourceLength, onClick }) => {
|
6
7
|
const deviceType = useDeviceType();
|
7
8
|
let maxItems = getListMaxItems(deviceType ?? DeviceType.DESKTOP);
|
8
|
-
const captionText = showAll ?
|
9
|
+
const captionText = showAll ? SDKUI_Localizator.ShowLess : SDKUI_Localizator.ShowAll;
|
9
10
|
const isMobile = deviceType === DeviceType.MOBILE;
|
10
11
|
return (_jsx(_Fragment, { children: isMobile ?
|
11
12
|
_jsx(TMButton, { elementStyle: { position: 'absolute', right: '10px' }, btnStyle: 'icon', caption: captionText, icon: showAll ?
|
12
|
-
_jsx("div", { style: { backgroundColor:
|
13
|
-
_jsx("div", { style: { backgroundColor:
|
13
|
+
_jsx("div", { style: { backgroundColor: TMColors.button_primary, minWidth: '30px', minHeight: '30px', borderRadius: '10px', display: 'flex', alignItems: 'center', justifyContent: 'center' }, children: _jsx("p", { style: { color: 'white' }, children: `-${dataSourceLength - maxItems}` }) }) :
|
14
|
+
_jsx("div", { style: { backgroundColor: TMColors.button_primary, minWidth: '30px', minHeight: '30px', borderRadius: '10px', display: 'flex', alignItems: 'center', justifyContent: 'center' }, children: _jsx("p", { style: { color: 'white' }, children: `+${dataSourceLength - maxItems}` }) }), onClick: () => onClick?.() })
|
14
15
|
:
|
15
|
-
_jsx(TMButton, { elementStyle: { position: 'absolute', right: '10px' }, width: 'auto', btnStyle: 'advanced', advancedColor:
|
16
|
+
_jsx(TMButton, { elementStyle: { position: 'absolute', right: '10px' }, width: 'auto', btnStyle: 'advanced', advancedColor: TMColors.button_primary, caption: captionText, showTooltip: false, icon: showAll
|
16
17
|
? _jsx("p", { style: { color: 'white' }, children: `-${dataSourceLength - maxItems}` })
|
17
18
|
: _jsx("p", { style: { color: 'white' }, children: `+${dataSourceLength - maxItems}` }), onClick: () => onClick?.() }) }));
|
18
19
|
};
|
@@ -56,7 +56,7 @@ const TMArchive = ({ inputTID }) => {
|
|
56
56
|
const tmFormElement = useMemo(() => currentTID ?
|
57
57
|
_jsx(TMDcmtForm, { TID: currentTID, DID: undefined, groupId: 'tmForm', layoutMode: LayoutModes.Ark, showPreview: deviceType !== DeviceType.MOBILE, onClose: deviceType === DeviceType.MOBILE ? () => setCurrentTID(undefined) : undefined, onSaveRecents: (TIDs) => setMruTIDs(TIDs), showDcmtFormSidebar: false })
|
58
58
|
:
|
59
|
-
_jsx(TMPanel, { title: 'Archiviazione', children: _jsxs(TMLayoutContainer, { gap: 30, alignItems: 'center', justifyContent: 'center', children: [_jsxs(TMLayoutItem, { width: 'max-content', height: 'max-content', children: [" ", _jsxs(StyledToppyTextContainer, { children: [" ", _jsxs(StyledToppyText, { children: [" ",
|
59
|
+
_jsx(TMPanel, { title: 'Archiviazione', children: _jsxs(TMLayoutContainer, { gap: 30, alignItems: 'center', justifyContent: 'center', children: [_jsxs(TMLayoutItem, { width: 'max-content', height: 'max-content', children: [" ", _jsxs(StyledToppyTextContainer, { children: [" ", _jsxs(StyledToppyText, { children: [" ", SDKUI_Localizator.DcmtTypeSelect, " "] }), " "] }), " "] }), _jsxs(TMLayoutItem, { width: 'max-content', height: 'max-content', children: [" ", _jsx("img", { src: Logo, width: 120, alt: '' }), " "] })] }) }), [currentTID, deviceType, mruTIDs]);
|
60
60
|
const allInitialPanelVisibility = {
|
61
61
|
'tmTreeSelector': true,
|
62
62
|
'tmRecentsManager': true,
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useMemo, useRef, useState } from 'react';
|
3
3
|
import styled from 'styled-components';
|
4
4
|
import { RetrieveFileOptions, DcmtOpers, GeneralRetrieveFormats, FileFormats } from '@topconsultnpm/sdk-ts-beta';
|
5
|
-
import { extensionHandler, sleep, getExceptionMessage, formatBytes, IconMenuVertical, IconCloseCircle, IconClear, IconCloseOutline, IconPreview, SDKUI_Globals, IconZoomOutLinear, IconZoomInLinear, IconPrintOutline } from '../../../helper';
|
5
|
+
import { extensionHandler, sleep, getExceptionMessage, formatBytes, IconMenuVertical, IconCloseCircle, IconClear, IconCloseOutline, IconPreview, SDKUI_Globals, IconZoomOutLinear, IconZoomInLinear, IconPrintOutline, SDKUI_Localizator } from '../../../helper';
|
6
6
|
import { useDcmtOperations } from '../../../hooks/useDcmtOperations';
|
7
7
|
import { FileExtensionHandler, FormModes } from '../../../ts';
|
8
8
|
import { TMColors } from '../../../utils/theme';
|
@@ -129,7 +129,7 @@ export const TMFileViewer = ({ fileBlob, isResizingActive }) => {
|
|
129
129
|
return () => { };
|
130
130
|
}, [fileBlob]);
|
131
131
|
if (!fileBlob) {
|
132
|
-
return _jsx("div", { children:
|
132
|
+
return _jsx("div", { children: `${SDKUI_Localizator.FileUpload}...` });
|
133
133
|
}
|
134
134
|
if (fileBlob.type.includes('image')) {
|
135
135
|
return (_jsx(ImageViewer, { fileBlob: fileBlob, alt: '' }));
|
@@ -73,7 +73,7 @@ const TMFileUploader = ({ deviceType = DeviceType.DESKTOP, onClose, onFileUpload
|
|
73
73
|
_jsx("div", { style: { display: 'flex', gap: 10, width: '100%', height: '100%' }, children: _jsxs(UploadContainer, { ref: uploaderRef, onDragOver: handleDragOver, onDragLeave: handleDragLeave, onDrop: handleDrop, style: { backgroundColor: dragOver ? '#76b1e6' : 'white' }, onDoubleClick: browseHandler, "$isRequired": isRequired, children: [_jsx("div", { style: { display: 'flex', gap: '10px', flexDirection: 'column', position: 'absolute', right: 5, top: 5 }, children: _jsx(TMButton, { btnStyle: 'icon', caption: 'Sfoglia', color: isRequired && !uploadedFile ? 'error' : 'primary', onClick: browseHandler, icon: _jsx(IconFolderOpen, { fontSize: 22 }) }) }), _jsx("p", { style: { fontSize: '1.2rem', fontWeight: 'bold' }, children: deviceType === DeviceType.MOBILE ? 'Clicca per sfogliare il tuo file' : 'Trascina il tuo file qui o fai doppio click per sfogliarlo' }), isRequired && _jsxs("p", { style: { fontWeight: 'bold' }, children: [" ", SDKUI_Localizator.RequiredField, " "] })] }) }) :
|
74
74
|
_jsxs("div", { style: { display: 'flex', flexDirection: 'column', gap: 10, width: '100%', height: '100%' }, children: [_jsxs("div", { style: { backgroundColor: 'white', padding: '5px 10px', borderRadius: 8, display: 'flex', alignItems: 'center', justifyContent: 'space-between', color: TMColors.primaryColor }, children: [_jsxs("div", { style: { display: 'flex', alignItems: 'center', gap: 5 }, children: [_jsx("p", { children: "File name:" }), _jsxs("div", { style: { fontWeight: 'bold' }, children: [fileName, " ", _jsxs("span", { children: [" ", ` (${formatBytes(fileSize)})`, " "] })] })] }), uploadedFile && _jsx(TMButton, { btnStyle: 'icon', color: 'error', caption: 'Pulisci', onClick: clearFile, icon: _jsx(IconClear, { fontSize: 22 }) })] }), extensionHandler(fileExt) === FileExtensionHandler.READY_TO_SHOW ? _jsx(TMFileViewer, { fileBlob: uploadedFile, isResizingActive: isResizingActive }) :
|
75
75
|
_jsx("div", { style: { backgroundColor: '#f6dbdb', padding: '5px 10px', borderRadius: 8, display: 'flex', alignItems: 'center', justifyContent: 'space-between', color: TMColors.error }, children: _jsxs("div", { children: [" ", 'Anteprima non disponibile.', fileExt && _jsx("b", { children: ` (*.${fileExt})` })] }) })] });
|
76
|
-
return (_jsx(TMPanel, { title:
|
76
|
+
return (_jsx(TMPanel, { title: SDKUI_Localizator.FileUpload, onBack: deviceType === DeviceType.MOBILE ? () => onClose?.() : undefined, toolbar: deviceType !== DeviceType.MOBILE ? _jsx(StyledHeaderIcon, { onClick: onClose, "$color": 'white', children: _jsx(TMTooltip, { content: SDKUI_Localizator.Close, children: _jsx(IconCloseOutline, {}) }) }) : undefined, children: _jsxs("div", { style: { width: '100%', height: '100%', padding: '2px', display: 'flex', flexDirection: 'column', gap: 10 }, children: [_jsx(HiddenInput, { id: "fileInput", type: "file", onChange: handleInputChange }), content] }) }));
|
77
77
|
};
|
78
78
|
const UploadContainer = styled.div `
|
79
79
|
position: relative;
|
@@ -7,7 +7,6 @@ import ContextMenu from 'devextreme-react/cjs/context-menu';
|
|
7
7
|
import { SDKUI_Localizator, Globalization, svgToString, IconStar, IconDelete, IconDashboard, IconSavedQuery, IconApply, IconInfo, IconCloseOutline } from '../../../helper';
|
8
8
|
import { TMColors } from '../../../utils/theme';
|
9
9
|
import ShowAlert from '../../base/TMAlert';
|
10
|
-
import TMButton from '../../base/TMButton';
|
11
10
|
import { TMMessageBoxManager, ButtonNames, TMExceptionBoxManager } from '../../base/TMPopUp';
|
12
11
|
import TMSpinner from '../../base/TMSpinner';
|
13
12
|
import TMTooltip from '../../base/TMTooltip';
|
@@ -15,6 +14,7 @@ import { TMSearchBar } from '../../sidebar/TMHeader';
|
|
15
14
|
import { DeviceType, useDeviceType } from '../../base/TMDeviceProvider';
|
16
15
|
import { StyledDivHorizontal, StyledOffCanvasPanel } from '../../base/Styled';
|
17
16
|
import { useOutsideClick } from '../../../hooks/useOutsideClick';
|
17
|
+
import TMShowAllOrMaxItemsButton from '../../base/TMShowAllOrMaxItemsButton';
|
18
18
|
const StyledSqdItem = styled.div `
|
19
19
|
display: flex;
|
20
20
|
flex-direction: column;
|
@@ -177,6 +177,7 @@ const TMSavedQuerySelector = React.memo(({ items, selectedId, allowShowSearch =
|
|
177
177
|
display: 'flex',
|
178
178
|
flexDirection: 'column',
|
179
179
|
width: '100%',
|
180
|
+
height: 'calc(100% - 150px)',
|
180
181
|
padding: '5px 10px',
|
181
182
|
gap: '3px',
|
182
183
|
overflow: 'auto'
|
@@ -214,8 +215,6 @@ const TMSavedQuerySelector = React.memo(({ items, selectedId, allowShowSearch =
|
|
214
215
|
fontSize: '1rem',
|
215
216
|
fontWeight: 'bold'
|
216
217
|
}, children: _jsx(IconApply, { fontSize: 24, color: 'green' }) }), _jsx(SavedQueryContexMenu, { sqd: sqd, manageDefault: manageDefault, isMobile: isMobile, setInfoSQD: setInfoSQD, setDefaultAsync: () => setDefaultSQDAsync(sqd), deleteAsync: () => deleteSQDAsync(sqd), favManageAsync: () => favManageSQDAsync(sqd) })] }, sqd.id))) }), dataSource.length > initialSQDsMaxItems && searchText.length <= 0 &&
|
217
|
-
_jsx(
|
218
|
-
_jsx("div", { style: { backgroundColor: TMColors.primaryColor, minWidth: '30px', minHeight: '30px', borderRadius: '10px', display: 'flex', alignItems: 'center', justifyContent: 'center' }, children: _jsx("p", { style: { color: 'white' }, children: `-${dataSource.length - initialSQDsMaxItems}` }) }) :
|
219
|
-
_jsx("div", { style: { backgroundColor: TMColors.primaryColor, minWidth: '30px', minHeight: '30px', borderRadius: '10px', display: 'flex', alignItems: 'center', justifyContent: 'center' }, children: _jsx("p", { style: { color: 'white' }, children: `+${dataSource.length - initialSQDsMaxItems}` }) }), onClick: () => setShowAllRoot(!showAllRoot) }), _jsxs(StyledOffCanvasPanel, { ref: panelRef, "$isOpen": isMobile && infoSQD !== undefined, children: [_jsxs(StyledDivHorizontal, { style: { gap: 10, padding: '10px 8px', width: '100%', alignItems: 'center' }, children: [_jsx("p", { style: { fontSize: '1.1rem', fontWeight: 'bold' }, children: `${SDK_Localizator.SavedQuery} - ${SDKUI_Localizator.About}` }), _jsx(IconCloseOutline, { style: { marginLeft: 'auto', cursor: 'pointer' }, onClick: () => setInfoSQD(undefined) })] }), getTooltipBySqd(infoSQD)] })] }));
|
218
|
+
_jsx("div", { style: { display: 'flex', justifyContent: 'flex-end', padding: '10px', position: 'relative' }, children: _jsx(TMShowAllOrMaxItemsButton, { showAll: showAllRoot, dataSourceLength: dataSource.length, onClick: () => { setShowAllRoot(!showAllRoot); } }) }), _jsxs(StyledOffCanvasPanel, { ref: panelRef, "$isOpen": isMobile && infoSQD !== undefined, children: [_jsxs(StyledDivHorizontal, { style: { gap: 10, padding: '10px 8px', width: '100%', alignItems: 'center' }, children: [_jsx("p", { style: { fontSize: '1.1rem', fontWeight: 'bold' }, children: `${SDK_Localizator.SavedQuery} - ${SDKUI_Localizator.About}` }), _jsx(IconCloseOutline, { style: { marginLeft: 'auto', cursor: 'pointer' }, onClick: () => setInfoSQD(undefined) })] }), getTooltipBySqd(infoSQD)] })] }));
|
220
219
|
});
|
221
220
|
export default TMSavedQuerySelector;
|
@@ -198,7 +198,7 @@ const TMSearchQueryPanel = ({ fromDTD, isExpertMode = SDKUI_Globals.userSettings
|
|
198
198
|
setQd({ ...qd, orderBy: newOrderBy });
|
199
199
|
} })] })
|
200
200
|
:
|
201
|
-
_jsxs(TMLayoutContainer, { gap: 30, alignItems: 'center', justifyContent: 'center', children: [_jsxs(TMLayoutItem, { width: 'max-content', height: 'max-content', children: [" ", _jsxs(StyledToppyTextContainer, { children: [" ", _jsxs(StyledToppyText, { children: [" ",
|
201
|
+
_jsxs(TMLayoutContainer, { gap: 30, alignItems: 'center', justifyContent: 'center', children: [_jsxs(TMLayoutItem, { width: 'max-content', height: 'max-content', children: [" ", _jsxs(StyledToppyTextContainer, { children: [" ", _jsxs(StyledToppyText, { children: [" ", SDKUI_Localizator.DcmtTypeSelectOrQuickSearch, " "] }), " "] }), " "] }), _jsxs(TMLayoutItem, { width: 'max-content', height: 'max-content', children: [" ", _jsx("img", { src: Logo, width: 120, alt: '' }), " "] })] }), showSqdForm &&
|
202
202
|
_jsx(StyledModalContainer, { style: { backgroundColor: `${TMColors.backgroundColorHeader}12` }, children: _jsx(TMSavedQueryForm, { height: '50%', width: '50%', id: formModeSqdForm === FormModes.Create ? -1 : SQD?.id, title: 'Ricerca rapida', formMode: formModeSqdForm, showBackButton: true, qd: qd, isAdvancedSearch: showAdvancedSearch, isModal: false, onClose: () => { setShowSqdForm(false); }, onSaved: onSqdSaved }) })] }), showDistinctValuesPanel &&
|
203
203
|
_jsx(TMDistinctValues, { isModal: true, tid: focusedTidMid?.tid, mid: focusedTidMid?.mid, separator: ',', onClosePanelCallback: () => setShowDistinctValuesPanel(false), onSelectionChanged: (e) => {
|
204
204
|
if (!e)
|
@@ -88,6 +88,7 @@ export declare class SDKUI_Localizator {
|
|
88
88
|
static get DcmtType(): "Dokumententyp" | "Document type" | "Tipo de documento" | "Type de document" | "Tipo documento";
|
89
89
|
static get DcmtTypesSelected(): "Ausgewählte Dokumenttypen" | "Selected document types" | "Tipos de documentos seleccionados" | "Types de documents sélectionnés" | "Tipos de documentos selecionados" | "Tipi documento selezionati";
|
90
90
|
static get DcmtTypeSelect(): "Wählen Sie einen Dokumenttyp aus" | "Select a document type" | "Seleccione un tipo de documento" | "Sélectionnez un type de document" | "Selecione um tipo de documento" | "Selezionare un tipo documento";
|
91
|
+
static get DcmtTypeSelectOrQuickSearch(): "Wählen Sie einen Dokumenttyp oder eine Schnellsuche aus" | "Select a document type or quick search" | "Seleccione un tipo de documento o búsqueda rápida" | "Sélectionnez un type de document ou une recherche rapide" | "Selecione um tipo de documento ou pesquisa rápida" | "Selezionare un tipo documento o ricerca rapida";
|
91
92
|
static get Default(): "Standard" | "Default" | "Predeterminado" | "Defaultão";
|
92
93
|
static get Details(): "Einzelheiten" | "Details" | "Detalles" | "Détails" | "detalhes" | "Dettagli";
|
93
94
|
static get Delete(): "Löschen" | "Delete" | "Borrar" | "Supprimer" | "Excluir" | "Elimina";
|
@@ -146,6 +147,7 @@ export declare class SDKUI_Localizator {
|
|
146
147
|
static get FEFormats_SDI_PDF(): "SdI Style Sheet (PDF)" | "Hoja de estilo SdI (PDF)" | "Feuille de style SdI (PDF)" | "Folha de estilo SdI (PDF)" | "Foglio di stile SdI (PDF)";
|
147
148
|
static get FileManager_QuestionAlreadyExistsFile(): "Ziel enthält bereits eine Datei mit der Bezeichnung {{0}}, ersetzen durch die neue Datei?" | "The destination already contains a file called {{0}}, replace with the new file?" | "El destino ya contiene un archivo llamado {{0}}, ¿sustituir con el nuevo archivo?" | "La destination contient déjà un fichier appelé {{0}}, remplacer avec le nouveau fichier?" | "O destino já contém um ficheiro chamado {{0}}, substitua com o novo arquivo?" | "La destinazione contiene già un file denominato {{0}}, sostituire con il nuovo file?";
|
148
149
|
static get FileManager_QuestionAlreadyExistsFiles(): "Ziel enthält {{0}} Datei mit dem gleichen Namen, ersetzen durch neue Dateien?" | "Destination contains {{0}} files with the same name, replace with new files?" | "El destino contiene {{0}} archivos con el mismo nombre, ¿sustituir con los nuevos archivos?" | "La destination contient {{0}} fichier portant le même nom, remplacer avec les nouveaux fichiers?" | "O destino contém ficheiros {{0}} com o mesmo nome, substitua por novos arquivos?" | "La destinazione contiene {{0}} file con lo stesso nome, sostituire con i nuovi file?";
|
150
|
+
static get FileUpload(): "Datei hochladen" | "File upload" | "Carga de archivo" | "Téléchargement de fichier" | "Carregamento de arquivo" | "Caricamento File";
|
149
151
|
static get FolderExist(): "Ordner existiert bereits. Bitte versuchen Sie einen anderen Namen" | "Folder already exists. Please try another name" | "La carpeta ya existe. Intente con otro nombre." | "Le dossier existe déjà. Veuillez essayer un autre nom" | "A pasta já existe. Por favor tente outro nome" | "La cartella esiste già. Prova un altro nome";
|
150
152
|
static get FolderIsEmpty(): string;
|
151
153
|
static get ForgetPassword(): "Passwort vergessen" | "Forgot password" | "Has olvidado tu contraseña" | "Mot de passe oublié" | "Esqueceu sua senha" | "Password dimenticata";
|
@@ -355,6 +357,8 @@ export declare class SDKUI_Localizator {
|
|
355
357
|
static get SharingModes_Public(): "Öffentlich" | "Public" | "Pública" | "Público" | "Pubblica";
|
356
358
|
static get SharingModes_Shared(): "Geteilt" | "Shared" | "Compartida" | "Partagé" | "Partilhada" | "Condivisa";
|
357
359
|
static get Shortcuts(): "Tastenkombinationen" | "Shortcuts" | "Atajos" | "Raccourcis" | "Atalhos" | "Scorciatoie";
|
360
|
+
static get ShowAll(): "Alle anzeigen" | "Show all" | "Mostrar todo" | "Tout afficher" | "Mostrar tudo" | "Mostra tutti";
|
361
|
+
static get ShowLess(): "Weniger anzeigen" | "Show less" | "Mostrar menos" | "Afficher moins" | "Mostra meno";
|
358
362
|
static get Show_CompleteName(): "Vollständigen Namen anzeigen" | "View full name" | "Mostrar nombre completo" | "Afficher le nom complet" | "Mostrar nome completo" | "Visualizza nome completo";
|
359
363
|
static get ShowDetails(): "Details anzeigen" | "Show details" | "Mostrar detalles" | "Afficher les détails" | "Mostrar detalhes" | "Mostra dettagli";
|
360
364
|
static get ShowFilters(): string;
|
@@ -829,6 +829,16 @@ export class SDKUI_Localizator {
|
|
829
829
|
default: return "Selezionare un tipo documento";
|
830
830
|
}
|
831
831
|
}
|
832
|
+
static get DcmtTypeSelectOrQuickSearch() {
|
833
|
+
switch (this._cultureID) {
|
834
|
+
case CultureIDs.De_DE: return "Wählen Sie einen Dokumenttyp oder eine Schnellsuche aus";
|
835
|
+
case CultureIDs.En_US: return "Select a document type or quick search";
|
836
|
+
case CultureIDs.Es_ES: return "Seleccione un tipo de documento o búsqueda rápida";
|
837
|
+
case CultureIDs.Fr_FR: return "Sélectionnez un type de document ou une recherche rapide";
|
838
|
+
case CultureIDs.Pt_PT: return "Selecione um tipo de documento ou pesquisa rápida";
|
839
|
+
default: return "Selezionare un tipo documento o ricerca rapida";
|
840
|
+
}
|
841
|
+
}
|
832
842
|
static get Default() {
|
833
843
|
switch (this._cultureID) {
|
834
844
|
case CultureIDs.De_DE: return "Standard";
|
@@ -1421,6 +1431,16 @@ export class SDKUI_Localizator {
|
|
1421
1431
|
default: return "La destinazione contiene {{0}} file con lo stesso nome, sostituire con i nuovi file?";
|
1422
1432
|
}
|
1423
1433
|
}
|
1434
|
+
static get FileUpload() {
|
1435
|
+
switch (this._cultureID) {
|
1436
|
+
case CultureIDs.De_DE: return "Datei hochladen";
|
1437
|
+
case CultureIDs.En_US: return "File upload";
|
1438
|
+
case CultureIDs.Es_ES: return "Carga de archivo";
|
1439
|
+
case CultureIDs.Fr_FR: return "Téléchargement de fichier";
|
1440
|
+
case CultureIDs.Pt_PT: return "Carregamento de arquivo";
|
1441
|
+
default: return "Caricamento File";
|
1442
|
+
}
|
1443
|
+
}
|
1424
1444
|
static get FolderExist() {
|
1425
1445
|
switch (this._cultureID) {
|
1426
1446
|
case CultureIDs.De_DE: return "Ordner existiert bereits. Bitte versuchen Sie einen anderen Namen";
|
@@ -3508,6 +3528,26 @@ export class SDKUI_Localizator {
|
|
3508
3528
|
default: return "Scorciatoie";
|
3509
3529
|
}
|
3510
3530
|
}
|
3531
|
+
static get ShowAll() {
|
3532
|
+
switch (this._cultureID) {
|
3533
|
+
case CultureIDs.De_DE: return "Alle anzeigen";
|
3534
|
+
case CultureIDs.En_US: return "Show all";
|
3535
|
+
case CultureIDs.Es_ES: return "Mostrar todo";
|
3536
|
+
case CultureIDs.Fr_FR: return "Tout afficher";
|
3537
|
+
case CultureIDs.Pt_PT: return "Mostrar tudo";
|
3538
|
+
default: return "Mostra tutti";
|
3539
|
+
}
|
3540
|
+
}
|
3541
|
+
static get ShowLess() {
|
3542
|
+
switch (this._cultureID) {
|
3543
|
+
case CultureIDs.De_DE: return "Weniger anzeigen";
|
3544
|
+
case CultureIDs.En_US: return "Show less";
|
3545
|
+
case CultureIDs.Es_ES: return "Mostrar menos";
|
3546
|
+
case CultureIDs.Fr_FR: return "Afficher moins";
|
3547
|
+
case CultureIDs.Pt_PT: return "Mostrar menos";
|
3548
|
+
default: return "Mostra meno";
|
3549
|
+
}
|
3550
|
+
}
|
3511
3551
|
static get Show_CompleteName() {
|
3512
3552
|
switch (this._cultureID) {
|
3513
3553
|
case CultureIDs.De_DE: return "Vollständigen Namen anzeigen";
|
@@ -2,7 +2,7 @@ import { useState } from 'react';
|
|
2
2
|
import { LocalizeDcmtOperationTypes } from '../helper/Enum_Localizator';
|
3
3
|
import { SDK_Globals, RetrieveFileOptions, DcmtOpers, ResultTypes, RecentCategories, MetadataDataTypes, MetadataDataDomains, DataListCacheService } from '@topconsultnpm/sdk-ts-beta';
|
4
4
|
import { ShowAlert, TMResultManager, FormulaHelper, TMExceptionBoxManager, TMSpinner } from '../components';
|
5
|
-
import { Globalization, getExceptionMessage, dialogConfirmOperation, extensionHandler, downloadBase64File, SDKUI_Globals, dcmtsFileCacheDownload, CACHE_SIZE_LIMIT, clearDcmtsFileCache, dcmtsFileCachePreview, isDcmtFileInCache, removeDcmtsFileCache } from '../helper';
|
5
|
+
import { Globalization, getExceptionMessage, dialogConfirmOperation, extensionHandler, downloadBase64File, SDKUI_Globals, dcmtsFileCacheDownload, CACHE_SIZE_LIMIT, clearDcmtsFileCache, dcmtsFileCachePreview, isDcmtFileInCache, removeDcmtsFileCache, SDKUI_Localizator } from '../helper';
|
6
6
|
import { DcmtOperationTypes, DownloadTypes, FileExtensionHandler } from '../ts';
|
7
7
|
import { useFileDialog } from './useInputDialog';
|
8
8
|
import { isXMLFileExt } from '../helper/dcmtsHelper';
|
@@ -189,7 +189,7 @@ export function useDcmtOperations() {
|
|
189
189
|
break;
|
190
190
|
}
|
191
191
|
try {
|
192
|
-
setWaitPanelTextPrimary(
|
192
|
+
setWaitPanelTextPrimary(`${SDKUI_Localizator.FileUpload} ${i + 1} di ${inputDcmts.length}`);
|
193
193
|
const cacheKey = `${inputDcmts[i].TID}-${inputDcmts[i].DID}`;
|
194
194
|
if (dcmtsFileCachePreview.has(cacheKey))
|
195
195
|
removeDcmtsFileCache(cacheKey);
|
package/lib/utils/theme.d.ts
CHANGED
@@ -48,6 +48,7 @@ declare class TMColors {
|
|
48
48
|
static get colorHeader(): string | undefined;
|
49
49
|
static set colorHeader(theColorHeader: string | undefined);
|
50
50
|
static separator: string;
|
51
|
+
static button_primary: string;
|
51
52
|
}
|
52
53
|
declare class FontSize {
|
53
54
|
static defaultFontSize: string;
|
package/lib/utils/theme.js
CHANGED