Skip to content

Commit

Permalink
Project cleaning: restructure providers and components (#5359)
Browse files Browse the repository at this point in the history
* AntDesign files

* Bootstrap files

* Bootstrap5 files

* Bulma files

* Material files

* Tailwind files

* Update tests

* Show compilerconfig.json in projects
  • Loading branch information
stsrki authored Mar 15, 2024
1 parent b33b139 commit e06144d
Show file tree
Hide file tree
Showing 285 changed files with 5,322 additions and 5,371 deletions.
10 changes: 1 addition & 9 deletions Documentation/Blazorise.Docs/Blazorise.Docs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<PackageReference Include="MailKit" Version="3.1.1" />
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0" />
<PackageReference Include="MimeKit" Version="3.1.1" />
<PackageReference Include="Blazored.LocalStorage" Version="4.4.0" />
<PackageReference Include="Blazored.LocalStorage" Version="4.4.0" />
</ItemGroup>

<!--Binary path for the code generator-->
Expand Down Expand Up @@ -72,14 +72,6 @@
<ItemGroup>
<EmbeddedResource Include="Pages\**\*.html" />
</ItemGroup>
<ItemGroup>
<Content Remove="bundleconfig.json" />
<Content Remove="compilerconfig.json" />
</ItemGroup>
<ItemGroup>
<None Include="bundleconfig.json" />
<None Include="compilerconfig.json" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Markdig" Version="0.30.4" />
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.2.2" />
Expand Down
4 changes: 0 additions & 4 deletions Source/Blazorise.AntDesign/Blazorise.AntDesign.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
<PackageTags>blazorise blazor components antdesign</PackageTags>
</PropertyGroup>

<ItemGroup>
<Content Remove="compilerconfig.json" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Blazorise\Blazorise.csproj" />
</ItemGroup>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected override async Task OnFirstAfterRenderAsync()
await base.OnFirstAfterRenderAsync();
}

