diff --git a/.gitignore b/.gitignore index 84d7ce2..c18da88 100644 --- a/.gitignore +++ b/.gitignore @@ -33,6 +33,8 @@ bld/ # Visual Studo 2015 cache/options directory .vs/ +.idea + # MSTest test Results [Tt]est[Rr]esult*/ [Bb]uild[Ll]og.* diff --git a/SteUp.Maui/App.xaml b/SteUp.Maui/App.xaml index 447c2b2..efb11ce 100644 --- a/SteUp.Maui/App.xaml +++ b/SteUp.Maui/App.xaml @@ -2,12 +2,12 @@ - #dff2ff + #FDECEA White diff --git a/SteUp.Maui/Core/CoreModule.cs b/SteUp.Maui/Core/CoreModule.cs index eb4bbf9..f19d680 100644 --- a/SteUp.Maui/Core/CoreModule.cs +++ b/SteUp.Maui/Core/CoreModule.cs @@ -36,6 +36,7 @@ public static class CoreModule public static void RegisterSystemService(this MauiAppBuilder builder) { builder.Services.AddSingleton(); + builder.Services.AddSingleton(); } public static void AddAuthorizationCore(this MauiAppBuilder builder) diff --git a/SteUp.Shared/Components/SingleElements/Card/InspectionCard.razor b/SteUp.Shared/Components/SingleElements/Card/InspectionCard.razor index afcaa8c..675f589 100644 --- a/SteUp.Shared/Components/SingleElements/Card/InspectionCard.razor +++ b/SteUp.Shared/Components/SingleElements/Card/InspectionCard.razor @@ -92,7 +92,7 @@ var puntoVendita = SteupDataService.PuntiVenditaList.Find(x => x.CodMdep != null && x.CodMdep.EqualsIgnoreCase(Ispezione.CodMdep) ); - await Task.Delay(750); + await Task.Delay(500); PuntoVendita = puntoVendita ?? throw new Exception("Punto vendita non trovato"); OnLoading = false; diff --git a/SteUp.Shared/Components/SingleElements/Card/InspectionCard.razor.css b/SteUp.Shared/Components/SingleElements/Card/InspectionCard.razor.css index 174b01f..30b6ad6 100644 --- a/SteUp.Shared/Components/SingleElements/Card/InspectionCard.razor.css +++ b/SteUp.Shared/Components/SingleElements/Card/InspectionCard.razor.css @@ -24,6 +24,11 @@ line-height: normal; } +.inspection-info{ + display: flex; + flex-direction: column; +} + .info-title { color: var(--mud-palette-text-primary); font-weight: 800; @@ -40,7 +45,6 @@ .info-title.compactView{ font-size: medium; - font-weight: 600; } .section-info { diff --git a/SteUp.Shared/Components/SingleElements/Card/ModalForm/CardFormModal.razor b/SteUp.Shared/Components/SingleElements/Card/ModalForm/CardFormModal.razor new file mode 100644 index 0000000..fc39751 --- /dev/null +++ b/SteUp.Shared/Components/SingleElements/Card/ModalForm/CardFormModal.razor @@ -0,0 +1,23 @@ +
+
+ @Title +
+
+ @if (Loading) + { + + } + else + { + @ChildContent + } +
+
+ +@code { + [Parameter] public string Title { get; set; } = ""; + [Parameter] public bool Loading { get; set; } + [Parameter] public RenderFragment? ChildContent { get; set; } + [Parameter] public string ClassTitle { get; set; } = ""; + [Parameter] public string ClassBody { get; set; } = ""; +} \ No newline at end of file diff --git a/SteUp.Shared/Components/SingleElements/Card/ModalForm/CardFormModal.razor.css b/SteUp.Shared/Components/SingleElements/Card/ModalForm/CardFormModal.razor.css new file mode 100644 index 0000000..6c52bad --- /dev/null +++ b/SteUp.Shared/Components/SingleElements/Card/ModalForm/CardFormModal.razor.css @@ -0,0 +1,23 @@ +.card-form-modal { + background: var(--mud-palette-table-striped); + border-radius: 1em; + padding: .5rem 1rem; + width: -webkit-fill-available; +} + +.is-dark .card-form-modal { + background: var(--mud-palette-background); !important; +} + +.card-form-modal-body ::deep .file-upload-input { + position: absolute; + width: 100%; + height: 100%; + overflow: hidden; + z-index: 10; + opacity: 0; +} + +small ::deep { + color: var(--mud-palette-text-primary) !important; +} \ No newline at end of file diff --git a/SteUp.Shared/Components/SingleElements/Modal/ModalAddAttached.razor b/SteUp.Shared/Components/SingleElements/Modal/ModalAddAttached.razor index 2f25bd2..19339bb 100644 --- a/SteUp.Shared/Components/SingleElements/Modal/ModalAddAttached.razor +++ b/SteUp.Shared/Components/SingleElements/Modal/ModalAddAttached.razor @@ -3,7 +3,7 @@ @using SteUp.Shared.Core.Interface.System @inject IAttachedService AttachedService - + diff --git a/SteUp.Shared/Components/SingleElements/Modal/ModalFormScheda.razor b/SteUp.Shared/Components/SingleElements/Modal/ModalFormScheda.razor index 91c6142..738b98a 100644 --- a/SteUp.Shared/Components/SingleElements/Modal/ModalFormScheda.razor +++ b/SteUp.Shared/Components/SingleElements/Modal/ModalFormScheda.razor @@ -1,5 +1,6 @@ @using SteUp.Shared.Components.Layout @using SteUp.Shared.Components.Layout.Overlay +@using SteUp.Shared.Components.SingleElements.Card.ModalForm @using SteUp.Shared.Core.Dto @using SteUp.Shared.Core.Entities @using SteUp.Shared.Core.Interface.IntegryApi @@ -10,58 +11,35 @@ +
-
-
- Reparto - @if (SteupDataService.Reparti.IsNullOrEmpty()) + + + @foreach (var fasi in SteupDataService.Reparti) { - + + @fasi.Descrizione + } - else - { - - @foreach (var fasi in SteupDataService.Reparti) - { - - @fasi.Descrizione - - } - - } -
+ + -
- -
- Motivo - - @if (SteupDataService.TipiAttività.IsNullOrEmpty()) + + + @foreach (var type in SteupDataService.TipiAttività) { - + @type.ActivityTypeId } - else - { - - @foreach (var type in SteupDataService.TipiAttività) - { - @type.ActivityTypeId - } - - } -
-
+ + @*
*@ @* @if (!AttachedList.IsNullOrEmpty()) *@ @@ -114,37 +92,32 @@ Size="Size.Medium" OnClick="@OpenAddAttached" Variant="Variant.Outlined"> - Aggiungi allegati + Aggiungi foto
} - -
-
- Scadenza - - - - - - - -
- -
- - + + + + + + + + + + - -
- - + + + -
+
.divider { margin: 0 !important; } +.input-card > .divider { + margin: 0 !important; +} .form-container { display: flex; @@ -81,22 +99,34 @@ /*Custom mudBlazor*/ -.form-container .mud-input.mud-input-underline:before { border-bottom: none !important; } +.form-container .mud-input.mud-input-underline:before { + border-bottom: none !important; +} -.form-container .mud-input.mud-input-underline:after { border-bottom: none !important; } +.form-container .mud-input.mud-input-underline:after { + border-bottom: none !important; +} -.form-container.text-align-end .mud-input-slot { text-align: end; } +.form-container.text-align-end .mud-input-slot { + text-align: end; +} -.input-card .mud-input.mud-input-underline:before { border-bottom: none !important; } +.input-card .mud-input.mud-input-underline:before { + border-bottom: none !important; +} -.input-card .mud-input.mud-input-underline:after { border-bottom: none !important; } +.input-card .mud-input.mud-input-underline:after { + border-bottom: none !important; +} .form-container .customIcon-select .mud-icon-root.mud-svg-icon { rotate: 90deg !important; font-size: 1.1rem; } -.form-container .customIcon-select .mud-input-slot { text-align: end; } +.form-container .customIcon-select .mud-input-slot { + text-align: end; +} .input-card .mud-input { width: 100%; @@ -105,7 +135,7 @@ .container-button { width: 100%; - background: var(--light-card-background); + background: var(--mud-palette-table-striped); padding: .5rem 0; border-radius: 12px; margin-bottom: 2rem; @@ -116,7 +146,9 @@ width: unset; } -.container-button .button-settings { border: none !important; } +.container-button .button-settings { + border: none !important; +} .container-button .button-settings .mud-icon-root { border-radius: 6px; @@ -160,7 +192,9 @@ font-size: 1rem; } -.container-button .button-settings.exit { padding: 0; } +.container-button .button-settings.exit { + padding: 0; +} .container-button .button-settings.exit .mud-button-label { justify-content: center;