Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="10.0.*" />
<PackageReference Include="MudBlazor" Version="9.0.0-preview.1" />
<PackageReference Include="MudBlazor" Version="9.0.0-preview.2" />
</ItemGroup>

<ItemGroup>
Expand Down
44 changes: 0 additions & 44 deletions src/CodeBeam.MudBlazor.Extensions/Base/Identifier.cs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.JSInterop;
using MudBlazor;
using MudExtensions.Base;

namespace MudExtensions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Version>9.0.0-preview.3</Version>
<Version>9.0.0-preview.4</Version>
<Title>CodeBeam.MudBlazor.Extensions</Title>
<PackageId>CodeBeam.MudBlazor.Extensions</PackageId>
<Authors>CodeBeam</Authors>
Expand Down Expand Up @@ -41,7 +41,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="MudBlazor" Version="9.0.0-preview.1" />
<PackageReference Include="MudBlazor" Version="9.0.0-preview.2" />
</ItemGroup>

<Target Name="MinifyMudExtensionsJs" AfterTargets="Build" Condition="'$(CI)' != 'true'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using Microsoft.AspNetCore.Components.Web;
using MudBlazor;
using MudBlazor.Extensions;
using MudBlazor.Interfaces;
using MudBlazor.State;
using MudBlazor.Utilities;

Expand All @@ -19,12 +18,6 @@ public partial class MudCodeInput<T> : MudFormComponent<T, string>
/// </summary>
public MudCodeInput()
{
Converter = new DefaultConverter<T>
{
Culture = GetCulture,
Format = GetFormat
};

using var registerScope = CreateRegisterScope();
_theValue = registerScope.RegisterParameter<T?>(nameof(Value))
.WithParameter(() => Value)
Expand Down Expand Up @@ -319,10 +312,22 @@ public async Task SetValueFromOutside(T? value)
}
else
{
await _elementReferences[i].SetText(null);
await _elementReferences[i].SetText(string.Empty);
}
}
}

/// <summary>
///
/// </summary>
/// <returns></returns>
protected override IConverter<T?, string?> GetDefaultConverter()
{
return new DefaultConverter<T>
{
Culture = GetCulture,
Format = GetFormat
};
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
if (0 <= index - a)
{
<div class="@OuterItemClassname(index - a)" @onclick="@(async() => await ChangeWheel(-a))">
<MudText Typo="@(Dense ? Typo.body1 : Typo.h6)">@(ToStringFunc != null ? ToStringFunc(ItemCollection[index - a]) : Converter.Convert(ItemCollection[index - a]))</MudText>
<MudText Typo="@(Dense ? Typo.body1 : Typo.h6)">@(ToStringFunc != null ? ToStringFunc(ItemCollection[index - a]) : ConvertSet(ItemCollection[index - a]))</MudText>
</div>
}
else
Expand All @@ -31,7 +31,7 @@
<span class="@BorderClassname" />

<div class="@MiddleItemClassname">
<MudText Class="@($"mud-wheel-ani-{_animateGuid} my-2)")" Typo="@(Dense ? Typo.body1 : Typo.h6)" Color="@Color" Style="font-weight: 900">@(ToStringFunc != null ? ToStringFunc(ItemCollection[index]) : Converter.Convert(ItemCollection[index]))</MudText>
<MudText Class="@($"mud-wheel-ani-{_animateGuid} my-2)")" Typo="@(Dense ? Typo.body1 : Typo.h6)" Color="@Color" Style="font-weight: 900">@(ToStringFunc != null ? ToStringFunc(ItemCollection[index]) : ConvertSet(ItemCollection[index]))</MudText>
</div>

<div class="@BorderClassname" />
Expand All @@ -42,7 +42,7 @@
if (index + a < ItemCollection?.Count)
{
<div class="@OuterItemClassname(index + a)" @onclick="@(async() => await ChangeWheel(a))">
<MudText Typo="@(Dense ? Typo.body1 : Typo.h6)">@(ToStringFunc != null ? ToStringFunc(ItemCollection[index + a]) : Converter.Convert(ItemCollection[index + a]))</MudText>
<MudText Typo="@(Dense ? Typo.body1 : Typo.h6)">@(ToStringFunc != null ? ToStringFunc(ItemCollection[index + a]) : ConvertSet(ItemCollection[index + a]))</MudText>
</div>
}
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public partial class MudWheel<T> : MudBaseInput<T>
///
/// </summary>
[Parameter]
public List<T?>? ItemCollection { get; set; }
public List<T?> ItemCollection { get; set; } = new();

/// <summary>
/// Determines how many items will show before and after the middle one.
Expand Down Expand Up @@ -282,5 +282,7 @@ public async Task RefreshAnimate()
/// </summary>
/// <returns></returns>
protected int GetAnimateValue() => Dense ? 24 : 42;


}
}
Loading