Aggiornamento librerie

This commit is contained in:
2026-02-24 12:48:23 +01:00
parent c7fb4a28a4
commit e8adb76256
6 changed files with 58 additions and 84 deletions

View File

@@ -33,7 +33,7 @@
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion> <ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
<ApplicationVersion>1</ApplicationVersion> <ApplicationVersion>1</ApplicationVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">14.2</SupportedOSPlatformVersion> <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">15.0</SupportedOSPlatformVersion>
<!-- <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">--> <!-- <SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">-->
<!-- 14.0--> <!-- 14.0-->
<!-- </SupportedOSPlatformVersion>--> <!-- </SupportedOSPlatformVersion>-->
@@ -74,7 +74,7 @@
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios' OR $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'"> <PropertyGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios' OR $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">
<SupportedOSPlatformVersion>14.2</SupportedOSPlatformVersion> <SupportedOSPlatformVersion>15.0</SupportedOSPlatformVersion>
<DefineConstants>$(DefineConstants);APPLE;PLATFORM</DefineConstants> <DefineConstants>$(DefineConstants);APPLE;PLATFORM</DefineConstants>
</PropertyGroup> </PropertyGroup>
@@ -116,9 +116,9 @@
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0" /> <PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0" />
<PackageReference Include="IntegryApiClient.MAUI" Version="2.0.0" /> <PackageReference Include="IntegryApiClient.MAUI" Version="2.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="10.0.3" /> <PackageReference Include="Microsoft.Extensions.Logging" Version="10.0.3" />
<PackageReference Include="Microsoft.Maui.Controls" Version="10.0.40" /> <PackageReference Include="Microsoft.Maui.Controls" Version="10.0.41" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="10.0.40" /> <PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="10.0.41" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebView.Maui" Version="10.0.40" /> <PackageReference Include="Microsoft.AspNetCore.Components.WebView.Maui" Version="10.0.41" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="10.0.3" /> <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="10.0.3" />
<PackageReference Include="Sentry.Maui" Version="6.1.0" /> <PackageReference Include="Sentry.Maui" Version="6.1.0" />
<PackageReference Include="SkiaSharp" Version="3.119.2" /> <PackageReference Include="SkiaSharp" Version="3.119.2" />

View File

@@ -31,27 +31,20 @@
@if (PlusVisible) @if (PlusVisible)
{ {
<MudMenu PopoverClass="custom_popover" AnchorOrigin="Origin.TopLeft" TransformOrigin="Origin.BottomRight"> <MudFabMenu ButtonClass="custom-plus-button" MenuClass="custom-menu-fab" OnClick="@OnOpenMenu" StartIcon="@Icons.Material.Filled.Add"
<ActivatorContent> IconColor="Color.Primary" Color="Color.Surface" AlignItems="AlignItems.End"
<MudFab Class="custom-plus-button" OnClick="OnOpenMenu" Color="Color.Surface" Size="Size.Medium" Size="Size.Medium" IconSize="Size.Medium">
IconSize="Size.Medium"
IconColor="Color.Primary" StartIcon="@Icons.Material.Rounded.Add"/>
</ActivatorContent>
<ChildContent>
@if (SchedaVisible) @if (SchedaVisible)
{ {
<MudMenuItem Disabled="!NetworkService.IsNetworkAvailable()" OnClick="@NewScheda"> <MudFabMenuItem Disabled="!NetworkService.IsNetworkAvailable()" OnClick="@NewScheda"
Nuova scheda Label="Nuova scheda" Color="Color.Surface"/>
</MudMenuItem>
} }
else else
{ {
<MudMenuItem Disabled="!NetworkService.IsNetworkAvailable()" OnClick="@NewActivity"> <MudFabMenuItem Disabled="!NetworkService.IsNetworkAvailable()" OnClick="@NewActivity"
Nuova ispezione Label="Nuova ispezione" Color="Color.Surface"/>
</MudMenuItem>
} }
</ChildContent> </MudFabMenu>
</MudMenu>
} }
</nav> </nav>
</div> </div>

View File

