@topconsultnpm/sdkui-react-beta 6.9.92 → 6.9.94
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/editors/TMTextExpression.d.ts +18 -0
- package/lib/components/editors/TMTextExpression.js +142 -0
- package/lib/helper/SDKUI_Localizator.d.ts +15 -0
- package/lib/helper/SDKUI_Localizator.js +150 -0
- package/lib/helper/helpers.d.ts +1 -0
- package/lib/helper/helpers.js +9 -0
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { QueryDescriptor, ValidationItem } from '@topconsultnpm/sdk-ts-beta';
|
|
3
|
+
import { ITMEditorBase } from '../base/TMEditorBase';
|
|
4
|
+
interface ITMTextExpression extends ITMEditorBase {
|
|
5
|
+
value: string | undefined;
|
|
6
|
+
valueOrig: string | undefined;
|
|
7
|
+
qd?: QueryDescriptor;
|
|
8
|
+
formulaItems?: string[];
|
|
9
|
+
label?: string;
|
|
10
|
+
validationItems?: ValidationItem[];
|
|
11
|
+
onValueChanged?: (newText: string | undefined) => void;
|
|
12
|
+
}
|
|
13
|
+
declare const TMTextExpression: React.FunctionComponent<ITMTextExpression>;
|
|
14
|
+
export declare class FormulaItemHelper {
|
|
15
|
+
id: number;
|
|
16
|
+
paramName: string;
|
|
17
|
+
}
|
|
18
|
+
export default TMTextExpression;
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useState } from 'react';
|
|
3
|
+
import { DcmtTypeListCacheService } from '@topconsultnpm/sdk-ts-beta';
|
|
4
|
+
import { Column } from 'devextreme-react/cjs/data-grid';
|
|
5
|
+
import { IconClear, IconColumns, IconDataList, SDKUI_Localizator, stringIsNullOrEmpty } from '../../helper';
|
|
6
|
+
import { TMExceptionBoxManager } from '../base/TMPopUp';
|
|
7
|
+
import { TMMetadataChooserForm } from '../choosers/TMMetadataChooser';
|
|
8
|
+
import TMChooserForm from '../forms/TMChooserForm';
|
|
9
|
+
import TMTextBox from './TMTextBox';
|
|
10
|
+
const TMTextExpression = (props) => {
|
|
11
|
+
const [metadatas_Info_Source, setMetadatas_Info_Source] = useState([]);
|
|
12
|
+
const [showMetadataChooser, setShowMetadataChooser] = useState(false);
|
|
13
|
+
const [showFormulaChooser, setShowFormulaChooser] = useState(false);
|
|
14
|
+
useEffect(() => { MetadataInfos_Source_Get_Async(); }, [props.qd]);
|
|
15
|
+
async function MetadataInfos_Source_Get_Async() {
|
|
16
|
+
if (!props.qd?.select)
|
|
17
|
+
return;
|
|
18
|
+
let mhs_source = [];
|
|
19
|
+
try {
|
|
20
|
+
let dtd_source;
|
|
21
|
+
let md_source;
|
|
22
|
+
let tid_source = -1;
|
|
23
|
+
let si;
|
|
24
|
+
let sis = props.qd?.select?.slice();
|
|
25
|
+
sis = sis.slice().sort((a, b) => a.tid - b.tid);
|
|
26
|
+
for (si of sis) {
|
|
27
|
+
if (si.tid == undefined || si.mid == undefined)
|
|
28
|
+
continue;
|
|
29
|
+
if (tid_source != si.tid) {
|
|
30
|
+
dtd_source = await DcmtTypeListCacheService.GetAsync(si.tid, true);
|
|
31
|
+
if (dtd_source == undefined)
|
|
32
|
+
continue;
|
|
33
|
+
tid_source = si.tid;
|
|
34
|
+
}
|
|
35
|
+
if (dtd_source?.metadata == undefined)
|
|
36
|
+
continue;
|
|
37
|
+
md_source = dtd_source.metadata.find(o => o.id == si.mid);
|
|
38
|
+
if (md_source?.name == undefined)
|
|
39
|
+
continue;
|
|
40
|
+
if (tid_source == undefined)
|
|
41
|
+
continue;
|
|
42
|
+
mhs_source.push(new MetatadaHelper(si.mid, md_source.name));
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
catch (e) {
|
|
46
|
+
TMExceptionBoxManager.show({ exception: e, title: 'MetadataInfos_Source_Get_Async' });
|
|
47
|
+
}
|
|
48
|
+
setMetadatas_Info_Source(mhs_source);
|
|
49
|
+
}
|
|
50
|
+
function Expression_IDs2Names(expression) {
|
|
51
|
+
if (expression == undefined)
|
|
52
|
+
return expression;
|
|
53
|
+
let temp = expression.slice();
|
|
54
|
+
let mh;
|
|
55
|
+
for (mh of metadatas_Info_Source) {
|
|
56
|
+
temp = temp.replaceAll(mh.Mid.toString(), mh.MetadataName);
|
|
57
|
+
}
|
|
58
|
+
temp = temp.replaceAll("{@1}", "{@DID}");
|
|
59
|
+
return temp;
|
|
60
|
+
}
|
|
61
|
+
function Expression_Names2IDs(expression) {
|
|
62
|
+
if (expression == undefined)
|
|
63
|
+
return expression;
|
|
64
|
+
let temp = expression.slice();
|
|
65
|
+
let mh;
|
|
66
|
+
for (mh of metadatas_Info_Source)
|
|
67
|
+
temp = temp.replaceAll(mh.MetadataName, mh.Mid.toString());
|
|
68
|
+
temp = temp.replaceAll("{@DID}", "{@1}");
|
|
69
|
+
return temp;
|
|
70
|
+
}
|
|
71
|
+
const renderButtons = () => {
|
|
72
|
+
let buttons = [];
|
|
73
|
+
if (props.qd)
|
|
74
|
+
buttons.push({ icon: _jsx(IconColumns, {}), text: SDKUI_Localizator.MetadataReferenceInsert, onClick: () => { setShowMetadataChooser(true); } });
|
|
75
|
+
if (props.formulaItems && props.formulaItems.length > 0)
|
|
76
|
+
buttons.push({ icon: _jsx(IconDataList, {}), text: SDKUI_Localizator.Parameters, onClick: () => setShowFormulaChooser(true) });
|
|
77
|
+
buttons.push({ icon: _jsx(IconClear, {}), text: SDKUI_Localizator.Clear, onClick: () => props.onValueChanged?.('') });
|
|
78
|
+
return buttons;
|
|
79
|
+
};
|
|
80
|
+
function mdList(tids_mids) {
|
|
81
|
+
let output = props.value ?? '';
|
|
82
|
+
if (tids_mids == undefined)
|
|
83
|
+
return output;
|
|
84
|
+
let isAll = (tids_mids.length == props.qd?.select?.length);
|
|
85
|
+
if (isAll)
|
|
86
|
+
output = '';
|
|
87
|
+
for (let si of tids_mids) {
|
|
88
|
+
if (si.tid == undefined)
|
|
89
|
+
continue;
|
|
90
|
+
if (si.mid == undefined)
|
|
91
|
+
continue;
|
|
92
|
+
if (stringIsNullOrEmpty(output))
|
|
93
|
+
output = `{@${si.mid}}`;
|
|
94
|
+
else
|
|
95
|
+
output += (isAll ? '_' : '') + `{@${si.mid}}`;
|
|
96
|
+
}
|
|
97
|
+
return output;
|
|
98
|
+
}
|
|
99
|
+
function getFormulaDataSorce() {
|
|
100
|
+
let fiarray = [];
|
|
101
|
+
if (!props.formulaItems)
|
|
102
|
+
return [];
|
|
103
|
+
let i = 0;
|
|
104
|
+
for (const f of props.formulaItems) {
|
|
105
|
+
let fi = new FormulaItemHelper();
|
|
106
|
+
fi.id = i;
|
|
107
|
+
fi.paramName = f;
|
|
108
|
+
fiarray.push(fi);
|
|
109
|
+
i++;
|
|
110
|
+
}
|
|
111
|
+
return fiarray;
|
|
112
|
+
}
|
|
113
|
+
const openMetadataChooseForm = () => {
|
|
114
|
+
return (showMetadataChooser ?
|
|
115
|
+
_jsx(TMMetadataChooserForm, { allowMultipleSelection: true, qd: props.qd, qdShowOnlySelectItems: true, allowSysMetadata: true, onClose: () => setShowMetadataChooser(false), onChoose: (tid_mid) => {
|
|
116
|
+
let list = mdList(tid_mid);
|
|
117
|
+
props.onValueChanged?.(list);
|
|
118
|
+
} }) : _jsx(_Fragment, {}));
|
|
119
|
+
};
|
|
120
|
+
const openFormulaChooseForm = () => {
|
|
121
|
+
return (showFormulaChooser ?
|
|
122
|
+
_jsx(TMChooserForm, { title: SDKUI_Localizator.Parameters, height: '300', width: '300', hasShowId: false, showDefaultColumns: false, allowMultipleSelection: true, columns: [_jsx(Column, { caption: SDKUI_Localizator.Name, dataField: "paramName", sortOrder: 'asc', alignment: 'left' }, 0)], dataSource: getFormulaDataSorce(), onClose: () => { setShowFormulaChooser(false); }, onChoose: (IDs) => {
|
|
123
|
+
let expr = props.value ?? '';
|
|
124
|
+
IDs.map(i => expr += props.formulaItems[i]);
|
|
125
|
+
props.onValueChanged?.(expr);
|
|
126
|
+
} }) : _jsx(_Fragment, {}));
|
|
127
|
+
};
|
|
128
|
+
return (_jsxs(_Fragment, { children: [_jsx(TMTextBox, { buttons: renderButtons(), isModifiedWhen: props.value != props.valueOrig, label: props.label, value: Expression_IDs2Names(props.value) ?? '', validationItems: props.validationItems, onValueChanged: (e) => { props.onValueChanged?.(Expression_Names2IDs(e.target.value)); } }), openMetadataChooseForm(), " ", openFormulaChooseForm()] }));
|
|
129
|
+
};
|
|
130
|
+
class MetatadaHelper {
|
|
131
|
+
constructor(mid, metadataName) {
|
|
132
|
+
this.Mid = mid;
|
|
133
|
+
this.MetadataName = metadataName;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
export class FormulaItemHelper {
|
|
137
|
+
constructor() {
|
|
138
|
+
this.id = 0;
|
|
139
|
+
this.paramName = '';
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
export default TMTextExpression;
|
|
@@ -36,8 +36,12 @@ export declare class SDKUI_Localizator {
|
|
|
36
36
|
static get BlogCase(): "Anschlagbrett" | "Blog board" | "Tablón" | "Tableau d'affichage" | "Bakeca" | "Bacheca";
|
|
37
37
|
static get Blog_Read(): "Anzeigebrett lesen" | "Reading blog board" | "Lectura tablón" | "Lire le tableau d'affichage" | "Quadro de avisos leitura" | "Lettura bacheca";
|
|
38
38
|
static get Blog_Write(): "Anzeigebrett schreiben" | "Writing blog board" | "Escritura tablón" | "Ecrire dans le tableau d'affichage" | "Quadro de avisos escrita" | "Scrittura bacheca";
|
|
39
|
+
static get Browser(): "Browsertyp" | "Browser type" | "tipo de navegador" | "Type de navigateur" | "Tipo de navegador" | "Tipo di Browser";
|
|
39
40
|
static get BrowseAreaFile(): "Dateien in den Supportbereichen durchsuchen" | "Browse files on support areas" | "Explorar los archivos en las áreas de apoyo" | "Parcourir les fichiers dans les zones de support" | "Procurar os arquivos nas áreas de suporte" | "Sfoglia i file nelle aree di appoggio";
|
|
40
41
|
static get BrowseAreaFolder(): "Ordner in den Supportbereichen durchsuchen" | "Browse folders on support areas" | "Explorar las carpetas en las áreas de apoyo" | "Parcourir les dossiers dans les zones de support" | "Percorra as pastas nas áreas de apoio" | "Sfoglia le cartelle nelle aree di appoggio";
|
|
42
|
+
static get CassettoDoganaleExportMRN(): "Zollfach – MRN-Erholung für den Export" | "Customs drawer - MRN recovery for export" | "Cajón aduanero - Recuperación MRN para exportación" | "Tiroir douanier - Récupération MRN pour l'export" | "Gaveta Aduaneira - Recuperação MRN para exportação" | "Cassetto doganale - Recupero MRN per Export";
|
|
43
|
+
static get CassettoDoganaleExportVU(): "Zollfach – Wiederherstellung des Ausreisevisums" | "Customs drawer - Exit Visa Recovery" | "Cajón aduanero - Recuperación de Visa de Salida" | "Tiroir douanier - Sortie Récupération Visa" | "Gaveta Aduaneira - Recuperação de Visto de Saída" | "Cassetto doganale - Recupero Visto Uscire per Export";
|
|
44
|
+
static get CassettoDoganaleImportMRN(): "Zollfach – MRN-Erholung für den Import" | "Customs drawer - MRN recovery for import" | "Cajón aduanero - Recuperación MRN para importación" | "Tiroir douanier - Récupération MRN à l'import" | "Gaveta Aduaneira - Recuperação MRN para importação" | "Cassetto doganale - Recupero MRN per Import";
|
|
41
45
|
static get Cancel(): "Abbrechen" | "Cancel" | "Anular" | "Annuler" | "Cancelar" | "Annulla";
|
|
42
46
|
static get ChangePassword(): "Kennwort ändern" | "Change password" | "Cambiar la contraseña" | "Changer le mot de passe" | "Alterar a senha" | "Cambia password";
|
|
43
47
|
static get CheckIn(): "Check in" | "Enregistrement";
|
|
@@ -93,6 +97,12 @@ export declare class SDKUI_Localizator {
|
|
|
93
97
|
static get Error(): "Fehler" | "Error" | "Erreur" | "Erro" | "Errore";
|
|
94
98
|
static get ErrorParsingFileContent(): "Fehler beim Parsen des Dateiinhalts. Stellen Sie sicher, dass die Datei im richtigen Format vorliegt." | "Error parsing the file content. Ensure the file is in the correct format." | "Error al analizar el contenido del archivo. Asegúrese de que el archivo esté en el formato correcto." | "Erreur lors de l'analyse du contenu du fichier. Assurez-vous que le fichier est dans le bon format." | "Erro ao analisar o conteúdo do arquivo. Certifique-se de que o arquivo está no formato correto." | "Errore durante l'analisi del contenuto del file. Assicurati che il file sia nel formato corretto.";
|
|
95
99
|
static get Export(): "Exportieren" | "Export" | "Exportar" | "Exporter" | "Esporta";
|
|
100
|
+
static get ExportMRN(): "Exportieren MRN" | "Export MRN" | "Exportar MRN" | "Exporter MRN";
|
|
101
|
+
static get ExportMRNDayBack(): "Anzahl der Tage für die Exportdatenwiederherstellung (MRN)" | "Number of days for export data recovery (MRN)" | "Número de días para la recuperación de datos de exportación (MRN)" | "Nombre de jours pour la récupération des données d'exportation (MRN)" | "Número de dias para recuperação de dados de exportação (MRN)" | "Numero di giorni per il recupero dei dati di Export (MRN)";
|
|
102
|
+
static get ExportMRNOuputFile(): "Dateipfad für den Export (MRN)" | "File Path for Export (MRN)" | "Ruta de archivo para exportación (MRN)" | "Chemin du fichier à exporter (MRN)" | "Caminho do arquivo para exportação (MRN)" | "Percorso del File per Export (MRN)";
|
|
103
|
+
static get ExportVU(): "Exportieren – Gesehener Ausgang" | "Export - Seen Exit" | "Exportar - Salida vista" | "Exporter - Vu Sortie" | "Exportar - Saída vista" | "Export - Visto Uscire";
|
|
104
|
+
static get ExportVUDayBack(): "Anzahl der Tage für die Exportdatenwiederherstellung (Gesehener Ausgang)" | "Number of days for export data recovery (Seen Exit)" | "Número de días para la recuperación de datos de exportación (Salida vista)" | "Nombre de jours pour la récupération des données d'exportation (Vu Sortie)" | "Número de dias para recuperação de dados de exportação (Saída vista)" | "Numero di giorni per il recupero dei dati di Export (Visto Uscire)";
|
|
105
|
+
static get ExportVUOuputFile(): "Dateipfad für den Export (Gesehener Ausgang)" | "File Path for Export (Seen Exit)" | "Ruta de archivo para exportación (Salida vista)" | "Chemin du fichier à exporter (Vu Sortie)" | "Caminho do arquivo para exportação (Saída vista)" | "Percorso del File per Export (Visto Uscire)";
|
|
96
106
|
static get Favorites(): "Favoriten" | "Favorites" | "Favoritos" | "Favoris" | "Preferiti";
|
|
97
107
|
static get FEFormats_ASW_HTML(): "AssoSoftware Style Sheet (HTML)" | "Hoja de estilo AssoSoftware (HTML)" | "Feuille de style AssoSoftware (HTML)" | "Folha de estilo AssoSoftware (HTML)" | "Foglio di stile AssoSoftware (HTML)";
|
|
98
108
|
static get FEFormats_ASW_PDF(): "AssoSoftware Style Sheet (PDF)" | "Hoja de estiloAssoSoftware (PDF)" | "Feuille de style AssoSoftware (PDF)" | "Folha de estilo AssoSoftware (PDF)" | "Foglio di stile AssoSoftware (PDF)";
|
|
@@ -115,6 +125,9 @@ export declare class SDKUI_Localizator {
|
|
|
115
125
|
static get ID_Show(): "ID anzeigen" | "Show ID" | "Mostrar ID" | "Afficher ID" | "Visualizza ID";
|
|
116
126
|
static get Import(): "Importieren" | "Import" | "Importar" | "Importer" | "Importa";
|
|
117
127
|
static get ImportExport(): "Importieren/Exportieren" | "Import/Export" | "Importar/Exportar" | "Importer/Exporter" | "Importa/Esporta";
|
|
128
|
+
static get ImportMRN(): "Importieren MRN" | "Import MRN" | "Importar MRN" | "Importer MRN";
|
|
129
|
+
static get ImportMRNNDayBack(): "Anzahl der Tage für die Importdatenwiederherstellung (MRN)" | "Number of days for import data recovery (MRN)" | "Número de días para la recuperación de datos de importación (MRN)" | "Nombre de jours pour la récupération des données d'importation (MRN)" | "Número de dias para recuperação de dados de importação (MRN)" | "Numero di giorni per il recupero dei dati di Import (MRN)";
|
|
130
|
+
static get ImportMRNOuputFile(): "Dateipfad für den Import (MRN)" | "File Path for Import (MRN)" | "Ruta de archivo para importación (MRN)" | "Chemin du fichier à importer (MRN)" | "Caminho do arquivo para importação (MRN)" | "Percorso del File per Import (MRN)";
|
|
118
131
|
static get InsertYourEmail(): "Geben Sie Ihre E-Mail ein" | "Insert your Email" | "Inserta tu Email" | "Insérez votre e-mail" | "Insira seu e-mail" | "Inserisci la tua email";
|
|
119
132
|
static get InsertOTP(): "Geben Sie den OTP-Code ein" | "Insert OTP code" | "Insertar código OTP" | "Insérer le code OTP" | "Insira o código OTP" | "Inserisci il codice OTP";
|
|
120
133
|
static get Interrupt(): "Unterbrechen" | "Interrupt" | "interrumpir" | "Interrompre" | "Interromper" | "Interrompere";
|
|
@@ -147,6 +160,7 @@ export declare class SDKUI_Localizator {
|
|
|
147
160
|
static get MetadataFormats_ShortDateShortTime(): "Kurzes Datum/Uhrzeit" | "Short date/time" | "Fecha/hora breve" | "Date/heure brève" | "Data/hora curta" | "Data/ora breve";
|
|
148
161
|
static get MetadataFormats_ShortTime(): "Kurze Stunde" | "Short time" | "Hora breve" | "Heure brève" | "Hora curta" | "Ora breve";
|
|
149
162
|
static get MetadataFormats_UpperCase(): "Alle SHIFT" | "Upper case" | "Todo MAYÚSCULA" | "Tout MAJUSCULE" | "Todos os CAPS" | "Tutto MAIUSCOLO";
|
|
163
|
+
static get MetadataReferenceInsert(): "Metadaten-Referenz einfügen" | "Add metadata reference" | "Introducir referencia metadato" | "Entrez les métadonnée de référence" | "Insira metadados de referência" | "Inserisci riferimento metadato";
|
|
150
164
|
static get MetadataRoot(): "Methadatenstamm" | "Root metadata" | "Metadato raíz" | "Métadonnée racine" | "Metadados raiz" | "Metadato radice";
|
|
151
165
|
static get MetadataSelected(): "Ausgewählte Metadaten" | "Selected metadata" | "Metadatos seleccionados" | "Métadonnées sélectionnées" | "Metadados selecionados" | "Metadati selezionati";
|
|
152
166
|
static get Message(): "Nachricht" | "Message" | "Mensaje" | "Mensagem" | "Messaggio";
|
|
@@ -190,6 +204,7 @@ export declare class SDKUI_Localizator {
|
|
|
190
204
|
static get PasswordNumberError(): "Das Passwort muss Zahlen enthalten (0-9)" | "Password must include number (0-9)" | "La contraseña debe incluir números (0-9)" | "Le mot de passe doit inclure des chiffres (0-9)" | "A senha deve incluir números (0-9)" | "La password deve includere numeri (0-9)";
|
|
191
205
|
static get PasswordSymbolError(): "Das Passwort muss mindestens ein Sonderzeichen enthalten (!\"#$%&'()*+,-./:;<=>?@[]^_{|})" | "The password must contain at least one special character (!\"#$%&'()*+,-./:;<=>?@[]^_{|})" | "La contraseña debe contener al menos un carácter especial. (!\"#$%&'()*+,-./:;<=>?@[]^_{|})" | "Le mot de passe doit contenir au moins un caractère spécial (!\"#$%&'()*+,-./:;<=>?@[]^_{|})" | "A senha deve conter pelo menos um caractere especial (!\"#$%&'()*+,-./:;<=>?@[]^_{|})" | "La password deve contenere almeno un carattere speciale (!\"#$%&'()*+,-./:;<=>?@[]^_{|})";
|
|
192
206
|
static get PasswordUppercaseError(): "Das Passwort muss Großbuchstaben enthalten (A-Z)" | "Password must include uppercase character (A-Z)" | "La contraseña debe incluir caracteres en mayúscula (A-Z)" | "Le mot de passe doit inclure un caractère majuscule (A-Z)" | "A senha deve incluir caracteres maiúsculos (A-Z)" | "La password deve includere caratteri maiuscoli (A-Z)";
|
|
207
|
+
static get Parameters(): "Parameter" | "Parameters" | "Parámetros" | "Paramètres" | "Parâmetros" | "Parametri";
|
|
193
208
|
static get Perms(): "Berechtigungen" | "Permissions" | "Permisos" | "Autorisations" | "Permissão" | "Permessi";
|
|
194
209
|
static get PhysDelete(): "Physische Stornierung" | "Physical delete" | "Cancelación física" | "Supression" | "Cancelamento física" | "Cancellazione fisica";
|
|
195
210
|
static get Previous(): "Vorherige" | "Previous" | "Anterior" | "Précédent" | "Precedente";
|
|
@@ -309,6 +309,16 @@ export class SDKUI_Localizator {
|
|
|
309
309
|
default: return "Scrittura bacheca";
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
|
+
static get Browser() {
|
|
313
|
+
switch (this._cultureID) {
|
|
314
|
+
case CultureIDs.De_DE: return "Browsertyp";
|
|
315
|
+
case CultureIDs.En_US: return "Browser type";
|
|
316
|
+
case CultureIDs.Es_ES: return "tipo de navegador";
|
|
317
|
+
case CultureIDs.Fr_FR: return "Type de navigateur";
|
|
318
|
+
case CultureIDs.Pt_PT: return "Tipo de navegador";
|
|
319
|
+
default: return "Tipo di Browser";
|
|
320
|
+
}
|
|
321
|
+
}
|
|
312
322
|
static get BrowseAreaFile() {
|
|
313
323
|
switch (this._cultureID) {
|
|
314
324
|
case CultureIDs.De_DE: return "Dateien in den Supportbereichen durchsuchen";
|
|
@@ -329,6 +339,36 @@ export class SDKUI_Localizator {
|
|
|
329
339
|
default: return "Sfoglia le cartelle nelle aree di appoggio";
|
|
330
340
|
}
|
|
331
341
|
}
|
|
342
|
+
static get CassettoDoganaleExportMRN() {
|
|
343
|
+
switch (this._cultureID) {
|
|
344
|
+
case CultureIDs.De_DE: return "Zollfach – MRN-Erholung für den Export";
|
|
345
|
+
case CultureIDs.En_US: return "Customs drawer - MRN recovery for export";
|
|
346
|
+
case CultureIDs.Es_ES: return "Cajón aduanero - Recuperación MRN para exportación";
|
|
347
|
+
case CultureIDs.Fr_FR: return "Tiroir douanier - Récupération MRN pour l'export";
|
|
348
|
+
case CultureIDs.Pt_PT: return "Gaveta Aduaneira - Recuperação MRN para exportação";
|
|
349
|
+
default: return "Cassetto doganale - Recupero MRN per Export";
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
static get CassettoDoganaleExportVU() {
|
|
353
|
+
switch (this._cultureID) {
|
|
354
|
+
case CultureIDs.De_DE: return "Zollfach – Wiederherstellung des Ausreisevisums";
|
|
355
|
+
case CultureIDs.En_US: return "Customs drawer - Exit Visa Recovery";
|
|
356
|
+
case CultureIDs.Es_ES: return "Cajón aduanero - Recuperación de Visa de Salida";
|
|
357
|
+
case CultureIDs.Fr_FR: return "Tiroir douanier - Sortie Récupération Visa";
|
|
358
|
+
case CultureIDs.Pt_PT: return "Gaveta Aduaneira - Recuperação de Visto de Saída";
|
|
359
|
+
default: return "Cassetto doganale - Recupero Visto Uscire per Export";
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
static get CassettoDoganaleImportMRN() {
|
|
363
|
+
switch (this._cultureID) {
|
|
364
|
+
case CultureIDs.De_DE: return "Zollfach – MRN-Erholung für den Import";
|
|
365
|
+
case CultureIDs.En_US: return "Customs drawer - MRN recovery for import";
|
|
366
|
+
case CultureIDs.Es_ES: return "Cajón aduanero - Recuperación MRN para importación";
|
|
367
|
+
case CultureIDs.Fr_FR: return "Tiroir douanier - Récupération MRN à l'import";
|
|
368
|
+
case CultureIDs.Pt_PT: return "Gaveta Aduaneira - Recuperação MRN para importação";
|
|
369
|
+
default: return "Cassetto doganale - Recupero MRN per Import";
|
|
370
|
+
}
|
|
371
|
+
}
|
|
332
372
|
static get Cancel() {
|
|
333
373
|
switch (this._cultureID) {
|
|
334
374
|
case CultureIDs.De_DE: return "Abbrechen";
|
|
@@ -891,6 +931,66 @@ export class SDKUI_Localizator {
|
|
|
891
931
|
default: return "Esporta";
|
|
892
932
|
}
|
|
893
933
|
}
|
|
934
|
+
static get ExportMRN() {
|
|
935
|
+
switch (this._cultureID) {
|
|
936
|
+
case CultureIDs.De_DE: return "Exportieren MRN";
|
|
937
|
+
case CultureIDs.En_US: return "Export MRN";
|
|
938
|
+
case CultureIDs.Es_ES: return "Exportar MRN";
|
|
939
|
+
case CultureIDs.Fr_FR: return "Exporter MRN";
|
|
940
|
+
case CultureIDs.Pt_PT: return "Exportar MRN";
|
|
941
|
+
default: return "Export MRN";
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
static get ExportMRNDayBack() {
|
|
945
|
+
switch (this._cultureID) {
|
|
946
|
+
case CultureIDs.De_DE: return "Anzahl der Tage für die Exportdatenwiederherstellung (MRN)";
|
|
947
|
+
case CultureIDs.En_US: return "Number of days for export data recovery (MRN)";
|
|
948
|
+
case CultureIDs.Es_ES: return "Número de días para la recuperación de datos de exportación (MRN)";
|
|
949
|
+
case CultureIDs.Fr_FR: return "Nombre de jours pour la récupération des données d'exportation (MRN)";
|
|
950
|
+
case CultureIDs.Pt_PT: return "Número de dias para recuperação de dados de exportação (MRN)";
|
|
951
|
+
default: return "Numero di giorni per il recupero dei dati di Export (MRN)";
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
static get ExportMRNOuputFile() {
|
|
955
|
+
switch (this._cultureID) {
|
|
956
|
+
case CultureIDs.De_DE: return "Dateipfad für den Export (MRN)";
|
|
957
|
+
case CultureIDs.En_US: return "File Path for Export (MRN)";
|
|
958
|
+
case CultureIDs.Es_ES: return "Ruta de archivo para exportación (MRN)";
|
|
959
|
+
case CultureIDs.Fr_FR: return "Chemin du fichier à exporter (MRN)";
|
|
960
|
+
case CultureIDs.Pt_PT: return "Caminho do arquivo para exportação (MRN)";
|
|
961
|
+
default: return "Percorso del File per Export (MRN)";
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
static get ExportVU() {
|
|
965
|
+
switch (this._cultureID) {
|
|
966
|
+
case CultureIDs.De_DE: return "Exportieren – Gesehener Ausgang";
|
|
967
|
+
case CultureIDs.En_US: return "Export - Seen Exit";
|
|
968
|
+
case CultureIDs.Es_ES: return "Exportar - Salida vista";
|
|
969
|
+
case CultureIDs.Fr_FR: return "Exporter - Vu Sortie";
|
|
970
|
+
case CultureIDs.Pt_PT: return "Exportar - Saída vista";
|
|
971
|
+
default: return "Export - Visto Uscire";
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
static get ExportVUDayBack() {
|
|
975
|
+
switch (this._cultureID) {
|
|
976
|
+
case CultureIDs.De_DE: return "Anzahl der Tage für die Exportdatenwiederherstellung (Gesehener Ausgang)";
|
|
977
|
+
case CultureIDs.En_US: return "Number of days for export data recovery (Seen Exit)";
|
|
978
|
+
case CultureIDs.Es_ES: return "Número de días para la recuperación de datos de exportación (Salida vista)";
|
|
979
|
+
case CultureIDs.Fr_FR: return "Nombre de jours pour la récupération des données d'exportation (Vu Sortie)";
|
|
980
|
+
case CultureIDs.Pt_PT: return "Número de dias para recuperação de dados de exportação (Saída vista)";
|
|
981
|
+
default: return "Numero di giorni per il recupero dei dati di Export (Visto Uscire)";
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
static get ExportVUOuputFile() {
|
|
985
|
+
switch (this._cultureID) {
|
|
986
|
+
case CultureIDs.De_DE: return "Dateipfad für den Export (Gesehener Ausgang)";
|
|
987
|
+
case CultureIDs.En_US: return "File Path for Export (Seen Exit)";
|
|
988
|
+
case CultureIDs.Es_ES: return "Ruta de archivo para exportación (Salida vista)";
|
|
989
|
+
case CultureIDs.Fr_FR: return "Chemin du fichier à exporter (Vu Sortie)";
|
|
990
|
+
case CultureIDs.Pt_PT: return "Caminho do arquivo para exportação (Saída vista)";
|
|
991
|
+
default: return "Percorso del File per Export (Visto Uscire)";
|
|
992
|
+
}
|
|
993
|
+
}
|
|
894
994
|
static get Favorites() {
|
|
895
995
|
switch (this._cultureID) {
|
|
896
996
|
case CultureIDs.De_DE: return "Favoriten";
|
|
@@ -1110,6 +1210,36 @@ export class SDKUI_Localizator {
|
|
|
1110
1210
|
default: return "Importa/Esporta";
|
|
1111
1211
|
}
|
|
1112
1212
|
}
|
|
1213
|
+
static get ImportMRN() {
|
|
1214
|
+
switch (this._cultureID) {
|
|
1215
|
+
case CultureIDs.De_DE: return "Importieren MRN";
|
|
1216
|
+
case CultureIDs.En_US: return "Import MRN";
|
|
1217
|
+
case CultureIDs.Es_ES: return "Importar MRN";
|
|
1218
|
+
case CultureIDs.Fr_FR: return "Importer MRN";
|
|
1219
|
+
case CultureIDs.Pt_PT: return "Importar MRN";
|
|
1220
|
+
default: return "Import MRN";
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
static get ImportMRNNDayBack() {
|
|
1224
|
+
switch (this._cultureID) {
|
|
1225
|
+
case CultureIDs.De_DE: return "Anzahl der Tage für die Importdatenwiederherstellung (MRN)";
|
|
1226
|
+
case CultureIDs.En_US: return "Number of days for import data recovery (MRN)";
|
|
1227
|
+
case CultureIDs.Es_ES: return "Número de días para la recuperación de datos de importación (MRN)";
|
|
1228
|
+
case CultureIDs.Fr_FR: return "Nombre de jours pour la récupération des données d'importation (MRN)";
|
|
1229
|
+
case CultureIDs.Pt_PT: return "Número de dias para recuperação de dados de importação (MRN)";
|
|
1230
|
+
default: return "Numero di giorni per il recupero dei dati di Import (MRN)";
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
static get ImportMRNOuputFile() {
|
|
1234
|
+
switch (this._cultureID) {
|
|
1235
|
+
case CultureIDs.De_DE: return "Dateipfad für den Import (MRN)";
|
|
1236
|
+
case CultureIDs.En_US: return "File Path for Import (MRN)";
|
|
1237
|
+
case CultureIDs.Es_ES: return "Ruta de archivo para importación (MRN)";
|
|
1238
|
+
case CultureIDs.Fr_FR: return "Chemin du fichier à importer (MRN)";
|
|
1239
|
+
case CultureIDs.Pt_PT: return "Caminho do arquivo para importação (MRN)";
|
|
1240
|
+
default: return "Percorso del File per Import (MRN)";
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1113
1243
|
static get InsertYourEmail() {
|
|
1114
1244
|
switch (this._cultureID) {
|
|
1115
1245
|
case CultureIDs.De_DE: return "Geben Sie Ihre E-Mail ein";
|
|
@@ -1421,6 +1551,16 @@ export class SDKUI_Localizator {
|
|
|
1421
1551
|
default: return "Tutto MAIUSCOLO";
|
|
1422
1552
|
}
|
|
1423
1553
|
}
|
|
1554
|
+
static get MetadataReferenceInsert() {
|
|
1555
|
+
switch (this._cultureID) {
|
|
1556
|
+
case CultureIDs.De_DE: return "Metadaten-Referenz einfügen";
|
|
1557
|
+
case CultureIDs.En_US: return "Add metadata reference";
|
|
1558
|
+
case CultureIDs.Es_ES: return "Introducir referencia metadato";
|
|
1559
|
+
case CultureIDs.Fr_FR: return "Entrez les métadonnée de référence";
|
|
1560
|
+
case CultureIDs.Pt_PT: return "Insira metadados de referência";
|
|
1561
|
+
default: return "Inserisci riferimento metadato";
|
|
1562
|
+
}
|
|
1563
|
+
}
|
|
1424
1564
|
static get MetadataRoot() {
|
|
1425
1565
|
switch (this._cultureID) {
|
|
1426
1566
|
case CultureIDs.De_DE: return "Methadatenstamm";
|
|
@@ -1851,6 +1991,16 @@ export class SDKUI_Localizator {
|
|
|
1851
1991
|
default: return "La password deve includere caratteri maiuscoli (A-Z)";
|
|
1852
1992
|
}
|
|
1853
1993
|
}
|
|
1994
|
+
static get Parameters() {
|
|
1995
|
+
switch (this._cultureID) {
|
|
1996
|
+
case CultureIDs.De_DE: return "Parameter";
|
|
1997
|
+
case CultureIDs.En_US: return "Parameters";
|
|
1998
|
+
case CultureIDs.Es_ES: return "Parámetros";
|
|
1999
|
+
case CultureIDs.Fr_FR: return "Paramètres";
|
|
2000
|
+
case CultureIDs.Pt_PT: return "Parâmetros";
|
|
2001
|
+
default: return "Parametri";
|
|
2002
|
+
}
|
|
2003
|
+
}
|
|
1854
2004
|
static get Perms() {
|
|
1855
2005
|
switch (this._cultureID) {
|
|
1856
2006
|
case CultureIDs.De_DE: return "Berechtigungen";
|
package/lib/helper/helpers.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export declare function moduleVersion(module: moduleTypes): string;
|
|
|
28
28
|
export declare function buildtype(module: moduleTypes): string;
|
|
29
29
|
export declare function versionAndBuildtypeInfo(module: moduleTypes): string;
|
|
30
30
|
export declare const svgToString: (icon: React.ReactElement) => string;
|
|
31
|
+
export declare function stringIsNullOrEmpty(value: string | undefined): boolean;
|
|
31
32
|
export declare function sleep(ms: number): Promise<void>;
|
|
32
33
|
export declare const dialogConfirmOperation: (title: string, msg: string, operationAsync: () => Promise<void>) => void;
|
|
33
34
|
export declare function getExceptionMessage(ex: any): string;
|
package/lib/helper/helpers.js
CHANGED
|
@@ -298,6 +298,15 @@ export function versionAndBuildtypeInfo(module) {
|
|
|
298
298
|
export const svgToString = (icon) => {
|
|
299
299
|
return ReactDOMServer.renderToString(icon);
|
|
300
300
|
};
|
|
301
|
+
export function stringIsNullOrEmpty(value) {
|
|
302
|
+
if (value == undefined)
|
|
303
|
+
return true;
|
|
304
|
+
if (value == null)
|
|
305
|
+
return true;
|
|
306
|
+
if (value == "")
|
|
307
|
+
return true;
|
|
308
|
+
return false;
|
|
309
|
+
}
|
|
301
310
|
export async function sleep(ms) {
|
|
302
311
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
303
312
|
}
|