@topconsultnpm/sdkui-react-beta 6.9.53 → 6.9.55
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/assets/icomoon.svg +96 -96
- package/lib/components/base/Styled.d.ts +23 -1920
- package/lib/components/base/TMAlert.d.ts +2 -3
- package/lib/components/base/TMContextMenuOLD.d.ts +3 -274
- package/lib/components/base/TMDropDownMenu.d.ts +0 -1
- package/lib/components/base/TMEditorBase.d.ts +0 -1
- package/lib/components/base/TMLayout.d.ts +32 -32
- package/lib/components/base/TMRightSidebar.d.ts +4 -4
- package/lib/components/base/TMTab.d.ts +4 -4
- package/lib/components/base/TMVilViewer.d.ts +1 -1
- package/lib/components/choosers/TMRelationChooser.d.ts +5 -5
- package/lib/components/choosers/TMUserChooser.d.ts +5 -5
- package/lib/components/editors/TMEditorStyled.d.ts +19 -20
- package/lib/components/forms/TMApplyForm.js +2 -2
- package/lib/components/forms/TMLoginForm.d.ts +5 -5
- package/lib/components/forms/TMSaveForm.js +2 -2
- package/lib/components/query/TMQueryEditor.d.ts +8 -550
- package/lib/components/query/TMQueryResult.d.ts +5 -5
- package/lib/components/query/TMQueryResultForm.d.ts +10 -10
- package/lib/components/sidebar/TMHeader.d.ts +2 -2
- package/lib/components/viewers/TMDataListItemViewer.d.ts +3 -3
- package/lib/components/viewers/TMMidViewer.d.ts +5 -5
- package/lib/components/viewers/TMTidViewer.d.ts +5 -5
- package/lib/helper/Enum_Localizator.d.ts +2 -0
- package/lib/helper/Enum_Localizator.js +11 -0
- package/lib/helper/SDKUI_Localizator.d.ts +9 -0
- package/lib/helper/SDKUI_Localizator.js +90 -0
- package/lib/helper/helpers.d.ts +1 -1
- package/lib/hooks/useForm.d.ts +2 -2
- package/lib/hooks/useForm.js +5 -5
- package/lib/hooks/useOutsideClick.d.ts +0 -1
- package/lib/hooks/useQueryParametersDialog.d.ts +0 -1
- package/package.json +2 -2
|
@@ -3,12 +3,12 @@ import { ITopMediaSession, LayoutModes, MetadataDescriptor } from '@topconsultnp
|
|
|
3
3
|
import { TID_MID } from '../../ts';
|
|
4
4
|
import { DataGridTypes } from 'devextreme-react/cjs/data-grid';
|
|
5
5
|
export declare const TMMidViewer: ({ tmSession, tid_mid, showCompleteName, showIcon, showId, noneSelectionText }: {
|
|
6
|
-
tmSession?: ITopMediaSession
|
|
6
|
+
tmSession?: ITopMediaSession;
|
|
7
7
|
tid_mid: TID_MID | undefined;
|
|
8
|
-
showCompleteName?: boolean
|
|
9
|
-
showIcon?: boolean
|
|
10
|
-
showId?: boolean
|
|
11
|
-
noneSelectionText?: string
|
|
8
|
+
showCompleteName?: boolean;
|
|
9
|
+
showIcon?: boolean;
|
|
10
|
+
showId?: boolean;
|
|
11
|
+
noneSelectionText?: string;
|
|
12
12
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
interface ITMMetadataIcon {
|
|
14
14
|
tid: number | undefined;
|
|
@@ -11,11 +11,11 @@ interface ITMDcmtTypeTooltip {
|
|
|
11
11
|
}
|
|
12
12
|
export declare const TMDcmtTypeTooltip: React.FC<ITMDcmtTypeTooltip>;
|
|
13
13
|
declare const TMTidViewer: ({ tmSession, tid, showIcon, showId, noneSelectionText }: {
|
|
14
|
-
tmSession?: ITopMediaSession
|
|
15
|
-
tid?: number
|
|
16
|
-
showIcon?: boolean
|
|
17
|
-
showId?: boolean
|
|
18
|
-
noneSelectionText?: string
|
|
14
|
+
tmSession?: ITopMediaSession;
|
|
15
|
+
tid?: number;
|
|
16
|
+
showIcon?: boolean;
|
|
17
|
+
showId?: boolean;
|
|
18
|
+
noneSelectionText?: string;
|
|
19
19
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export default TMTidViewer;
|
|
21
21
|
export declare const cellRenderTID: (data: DataGridTypes.ColumnCellTemplateData, noneSelectionText?: string) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ArchiveConstraints, JoinTypes, MetadataFormats, OwnershipLevels, ParametricFilterTypes, QueryFunctions, QueryOperators } from "@topconsultnpm/sdk-ts-beta";
|
|
2
|
+
import { FormModes } from "../ts";
|
|
2
3
|
export declare function LocalizeArchiveConstraints(value: ArchiveConstraints | undefined): "Archivierung nur mit Dateien erlauben" | "Allow file only archiving" | "Permitir solo almacenamientos con archivo" | "Autorise uniquement l'archivage de fichiers" | "Permitir somente depósitos com arquivos" | "Consenti solo archiviazioni con file" | "Alles zulassen" | "Allow everything" | "Permitir todo" | "Autorise tout" | "Permitir que todos" | "Consenti tutto" | "Nur Methadatenarchivierung erlauben" | "Allow metadata only archiving" | "Permitir solo almacenamiento de metadatos" | "Autorise uniquement l'archivage de métadonnées" | "Permitir somente os metadados de arquivamento" | "Consenti solo archiviazioni di metadati";
|
|
4
|
+
export declare function LocalizeFormModes(value: FormModes | undefined): "Erstellen" | "Create" | "Crear" | "Créer" | "Criar" | "Crea" | "Duplikat" | "Duplicate" | "Duplicar" | "Dupliquer" | "Duplicado" | "Duplica" | "Nur Lesen" | "Read only" | "Solo lectura" | "En lecture seule" | "Somente leitura" | "Solo lettura" | "Bearbeiten" | "Update" | "Modificar" | "Modifie" | "Modificação" | "Modifica" | "None" | "Niemand" | "Ninguno" | "Aucun" | "Nenhum" | "Nessuno";
|
|
3
5
|
export declare function LocalizeMetadataFormats(value: MetadataFormats): string;
|
|
4
6
|
export declare function LocalizeOwnershipLevels(value: OwnershipLevels | undefined): string | undefined;
|
|
5
7
|
export declare function LocalizeParametricFilterTypes(value: ParametricFilterTypes | undefined): "Personalisierter Ausdruck" | "Custom expression" | "Expresión personalizada" | "Expression personnalisée" | "Expressão personalizado" | "Espressione personalizzata" | "Filtern nach {@UserID}" | "Filter on {@UserID}" | "Filtro en {@UserID}" | "Filtre sur {@UserID}" | "Filtre on {@UserID}" | "Filtro su {@UserID}" | "Filtern nach {@Benutzername} (=)" | "Filter on {@UserName} (=)" | "Filtro en {@UserName} (=)" | "Filtre sur {@UserName} (=)" | "Filtre on {@UserName} (=)" | "Filtro su {@UserName} (=)" | "Filter nach {@Benutzername} (Enthält)" | "Filter on {@UserName} (Contains)" | "Filtro en {@UserName} (Contiene)" | "Filtre sur {@UserName} (Contient)" | "Filtre on {@UserName} (Contém)" | "Filtro su {@UserName} (Contiene)" | "None" | "Niemand" | "Ninguno" | "Aucun" | "Nenhum" | "Nessuno";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ArchiveConstraints, JoinTypes, MetadataFormats, OwnershipLevels, ParametricFilterTypes, QueryFunctions, QueryOperators, SDK_Localizator } from "@topconsultnpm/sdk-ts-beta";
|
|
2
2
|
import { SDKUI_Localizator } from "./SDKUI_Localizator";
|
|
3
|
+
import { FormModes } from "../ts";
|
|
3
4
|
export function LocalizeArchiveConstraints(value) {
|
|
4
5
|
switch (value) {
|
|
5
6
|
case undefined:
|
|
@@ -8,6 +9,16 @@ export function LocalizeArchiveConstraints(value) {
|
|
|
8
9
|
case ArchiveConstraints.ContentCompulsory: return SDKUI_Localizator.ArchiveConstraints_ContentCompulsory;
|
|
9
10
|
}
|
|
10
11
|
}
|
|
12
|
+
export function LocalizeFormModes(value) {
|
|
13
|
+
switch (value) {
|
|
14
|
+
case undefined:
|
|
15
|
+
case FormModes.None: return SDK_Localizator.None;
|
|
16
|
+
case FormModes.Create: return SDKUI_Localizator.Create;
|
|
17
|
+
case FormModes.Update: return SDKUI_Localizator.Update;
|
|
18
|
+
case FormModes.Duplicate: return SDKUI_Localizator.Duplicate;
|
|
19
|
+
case FormModes.ReadOnly: return SDKUI_Localizator.ReadOnly;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
11
22
|
export function LocalizeMetadataFormats(value) {
|
|
12
23
|
switch (value) {
|
|
13
24
|
case MetadataFormats.None: return SDK_Localizator.None;
|
|
@@ -16,6 +16,7 @@ export declare class SDKUI_Localizator {
|
|
|
16
16
|
static get AddDefinition(): "Definition hinzufügen" | "Add definition" | "Añadir definición" | "Ajoute la définition" | "Adicionar definição" | "Aggiungi definizione";
|
|
17
17
|
static get AddOrSubstFile(): "Dateien hinzufügen/ersetzen" | "Add/substitute file" | "Añadir/sustituir archivo" | "Ajoute/Remplace le fichier" | "Adicionar / substituir arquivos" | "Aggiungi/sostituisci file";
|
|
18
18
|
static get All(): "Alle" | "All" | "Todos" | "Tous" | "Tutti";
|
|
19
|
+
static get Alls2(): "Alle" | "All" | "Todos" | "Tous" | "Tutte";
|
|
19
20
|
static get AllItems(): "alle Artikel" | "All items" | "Todos los artículos" | "tous les articles" | "todos os artigos" | "tutti gli elementi";
|
|
20
21
|
static get Applied(): string;
|
|
21
22
|
static get Apply(): "Anwenden" | "Apply" | "Aplicar" | "Applique" | "Applica";
|
|
@@ -47,6 +48,7 @@ export declare class SDKUI_Localizator {
|
|
|
47
48
|
static get Columns_All_Hide(): "Alle Spalten ausblenden" | "Hide all columns" | "Ocultar todas las columnas" | "Masquer toutes les colonnes" | "Ocultar todas as colunas" | "Nascondi tutte le colonne";
|
|
48
49
|
static get Columns_All_Show(): "Alle Spalten anzeigen" | "Show all columns" | "Mostrar todas las columnas" | "Afficher toutes les colonnes" | "Mostrar todas as colunas" | "Visualizza tutte le colonne";
|
|
49
50
|
static get CompleteError(): "Kompletter Fehler" | "Complete error" | "Error completo" | "Erreur complète" | "Erro completo" | "Errore completo";
|
|
51
|
+
static get Configure(): "Konfigurieren" | "Configure" | "Configurar" | "Configura";
|
|
50
52
|
static get ConfirmPassword(): "Bestätige das Passwort" | "Confirm password" | "Confirmar Contraseña" | "Confirmez le mot de passe" | "Confirme sua senha" | "Conferma password";
|
|
51
53
|
static get ConfirmOnCancel(): "Wenn wir fortfahren, gehen die vorgenommenen Änderungen verloren. Fortfahren?" | "All modifications will be lost. Continue?" | "Si sigue adelante, se perderán las modificaciones aportadas. ¿Seguir?" | "Continuant, les changements seront perdus. Continuer?" | "Continuando as alterações feitas serão perdidas. Continuar?" | "Proseguendo le modifiche apportate andranno perse. Proseguire?";
|
|
52
54
|
static get ContinueOperation(): "Fortfahren?" | "Continue ?" | "¿Continuar?" | "Continuer?" | "Continuar?" | "Continuare?";
|
|
@@ -196,6 +198,7 @@ export declare class SDKUI_Localizator {
|
|
|
196
198
|
static get QueryDefine(): "Abfrage definieren" | "Query define" | "Definir consulta" | "Défine query" | "Definir query" | "Definisci query";
|
|
197
199
|
static get Query_EnterAlias(): "Geben Sie einen Alias ein" | "Enter an alias" | "Introducir un alias" | "Entrez un alias" | "Digite um nome de alias" | "Inserire un alias";
|
|
198
200
|
static get QueryParamBind(): "Query-Parameter erweitern" | "Fill query parameters" | "Valorizar parámetros consulta" | "Ajoute la valeur à les paramètres de la query" | "Melhora parâmetros de query" | "Valorizza parametri query";
|
|
201
|
+
static get ReadOnly(): "Nur Lesen" | "Read only" | "Solo lectura" | "En lecture seule" | "Somente leitura" | "Solo lettura";
|
|
199
202
|
static get Recent(): "Kürzlich" | "Recent" | "Recientes" | "Récents" | "Recentes" | "Recenti";
|
|
200
203
|
static get Relations(): "Korrelationen" | "Correlations" | "Correlaciones" | "Relations" | "Correlacionados" | "Correlazioni";
|
|
201
204
|
static get RelationManyToMany(): "Folge viele mit vielen" | "Relation many to many" | "Correlación muchos a muchos" | "Corrélation plusieurs à plusieurs" | "Muitos para muitos relação" | "Correlazione molti a molti";
|
|
@@ -216,9 +219,14 @@ export declare class SDKUI_Localizator {
|
|
|
216
219
|
static get Rows(): "Linien" | "rows" | "líneas" | "lignes" | "linhas" | "righe";
|
|
217
220
|
static get Save(): "Speichern" | "Save" | "Guardar" | "Enregistre" | "Salvar" | "Salva";
|
|
218
221
|
static get SaveQuestion(): "Ihre Änderungen speichern?" | "Save modifications?" | "¿Guardar modificaciones aportadas?" | "Enregistrez les modifications?" | "Salve as alterações?" | "Salvare le modifiche apportate?";
|
|
222
|
+
static get SavedQueryNew(): "Neue Suche speichern" | "Save new search" | "Guardar nueva búsqueda" | "Enregistrer la nouvelle recherche" | "Guardar nova pesquisa" | "Salva nuova ricerca";
|
|
223
|
+
static get SavedQueryUpdate(): "Suche bearbeiten" | "Modify query" | "Modificar búsqueda" | "Modifie la recherche" | "Mudar pesquisa" | "Modifica ricerca";
|
|
219
224
|
static get Search(): "Auf der Suche nach" | "Search" | "Búsqueda" | "Recherche" | "Pesquisa" | "Ricerca";
|
|
225
|
+
static get Search_Advanced(): "Erweiterte Suche" | "Advanced search" | "Búsqueda avanzada" | "Recherche avancée" | "Pesquisa Avançada" | "Ricerca avanzata";
|
|
226
|
+
static get Search_Easy(): "Einfache Suche" | "Easy search" | "Búsqueda fácil" | "Recherche facile" | "Pesquisa fácil" | "Ricerca facilitata";
|
|
220
227
|
static get Search_EnterValue(): "Geben Sie einen Wert ein, nach dem gesucht werden soll" | "Enter a value to search" | "Introducir un valor para buscar" | "Entrez une valeur à rechercher" | "Digite um valor para pesquisar" | "Inserire un valore da ricercare";
|
|
221
228
|
static get Search_Free(): "Kostenlose Suche" | "Free search" | "Búsqueda libre" | "Recherche libre" | "Pesquisa livre" | "Ricerca libera";
|
|
229
|
+
static get Search_Metadata(): "Suche nach Metadaten" | "Search by metadata" | "Búsqueda por metadatos" | "Recherche par métadonnées" | "Pesquisar por metadados" | "Ricerca per metadati";
|
|
222
230
|
static get Search_Special(): "Spezielle Suchanfragen" | "Special searches" | "Búsquedas especiales" | "Recherches spéciales" | "Pesquisas especiais" | "Ricerche speciali";
|
|
223
231
|
static get SearchResult(): "Suchergebnis" | "Search result" | "Resultado búsqueda" | "Résultat de la recherche" | "Resultados da pesquisa" | "Risultato ricerca";
|
|
224
232
|
static get Seconds(): "Sekunden" | "Seconds" | "Segundos" | "Secondes" | "Segundas" | "Secondi";
|
|
@@ -237,6 +245,7 @@ export declare class SDKUI_Localizator {
|
|
|
237
245
|
static get ShowSearch(): "Suche anzeigen" | "Show search" | "Mostrar búsqueda" | "Afficher la recherche" | "Mostrar pesquisa" | "Mostra ricerca";
|
|
238
246
|
static get Size(): "Größe" | "Size" | "Dimensión" | "Dimension" | "Tamanho" | "Dimensione";
|
|
239
247
|
static get Source(): "Ursprung" | "Source" | "Origen" | "Origem" | "Origine";
|
|
248
|
+
static get SpecialOperators(): "Spezielle Operatoren" | "Special operators" | "Operadores especiales" | "Opérateurs spéciaux" | "Os operadores especiais" | "Operatori speciali";
|
|
240
249
|
static get Start(): "Zum Booten" | "Start" | "Arrancar" | "Pour démarrer" | "Para inicializar" | "Avviare";
|
|
241
250
|
static get Statistics(): "Statistiken" | "Statistics" | "Estadística" | "Statistiques" | "Estatísticas" | "Statistiche";
|
|
242
251
|
static get Summary(): "Zusammenfassung" | "Summary" | "Resumen" | "Résumé" | "Resumo" | "Riepilogo";
|
|
@@ -108,6 +108,16 @@ export class SDKUI_Localizator {
|
|
|
108
108
|
default: return "Tutti";
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
+
static get Alls2() {
|
|
112
|
+
switch (this._cultureID) {
|
|
113
|
+
case CultureIDs.De_DE: return "Alle";
|
|
114
|
+
case CultureIDs.En_US: return "All";
|
|
115
|
+
case CultureIDs.Es_ES: return "Todos";
|
|
116
|
+
case CultureIDs.Fr_FR: return "Tous";
|
|
117
|
+
case CultureIDs.Pt_PT: return "Todos";
|
|
118
|
+
default: return "Tutte";
|
|
119
|
+
}
|
|
120
|
+
}
|
|
111
121
|
static get AllItems() {
|
|
112
122
|
switch (this._cultureID) {
|
|
113
123
|
case CultureIDs.De_DE: return "alle Artikel";
|
|
@@ -419,6 +429,16 @@ export class SDKUI_Localizator {
|
|
|
419
429
|
default: return "Errore completo";
|
|
420
430
|
}
|
|
421
431
|
}
|
|
432
|
+
static get Configure() {
|
|
433
|
+
switch (this._cultureID) {
|
|
434
|
+
case CultureIDs.De_DE: return "Konfigurieren";
|
|
435
|
+
case CultureIDs.En_US: return "Configure";
|
|
436
|
+
case CultureIDs.Es_ES: return "Configurar";
|
|
437
|
+
case CultureIDs.Fr_FR: return "Configure";
|
|
438
|
+
case CultureIDs.Pt_PT: return "Configure";
|
|
439
|
+
default: return "Configura";
|
|
440
|
+
}
|
|
441
|
+
}
|
|
422
442
|
static get ConfirmPassword() {
|
|
423
443
|
switch (this._cultureID) {
|
|
424
444
|
case CultureIDs.De_DE: return "Bestätige das Passwort";
|
|
@@ -1911,6 +1931,16 @@ export class SDKUI_Localizator {
|
|
|
1911
1931
|
default: return "Valorizza parametri query";
|
|
1912
1932
|
}
|
|
1913
1933
|
}
|
|
1934
|
+
static get ReadOnly() {
|
|
1935
|
+
switch (this._cultureID) {
|
|
1936
|
+
case CultureIDs.De_DE: return "Nur Lesen";
|
|
1937
|
+
case CultureIDs.En_US: return "Read only";
|
|
1938
|
+
case CultureIDs.Es_ES: return "Solo lectura";
|
|
1939
|
+
case CultureIDs.Fr_FR: return "En lecture seule";
|
|
1940
|
+
case CultureIDs.Pt_PT: return "Somente leitura";
|
|
1941
|
+
default: return "Solo lettura";
|
|
1942
|
+
}
|
|
1943
|
+
}
|
|
1914
1944
|
static get Recent() {
|
|
1915
1945
|
switch (this._cultureID) {
|
|
1916
1946
|
case CultureIDs.De_DE: return "Kürzlich";
|
|
@@ -2118,6 +2148,26 @@ export class SDKUI_Localizator {
|
|
|
2118
2148
|
default: return "Salvare le modifiche apportate?";
|
|
2119
2149
|
}
|
|
2120
2150
|
}
|
|
2151
|
+
static get SavedQueryNew() {
|
|
2152
|
+
switch (this._cultureID) {
|
|
2153
|
+
case CultureIDs.De_DE: return "Neue Suche speichern";
|
|
2154
|
+
case CultureIDs.En_US: return "Save new search";
|
|
2155
|
+
case CultureIDs.Es_ES: return "Guardar nueva búsqueda";
|
|
2156
|
+
case CultureIDs.Fr_FR: return "Enregistrer la nouvelle recherche";
|
|
2157
|
+
case CultureIDs.Pt_PT: return "Guardar nova pesquisa";
|
|
2158
|
+
default: return "Salva nuova ricerca";
|
|
2159
|
+
}
|
|
2160
|
+
}
|
|
2161
|
+
static get SavedQueryUpdate() {
|
|
2162
|
+
switch (this._cultureID) {
|
|
2163
|
+
case CultureIDs.De_DE: return "Suche bearbeiten";
|
|
2164
|
+
case CultureIDs.En_US: return "Modify query";
|
|
2165
|
+
case CultureIDs.Es_ES: return "Modificar búsqueda";
|
|
2166
|
+
case CultureIDs.Fr_FR: return "Modifie la recherche";
|
|
2167
|
+
case CultureIDs.Pt_PT: return "Mudar pesquisa";
|
|
2168
|
+
default: return "Modifica ricerca";
|
|
2169
|
+
}
|
|
2170
|
+
}
|
|
2121
2171
|
static get Search() {
|
|
2122
2172
|
switch (this._cultureID) {
|
|
2123
2173
|
case CultureIDs.De_DE: return "Auf der Suche nach";
|
|
@@ -2128,6 +2178,26 @@ export class SDKUI_Localizator {
|
|
|
2128
2178
|
default: return "Ricerca";
|
|
2129
2179
|
}
|
|
2130
2180
|
}
|
|
2181
|
+
static get Search_Advanced() {
|
|
2182
|
+
switch (this._cultureID) {
|
|
2183
|
+
case CultureIDs.De_DE: return "Erweiterte Suche";
|
|
2184
|
+
case CultureIDs.En_US: return "Advanced search";
|
|
2185
|
+
case CultureIDs.Es_ES: return "Búsqueda avanzada";
|
|
2186
|
+
case CultureIDs.Fr_FR: return "Recherche avancée";
|
|
2187
|
+
case CultureIDs.Pt_PT: return "Pesquisa Avançada";
|
|
2188
|
+
default: return "Ricerca avanzata";
|
|
2189
|
+
}
|
|
2190
|
+
}
|
|
2191
|
+
static get Search_Easy() {
|
|
2192
|
+
switch (this._cultureID) {
|
|
2193
|
+
case CultureIDs.De_DE: return "Einfache Suche";
|
|
2194
|
+
case CultureIDs.En_US: return "Easy search";
|
|
2195
|
+
case CultureIDs.Es_ES: return "Búsqueda fácil";
|
|
2196
|
+
case CultureIDs.Fr_FR: return "Recherche facile";
|
|
2197
|
+
case CultureIDs.Pt_PT: return "Pesquisa fácil";
|
|
2198
|
+
default: return "Ricerca facilitata";
|
|
2199
|
+
}
|
|
2200
|
+
}
|
|
2131
2201
|
static get Search_EnterValue() {
|
|
2132
2202
|
switch (this._cultureID) {
|
|
2133
2203
|
case CultureIDs.De_DE: return "Geben Sie einen Wert ein, nach dem gesucht werden soll";
|
|
@@ -2148,6 +2218,16 @@ export class SDKUI_Localizator {
|
|
|
2148
2218
|
default: return "Ricerca libera";
|
|
2149
2219
|
}
|
|
2150
2220
|
}
|
|
2221
|
+
static get Search_Metadata() {
|
|
2222
|
+
switch (this._cultureID) {
|
|
2223
|
+
case CultureIDs.De_DE: return "Suche nach Metadaten";
|
|
2224
|
+
case CultureIDs.En_US: return "Search by metadata";
|
|
2225
|
+
case CultureIDs.Es_ES: return "Búsqueda por metadatos";
|
|
2226
|
+
case CultureIDs.Fr_FR: return "Recherche par métadonnées";
|
|
2227
|
+
case CultureIDs.Pt_PT: return "Pesquisar por metadados";
|
|
2228
|
+
default: return "Ricerca per metadati";
|
|
2229
|
+
}
|
|
2230
|
+
}
|
|
2151
2231
|
static get Search_Special() {
|
|
2152
2232
|
switch (this._cultureID) {
|
|
2153
2233
|
case CultureIDs.De_DE: return "Spezielle Suchanfragen";
|
|
@@ -2328,6 +2408,16 @@ export class SDKUI_Localizator {
|
|
|
2328
2408
|
default: return "Origine";
|
|
2329
2409
|
}
|
|
2330
2410
|
}
|
|
2411
|
+
static get SpecialOperators() {
|
|
2412
|
+
switch (this._cultureID) {
|
|
2413
|
+
case CultureIDs.De_DE: return "Spezielle Operatoren";
|
|
2414
|
+
case CultureIDs.En_US: return "Special operators";
|
|
2415
|
+
case CultureIDs.Es_ES: return "Operadores especiales";
|
|
2416
|
+
case CultureIDs.Fr_FR: return "Opérateurs spéciaux";
|
|
2417
|
+
case CultureIDs.Pt_PT: return "Os operadores especiais";
|
|
2418
|
+
default: return "Operatori speciali";
|
|
2419
|
+
}
|
|
2420
|
+
}
|
|
2331
2421
|
static get Start() {
|
|
2332
2422
|
switch (this._cultureID) {
|
|
2333
2423
|
case CultureIDs.De_DE: return "Zum Booten";
|
package/lib/helper/helpers.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { AppModules, DataColumnDescriptor, ITopMediaSession, QueryDescriptor, Se
|
|
|
4
4
|
import { FormModes, moduleTypes } from "../ts";
|
|
5
5
|
declare const TABLET_WIDTH = 1024;
|
|
6
6
|
declare const MOBILE_WIDTH = 640;
|
|
7
|
-
declare const calcResponsiveDirection: (deviceType: DeviceType, desktopDir:
|
|
7
|
+
declare const calcResponsiveDirection: (deviceType: DeviceType, desktopDir: "horizontal" | "vertical", tabletDir: "horizontal" | "vertical", mobileDir: "horizontal" | "vertical") => "horizontal" | "vertical";
|
|
8
8
|
declare const openApps: (appModule: AppModules, tmSession: ITopMediaSession, appRoutes?: any[]) => Promise<void>;
|
|
9
9
|
export declare const setSDK_GlobalsInfoAsync: (tms: ITopMediaSession | undefined) => Promise<ITopMediaSession>;
|
|
10
10
|
declare const calcResponsiveSizes: (deviceType: DeviceType | undefined, desktopSize: string, tabletSize: string, mobileSize: string) => string;
|
package/lib/hooks/useForm.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { FormModes } from "../ts";
|
|
3
2
|
import { JobTypes, ObjectClasses, ValidationItem } from "@topconsultnpm/sdk-ts-beta";
|
|
4
3
|
export declare class SaveFormOptions {
|
|
@@ -6,10 +5,11 @@ export declare class SaveFormOptions {
|
|
|
6
5
|
objType: JobTypes;
|
|
7
6
|
loadDataAfterSave: boolean;
|
|
8
7
|
}
|
|
9
|
-
export declare function useSaveForm<T>(formMode: FormModes, id: number | undefined, sfo: SaveFormOptions, validator?: (d: T) => Promise<ValidationItem[] | undefined>, onSaved?: (newDescriptor: T) => void, onStatusChanged?: (isModified: boolean, isValid: boolean) => void,
|
|
8
|
+
export declare function useSaveForm<T>(formMode: FormModes, id: number | undefined, sfo: SaveFormOptions, validator?: (d: T) => Promise<ValidationItem[] | undefined>, onSaved?: (newDescriptor: T) => void, onStatusChanged?: (isModified: boolean, isValid: boolean) => void, customizeFormData?: (d: T) => T): {
|
|
10
9
|
formData: T | undefined;
|
|
11
10
|
setFormData: import("react").Dispatch<import("react").SetStateAction<T | undefined>>;
|
|
12
11
|
formDataOrig: T | undefined;
|
|
12
|
+
setFormDataOrig: import("react").Dispatch<import("react").SetStateAction<T | undefined>>;
|
|
13
13
|
validationItems: ValidationItem[];
|
|
14
14
|
exception: any;
|
|
15
15
|
saveDataAsync: () => Promise<void>;
|
package/lib/hooks/useForm.js
CHANGED
|
@@ -10,7 +10,7 @@ export class SaveFormOptions {
|
|
|
10
10
|
this.loadDataAfterSave = true;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
export function useSaveForm(formMode, id, sfo, validator, onSaved, onStatusChanged,
|
|
13
|
+
export function useSaveForm(formMode, id, sfo, validator, onSaved, onStatusChanged, customizeFormData) {
|
|
14
14
|
const [formData, setFormData] = useState();
|
|
15
15
|
const [formDataOrig, setFormDataOrig] = useState();
|
|
16
16
|
const [exception, setException] = useState();
|
|
@@ -41,9 +41,9 @@ export function useSaveForm(formMode, id, sfo, validator, onSaved, onStatusChang
|
|
|
41
41
|
TMSpinner.show({ description: `${SDKUI_Localizator.Loading} (id: ${id}) ...`, backgroundColor: 'transparent' });
|
|
42
42
|
setException(undefined);
|
|
43
43
|
let d = await getDataAsync?.(id, fm);
|
|
44
|
-
if (customizeData)
|
|
45
|
-
d = customizeData(d);
|
|
46
44
|
setFormDataOrig({ ...d });
|
|
45
|
+
if (customizeFormData)
|
|
46
|
+
d = customizeFormData(d);
|
|
47
47
|
if (fm == FormModes.Duplicate)
|
|
48
48
|
d.name = d.name + ' (copy)';
|
|
49
49
|
setFormData({ ...d });
|
|
@@ -88,8 +88,8 @@ export function useSaveForm(formMode, id, sfo, validator, onSaved, onStatusChang
|
|
|
88
88
|
setValidationItems(vil);
|
|
89
89
|
onStatusChanged?.(calcIsModified(formData, formDataOrig), vil.findIndex(o => o.ResultType != ResultTypes.SUCCESS) >= 0);
|
|
90
90
|
}).catch((err) => { TMExceptionBoxManager.show({ exception: err }); });
|
|
91
|
-
}, [formData]);
|
|
92
|
-
return { formData, setFormData, formDataOrig, validationItems, exception, saveDataAsync };
|
|
91
|
+
}, [JSON.stringify(formData)]);
|
|
92
|
+
return { formData, setFormData, formDataOrig, setFormDataOrig, validationItems, exception, saveDataAsync };
|
|
93
93
|
}
|
|
94
94
|
export function useApplyForm(formMode, inputData, newData, onApplied) {
|
|
95
95
|
const [formData, setFormData] = useState(inputData ?? newData());
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { QueryDescriptor, QueryParameterDescriptor } from '@topconsultnpm/sdk-ts-beta';
|
|
3
2
|
export declare const useQueryParametersDialog: () => [(inputQd: QueryDescriptor, lastQdParams?: QueryParameterDescriptor[]) => Promise<QueryParameterDescriptor[]>, () => JSX.Element];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@topconsultnpm/sdkui-react-beta",
|
|
3
|
-
"version": "6.9.
|
|
3
|
+
"version": "6.9.55",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"lib"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@topconsultnpm/sdk-ts-beta": "^6.9.
|
|
31
|
+
"@topconsultnpm/sdk-ts-beta": "^6.9.6",
|
|
32
32
|
"buffer": "^6.0.3",
|
|
33
33
|
"devextreme": "24.1.7",
|
|
34
34
|
"devextreme-react": "24.1.7",
|