diff --git a/Test.UI/Components/App.razor b/Test.UI/Components/App.razor index 71febac..d98f300 100644 --- a/Test.UI/Components/App.razor +++ b/Test.UI/Components/App.razor @@ -24,7 +24,7 @@ @* *@ - + diff --git a/Test.UI/Components/Layout/MainLayout.razor.css b/Test.UI/Components/Layout/MainLayout.razor.css index 514eb49..d9b9b3b 100644 --- a/Test.UI/Components/Layout/MainLayout.razor.css +++ b/Test.UI/Components/Layout/MainLayout.razor.css @@ -9,9 +9,9 @@ main { .sidebar, .sidebarSmall { /*background-image: linear-gradient(180deg, rgb(5, 39, 103) 20%, #3aa6ff 90%);*/ - background: -webkit-linear-gradient(to bottom, #d5f1f2, #d5f1f2); + background: -webkit-linear-gradient(to bottom, #c5d6ed, #c5d6ed); /* Chrome 10-25, Safari 5.1-6 */ - background: linear-gradient(to bottom, #d5f1f2, #d5f1f2); + background: linear-gradient(to bottom, #c5d6ed, #c5d6ed); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ } .top-row { diff --git a/Test.UI/Components/Layout/MainLayout.razor.less b/Test.UI/Components/Layout/MainLayout.razor.less index c37c551..d3f1aa4 100644 --- a/Test.UI/Components/Layout/MainLayout.razor.less +++ b/Test.UI/Components/Layout/MainLayout.razor.less @@ -11,8 +11,8 @@ main { .sidebar, .sidebarSmall { /*background-image: linear-gradient(180deg, rgb(5, 39, 103) 20%, #3aa6ff 90%);*/ - background: -webkit-linear-gradient(to bottom, #d5f1f2, #d5f1f2); /* Chrome 10-25, Safari 5.1-6 */ - background: linear-gradient(to bottom, #d5f1f2, #d5f1f2); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ + background: -webkit-linear-gradient(to bottom, #c5d6ed, #c5d6ed); /* Chrome 10-25, Safari 5.1-6 */ + background: linear-gradient(to bottom, #c5d6ed, #c5d6ed); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ } .top-row { diff --git a/Test.UI/Components/Layout/MainLayout.razor.min.css b/Test.UI/Components/Layout/MainLayout.razor.min.css index 0f4cca1..a677aba 100644 --- a/Test.UI/Components/Layout/MainLayout.razor.min.css +++ b/Test.UI/Components/Layout/MainLayout.razor.min.css @@ -1 +1 @@ -.page{position:relative;display:flex;flex-direction:column;}main{flex:1;}.sidebar,.sidebarSmall{background:-webkit-linear-gradient(to bottom,#d5f1f2,#d5f1f2);background:linear-gradient(to bottom,#d5f1f2,#d5f1f2);}.top-row{background-color:#f7f7f7;border-bottom:1px solid #d6d5d5;height:3.5rem;display:flex;align-items:center;}.top-row ::deep a,.top-row .btn-link{white-space:nowrap;margin-left:1.5rem;}.top-row a:first-child{overflow:hidden;text-overflow:ellipsis;}.bottom-row{color:#dedede;background-color:#000;height:1.6rem;align-items:center;}@media(max-width:640.98px){.top-row:not(.auth){display:none;}.top-row.auth{justify-content:space-between;}.top-row a,.top-row .btn-link{margin-left:0;}}@media(min-width:641px){.page{flex-direction:row;}.sidebar{width:13.5rem;height:100vh;position:sticky;top:0;border-radius:30px;}.sidebarSmall{width:5.5rem;height:100vh;position:sticky;top:0;border-radius:30px;}.top-row{position:sticky;top:0;z-index:1;}.top-row,article{padding-left:.5rem!important;padding-right:.5rem!important;}} \ No newline at end of file +.page{position:relative;display:flex;flex-direction:column;}main{flex:1;}.sidebar,.sidebarSmall{background:-webkit-linear-gradient(to bottom,#c5d6ed,#c5d6ed);background:linear-gradient(to bottom,#c5d6ed,#c5d6ed);}.top-row{background-color:#f7f7f7;border-bottom:1px solid #d6d5d5;height:3.5rem;display:flex;align-items:center;}.top-row ::deep a,.top-row .btn-link{white-space:nowrap;margin-left:1.5rem;}.top-row a:first-child{overflow:hidden;text-overflow:ellipsis;}.bottom-row{color:#dedede;background-color:#000;height:1.6rem;align-items:center;}@media(max-width:640.98px){.top-row:not(.auth){display:none;}.top-row.auth{justify-content:space-between;}.top-row a,.top-row .btn-link{margin-left:0;}}@media(min-width:641px){.page{flex-direction:row;}.sidebar{width:13.5rem;height:100vh;position:sticky;top:0;border-radius:30px;}.sidebarSmall{width:5.5rem;height:100vh;position:sticky;top:0;border-radius:30px;}.top-row{position:sticky;top:0;z-index:1;}.top-row,article{padding-left:.5rem!important;padding-right:.5rem!important;}} \ No newline at end of file diff --git a/WebWindowComplex/Compo/AreaFrame.razor b/WebWindowComplex/Compo/AreaFrame.razor index f9a4a9a..ccb0c97 100644 --- a/WebWindowComplex/Compo/AreaFrame.razor +++ b/WebWindowComplex/Compo/AreaFrame.razor @@ -1,6 +1,6 @@ 
-
+
Area frame
diff --git a/WebWindowComplex/Compo/AreaSash.razor b/WebWindowComplex/Compo/AreaSash.razor index 8199a52..15325ba 100644 --- a/WebWindowComplex/Compo/AreaSash.razor +++ b/WebWindowComplex/Compo/AreaSash.razor @@ -1,16 +1,19 @@ @using EgwCoreLib.Razor -@if(mode == ModeView.View) -{ -
-
-
Sash @(CurrSashGroup.SashList.Count == 1 ? "" : (IndexSash + 1))
- @if(!User && CurrSashGroup.SashList.Count > 1) - { - + } + +
-
- @if(User) - { - Tipology - - } - else - { - - } - - } -
-
- Dimension - - @* *@ - + @foreach (var openingType in CurrSashDim.OpeningTypeList) + { + + } + + } +
+
+
+
+ Dimension + + @* *@ + -
-
-
- -
-
- -
-
-
-} -else -{ -
-
Sash @(CurrSashGroup.SashList.Count == 1 ? "" : (IndexSash + 1))
- @if (!User && !(CurrAnta.AreaList[0] is Split)) - { -
- -
-
- -
- } - -
-
-
-
- @if(User) - { - Tipology - - } - else - { - - - } +
-
-
+
+
@@ -131,82 +98,143 @@ else
-
-
- Dimension - - @* *@ - + } + else + { + + } - -
-
-
-
-
-
-
-
-
Element
-
- @foreach (var element in CurrSashDim.ElementDimensionList) +
+
+ Dimension + + @* *@ + +
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
Element
+
+
+
+ @foreach (var element in CurrSashDim.ElementDimensionList) + { + + } +
+
+
+
+
+
Joints
+
+ @if (!User) + { +
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+ } +
+ @foreach (Joint joint in CurrSashDim.JointList) { - + }
-
-
-
-
Joints
-
- @if (!User) - { -
-
- -
-
-
-
- -
-
-
-
- -
-
- } -
- @foreach (Joint joint in CurrSashDim.JointList) - { - - } -
-
-} + } +
diff --git a/WebWindowComplex/Compo/AreaSash.razor.cs b/WebWindowComplex/Compo/AreaSash.razor.cs index bfb6a20..4801899 100644 --- a/WebWindowComplex/Compo/AreaSash.razor.cs +++ b/WebWindowComplex/Compo/AreaSash.razor.cs @@ -21,6 +21,12 @@ namespace WebWindowComplex.Compo [Parameter] public SashDimension CurrSashDim { get; set; } = null!; + /// + /// Lista di ante che si stanno editando + /// + [Parameter] + public List SashDimEditList { get; set; } = null!; + /// /// Lista delle sash /// @@ -33,12 +39,6 @@ namespace WebWindowComplex.Compo [CascadingParameter(Name = "User")] public bool User { get; set; } = false!; - /// - /// Modalità di visualizzazione (view /edit) - /// - [Parameter] - public bool EditMode { get; set; } = false; - /// /// Indice della sash corrente /// @@ -374,17 +374,17 @@ namespace WebWindowComplex.Compo protected override void OnParametersSet() { - if (EditMode) - mode = ModeView.Edit; - else - mode = ModeView.View; + //if (EditMode) + // mode = ModeView.Edit; + //else + // mode = ModeView.View; } private ModeView mode { get; set; } = ModeView.View; private void doEdit(int index) { var args = new DataChangeMode { - Edit = true, + //Edit = true, IndexSashEdit = index, IndexSashClose = -1 }; @@ -394,7 +394,7 @@ namespace WebWindowComplex.Compo { var args = new DataChangeMode { - Edit = false, + //Edit = false, IndexSashEdit = -1, IndexSashClose = index }; diff --git a/WebWindowComplex/Compo/AreaSplit.razor b/WebWindowComplex/Compo/AreaSplit.razor index 96087ee..2ec3b05 100644 --- a/WebWindowComplex/Compo/AreaSplit.razor +++ b/WebWindowComplex/Compo/AreaSplit.razor @@ -1,6 +1,6 @@ 
-
+
Area split @(SplittedList.Count > 1 ? (SplittedList.IndexOf(CurrSplitted) + 1) : "")
diff --git a/WebWindowComplex/Compo/BottomRail.razor b/WebWindowComplex/Compo/BottomRail.razor index e5e5bd4..4d649d6 100644 --- a/WebWindowComplex/Compo/BottomRail.razor +++ b/WebWindowComplex/Compo/BottomRail.razor @@ -1,5 +1,5 @@ -
-
-
+
+
Dimension
- @foreach (FrameDimension dimension in CurrFrameWindow.DimensionList) - { - - } +
+ @foreach (FrameDimension dimension in CurrFrameWindow.DimensionList) + { +
+ +
+ } +
+
+
-
+
Threshold
@@ -53,7 +59,6 @@ { Tipology - } else { @@ -66,27 +71,27 @@ }
+
+
@if (SashList.Count == 0) { -
+
Bottom rail
-
-
- Quantity - @if (User) +
+ Quantity + @if (User) + { + + } + else + { + @if (CurrFrameWindow.BottomRailQty > 0) { - + } - else - { - @if (CurrFrameWindow.BottomRailQty > 0) - { - - } - - } -
+ + }
}
@@ -94,7 +99,7 @@
-
+
Joints
@@ -125,7 +130,7 @@
-
+
Element
diff --git a/WebWindowComplex/Compo/CardFrame.razor.cs b/WebWindowComplex/Compo/CardFrame.razor.cs index c189523..c960dbd 100644 --- a/WebWindowComplex/Compo/CardFrame.razor.cs +++ b/WebWindowComplex/Compo/CardFrame.razor.cs @@ -313,6 +313,14 @@ namespace WebWindowComplex.Compo return "btn btn-secondary btn-sm"; } + private string EditDimensionCss() + { + if(CurrFrameWindow.DimensionList.Count == 2) + return "col-md-12 col-lg-6"; + else + return "col-md-12 col-lg-4"; + } + #endregion Private Methods } diff --git a/WebWindowComplex/Compo/CardSashGroup.razor b/WebWindowComplex/Compo/CardSashGroup.razor index e2e88a3..ff8e53f 100644 --- a/WebWindowComplex/Compo/CardSashGroup.razor +++ b/WebWindowComplex/Compo/CardSashGroup.razor @@ -14,10 +14,6 @@
-
- - -
}
@@ -25,8 +21,8 @@
-
-
+
+
Qty sash @if (User) @@ -39,11 +35,9 @@ }
-
-
-
+
- @if(User) + @if (User) { Tipology @@ -60,7 +54,7 @@ }
-
+
Qty bottom rail @if (User) @@ -152,57 +146,42 @@
- +
-
- @for (int i = 0; i < CurrSashGroup.SashList.Count; i++) + @for (int i = 0; i < CurrSashGroup.SashList.Count; i++) + { +
+ + +
+ @if (i < CurrSashGroup.SashList.Count - 1) { - @if (editMode && currSashDimEdit.Contains(i)) - { -
- - -
- } - else if(currSashDimEdit.Count == 0) - { - - - } +
} -
+ }
\ No newline at end of file diff --git a/WebWindowComplex/Compo/CardSashGroup.razor.cs b/WebWindowComplex/Compo/CardSashGroup.razor.cs index 1822049..42082d5 100644 --- a/WebWindowComplex/Compo/CardSashGroup.razor.cs +++ b/WebWindowComplex/Compo/CardSashGroup.razor.cs @@ -221,24 +221,27 @@ namespace WebWindowComplex.Compo /// Metodo per cambiare dimensione solo luce /// /// - private Task ChangeTypeDimension() + private Task ChangeTypeDimension(bool type) { - CurrSashGroup.bIsDimensionLight = !CurrSashGroup.bIsDimensionLight; - foreach (var CurrSashDim in CurrSashGroup.SashList) + if(CurrSashGroup.bIsDimensionLight != type) { - if (CurrSashDim.SelMeasureType is MeasureTypes.ABSOLUTE) + CurrSashGroup.bIsDimensionLight = type; + foreach (var CurrSashDim in CurrSashGroup.SashList) { - if (CurrSashGroup.bIsDimensionLight) + if (CurrSashDim.SelMeasureType is MeasureTypes.ABSOLUTE) { - CurrSashDim.SetDimensionLight(CurrSashDim.dDimension - - CurrSashDim.ElementDimensionList.ElementAt(1).dDimension - - CurrSashDim.ElementDimensionList.Last().dDimension); - } - else - { - CurrSashDim.SetDimensionLight(CurrSashDim.dDimension + - CurrSashDim.ElementDimensionList.ElementAt(1).dDimension + - CurrSashDim.ElementDimensionList.Last().dDimension); + if (CurrSashGroup.bIsDimensionLight) + { + CurrSashDim.SetDimensionLight(CurrSashDim.dDimension - + CurrSashDim.ElementDimensionList.ElementAt(1).dDimension - + CurrSashDim.ElementDimensionList.Last().dDimension); + } + else + { + CurrSashDim.SetDimensionLight(CurrSashDim.dDimension + + CurrSashDim.ElementDimensionList.ElementAt(1).dDimension + + CurrSashDim.ElementDimensionList.Last().dDimension); + } } } } @@ -257,7 +260,7 @@ namespace WebWindowComplex.Compo /// protected Task SetMeasureType(MeasureTypes type) { - isOpen = !isOpen; + //isOpen = !isOpen; for (int i = 0; i < CurrSashGroup.SashList.Count; i++) { CurrSashGroup.SashList.ElementAt(i).SetSelMeasureType(type, i); @@ -363,7 +366,7 @@ namespace WebWindowComplex.Compo private List currSashDimEdit = new List(); private void EditView(DataChangeMode args) { - editMode = args.Edit; + //editMode = args.Edit; if(args.IndexSashEdit != -1) currSashDimEdit.Add(args.IndexSashEdit); if (args.IndexSashClose != -1) @@ -420,11 +423,12 @@ namespace WebWindowComplex.Compo return EC_ReqFirstOptionHw.InvokeAsync(CurrSashGroup); } - private bool isOpen = false; - private void ToggleDropdown() - { - isOpen = !isOpen; - } + //private bool isOpen = false; + //private void ToggleDropdown() + //{ + // isOpen = !isOpen; + //} + #endregion Private Methods } diff --git a/WebWindowComplex/Compo/CardSplit.razor b/WebWindowComplex/Compo/CardSplit.razor index 3f5db0a..7dd889a 100644 --- a/WebWindowComplex/Compo/CardSplit.razor +++ b/WebWindowComplex/Compo/CardSplit.razor @@ -26,7 +26,25 @@
} + + @* +
*@
diff --git a/WebWindowComplex/Compo/EditSplitDimensions.razor b/WebWindowComplex/Compo/EditSplitDimensions.razor index 620dfe3..8bfdee0 100644 --- a/WebWindowComplex/Compo/EditSplitDimensions.razor +++ b/WebWindowComplex/Compo/EditSplitDimensions.razor @@ -2,7 +2,7 @@
- @Name + @(Name + " " + (Index+ 1)) @* *@