diff --git a/Test.UI/Components/Pages/EditJWD.razor.cs b/Test.UI/Components/Pages/EditJWD.razor.cs
index ef4a4c5..4742c2e 100644
--- a/Test.UI/Components/Pages/EditJWD.razor.cs
+++ b/Test.UI/Components/Pages/EditJWD.razor.cs
@@ -338,6 +338,8 @@ namespace Test.UI.Components.Pages
TradVocabulary.Add("CW_Reset", "Reset");
if (!TradVocabulary.ContainsKey("CWTableC_Tree"))
TradVocabulary.Add("CWTableC_Tree", "Struttura");
+ if (!TradVocabulary.ContainsKey("CWAreaF_AreaFrame"))
+ TradVocabulary.Add("CWAreaF_AreaFrame", "Area Frame");
}
}
diff --git a/WebWindowComplex/Compo/AreaFrame.razor b/WebWindowComplex/Compo/AreaFrame.razor
index ac25596..5da40b9 100644
--- a/WebWindowComplex/Compo/AreaFrame.razor
+++ b/WebWindowComplex/Compo/AreaFrame.razor
@@ -2,7 +2,7 @@
}
@@ -126,12 +126,12 @@
diff --git a/WebWindowComplex/Compo/CardTree.razor.cs b/WebWindowComplex/Compo/CardTree.razor.cs
index 5ba7528..6337a21 100644
--- a/WebWindowComplex/Compo/CardTree.razor.cs
+++ b/WebWindowComplex/Compo/CardTree.razor.cs
@@ -66,6 +66,12 @@ namespace WebWindowComplex.Compo
[Parameter]
public bool BaseUser { get; set; } = false;
+ ///
+ /// Evento per richiesta traduzioni
+ ///
+ [Parameter]
+ public Dictionary Vocabulary { get; set; } = null!;
+
///
/// Evento richiesta prossimo step
///
@@ -114,6 +120,21 @@ namespace WebWindowComplex.Compo
[Parameter]
public EventCallback EC_UpdateSplitted { get; set; }
+ ///
+ /// Evento per richiesta traduzione
+ ///
+ [Parameter]
+ public EventCallback> EC_ReqTraduzione { get; set; }
+
+ protected override async Task OnInitializedAsync()
+ {
+ if (Vocabulary == null || Vocabulary.Count != 6)
+ {
+ List tradList = new List() { "CWTree_Remove", "CWTree_Sash", "CWTree_Split", "CWTree_AddInglesina", "CWTree_AddSash", "CWTree_CopySash"};
+ await EC_ReqTraduzione.InvokeAsync(tradList);
+ }
+ }
+
protected override void OnParametersSet()
{
for(int i = 0; i < FillList.Count; i++)
@@ -285,6 +306,22 @@ namespace WebWindowComplex.Compo
{
isOpenFill[currIndexFill] = !isOpenFill.ElementAt(currIndexFill);
}
+
+ ///
+ /// Metodo per traduzione in lingua corrente
+ ///
+ ///
+ ///
+ private string Traduci(string lemma)
+ {
+ string ans = lemma;
+ if (Vocabulary != null && Vocabulary.ContainsKey(lemma))
+ {
+ ans = Vocabulary.GetValueOrDefault(lemma) ?? "";
+ }
+ return ans;
+ }
+
}
///
diff --git a/WebWindowComplex/TableComp.razor b/WebWindowComplex/TableComp.razor
index 0bec31e..a8f4029 100644
--- a/WebWindowComplex/TableComp.razor
+++ b/WebWindowComplex/TableComp.razor
@@ -114,6 +114,7 @@
FillList="FillList"
FrameWindow="FrameWindow"
BaseUser="BaseUser"
+ Vocabulary="@(RestrictDict(new List(){"CWTree_"}))"
EC_NextStep="NextStepArgs"
EC_Remove="RemoveArea"
EC_Collapsed="CollapsedRowTree"
@@ -121,7 +122,8 @@
EC_ReqOptionHw="UpdateHwOptionsFrame"
EC_ReqElement="UpdateElementFrame"
EC_UpdateFrame="UpdatePreviewFrame"
- EC_UpdateSplitted="UpdatePreviewSplitted">
+ EC_UpdateSplitted="UpdatePreviewSplitted"
+ EC_ReqTraduzione="DoReqTraduzione">
}
else if (currStep == CompileStep.Frame)
@@ -134,7 +136,7 @@
-
+
RestrictDict(List subComp)
+ {
+ Dictionary dict = new Dictionary();
+ if(Vocabulary != null && Vocabulary.Count > 0)
+ dict = Vocabulary.Where(x => subComp.Any(sub => x.Key.Contains(sub))).ToDictionary(x => x.Key, y => y.Value);
+ return dict;
+ }
+
#endregion Private Methods
}
}
\ No newline at end of file
diff --git a/WebWindowComplex/WebWindowComplex.csproj b/WebWindowComplex/WebWindowComplex.csproj
index e9fc68f..72998ba 100644
--- a/WebWindowComplex/WebWindowComplex.csproj
+++ b/WebWindowComplex/WebWindowComplex.csproj
@@ -6,7 +6,7 @@
net8.0
enable
enable
- 3.1.8.1318
+ 3.1.8.1412
Annamaria Sassi
Egalware
Componente gestione Configurazioni avanzate Window per LUX
@@ -218,6 +218,10 @@
+
+
+
+
diff --git a/WebWindowConfigurator/WebWindowConfigurator.csproj b/WebWindowConfigurator/WebWindowConfigurator.csproj
index 47688ed..011bff9 100644
--- a/WebWindowConfigurator/WebWindowConfigurator.csproj
+++ b/WebWindowConfigurator/WebWindowConfigurator.csproj
@@ -6,7 +6,7 @@
net8.0
enable
enable
- 3.1.8.1318
+ 3.1.8.1412
Annamaria Sassi
Egalware
Componente gestione JWD per LUX
@@ -531,6 +531,10 @@
+
+
+
+