@topconsultnpm/sdkui-react 6.21.0-dev4.9 → 6.21.0-dev5.2
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/TMTreeView.d.ts +16 -13
- package/lib/components/base/TMTreeView.js +230 -64
- package/lib/components/features/documents/TMDcmtIcon.d.ts +3 -1
- package/lib/components/features/documents/TMDcmtIcon.js +5 -32
- package/lib/components/features/documents/TMFileUploader.js +1 -1
- package/lib/components/features/documents/TMMasterDetailDcmts.js +50 -11
- package/lib/components/features/documents/TMRelationViewer.d.ts +12 -10
- package/lib/components/features/documents/TMRelationViewer.js +400 -96
- package/lib/components/features/documents/copyAndMergeDcmtsShared.d.ts +4 -3
- package/lib/components/features/documents/copyAndMergeDcmtsShared.js +47 -23
- package/lib/components/features/search/TMSearchResult.js +20 -5
- package/lib/components/viewers/TMTidViewer.js +14 -2
- package/lib/helper/SDKUI_Globals.d.ts +1 -0
- package/lib/helper/SDKUI_Globals.js +1 -0
- package/lib/helper/SDKUI_Localizator.d.ts +28 -0
- package/lib/helper/SDKUI_Localizator.js +280 -0
- package/lib/helper/TMUtils.d.ts +33 -1
- package/lib/helper/TMUtils.js +104 -1
- package/lib/helper/helpers.js +9 -0
- package/package.json +3 -4
|
@@ -1080,6 +1080,16 @@ export class SDKUI_Localizator {
|
|
|
1080
1080
|
default: return "Chiudi attività";
|
|
1081
1081
|
}
|
|
1082
1082
|
}
|
|
1083
|
+
static get Collapse() {
|
|
1084
|
+
switch (this._cultureID) {
|
|
1085
|
+
case CultureIDs.De_DE: return "Reduzieren";
|
|
1086
|
+
case CultureIDs.En_US: return "Collapse";
|
|
1087
|
+
case CultureIDs.Es_ES: return "Contraer";
|
|
1088
|
+
case CultureIDs.Fr_FR: return "Réduire";
|
|
1089
|
+
case CultureIDs.Pt_PT: return "Recolher";
|
|
1090
|
+
default: return "Comprimi";
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1083
1093
|
static get CollapseAll() {
|
|
1084
1094
|
switch (this._cultureID) {
|
|
1085
1095
|
case CultureIDs.De_DE: return "Alle reduzieren";
|
|
@@ -1090,6 +1100,16 @@ export class SDKUI_Localizator {
|
|
|
1090
1100
|
default: return "Comprimi tutto";
|
|
1091
1101
|
}
|
|
1092
1102
|
}
|
|
1103
|
+
static get CollapseTree() {
|
|
1104
|
+
switch (this._cultureID) {
|
|
1105
|
+
case CultureIDs.De_DE: return "Gesamten Baum reduzieren";
|
|
1106
|
+
case CultureIDs.En_US: return "Collapse entire tree";
|
|
1107
|
+
case CultureIDs.Es_ES: return "Contraer todo el árbol";
|
|
1108
|
+
case CultureIDs.Fr_FR: return "Réduire tout l'arbre";
|
|
1109
|
+
case CultureIDs.Pt_PT: return "Recolher toda a árvore";
|
|
1110
|
+
default: return "Comprimi tutto l'albero";
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1093
1113
|
static get Columns_All_Hide() {
|
|
1094
1114
|
switch (this._cultureID) {
|
|
1095
1115
|
case CultureIDs.De_DE: return "Alle Spalten ausblenden";
|
|
@@ -1969,6 +1989,16 @@ export class SDKUI_Localizator {
|
|
|
1969
1989
|
default: return "Disabilitato";
|
|
1970
1990
|
}
|
|
1971
1991
|
}
|
|
1992
|
+
static get DisableMultipleSelection() {
|
|
1993
|
+
switch (this._cultureID) {
|
|
1994
|
+
case CultureIDs.De_DE: return "Mehrfachauswahl deaktivieren";
|
|
1995
|
+
case CultureIDs.En_US: return "Disable multiple selection";
|
|
1996
|
+
case CultureIDs.Es_ES: return "Deshabilitar selección múltiple";
|
|
1997
|
+
case CultureIDs.Fr_FR: return "Désactiver la sélection multiple";
|
|
1998
|
+
case CultureIDs.Pt_PT: return "Desativar seleção múltipla";
|
|
1999
|
+
default: return "Disabilita selezione multipla";
|
|
2000
|
+
}
|
|
2001
|
+
}
|
|
1972
2002
|
static get DisplayFormat() {
|
|
1973
2003
|
switch (this._cultureID) {
|
|
1974
2004
|
case CultureIDs.De_DE: return "Anzeigeformat";
|
|
@@ -1979,6 +2009,36 @@ export class SDKUI_Localizator {
|
|
|
1979
2009
|
default: return "Formato di visualizzazione";
|
|
1980
2010
|
}
|
|
1981
2011
|
}
|
|
2012
|
+
static get DisplayNameMethod() {
|
|
2013
|
+
switch (this._cultureID) {
|
|
2014
|
+
case CultureIDs.De_DE: return "Anzeigemethode";
|
|
2015
|
+
case CultureIDs.En_US: return "Display Method";
|
|
2016
|
+
case CultureIDs.Es_ES: return "Método de visualización";
|
|
2017
|
+
case CultureIDs.Fr_FR: return "Méthode d'affichage";
|
|
2018
|
+
case CultureIDs.Pt_PT: return "Método de exibição";
|
|
2019
|
+
default: return "Metodo di visualizzazione";
|
|
2020
|
+
}
|
|
2021
|
+
}
|
|
2022
|
+
static get DisplayNameMethod_Abstract() {
|
|
2023
|
+
switch (this._cultureID) {
|
|
2024
|
+
case CultureIDs.De_DE: return "Dokumentbeschreibung (SYS_Abstract)";
|
|
2025
|
+
case CultureIDs.En_US: return "Document description (SYS_Abstract)";
|
|
2026
|
+
case CultureIDs.Es_ES: return "Descripción del documento (SYS_Abstract)";
|
|
2027
|
+
case CultureIDs.Fr_FR: return "Description du document (SYS_Abstract)";
|
|
2028
|
+
case CultureIDs.Pt_PT: return "Descrição do documento (SYS_Abstract)";
|
|
2029
|
+
default: return "Descrizione documento (SYS_Abstract)";
|
|
2030
|
+
}
|
|
2031
|
+
}
|
|
2032
|
+
static get DisplayNameMethod_Top5() {
|
|
2033
|
+
switch (this._cultureID) {
|
|
2034
|
+
case CultureIDs.De_DE: return "Erste 5 Metadaten";
|
|
2035
|
+
case CultureIDs.En_US: return "First 5 metadata";
|
|
2036
|
+
case CultureIDs.Es_ES: return "Primeros 5 metadatos";
|
|
2037
|
+
case CultureIDs.Fr_FR: return "5 premières métadonnées";
|
|
2038
|
+
case CultureIDs.Pt_PT: return "Primeiros 5 metadados";
|
|
2039
|
+
default: return "Primi 5 metadati";
|
|
2040
|
+
}
|
|
2041
|
+
}
|
|
1982
2042
|
static get DistinctValues() {
|
|
1983
2043
|
switch (this._cultureID) {
|
|
1984
2044
|
case CultureIDs.De_DE: return "Unterschiedliche Werte";
|
|
@@ -2059,6 +2119,46 @@ export class SDKUI_Localizator {
|
|
|
2059
2119
|
default: return "Documenti";
|
|
2060
2120
|
}
|
|
2061
2121
|
}
|
|
2122
|
+
static get DocumentsNotAvailableOrNoCorrelations() {
|
|
2123
|
+
switch (this._cultureID) {
|
|
2124
|
+
case CultureIDs.De_DE: return "Die angeforderten Dokumente sind nicht mehr verfügbar oder haben keine Korrelationen";
|
|
2125
|
+
case CultureIDs.En_US: return "The requested documents are no longer available or have no correlations";
|
|
2126
|
+
case CultureIDs.Es_ES: return "Los documentos solicitados ya no están disponibles o no tienen correlaciones";
|
|
2127
|
+
case CultureIDs.Fr_FR: return "Les documents demandés ne sont plus disponibles ou n'ont pas de corrélations";
|
|
2128
|
+
case CultureIDs.Pt_PT: return "Os documentos solicitados não estão mais disponíveis ou não têm correlações";
|
|
2129
|
+
default: return "I documenti richiesti non sono più disponibili o non hanno correlazioni";
|
|
2130
|
+
}
|
|
2131
|
+
}
|
|
2132
|
+
static get NoMasterDocumentsAvailable() {
|
|
2133
|
+
switch (this._cultureID) {
|
|
2134
|
+
case CultureIDs.De_DE: return "Keine Master-Dokumente für die ausgewählte Korrelation verfügbar";
|
|
2135
|
+
case CultureIDs.En_US: return "No master documents available for the selected correlation";
|
|
2136
|
+
case CultureIDs.Es_ES: return "Ningún documento maestro disponible para la correlación seleccionada";
|
|
2137
|
+
case CultureIDs.Fr_FR: return "Aucun document maître disponible pour la corrélation sélectionnée";
|
|
2138
|
+
case CultureIDs.Pt_PT: return "Nenhum documento mestre disponível para a correlação selecionada";
|
|
2139
|
+
default: return "Nessun documento master disponibile per la correlazione selezionata";
|
|
2140
|
+
}
|
|
2141
|
+
}
|
|
2142
|
+
static get NoRelatedDocumentsToDisplay() {
|
|
2143
|
+
switch (this._cultureID) {
|
|
2144
|
+
case CultureIDs.De_DE: return "Keine verknüpften Dokumente zum Anzeigen";
|
|
2145
|
+
case CultureIDs.En_US: return "No related documents to display";
|
|
2146
|
+
case CultureIDs.Es_ES: return "No hay documentos relacionados para mostrar";
|
|
2147
|
+
case CultureIDs.Fr_FR: return "Aucun document lié à afficher";
|
|
2148
|
+
case CultureIDs.Pt_PT: return "Nenhum documento relacionado para exibir";
|
|
2149
|
+
default: return "Nessun documento correlato da visualizzare";
|
|
2150
|
+
}
|
|
2151
|
+
}
|
|
2152
|
+
static get NoRelationsAvailable() {
|
|
2153
|
+
switch (this._cultureID) {
|
|
2154
|
+
case CultureIDs.De_DE: return "Keine Beziehung verfügbar";
|
|
2155
|
+
case CultureIDs.En_US: return "No relations available";
|
|
2156
|
+
case CultureIDs.Es_ES: return "Ninguna relación disponible";
|
|
2157
|
+
case CultureIDs.Fr_FR: return "Aucune relation disponible";
|
|
2158
|
+
case CultureIDs.Pt_PT: return "Nenhuma relação disponível";
|
|
2159
|
+
default: return "Nessuna relazione disponibile";
|
|
2160
|
+
}
|
|
2161
|
+
}
|
|
2062
2162
|
static get DocumentOperations() {
|
|
2063
2163
|
switch (this._cultureID) {
|
|
2064
2164
|
case CultureIDs.De_DE: return "Dokumentenoperationen";
|
|
@@ -2431,6 +2531,16 @@ export class SDKUI_Localizator {
|
|
|
2431
2531
|
default: return "La data di scadenza è imminente (ovvero fissata per domani)";
|
|
2432
2532
|
}
|
|
2433
2533
|
}
|
|
2534
|
+
static get EnableMultipleSelection() {
|
|
2535
|
+
switch (this._cultureID) {
|
|
2536
|
+
case CultureIDs.De_DE: return "Mehrfachauswahl aktivieren";
|
|
2537
|
+
case CultureIDs.En_US: return "Enable multiple selection";
|
|
2538
|
+
case CultureIDs.Es_ES: return "Habilitar selección múltiple";
|
|
2539
|
+
case CultureIDs.Fr_FR: return "Activer la sélection multiple";
|
|
2540
|
+
case CultureIDs.Pt_PT: return "Ativar seleção múltipla";
|
|
2541
|
+
default: return "Abilita selezione multipla";
|
|
2542
|
+
}
|
|
2543
|
+
}
|
|
2434
2544
|
static get Endpoint() {
|
|
2435
2545
|
switch (this._cultureID) {
|
|
2436
2546
|
case CultureIDs.De_DE: return "Zugangspunkt";
|
|
@@ -2637,6 +2747,116 @@ export class SDKUI_Localizator {
|
|
|
2637
2747
|
default: return "Espandi tutto";
|
|
2638
2748
|
}
|
|
2639
2749
|
}
|
|
2750
|
+
static get ExpandLevels() {
|
|
2751
|
+
switch (this._cultureID) {
|
|
2752
|
+
case CultureIDs.De_DE: return "Erweitern ({{0}} Ebenen)";
|
|
2753
|
+
case CultureIDs.En_US: return "Expand ({{0}} levels)";
|
|
2754
|
+
case CultureIDs.Es_ES: return "Expandir ({{0}} niveles)";
|
|
2755
|
+
case CultureIDs.Fr_FR: return "Développer ({{0}} niveaux)";
|
|
2756
|
+
case CultureIDs.Pt_PT: return "Expandir ({{0}} níveis)";
|
|
2757
|
+
default: return "Espandi ({{0}} livelli)";
|
|
2758
|
+
}
|
|
2759
|
+
}
|
|
2760
|
+
static get ExpandAllLevels() {
|
|
2761
|
+
switch (this._cultureID) {
|
|
2762
|
+
case CultureIDs.De_DE: return "Erweitern (alle Ebenen)";
|
|
2763
|
+
case CultureIDs.En_US: return "Expand (all levels)";
|
|
2764
|
+
case CultureIDs.Es_ES: return "Expandir (todos los niveles)";
|
|
2765
|
+
case CultureIDs.Fr_FR: return "Développer (tous les niveaux)";
|
|
2766
|
+
case CultureIDs.Pt_PT: return "Expandir (todos os níveis)";
|
|
2767
|
+
default: return "Espandi (tutti i livelli)";
|
|
2768
|
+
}
|
|
2769
|
+
}
|
|
2770
|
+
static get CtrlClickToReloadAll() {
|
|
2771
|
+
switch (this._cultureID) {
|
|
2772
|
+
case CultureIDs.De_DE: return "Strg+Klick = alles neu laden";
|
|
2773
|
+
case CultureIDs.En_US: return "Ctrl+click = reload all";
|
|
2774
|
+
case CultureIDs.Es_ES: return "Ctrl+clic = recargar todo";
|
|
2775
|
+
case CultureIDs.Fr_FR: return "Ctrl+clic = tout recharger";
|
|
2776
|
+
case CultureIDs.Pt_PT: return "Ctrl+clique = recarregar tudo";
|
|
2777
|
+
default: return "Ctrl+click = ricarica tutto";
|
|
2778
|
+
}
|
|
2779
|
+
}
|
|
2780
|
+
static get ExpandComplete() {
|
|
2781
|
+
switch (this._cultureID) {
|
|
2782
|
+
case CultureIDs.De_DE: return "Erweiterung abgeschlossen";
|
|
2783
|
+
case CultureIDs.En_US: return "Expand complete";
|
|
2784
|
+
case CultureIDs.Es_ES: return "Expansión completada";
|
|
2785
|
+
case CultureIDs.Fr_FR: return "Expansion terminée";
|
|
2786
|
+
case CultureIDs.Pt_PT: return "Expansão concluída";
|
|
2787
|
+
default: return "Espansione completata";
|
|
2788
|
+
}
|
|
2789
|
+
}
|
|
2790
|
+
static get ExpandToLevel() {
|
|
2791
|
+
switch (this._cultureID) {
|
|
2792
|
+
case CultureIDs.De_DE: return "Erweitern bis Ebene {{0}}";
|
|
2793
|
+
case CultureIDs.En_US: return "Expand to level {{0}}";
|
|
2794
|
+
case CultureIDs.Es_ES: return "Expandir hasta el nivel {{0}}";
|
|
2795
|
+
case CultureIDs.Fr_FR: return "Développer jusqu'au niveau {{0}}";
|
|
2796
|
+
case CultureIDs.Pt_PT: return "Expandir até o nível {{0}}";
|
|
2797
|
+
default: return "Espandi fino al livello {{0}}";
|
|
2798
|
+
}
|
|
2799
|
+
}
|
|
2800
|
+
static get ExpansionLevel() {
|
|
2801
|
+
switch (this._cultureID) {
|
|
2802
|
+
case CultureIDs.De_DE: return "Erweiterungsebene";
|
|
2803
|
+
case CultureIDs.En_US: return "Expansion level";
|
|
2804
|
+
case CultureIDs.Es_ES: return "Nivel de expansión";
|
|
2805
|
+
case CultureIDs.Fr_FR: return "Niveau d'expansion";
|
|
2806
|
+
case CultureIDs.Pt_PT: return "Nível de expansão";
|
|
2807
|
+
default: return "Livello di espansione";
|
|
2808
|
+
}
|
|
2809
|
+
}
|
|
2810
|
+
static get ExpansionLevelSettings() {
|
|
2811
|
+
switch (this._cultureID) {
|
|
2812
|
+
case CultureIDs.De_DE: return "Erweiterungsebene Einstellungen";
|
|
2813
|
+
case CultureIDs.En_US: return "Expansion level settings";
|
|
2814
|
+
case CultureIDs.Es_ES: return "Configuración del nivel de expansión";
|
|
2815
|
+
case CultureIDs.Fr_FR: return "Paramètres du niveau d'expansion";
|
|
2816
|
+
case CultureIDs.Pt_PT: return "Configurações do nível de expansão";
|
|
2817
|
+
default: return "Impostazioni livello espansione";
|
|
2818
|
+
}
|
|
2819
|
+
}
|
|
2820
|
+
static get ExpansionSettings() {
|
|
2821
|
+
switch (this._cultureID) {
|
|
2822
|
+
case CultureIDs.De_DE: return "Erweiterungseinstellungen";
|
|
2823
|
+
case CultureIDs.En_US: return "Expansion settings";
|
|
2824
|
+
case CultureIDs.Es_ES: return "Configuración de expansión";
|
|
2825
|
+
case CultureIDs.Fr_FR: return "Paramètres d'expansion";
|
|
2826
|
+
case CultureIDs.Pt_PT: return "Configurações de expansão";
|
|
2827
|
+
default: return "Impostazioni espansione";
|
|
2828
|
+
}
|
|
2829
|
+
}
|
|
2830
|
+
static get ExpansionInProgress() {
|
|
2831
|
+
switch (this._cultureID) {
|
|
2832
|
+
case CultureIDs.De_DE: return "Erweiterung läuft...";
|
|
2833
|
+
case CultureIDs.En_US: return "Expansion in progress...";
|
|
2834
|
+
case CultureIDs.Es_ES: return "Expansión en curso...";
|
|
2835
|
+
case CultureIDs.Fr_FR: return "Expansion en cours...";
|
|
2836
|
+
case CultureIDs.Pt_PT: return "Expansão em andamento...";
|
|
2837
|
+
default: return "Espansione in corso...";
|
|
2838
|
+
}
|
|
2839
|
+
}
|
|
2840
|
+
static get FullReloadInProgress() {
|
|
2841
|
+
switch (this._cultureID) {
|
|
2842
|
+
case CultureIDs.De_DE: return "Vollständiges Neuladen läuft...";
|
|
2843
|
+
case CultureIDs.En_US: return "Full reload in progress...";
|
|
2844
|
+
case CultureIDs.Es_ES: return "Recarga completa en curso...";
|
|
2845
|
+
case CultureIDs.Fr_FR: return "Rechargement complet en cours...";
|
|
2846
|
+
case CultureIDs.Pt_PT: return "Recarregamento completo em andamento...";
|
|
2847
|
+
default: return "Ricaricamento completo in corso...";
|
|
2848
|
+
}
|
|
2849
|
+
}
|
|
2850
|
+
static get ExpansionProgress() {
|
|
2851
|
+
switch (this._cultureID) {
|
|
2852
|
+
case CultureIDs.De_DE: return "Erweiterung {{0}} von {{1}}...";
|
|
2853
|
+
case CultureIDs.En_US: return "Expansion {{0}} of {{1}}...";
|
|
2854
|
+
case CultureIDs.Es_ES: return "Expansión {{0}} de {{1}}...";
|
|
2855
|
+
case CultureIDs.Fr_FR: return "Expansion {{0}} sur {{1}}...";
|
|
2856
|
+
case CultureIDs.Pt_PT: return "Expansão {{0}} de {{1}}...";
|
|
2857
|
+
default: return "Espansione {{0}} di {{1}}...";
|
|
2858
|
+
}
|
|
2859
|
+
}
|
|
2640
2860
|
static get Expected() {
|
|
2641
2861
|
switch (this._cultureID) {
|
|
2642
2862
|
case CultureIDs.De_DE: return "Erwartet";
|
|
@@ -3738,6 +3958,16 @@ export class SDKUI_Localizator {
|
|
|
3738
3958
|
default: return "Nascondi tutti";
|
|
3739
3959
|
}
|
|
3740
3960
|
}
|
|
3961
|
+
static get HideDetailsWithZeroDocs() {
|
|
3962
|
+
switch (this._cultureID) {
|
|
3963
|
+
case CultureIDs.De_DE: return "Details mit 0 Dokumenten ausblenden";
|
|
3964
|
+
case CultureIDs.En_US: return "Hide details with 0 documents";
|
|
3965
|
+
case CultureIDs.Es_ES: return "Ocultar detalles con 0 documentos";
|
|
3966
|
+
case CultureIDs.Fr_FR: return "Masquer les détails avec 0 documents";
|
|
3967
|
+
case CultureIDs.Pt_PT: return "Ocultar detalhes com 0 documentos";
|
|
3968
|
+
default: return "Nascondi dettagli con 0 documenti";
|
|
3969
|
+
}
|
|
3970
|
+
}
|
|
3741
3971
|
static get HideFloatingBar() {
|
|
3742
3972
|
switch (this._cultureID) {
|
|
3743
3973
|
case CultureIDs.De_DE: return "Floating-Leiste ausblenden";
|
|
@@ -4128,6 +4358,16 @@ export class SDKUI_Localizator {
|
|
|
4128
4358
|
default: return "Visualizza la lista";
|
|
4129
4359
|
}
|
|
4130
4360
|
}
|
|
4361
|
+
static get Levels() {
|
|
4362
|
+
switch (this._cultureID) {
|
|
4363
|
+
case CultureIDs.De_DE: return "Ebenen";
|
|
4364
|
+
case CultureIDs.En_US: return "Levels";
|
|
4365
|
+
case CultureIDs.Es_ES: return "Niveles";
|
|
4366
|
+
case CultureIDs.Fr_FR: return "Niveaux";
|
|
4367
|
+
case CultureIDs.Pt_PT: return "Níveis";
|
|
4368
|
+
default: return "Livelli";
|
|
4369
|
+
}
|
|
4370
|
+
}
|
|
4131
4371
|
static get Loading() {
|
|
4132
4372
|
switch (this._cultureID) {
|
|
4133
4373
|
case CultureIDs.De_DE: return "Laden";
|
|
@@ -4138,6 +4378,26 @@ export class SDKUI_Localizator {
|
|
|
4138
4378
|
default: return "Caricamento";
|
|
4139
4379
|
}
|
|
4140
4380
|
}
|
|
4381
|
+
static get LoadingDetailDocuments() {
|
|
4382
|
+
switch (this._cultureID) {
|
|
4383
|
+
case CultureIDs.De_DE: return "Laden der Detaildokumente";
|
|
4384
|
+
case CultureIDs.En_US: return "Loading detail documents";
|
|
4385
|
+
case CultureIDs.Es_ES: return "Cargando documentos de detalle";
|
|
4386
|
+
case CultureIDs.Fr_FR: return "Chargement des documents de détail";
|
|
4387
|
+
case CultureIDs.Pt_PT: return "Carregando documentos de detalhe";
|
|
4388
|
+
default: return "Caricamento documenti dettaglio";
|
|
4389
|
+
}
|
|
4390
|
+
}
|
|
4391
|
+
static get LoadingMasterDocuments() {
|
|
4392
|
+
switch (this._cultureID) {
|
|
4393
|
+
case CultureIDs.De_DE: return "Laden der Masterdokumente";
|
|
4394
|
+
case CultureIDs.En_US: return "Loading master documents";
|
|
4395
|
+
case CultureIDs.Es_ES: return "Cargando documentos maestros";
|
|
4396
|
+
case CultureIDs.Fr_FR: return "Chargement des documents maîtres";
|
|
4397
|
+
case CultureIDs.Pt_PT: return "Carregando documentos mestres";
|
|
4398
|
+
default: return "Caricamento documenti master";
|
|
4399
|
+
}
|
|
4400
|
+
}
|
|
4141
4401
|
static get Localization() {
|
|
4142
4402
|
switch (this._cultureID) {
|
|
4143
4403
|
case CultureIDs.De_DE: return "Lokalisierung";
|
|
@@ -6869,6 +7129,16 @@ export class SDKUI_Localizator {
|
|
|
6869
7129
|
default: return "Seleziona un'operazione tra";
|
|
6870
7130
|
}
|
|
6871
7131
|
}
|
|
7132
|
+
static get SelectDocumentToViewSearchResults() {
|
|
7133
|
+
switch (this._cultureID) {
|
|
7134
|
+
case CultureIDs.De_DE: return "Wählen Sie ein Dokument aus, um die Details anzuzeigen";
|
|
7135
|
+
case CultureIDs.En_US: return "Select a document to view details";
|
|
7136
|
+
case CultureIDs.Es_ES: return "Selecciona un documento para ver los detalles";
|
|
7137
|
+
case CultureIDs.Fr_FR: return "Sélectionnez un document pour afficher les détails";
|
|
7138
|
+
case CultureIDs.Pt_PT: return "Selecione um documento para visualizar os detalhes";
|
|
7139
|
+
default: return "Seleziona un documento per visualizzare i dettagli";
|
|
7140
|
+
}
|
|
7141
|
+
}
|
|
6872
7142
|
static get SelectArchiveToStart() {
|
|
6873
7143
|
switch (this._cultureID) {
|
|
6874
7144
|
case CultureIDs.De_DE: return "Klicken Sie auf Archivieren, um zu beginnen.";
|
|
@@ -7250,6 +7520,16 @@ export class SDKUI_Localizator {
|
|
|
7250
7520
|
default: return "Mostra dettagli";
|
|
7251
7521
|
}
|
|
7252
7522
|
}
|
|
7523
|
+
static get ShowDetailsWithZeroDocs() {
|
|
7524
|
+
switch (this._cultureID) {
|
|
7525
|
+
case CultureIDs.De_DE: return "Details mit 0 Dokumenten anzeigen";
|
|
7526
|
+
case CultureIDs.En_US: return "Show details with 0 documents";
|
|
7527
|
+
case CultureIDs.Es_ES: return "Mostrar detalles con 0 documentos";
|
|
7528
|
+
case CultureIDs.Fr_FR: return "Afficher les détails avec 0 documents";
|
|
7529
|
+
case CultureIDs.Pt_PT: return "Mostrar detalhes com 0 documentos";
|
|
7530
|
+
default: return "Consenti dettagli con 0 documenti";
|
|
7531
|
+
}
|
|
7532
|
+
}
|
|
7253
7533
|
static get ShowFilters() {
|
|
7254
7534
|
switch (this._cultureID) {
|
|
7255
7535
|
case CultureIDs.De_DE: return "Filter anzeigen";
|
package/lib/helper/TMUtils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FileItem } from '../components';
|
|
3
|
-
import { AppModules, DataColumnDescriptor, DcmtTypeDescriptor, PdGs, SearchResultDescriptor } from '@topconsultnpm/sdk-ts';
|
|
3
|
+
import { AppModules, DataColumnDescriptor, DcmtTypeDescriptor, MetadataDescriptor, PdGs, SearchResultDescriptor } from '@topconsultnpm/sdk-ts';
|
|
4
4
|
/**
|
|
5
5
|
* Estensioni di firma/marca temporale note che possono avvolgere altre estensioni.
|
|
6
6
|
* Es: file.pdf.p7m, file.xml.p7m, file.docx.p7m, file.xml.p7m.ts
|
|
@@ -77,4 +77,36 @@ type DcmtFormToolbarVisibility = {
|
|
|
77
77
|
};
|
|
78
78
|
export declare const getDcmtFormToolbarVisibility: (appModuleID: AppModules) => DcmtFormToolbarVisibility;
|
|
79
79
|
export declare const isConvertibleToPdfExt: (ext: string | undefined | null) => boolean;
|
|
80
|
+
/** Valore metadato con descrittore (da searchResultToDataSource) */
|
|
81
|
+
export interface DcmtMetadataValue {
|
|
82
|
+
md?: MetadataDescriptor;
|
|
83
|
+
value: any;
|
|
84
|
+
}
|
|
85
|
+
/** Documento con metadati indicizzati per nome */
|
|
86
|
+
export interface DcmtMetadataMap {
|
|
87
|
+
[key: string]: DcmtMetadataValue;
|
|
88
|
+
rowIndex?: any;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Restituisce le chiavi dei metadati da visualizzare come descrizione documento.
|
|
92
|
+
* Priorità: 1) SYS_Abstract 2) isSpecialSearchOutput=true 3) primi 5 metadati non di sistema
|
|
93
|
+
*/
|
|
94
|
+
export declare const buildDcmtDisplayName: (obj: DcmtMetadataMap | null | undefined) => Array<string>;
|
|
95
|
+
/** Metodo utilizzato per determinare i metadati da visualizzare come descrizione documento */
|
|
96
|
+
export declare enum DcmtDisplayNameMethod {
|
|
97
|
+
/** Nessun metadato disponibile */
|
|
98
|
+
None = "None",
|
|
99
|
+
/** Campo SYS_Abstract presente */
|
|
100
|
+
SysAbstract = "SysAbstract",
|
|
101
|
+
/** Metadati con isSpecialSearchOutput = true */
|
|
102
|
+
SpecialSearchOutput = "SpecialSearchOutput",
|
|
103
|
+
/** Primi 5 metadati non di sistema con permesso canView */
|
|
104
|
+
FirstViewableMetadata = "FirstViewableMetadata"
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Analizza un DcmtTypeDescriptor e restituisce la stringa descrittiva del metodo di visualizzazione.
|
|
108
|
+
* Priorità: 1) SYS_Abstract 2) isSpecialSearchOutput=true 3) primi 5 metadati non di sistema (default)
|
|
109
|
+
* Se i metadati non sono presenti nel dtd, li recupera dalla cache.
|
|
110
|
+
*/
|
|
111
|
+
export declare const getDTDDisplayNameInfo: (dtd: DcmtTypeDescriptor | undefined) => Promise<string>;
|
|
80
112
|
export {};
|
package/lib/helper/TMUtils.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import styled from "styled-components";
|
|
3
3
|
import { TMTooltip } from '../components';
|
|
4
4
|
import { IconCADossier, IconKey, IconMenuCAWorkingGroups } from './TMIcons';
|
|
5
|
-
import { AppModules, DataListCacheService, LicenseModuleStatus, MetadataDataDomains, PdGs, SDK_Globals } from '@topconsultnpm/sdk-ts';
|
|
5
|
+
import { AccessLevels, AppModules, DataListCacheService, DcmtTypeListCacheService, LicenseModuleStatus, MetadataDataDomains, PdGs, SDK_Globals, SystemMIDs } from '@topconsultnpm/sdk-ts';
|
|
6
6
|
import { SDKUI_Localizator } from './SDKUI_Localizator';
|
|
7
7
|
/**
|
|
8
8
|
* Estensioni di firma/marca temporale note che possono avvolgere altre estensioni.
|
|
@@ -430,3 +430,106 @@ export const isConvertibleToPdfExt = (ext) => {
|
|
|
430
430
|
'eml', 'msg'
|
|
431
431
|
].includes(normalized);
|
|
432
432
|
};
|
|
433
|
+
/**
|
|
434
|
+
* Restituisce le chiavi dei metadati da visualizzare come descrizione documento.
|
|
435
|
+
* Priorità: 1) SYS_Abstract 2) isSpecialSearchOutput=true 3) primi 5 metadati non di sistema
|
|
436
|
+
*/
|
|
437
|
+
export const buildDcmtDisplayName = (obj) => {
|
|
438
|
+
try {
|
|
439
|
+
if (!obj)
|
|
440
|
+
return [];
|
|
441
|
+
const sysAbstractKey = Object.keys(obj).find(k => k.toUpperCase() === 'SYS_ABSTRACT');
|
|
442
|
+
if (sysAbstractKey) {
|
|
443
|
+
if (obj[sysAbstractKey]?.value) {
|
|
444
|
+
return [sysAbstractKey];
|
|
445
|
+
}
|
|
446
|
+
// SYS_Abstract esiste ma è vuoto: usa DID se presente, altrimenti continua con la logica standard
|
|
447
|
+
const didKey = Object.keys(obj).find(k => k.toUpperCase() === 'DID');
|
|
448
|
+
if (didKey && obj[didKey]?.value) {
|
|
449
|
+
return [didKey];
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
const keys = Object.keys(obj);
|
|
453
|
+
const sysMIDs = Object.values(SystemMIDs).map(o => o.toUpperCase());
|
|
454
|
+
const viewableMetadataKeys = keys.filter(k => obj?.[k]?.value &&
|
|
455
|
+
obj?.[k]?.md?.perm?.canView === AccessLevels.Yes &&
|
|
456
|
+
!sysMIDs.includes(k.toUpperCase()) &&
|
|
457
|
+
k !== "rowIndex" &&
|
|
458
|
+
k !== "ISLEXPROT");
|
|
459
|
+
// Metadati con isSpecialSearchOutput = true
|
|
460
|
+
const specialOutputKeys = viewableMetadataKeys.filter(k => obj?.[k]?.md?.isSpecialSearchOutput === true);
|
|
461
|
+
if (specialOutputKeys.length > 0) {
|
|
462
|
+
return specialOutputKeys;
|
|
463
|
+
}
|
|
464
|
+
if (viewableMetadataKeys.length > 0) {
|
|
465
|
+
return viewableMetadataKeys.slice(0, 5);
|
|
466
|
+
}
|
|
467
|
+
// Fallback: se tutti i metadati personalizzati sono vuoti, usa DID
|
|
468
|
+
const didKey = Object.keys(obj).find(k => k.toUpperCase() === 'DID');
|
|
469
|
+
if (didKey && obj[didKey]?.value) {
|
|
470
|
+
return [didKey];
|
|
471
|
+
}
|
|
472
|
+
return [];
|
|
473
|
+
}
|
|
474
|
+
catch (error) {
|
|
475
|
+
console.error('buildDcmtDisplayName error:', error);
|
|
476
|
+
return [];
|
|
477
|
+
}
|
|
478
|
+
};
|
|
479
|
+
/** Metodo utilizzato per determinare i metadati da visualizzare come descrizione documento */
|
|
480
|
+
export var DcmtDisplayNameMethod;
|
|
481
|
+
(function (DcmtDisplayNameMethod) {
|
|
482
|
+
/** Nessun metadato disponibile */
|
|
483
|
+
DcmtDisplayNameMethod["None"] = "None";
|
|
484
|
+
/** Campo SYS_Abstract presente */
|
|
485
|
+
DcmtDisplayNameMethod["SysAbstract"] = "SysAbstract";
|
|
486
|
+
/** Metadati con isSpecialSearchOutput = true */
|
|
487
|
+
DcmtDisplayNameMethod["SpecialSearchOutput"] = "SpecialSearchOutput";
|
|
488
|
+
/** Primi 5 metadati non di sistema con permesso canView */
|
|
489
|
+
DcmtDisplayNameMethod["FirstViewableMetadata"] = "FirstViewableMetadata";
|
|
490
|
+
})(DcmtDisplayNameMethod || (DcmtDisplayNameMethod = {}));
|
|
491
|
+
/**
|
|
492
|
+
* Analizza un DcmtTypeDescriptor e restituisce la stringa descrittiva del metodo di visualizzazione.
|
|
493
|
+
* Priorità: 1) SYS_Abstract 2) isSpecialSearchOutput=true 3) primi 5 metadati non di sistema (default)
|
|
494
|
+
* Se i metadati non sono presenti nel dtd, li recupera dalla cache.
|
|
495
|
+
*/
|
|
496
|
+
export const getDTDDisplayNameInfo = async (dtd) => {
|
|
497
|
+
try {
|
|
498
|
+
if (!dtd) {
|
|
499
|
+
return SDKUI_Localizator.DisplayNameMethod_Top5;
|
|
500
|
+
}
|
|
501
|
+
// Recupera i metadati dalla cache se non presenti nel dtd
|
|
502
|
+
let metadata = dtd.metadata;
|
|
503
|
+
if (!metadata || metadata.length === 0) {
|
|
504
|
+
const cachedDtd = await DcmtTypeListCacheService.GetAsync(dtd.id);
|
|
505
|
+
metadata = cachedDtd?.metadata;
|
|
506
|
+
}
|
|
507
|
+
if (!metadata || metadata.length === 0) {
|
|
508
|
+
return SDKUI_Localizator.DisplayNameMethod_Top5;
|
|
509
|
+
}
|
|
510
|
+
const sysMIDs = Object.values(SystemMIDs).map(o => o.toUpperCase());
|
|
511
|
+
// 1) Cerca SYS_Abstract
|
|
512
|
+
const sysAbstract = metadata.find(md => md.name?.toUpperCase() === 'SYS_ABSTRACT');
|
|
513
|
+
if (sysAbstract) {
|
|
514
|
+
return SDKUI_Localizator.DisplayNameMethod_Abstract;
|
|
515
|
+
}
|
|
516
|
+
// Filtra metadati non di sistema con permesso canView
|
|
517
|
+
const viewableMetadata = metadata.filter(md => md.perm?.canView === AccessLevels.Yes &&
|
|
518
|
+
md.name &&
|
|
519
|
+
!sysMIDs.includes(md.name.toUpperCase()));
|
|
520
|
+
// 2) Cerca metadati con isSpecialSearchOutput = true
|
|
521
|
+
const specialOutputMetadata = viewableMetadata.filter(md => md.isSpecialSearchOutput === true);
|
|
522
|
+
if (specialOutputMetadata.length > 0) {
|
|
523
|
+
const metadataNames = specialOutputMetadata.map(md => md.nameLoc || md.name).filter(Boolean).join(', ');
|
|
524
|
+
const maxLength = 50;
|
|
525
|
+
const truncatedNames = metadataNames.length > maxLength ? metadataNames.substring(0, maxLength) + '...' : metadataNames;
|
|
526
|
+
return `${SDKUI_Localizator.Search_Special} (${truncatedNames})`;
|
|
527
|
+
}
|
|
528
|
+
// 3) Default: primi 5 metadati non di sistema
|
|
529
|
+
return SDKUI_Localizator.DisplayNameMethod_Top5;
|
|
530
|
+
}
|
|
531
|
+
catch (error) {
|
|
532
|
+
console.error('getDTDDisplayNameInfo error:', error);
|
|
533
|
+
return SDKUI_Localizator.DisplayNameMethod_Top5;
|
|
534
|
+
}
|
|
535
|
+
};
|
package/lib/helper/helpers.js
CHANGED
|
@@ -461,6 +461,15 @@ export const extensionHandler = (fileExt) => {
|
|
|
461
461
|
case 'docx':
|
|
462
462
|
case 'docx.p7m':
|
|
463
463
|
case 'docx.p7m.ts': return FileExtensionHandler.CONVERTIBLE;
|
|
464
|
+
case 'dotm':
|
|
465
|
+
case 'dotm.p7m':
|
|
466
|
+
case 'dotm.p7m.ts': return FileExtensionHandler.CONVERTIBLE;
|
|
467
|
+
case 'docm':
|
|
468
|
+
case 'docm.p7m':
|
|
469
|
+
case 'docm.p7m.ts': return FileExtensionHandler.CONVERTIBLE;
|
|
470
|
+
case 'dotx':
|
|
471
|
+
case 'dotx.p7m':
|
|
472
|
+
case 'dotx.p7m.ts': return FileExtensionHandler.CONVERTIBLE;
|
|
464
473
|
case 'xls':
|
|
465
474
|
case 'xls.p7m':
|
|
466
475
|
case 'xls.p7m.ts': return FileExtensionHandler.CONVERTIBLE;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@topconsultnpm/sdkui-react",
|
|
3
|
-
"version": "6.21.0-
|
|
3
|
+
"version": "6.21.0-dev5.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
"@storybook/addon-docs": "^10.3.5",
|
|
21
21
|
"@storybook/addon-onboarding": "^10.3.5",
|
|
22
22
|
"@storybook/react-vite": "^10.3.5",
|
|
23
|
-
"@types/htmlparser2": "^3.10.7",
|
|
24
23
|
"@types/node": "^24.12.2",
|
|
25
24
|
"@types/react": "^18.3.3",
|
|
26
25
|
"@types/react-dom": "^18.3.3",
|
|
@@ -40,7 +39,7 @@
|
|
|
40
39
|
"lib"
|
|
41
40
|
],
|
|
42
41
|
"dependencies": {
|
|
43
|
-
"@topconsultnpm/sdk-ts": "6.21.0-
|
|
42
|
+
"@topconsultnpm/sdk-ts": "6.21.0-dev5.2",
|
|
44
43
|
"@zip.js/zip.js": "2.8.26",
|
|
45
44
|
"buffer": "^6.0.3",
|
|
46
45
|
"devextreme": "^25.2.6",
|
|
@@ -49,7 +48,7 @@
|
|
|
49
48
|
"htmlparser2": "^10.0.0",
|
|
50
49
|
"pdf-lib": "^1.17.1",
|
|
51
50
|
"react-pdf": "^10.4.1",
|
|
52
|
-
"react-
|
|
51
|
+
"react-window": "^2.2.7",
|
|
53
52
|
"styled-components": "^6.1.1"
|
|
54
53
|
},
|
|
55
54
|
"overrides": {
|