@@ -7,11 +7,17 @@
transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out;
} }
.animated-navbar.show-nav { transform: translateY(0); } .animated-navbar.show-nav {
transform: translateY(0);
}
.animated-navbar.hide-nav { transform: translateY(150%); } .animated-navbar.hide-nav {
transform: translateY(150%);
}
.animated-navbar.with-plus { margin-left: 30px; } .animated-navbar.with-plus {
margin-left: 30px;
}
.navbar { .navbar {
padding-bottom: 1rem; padding-bottom: 1rem;
@@ -23,7 +29,9 @@
transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out;
} }
.navbar.with-plus { transform: translateX(-30px); } .navbar.with-plus {
transform: translateX(-30px);
}
.navbar.without-plus { .navbar.without-plus {
transform: translateX(0); transform: translateX(0);
@@ -38,26 +46,26 @@
transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out;
} }
.nav-item { font-size: 0.9rem; } .nav-item {
font-size: 0.9rem;
}
.nav-item.plus-button { .nav-item.plus-button {
position: relative; position: relative;
bottom: 15px; bottom: 15px;
} }
.navbar ::deep .custom-plus-button .mud-icon-root {
transition: .5s;
transform: rotate(0);
font-size: 2rem;
}
.navbar ::deep .custom-plus-button { .navbar ::deep .custom-plus-button {
background: var(--mud-palette-surface); background: var(--mud-palette-surface);
box-shadow: var(--custom-box-shadow);
transition: all 0.3s ease-in-out;
} }
.navbar ::deep .custom-plus-button:focus .mud-icon-root { transform: rotate(225deg); } .navbar ::deep .custom-menu-fab .mud-fab-label {
width: max-content;
}
.navbar ::deep .custom-menu-fab .mud-button-root.mud-fab {
background: var(--mud-palette-surface);
}
.nav-item ::deep a { .nav-item ::deep a {
display: flex; display: flex;
@@ -74,24 +82,34 @@
min-width: 75px; min-width: 75px;
} }
.nav-item ::deep a.active > div { color: var(--mud-palette-primary); } .nav-item ::deep a.active > div {
color: var(--mud-palette-primary);
}
.nav-item ::deep a.active > div > i { .nav-item ::deep a.active > div > i {
/*background-color: color-mix(in srgb, var(--mud-palette-primary) 20%, transparent);*/ /*background-color: color-mix(in srgb, var(--mud-palette-primary) 20%, transparent);*/
border-radius: 10px; border-radius: 10px;
} }
.nav-item ::deep a.active > div > span { font-weight: 800; } .nav-item ::deep a.active > div > span {
font-weight: 800;
}
.nav-item ::deep a:not(.active) > div { .nav-item ::deep a:not(.active) > div {
color: var(--mud-palette-text-primary); color: var(--mud-palette-text-primary);
} }
.nav-item ::deep a i { font-size: 1.65rem; } .nav-item ::deep a i {
font-size: 1.65rem;
}
.nav-item ::deep a span { .nav-item ::deep a span {
font-size: 0.8rem; font-size: 0.8rem;
font-weight: 500; font-weight: 500;
} }
@supports (-webkit-touch-callout: none) { .navbar { padding-bottom: env(safe-area-inset-bottom); } } @supports (-webkit-touch-callout: none) {
.navbar {
padding-bottom: env(safe-area-inset-bottom);
}
}

View File

@@ -14,12 +14,12 @@
<PackageReference Include="IntegryApiClient.Core" Version="2.0.0" /> <PackageReference Include="IntegryApiClient.Core" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="10.0.3" /> <PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="10.0.3" />
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0"/> <PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0"/>
<PackageReference Include="MudBlazor" Version="8.15.0" /> <PackageReference Include="MudBlazor" Version="9.0.0" />
<PackageReference Include="CodeBeam.MudBlazor.Extensions" Version="8.2.4" /> <PackageReference Include="CodeBeam.MudBlazor.Extensions" Version="9.0.1" />
<PackageReference Include="Sentry" Version="6.1.0" /> <PackageReference Include="Sentry" Version="6.1.0" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.16.0" /> <PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.16.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.Authorization" Version="10.0.3" /> <PackageReference Include="Microsoft.AspNetCore.Components.Authorization" Version="10.0.3" />
<PackageReference Include="Microsoft.Maui.Essentials" Version="10.0.40" /> <PackageReference Include="Microsoft.Maui.Essentials" Version="10.0.41" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

@@ -165,34 +165,6 @@ h1:focus {
right: 16px; right: 16px;
} }
.custom_popover {
border-radius: 5px !important;
background-color: var(--mud-palette-drawer-background) !important;
box-shadow: 4px 4px 20px 0px rgba(0, 0, 0, 0.26), 0px 0px 0px 1px rgb(255 255 255 / 25%) !important;
color: var(--mud-palette-text-primary) !important;
}
.custom_popover .mud-divider {
border-color: var(--mud-palette-text-primary) !important;
}
.custom_popover .mud-list-padding {
padding: 3px 0px 3px 0px !important;
}
.custom_popover .mud-list-item {
padding: 5px 12px 5px 12px;
}
.custom_popover .mud-menu-item-text {
font-weight: 600;
}
.custom_popover .mud-list-item-icon {
min-width: fit-content !important;
padding-right: 12px !important;
}
.divider { .divider {
display: block; display: block;
width: 100%; width: 100%;

View File

@@ -4,15 +4,6 @@ window.goBack = function () {
history.back(); history.back();
}; };
// Funzione per aggiungere tabindex ai bottoni
function addTabindexToButtons() {
document.querySelectorAll('button.custom-plus-button').forEach(btn => {
if (!btn.hasAttribute('tabindex')) {
btn.setAttribute('tabindex', '0');
}
});
}
// Funzione per monitorare bottom-sheet-container e gestire la navbar // Funzione per monitorare bottom-sheet-container e gestire la navbar
function monitorBottomSheetClass(mutations) { function monitorBottomSheetClass(mutations) {
const bottomSheet = document.querySelector(".bottom-sheet-container"); const bottomSheet = document.querySelector(".bottom-sheet-container");