@topconsultnpm/sdkui-react 6.19.0-dev1.29 → 6.19.0-dev1.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/features/archive/TMArchive.js +1 -1
- package/lib/components/features/documents/TMDragDropOverlay.js +2 -1
- package/lib/components/features/search/TMSearchResult.js +2 -2
- package/lib/helper/SDKUI_Localizator.d.ts +1 -0
- package/lib/helper/SDKUI_Localizator.js +10 -0
- package/package.json +1 -1
|
@@ -58,7 +58,7 @@ const TMArchive = ({ onDcmtTypeSelect = undefined, inputTID, inputFile = null, c
|
|
|
58
58
|
passToSearch(currentTID, outputMids);
|
|
59
59
|
} : undefined })
|
|
60
60
|
:
|
|
61
|
-
_jsx(TMPanel, { title: 'Archiviazione', allowMaximize: false, children: _jsxs(TMLayoutContainer, { gap: 30, alignItems: 'center', justifyContent: 'center', children: [_jsx(StyledToppyTextContainer, { children: _jsx(StyledToppyText, { children: SDKUI_Localizator.DcmtTypeSelect }) }), _jsx(StyledToppyImage, { src: Logo, alt: 'Toppy' })] }) }), [currentTID, deviceType, mruTIDs, inputFile, inputMids]);
|
|
61
|
+
_jsx(TMPanel, { title: 'Archiviazione', allowMaximize: false, children: _jsxs(TMLayoutContainer, { gap: 30, alignItems: 'center', justifyContent: 'center', children: [_jsx(StyledToppyTextContainer, { children: _jsx(StyledToppyText, { children: SDKUI_Localizator.DcmtTypeSelect }) }), _jsx(StyledToppyImage, { src: Logo, alt: 'Toppy' })] }) }), [currentTID, deviceType, mruTIDs, inputFile, inputMids, enableDragDropOverlay]);
|
|
62
62
|
const allInitialPanelVisibility = {
|
|
63
63
|
'tmTreeSelector': true,
|
|
64
64
|
'tmRecentsManager': true,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useState } from "react";
|
|
3
3
|
import Toppy from '../../../assets/Toppy-generico.png';
|
|
4
|
+
import { SDKUI_Localizator } from "../../../helper";
|
|
4
5
|
const TMDragDropOverlay = (props) => {
|
|
5
6
|
const { handleFile, refocusAfterFileInput } = props;
|
|
6
7
|
const [dragOver, setDragOver] = useState(false);
|
|
@@ -91,6 +92,6 @@ const TMDragDropOverlay = (props) => {
|
|
|
91
92
|
alignItems: 'center',
|
|
92
93
|
gap: 20,
|
|
93
94
|
textAlign: 'center',
|
|
94
|
-
}, children: [_jsx("img", { src: Toppy, alt: "Toppy", style: { width: 80, height: 'auto' } }), _jsx("div", { style: { fontSize: '1.6rem' }, children:
|
|
95
|
+
}, children: [_jsx("img", { src: Toppy, alt: "Toppy", style: { width: 80, height: 'auto' } }), _jsx("div", { style: { fontSize: '1.6rem' }, children: SDKUI_Localizator.DropFileHere })] })] }));
|
|
95
96
|
};
|
|
96
97
|
export default TMDragDropOverlay;
|
|
@@ -473,8 +473,8 @@ const TMSearchResult = ({ context = SearchResultContext.METADATA_SEARCH, isVisib
|
|
|
473
473
|
TMSpinner.hide();
|
|
474
474
|
}
|
|
475
475
|
}, onClose: () => setShowManyToManyChooser(false), manageUseLocalizedName: false }), showPairDcmtsModal &&
|
|
476
|
-
_jsx(TMModal, { title: (isPairingManyToMany ? "Abbina" : "Disabbina") + " documenti", onClose: () => setShowPairDcmtsModal(false), children: _jsx(TMSearchResult, { searchResults: pairedSearchResults, onRefreshAfterAddDcmtToFavs: onRefreshAfterAddDcmtToFavs, onRefreshSearchAsync: onRefreshSearchAsync, onFileOpened: onFileOpened, onTaskCreateRequest: onTaskCreateRequest, openWGsCopyMoveForm: openWGsCopyMoveForm, openEditPdf: openEditPdf, openS4TViewer: openS4TViewer, onOpenS4TViewerRequest: onOpenS4TViewerRequest, passToArchiveCallback: passToArchiveCallback, showTodoDcmtForm: showTodoDcmtForm, floatingActionConfig: pairFloatingActionConfig }) }), showPairSearchModal &&
|
|
477
|
-
_jsx(TMModal, { title: "Ricerca documenti", onClose: () => setShowPairSearchModal(false), children: _jsx(TMSearch, { onlyShowSearchQueryPanel: true, inputTID: pairSearchModalTargetTID, inputMids: pairSearchModalInputMids, floatingActionConfig: pairSearchModalFloatingActionConfig }) }), (floatingActionConfig && floatingActionConfig.isVisible) && _jsx(TMSearchResultFloatingActionButton, { selectedDcmtsOrFocused: getSelectedDcmtsOrFocused(selectedItems, focusedItem), config: floatingActionConfig })] }), [
|
|
476
|
+
_jsx(TMModal, { title: (isPairingManyToMany ? "Abbina" : "Disabbina") + " documenti", onClose: () => setShowPairDcmtsModal(false), width: isMobile ? '90%' : '50%', height: isMobile ? '90%' : '70%', children: _jsx(TMSearchResult, { searchResults: pairedSearchResults, onRefreshAfterAddDcmtToFavs: onRefreshAfterAddDcmtToFavs, onRefreshSearchAsync: onRefreshSearchAsync, onFileOpened: onFileOpened, onTaskCreateRequest: onTaskCreateRequest, openWGsCopyMoveForm: openWGsCopyMoveForm, openEditPdf: openEditPdf, openS4TViewer: openS4TViewer, onOpenS4TViewerRequest: onOpenS4TViewerRequest, passToArchiveCallback: passToArchiveCallback, showTodoDcmtForm: showTodoDcmtForm, floatingActionConfig: pairFloatingActionConfig }) }), showPairSearchModal &&
|
|
477
|
+
_jsx(TMModal, { title: "Ricerca documenti", onClose: () => setShowPairSearchModal(false), width: isMobile ? '90%' : '50%', height: isMobile ? '90%' : '70%', children: _jsx(TMSearch, { onlyShowSearchQueryPanel: true, inputTID: pairSearchModalTargetTID, inputMids: pairSearchModalInputMids, floatingActionConfig: pairSearchModalFloatingActionConfig }) }), (floatingActionConfig && floatingActionConfig.isVisible) && _jsx(TMSearchResultFloatingActionButton, { selectedDcmtsOrFocused: getSelectedDcmtsOrFocused(selectedItems, focusedItem), config: floatingActionConfig })] }), [
|
|
478
478
|
searchResults,
|
|
479
479
|
selectedSearchResult,
|
|
480
480
|
lastUpdateSearchTime,
|
|
@@ -172,6 +172,7 @@ export declare class SDKUI_Localizator {
|
|
|
172
172
|
static get DownloadXMLAttachments(): string;
|
|
173
173
|
static get Draft(): string;
|
|
174
174
|
static get Drafts(): string;
|
|
175
|
+
static get DropFileHere(): "Ziehen Sie Ihre Datei hierher" | "Drop your file here" | "Suelta tu archivo aquí" | "Déposez votre fichier ici" | "Solte seu arquivo aqui";
|
|
175
176
|
static get DropFileToShare(): string;
|
|
176
177
|
static get Duplicate(): "Duplikat" | "Duplicate" | "Duplicar" | "Dupliquer" | "Duplicado" | "Duplica";
|
|
177
178
|
static get Duplicate_ConfirmFor1(): "Möchten Sie '{{0}}' duplizieren?" | "Are you sure you want to duplicate '{{0}}'?" | "¿Estás seguro de que deseas duplicar '{{0}}'?" | "Êtes-vous sûr de vouloir dupliquer '{{0}}'?" | "Você tem certeza que deseja duplicar '{{0}}'?" | "Sei sicuro di voler duplicare '{{0}}'?";
|
|
@@ -1632,6 +1632,16 @@ export class SDKUI_Localizator {
|
|
|
1632
1632
|
default: return "Bozze";
|
|
1633
1633
|
}
|
|
1634
1634
|
}
|
|
1635
|
+
static get DropFileHere() {
|
|
1636
|
+
switch (this._cultureID) {
|
|
1637
|
+
case CultureIDs.De_DE: return "Ziehen Sie Ihre Datei hierher";
|
|
1638
|
+
case CultureIDs.En_US: return "Drop your file here";
|
|
1639
|
+
case CultureIDs.Es_ES: return "Suelta tu archivo aquí";
|
|
1640
|
+
case CultureIDs.Fr_FR: return "Déposez votre fichier ici";
|
|
1641
|
+
case CultureIDs.Pt_PT: return "Solte seu arquivo aqui";
|
|
1642
|
+
default: return "Drop your file here";
|
|
1643
|
+
}
|
|
1644
|
+
}
|
|
1635
1645
|
static get DropFileToShare() {
|
|
1636
1646
|
switch (this._cultureID) {
|
|
1637
1647
|
case CultureIDs.De_DE: return "Datei zum Teilen hier ablegen";
|