+
diff --git a/WebWindowComplex/Compo/AreaSash.razor.cs b/WebWindowComplex/Compo/AreaSash.razor.cs
index 2a8e41b..d87facf 100644
--- a/WebWindowComplex/Compo/AreaSash.razor.cs
+++ b/WebWindowComplex/Compo/AreaSash.razor.cs
@@ -23,6 +23,12 @@ namespace WebWindowComplex.Compo
[Parameter]
public SashDimension CurrSashDim { get; set; } = null!;
+ ///
+ /// Apertura sash dimension corrente
+ ///
+ [Parameter]
+ public string CurrOpening { get; set; } = null!;
+
/////
///// Lista di ante che si stanno editando
/////
@@ -86,6 +92,11 @@ namespace WebWindowComplex.Compo
//{
// base.OnParametersSet();
//}
+
+ //protected override void OnInitialized()
+ //{
+ // CurrOpening = CurrSashDim.OpeningTypeList.FirstOrDefault(x => x.Id == CurrSashDim.SelOpeningTypeIndex).Name;
+ //}
#endregion Protected Methods
#region Private Fields
@@ -103,10 +114,16 @@ namespace WebWindowComplex.Compo
private ModeView mode { get; set; } = ModeView.View;
+ private bool isOpenDropdown = false;
+
+ //private string currOpening = "";
+
#endregion Private Fields
#region Private Properties
+ private string GetImageOpeningPath(string fileName) => $"_content/Egw.Lux.WebWindowComplex/icone/sash/opening/{fileName}.svg";
+
///
/// Anta corrente
///
@@ -159,15 +176,15 @@ namespace WebWindowComplex.Compo
private int OpeningTypeIndex
{
get => CurrSashDim.SelOpeningTypeIndex;
- set
- {
- if (CurrSashDim.SelOpeningTypeIndex != value)
- {
- _ = EC_ReqResetDict.InvokeAsync(new DataUpdateRes { req = LayoutConst.DataAction.ResetHwOpt });
- CurrSashDim.SelOpeningTypeIndex = value;
- _ = EC_UpdateSashDim.InvokeAsync(CurrSashDim);
- }
- }
+ //set
+ //{
+ // if (CurrSashDim.SelOpeningTypeIndex != value)
+ // {
+ // _ = EC_ReqResetDict.InvokeAsync(new DataUpdateRes { req = LayoutConst.DataAction.ResetHwOpt });
+ // CurrSashDim.SelOpeningTypeIndex = value;
+ // _ = EC_UpdateSashDim.InvokeAsync(CurrSashDim);
+ // }
+ //}
}
///
@@ -464,6 +481,42 @@ namespace WebWindowComplex.Compo
ForceChangeAll = !ForceChangeAll;
}
+ private async Task SelOpeningSash(int index, string name)
+ {
+ if (CurrSashDim.SelOpeningTypeIndex != index)
+ {
+ await EC_ReqResetDict.InvokeAsync(new DataUpdateRes { req = LayoutConst.DataAction.ResetHwOpt});
+ CurrSashDim.SelOpeningTypeIndex = index;
+ await EC_UpdateSashDim.InvokeAsync(CurrSashDim);
+ }
+ CurrOpening = name;
+ }
+
+ ///
+ /// Metodo per la visualizzazione dei pulsanti tipology
+ ///
+ ///
+ ///
+ private string ButtonOpeningCss(int index)
+ {
+ string ans = "";
+ if (OpeningTypeIndex == index)
+ ans = "active";
+ return ans;
+ }
+
+ private void ToggleDropdownOpening()
+ {
+ isOpenDropdown = !isOpenDropdown;
+ }
+
+ // Chiude il dropdown quando l'utente clicca all'esterno dell'elemento
+ private async Task HandleFocusOut()
+ {
+ // Un piccolo delay assicura che l'evento @onclick dell'item venga eseguito prima di chiudere il menu
+ await Task.Delay(150);
+ isOpen = false;
+ }
#endregion Private Methods
}
diff --git a/WebWindowComplex/Compo/CardFrame.razor.cs b/WebWindowComplex/Compo/CardFrame.razor.cs
index ba3a224..76f720f 100644
--- a/WebWindowComplex/Compo/CardFrame.razor.cs
+++ b/WebWindowComplex/Compo/CardFrame.razor.cs
@@ -66,7 +66,7 @@ namespace WebWindowComplex.Compo
#region Protected Properties
- private string GetImageShapePath(string fileName) => $"_content/Egw.Lux.WebWindowComplex/icone/shape/{fileName}.svg";
+ private string GetImageShapePath(string fileName) => $"_content/Egw.Lux.WebWindowComplex/icone/frame/shape/{fileName}.svg";
///
/// Metodo per selezionare shape
diff --git a/WebWindowComplex/Compo/CardSashGroup.razor b/WebWindowComplex/Compo/CardSashGroup.razor
index abddb98..def183e 100644
--- a/WebWindowComplex/Compo/CardSashGroup.razor
+++ b/WebWindowComplex/Compo/CardSashGroup.razor
@@ -21,7 +21,41 @@