6 changed files
WPE.App.Shared.BaseComponents | ||
Business | ||
Info | ||
IInfoManager.cs + | ||
InfoManager.cs | ||
ServiceCollectionExtensions.cs | ||
Pages/Module/Information | ||
InformationDialog.razor | ||
QuickInfo.razor | ||
WPE.App.Shared.BaseComponents.csproj | ||
IInfoManager.cs
/WPE.App.Shared.BaseComponents/Business/Info/IInfoManager.cs+14/WPE.App.Shared.BaseComponents/Business/Info/IInfoManager.cs
Add comment 1 Plus using Microsoft.AspNetCore.Components;
Add comment 2 Plus
Add comment 3 Plus namespace Infsoft.WPE.App.Shared.BaseComponents.Business.Info
Add comment 4 Plus {
Add comment 5 Plus public interface IInfoManager
Add comment 6 Plus {
Add comment 7 Plus event Action<string, string, int, int>? OnShowQuickInfo;
Add comment 8 Plus event Action<RenderFragment>? OnShowInfo;
Add comment 9 Plus
Add comment 10 Plus void ShowQuickInfo(string message, string icon, int duration, int delay = 0);
Add comment 11 Plus void ShowInfoDialog(RenderFragment renderFragment);
Add comment 12 Plus }
Add comment 13 Plus }
Add comment 14 Plus
InfoManager.cs
/WPE.App.Shared.BaseComponents/Business/Info/InfoManager.cs-1+1/WPE.App.Shared.BaseComponents/Business/Info/InfoManager.cs
Add comment 2
Add comment 3 namespace Infsoft.WPE.App.Shared.BaseComponents.Business.Info
Add comment 4 {
Add comment 5 Minus public class InfoManager
Add comment 5 Plus public class InfoManager : IInfoManager
Add comment 6 {
Add comment 7 public event Action<string, string, int, int>? OnShowQuickInfo;
Add comment 8 public event Action<RenderFragment>? OnShowInfo;
ServiceCollectionExtensions.cs
/WPE.App.Shared.BaseComponents/Business/ServiceCollectionExtensions.cs-3+3/WPE.App.Shared.BaseComponents/Business/ServiceCollectionExtensions.cs
Add comment 9 {
Add comment 10 public static void AddBaseComponents(this IServiceCollection services)
Add comment 11 {
Add comment 12 Minus services.AddScoped<InfoManager>();
Add comment 13 Minus services.AddScoped<IConfirmationDialogManager, ConfirmationDialogManager>();
Add comment 14 Minus services.AddScoped<IAlertManager, AlertManager>();
Add comment 12 Plus services.AddSingleton<IInfoManager, InfoManager>();
Add comment 13 Plus services.AddSingleton<IConfirmationDialogManager, ConfirmationDialogManager>();
Add comment 14 Plus services.AddSingleton<IAlertManager, AlertManager>();
Add comment 15 }
Add comment 16 }
Add comment 17 }
InformationDialog.razor
/WPE.App.Shared.BaseComponents/Pages/Module/Information/InformationDialog.razor-1+1/WPE.App.Shared.BaseComponents/Pages/Module/Information/InformationDialog.razor
Add comment 1 @using Infsoft.WPE.App.Shared.BaseComponents.Business.Info
Add comment 2
Add comment 3 Minus @inject InfoManager InfoManager
Add comment 3 Plus @inject IInfoManager InfoManager
Add comment 4
Add comment 5 @{
Add comment 6 string dialogClass = "info-dialog-wrapper";
QuickInfo.razor
/WPE.App.Shared.BaseComponents/Pages/Module/Information/QuickInfo.razor-1+1/WPE.App.Shared.BaseComponents/Pages/Module/Information/QuickInfo.razor
Add comment 1 @using Infsoft.WPE.App.Shared.BaseComponents.Business.Info
Add comment 2
Add comment 3 Minus @inject InfoManager InfoManager
Add comment 3 Plus @inject IInfoManager InfoManager
Add comment 4
Add comment 5 @{
Add comment 6 string popupClass = "quick-info";
WPE.App.Shared.BaseComponents.csproj
/WPE.App.Shared.BaseComponents/WPE.App.Shared.BaseComponents.csproj-2+2/WPE.App.Shared.BaseComponents/WPE.App.Shared.BaseComponents.csproj
Add comment 15 <PackageIcon>icon.png</PackageIcon>
Add comment 16 <PackageReadmeFile>ReadMe.md</PackageReadmeFile>
Add comment 17 <PackageTags>WPE;Workplace Experience;Blazor;MAUI;infsoft</PackageTags>
Add comment 18 Minus <Version>0.0.56</Version>
Add comment 18 Plus <Version>0.0.57</Version>
Add comment 19 <WarningsAsErrors>RZ10012</WarningsAsErrors>
Add comment 20 </PropertyGroup>
Add comment 21
Add comment 26
Add comment 27 <ItemGroup>
Add comment 28 <PackageReference Include="Infsoft.WPE.App.Shared.Utils" Version="0.0.9" />
Add comment 29 Minus <PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.2" />
Add comment 29 Plus <PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.3" />
Add comment 30 </ItemGroup>
Add comment 31
Add comment 32 <ItemGroup>