internal void Register( AntDesign.Dropdown dropdown )
internal void Register( AntDesign.Components.Dropdown dropdown )
{
if ( dropdown != null )
hasDropdown = true;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Microsoft.AspNetCore.Components;
#endregion

namespace Blazorise.AntDesign;
namespace Blazorise.AntDesign.Components;

public partial class Bar : Blazorise.Bar
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Microsoft.AspNetCore.Components.Web;
#endregion

namespace Blazorise.AntDesign;
namespace Blazorise.AntDesign.Components;

public partial class Button : Blazorise.Button
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Microsoft.AspNetCore.Components;
#endregion

namespace Blazorise.AntDesign;
namespace Blazorise.AntDesign.Components;

public partial class Carousel : Blazorise.Carousel
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#region Using directives
#endregion

namespace Blazorise.AntDesign;
namespace Blazorise.AntDesign.Components;

public class CarouselSlide : Blazorise.CarouselSlide
{
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Blazorise.Utilities;
#endregion

namespace Blazorise.AntDesign;
namespace Blazorise.AntDesign.Components;

public partial class CloseButton : Blazorise.CloseButton
{
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Microsoft.AspNetCore.Components;
#endregion

namespace Blazorise.AntDesign;
namespace Blazorise.AntDesign.Components;

public partial class Dropdown : Blazorise.Dropdown
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Blazorise.Modules;
using Microsoft.AspNetCore.Components;

namespace Blazorise.AntDesign;
namespace Blazorise.AntDesign.Components;

public partial class DropdownMenu : Blazorise.DropdownMenu
{
Expand All @@ -11,7 +11,7 @@ internal protected override void OnVisibleChanged( bool e )
{
ExecuteAfterRender( async () =>
{
if ( ParentDropdown != null && ParentDropdown is AntDesign.Dropdown dropdown )
if ( ParentDropdown != null && ParentDropdown is AntDesign.Components.Dropdown dropdown )
{
var dropdownMenuElementInfo = await JSUtilitiesModule.GetElementInfo( ElementRef, ElementId );

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Blazorise.Utilities;
#endregion

namespace Blazorise.AntDesign;
namespace Blazorise.AntDesign.Components;

public partial class Field : Blazorise.Field
{
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Blazorise.Utilities;
#endregion

namespace Blazorise.AntDesign;
namespace Blazorise.AntDesign.Components;

public partial class FieldBody : Blazorise.FieldBody
{
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Blazorise.Utilities;
#endregion

namespace Blazorise.AntDesign;
namespace Blazorise.AntDesign.Components;

public partial class FieldLabel : Blazorise.FieldLabel
{
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Blazorise.Utilities;
#endregion

namespace Blazorise.AntDesign;
namespace Blazorise.AntDesign.Components;

public partial class ModalContent : Blazorise.ModalContent, IDisposable
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
using Microsoft.JSInterop;
#endregion

namespace Blazorise.AntDesign;
namespace Blazorise.AntDesign.Components;

public partial class Select<TValue> : Blazorise.Select<TValue>, ICloseActivator, IAsyncDisposable
{
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
using Microsoft.AspNetCore.Components.Web;
#endregion

namespace Blazorise.AntDesign;
namespace Blazorise.AntDesign.Components;

public partial class SelectItem<TValue> : Blazorise.SelectItem<TValue>
{
#region Methods

protected Task OnClickHandler()
{
if ( ParentSelect != null && ParentSelect is AntDesign.Select<TValue> select )
if ( ParentSelect != null && ParentSelect is AntDesign.Components.Select<TValue> select )
{
return select.NotifySelectValueChanged( Value );
}
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using Microsoft.AspNetCore.Components.Web;
#endregion

namespace Blazorise.AntDesign;
namespace Blazorise.AntDesign.Components;

public partial class Slider<TValue> : Blazorise.Slider<TValue>
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Blazorise.Utilities;

namespace Blazorise.AntDesign;
namespace Blazorise.AntDesign.Components;

public partial class Table
{
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Threading.Tasks;
#endregion

namespace Blazorise.AntDesign;
namespace Blazorise.AntDesign.Components;

public partial class Tabs : Blazorise.Tabs
{
Expand Down
File renamed without changes.
File renamed without changes.
127 changes: 63 additions & 64 deletions Source/Blazorise.AntDesign/Config.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#region Using directives
using System;
using System.Collections.Generic;
using Blazorise.AntDesign.Providers;
using Blazorise.Modules;
using Microsoft.Extensions.DependencyInjection;
#endregion
Expand Down Expand Up @@ -38,69 +39,67 @@ public static IServiceCollection AddAntDesignProviders( this IServiceCollection

public static IDictionary<Type, Type> ComponentMap => new Dictionary<Type, Type>
{
{ typeof( Blazorise.AccordionHeader ), typeof( AntDesign.AccordionHeader ) },
{ typeof( Blazorise.Addon ), typeof( AntDesign.Addon ) },
{ typeof( Blazorise.AddonLabel ), typeof( AntDesign.AddonLabel ) },
{ typeof( Blazorise.Addons ), typeof( AntDesign.Addons ) },
{ typeof( Blazorise.Alert ), typeof( AntDesign.Alert ) },
{ typeof( Blazorise.AlertDescription ), typeof( AntDesign.AlertDescription ) },
{ typeof( Blazorise.AlertMessage ), typeof( AntDesign.AlertMessage ) },
{ typeof( Blazorise.Badge ), typeof( AntDesign.Badge ) },
{ typeof( Blazorise.Bar ), typeof( AntDesign.Bar ) },
{ typeof( Blazorise.BarBrand ), typeof( AntDesign.BarBrand ) },
{ typeof( Blazorise.BarDropdown ), typeof( AntDesign.BarDropdown ) },
{ typeof( Blazorise.BarDropdownDivider ), typeof( AntDesign.BarDropdownDivider ) },
{ typeof( Blazorise.BarDropdownItem ), typeof( AntDesign.BarDropdownItem ) },
{ typeof( Blazorise.BarDropdownMenu ), typeof( AntDesign.BarDropdownMenu ) },
{ typeof( Blazorise.BarDropdownToggle ), typeof( AntDesign.BarDropdownToggle ) },
{ typeof( Blazorise.BarEnd ), typeof( AntDesign.BarEnd ) },
{ typeof( Blazorise.BarIcon ), typeof( AntDesign.BarIcon ) },
{ typeof( Blazorise.BarItem ), typeof( AntDesign.BarItem ) },
{ typeof( Blazorise.BarLink ), typeof( AntDesign.BarLink ) },
{ typeof( Blazorise.BarMenu ), typeof( AntDesign.BarMenu ) },
{ typeof( Blazorise.BarStart ), typeof( AntDesign.BarStart ) },
{ typeof( Blazorise.BarToggler ), typeof( AntDesign.BarToggler ) },
{ typeof( Blazorise.Breadcrumb ), typeof( AntDesign.Breadcrumb ) },
{ typeof( Blazorise.BreadcrumbItem ), typeof( AntDesign.BreadcrumbItem ) },
{ typeof( Blazorise.BreadcrumbLink ), typeof( AntDesign.BreadcrumbLink ) },
{ typeof( Blazorise.Button ), typeof( AntDesign.Button ) },
{ typeof( Blazorise.CardHeader ), typeof( AntDesign.CardHeader ) },
{ typeof( Blazorise.CardLink ), typeof( AntDesign.CardLink ) },
{ typeof( Blazorise.Carousel ), typeof( AntDesign.Carousel ) },
{ typeof( Blazorise.CarouselSlide ), typeof( AntDesign.CarouselSlide ) },
{ typeof( Blazorise.Check<> ), typeof( AntDesign.Check<> ) },
{ typeof( Blazorise.CloseButton ), typeof( AntDesign.CloseButton ) },
{ typeof( Blazorise.CollapseHeader ), typeof( AntDesign.CollapseHeader ) },
{ typeof( Blazorise.Dropdown ), typeof( AntDesign.Dropdown ) },
{ typeof( Blazorise.DropdownItem ), typeof( AntDesign.DropdownItem ) },
{ typeof( Blazorise.DropdownMenu ), typeof( AntDesign.DropdownMenu ) },
{ typeof( Blazorise.DropdownToggle ), typeof( AntDesign.DropdownToggle ) },
{ typeof( Blazorise.Field ), typeof( AntDesign.Field ) },
{ typeof( Blazorise.FieldBody ), typeof( AntDesign.FieldBody ) },
{ typeof( Blazorise.FieldLabel ), typeof( AntDesign.FieldLabel ) },
{ typeof( Blazorise.FileEdit ), typeof( AntDesign.FileEdit ) },
{ typeof( Blazorise.ListGroup ), typeof( AntDesign.ListGroup ) },
{ typeof( Blazorise.ModalContent ), typeof( AntDesign.ModalContent ) },
{ typeof( Blazorise.Offcanvas ), typeof( AntDesign.Offcanvas ) },
{ typeof( Blazorise.OffcanvasHeader ), typeof( AntDesign.OffcanvasHeader ) },
{ typeof( Blazorise.Progress ), typeof( AntDesign.Progress ) },
{ typeof( Blazorise.Radio<> ), typeof( AntDesign.Radio<> ) },
{ typeof( Blazorise.Rating ), typeof( AntDesign.Rating ) },
{ typeof( Blazorise.RatingItem ), typeof( AntDesign.RatingItem ) },
{ typeof( Blazorise.Select<> ), typeof( AntDesign.Select<> ) },
{ typeof( Blazorise.SelectGroup ), typeof( AntDesign.SelectGroup ) },
{ typeof( Blazorise.SelectItem<> ), typeof( AntDesign.SelectItem<> ) },
{ typeof( Blazorise.Slider<> ), typeof( AntDesign.Slider<> ) },
{ typeof( Blazorise.Step ), typeof( AntDesign.Step ) },
{ typeof( Blazorise.Switch<> ), typeof( AntDesign.Switch<> ) },
{ typeof( Blazorise.Tab ), typeof( AntDesign.Tab ) },
{ typeof( Blazorise.Table ), typeof( AntDesign.Table ) },
{ typeof( Blazorise.TableRowHeader ), typeof( AntDesign.TableRowHeader ) },
{ typeof( Blazorise.TabPanel ), typeof( AntDesign.TabPanel ) },
{ typeof( Blazorise.Tabs ), typeof( AntDesign.Tabs ) },
{ typeof( Blazorise.TabsContent ), typeof( AntDesign.TabsContent ) },
{ typeof( Blazorise.TextEdit ), typeof( AntDesign.TextEdit ) },
{ typeof( Blazorise.Toast ), typeof( AntDesign.Toast ) },
{ typeof( Blazorise.ValidationError ), typeof( AntDesign.ValidationError ) },
{ typeof( Blazorise.AccordionHeader ), typeof( Components.AccordionHeader ) },
{ typeof( Blazorise.Addon ), typeof( Components.Addon ) },
{ typeof( Blazorise.AddonLabel ), typeof( Components.AddonLabel ) },
{ typeof( Blazorise.Addons ), typeof( Components.Addons ) },
{ typeof( Blazorise.AlertDescription ), typeof( Components.AlertDescription ) },
{ typeof( Blazorise.AlertMessage ), typeof( Components.AlertMessage ) },
{ typeof( Blazorise.Badge ), typeof( Components.Badge ) },
{ typeof( Blazorise.Bar ), typeof( Components.Bar ) },
{ typeof( Blazorise.BarBrand ), typeof( Components.BarBrand ) },
{ typeof( Blazorise.BarDropdown ), typeof( Components.BarDropdown ) },
{ typeof( Blazorise.BarDropdownDivider ), typeof( Components.BarDropdownDivider ) },
{ typeof( Blazorise.BarDropdownItem ), typeof( Components.BarDropdownItem ) },
{ typeof( Blazorise.BarDropdownMenu ), typeof( Components.BarDropdownMenu ) },
{ typeof( Blazorise.BarDropdownToggle ), typeof( Components.BarDropdownToggle ) },
{ typeof( Blazorise.BarEnd ), typeof( Components.BarEnd ) },
{ typeof( Blazorise.BarIcon ), typeof( Components.BarIcon ) },
{ typeof( Blazorise.BarItem ), typeof( Components.BarItem ) },
{ typeof( Blazorise.BarLink ), typeof( Components.BarLink ) },
{ typeof( Blazorise.BarMenu ), typeof( Components.BarMenu ) },
{ typeof( Blazorise.BarStart ), typeof( Components.BarStart ) },
{ typeof( Blazorise.BarToggler ), typeof( Components.BarToggler ) },
{ typeof( Blazorise.Breadcrumb ), typeof( Components.Breadcrumb ) },
{ typeof( Blazorise.BreadcrumbItem ), typeof( Components.BreadcrumbItem ) },
{ typeof( Blazorise.BreadcrumbLink ), typeof( Components.BreadcrumbLink ) },
{ typeof( Blazorise.Button ), typeof( Components.Button ) },
{ typeof( Blazorise.CardHeader ), typeof( Components.CardHeader ) },
{ typeof( Blazorise.CardLink ), typeof( Components.CardLink ) },
{ typeof( Blazorise.Carousel ), typeof( Components.Carousel ) },
{ typeof( Blazorise.CarouselSlide ), typeof( Components.CarouselSlide ) },
{ typeof( Blazorise.Check<> ), typeof( Components.Check<> ) },
{ typeof( Blazorise.CloseButton ), typeof( Components.CloseButton ) },
{ typeof( Blazorise.CollapseHeader ), typeof( Components.CollapseHeader ) },
{ typeof( Blazorise.Dropdown ), typeof( Components.Dropdown ) },
{ typeof( Blazorise.DropdownItem ), typeof( Components.DropdownItem ) },
{ typeof( Blazorise.DropdownMenu ), typeof( Components.DropdownMenu ) },
{ typeof( Blazorise.DropdownToggle ), typeof( Components.DropdownToggle ) },
{ typeof( Blazorise.Field ), typeof( Components.Field ) },
{ typeof( Blazorise.FieldBody ), typeof( Components.FieldBody ) },
{ typeof( Blazorise.FieldLabel ), typeof( Components.FieldLabel ) },
{ typeof( Blazorise.FileEdit ), typeof( Components.FileEdit ) },
{ typeof( Blazorise.ListGroup ), typeof( Components.ListGroup ) },
{ typeof( Blazorise.ModalContent ), typeof( Components.ModalContent ) },
{ typeof( Blazorise.Offcanvas ), typeof( Components.Offcanvas ) },
{ typeof( Blazorise.OffcanvasHeader ), typeof( Components.OffcanvasHeader ) },
{ typeof( Blazorise.Progress ), typeof( Components.Progress ) },
{ typeof( Blazorise.Radio<> ), typeof( Components.Radio<> ) },
{ typeof( Blazorise.Rating ), typeof( Components.Rating ) },
{ typeof( Blazorise.RatingItem ), typeof( Components.RatingItem ) },
{ typeof( Blazorise.Select<> ), typeof( Components.Select<> ) },
{ typeof( Blazorise.SelectGroup ), typeof( Components.SelectGroup ) },
{ typeof( Blazorise.SelectItem<> ), typeof( Components.SelectItem<> ) },
{ typeof( Blazorise.Slider<> ), typeof( Components.Slider<> ) },
{ typeof( Blazorise.Step ), typeof( Components.Step ) },
{ typeof( Blazorise.Switch<> ), typeof( Components.Switch<> ) },
{ typeof( Blazorise.Tab ), typeof( Components.Tab ) },
{ typeof( Blazorise.Table ), typeof( Components.Table ) },
{ typeof( Blazorise.TableRowHeader ), typeof( Components.TableRowHeader ) },
{ typeof( Blazorise.TabPanel ), typeof( Components.TabPanel ) },
{ typeof( Blazorise.Tabs ), typeof( Components.Tabs ) },
{ typeof( Blazorise.TabsContent ), typeof( Components.TabsContent ) },
{ typeof( Blazorise.TextEdit ), typeof( Components.TextEdit ) },
{ typeof( Blazorise.Toast ), typeof( Components.Toast ) },
};
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Blazorise.AntDesign;
namespace Blazorise.AntDesign.Providers;

public class AntDesignBehaviourProvider : BehaviourProvider
{
Expand Down
Loading

0 comments on commit e06144d

Please sign in to comment.