Skip to content

Commit a677327

Browse files
committed
Merge dev
2 parents a5eaca4 + 57ce3db commit a677327

File tree

591 files changed

+37010
-36898
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

591 files changed

+37010
-36898
lines changed

.github/workflows/deploy_demo.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ jobs:
3434
- name: Checkout source
3535
uses: actions/checkout@v4
3636

37-
- name: Setup .NET 8.0
38-
uses: actions/setup-dotnet@v4
39-
with:
40-
dotnet-version: 8.0.x
41-
dotnet-quality: ga
37+
# - name: Setup .NET 8.0
38+
# uses: actions/setup-dotnet@v4
39+
# with:
40+
# dotnet-version: 8.0.x
41+
# dotnet-quality: ga
4242

4343
- name: Setup .NET 9.0
4444
uses: actions/setup-dotnet@v4

Directory.Build.props

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,23 @@
1212
<SolutionDir>$(MSBuildThisFileDirectory)</SolutionDir>
1313
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
1414

15-
<VersionFile>4.10.4</VersionFile>
16-
<VersionPrefix>4.10.4</VersionPrefix>
15+
<VersionFile>4.11.0</VersionFile>
16+
<VersionPrefix>4.11.0</VersionPrefix>
1717
<VersionSuffix></VersionSuffix>
1818
<AssemblyVersion>$(VersionFile)</AssemblyVersion>
1919
<FileVersion>$(VersionFile)</FileVersion>
2020

21-
<!-- Enable code style analysis -->
22-
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
23-
<EnableNETAnalyzers>true</EnableNETAnalyzers>
21+
<LangVersion>latest</LangVersion>
22+
<Nullable>enable</Nullable>
23+
<ImplicitUsings>enable</ImplicitUsings>
2424

25-
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
25+
<!-- Enable code style analysis -->
26+
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
27+
<EnableNETAnalyzers>true</EnableNETAnalyzers>
2628

27-
</PropertyGroup>
29+
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
30+
31+
</PropertyGroup>
2832

2933
<ItemGroup>
3034
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">

Directory.Packages.props

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,22 @@
1010
</PropertyGroup>
1111
<ItemGroup>
1212
<!-- For Sample Apps -->
13-
<PackageVersion Include="Microsoft.FluentUI.AspNetCore.Components" Version="4.10.2" />
14-
<PackageVersion Include="Microsoft.FluentUI.AspNetCore.Components.Icons" version="4.10.2" />
15-
<PackageVersion Include="Microsoft.FluentUI.AspNetCore.Components.Emoji" Version="4.6.0" />
13+
<PackageVersion Include="Microsoft.FluentUI.AspNetCore.Components" Version="4.11.0-beta.1" />
14+
<PackageVersion Include="Microsoft.FluentUI.AspNetCore.Components.Icons" version="4.11.0-beta.1" />
15+
<PackageVersion Include="Microsoft.FluentUI.AspNetCore.Components.Emoji" Version="4.11.0-beta.1" />
1616
<!-- Test dependencies -->
1717
<PackageVersion Include="bunit" Version="1.31.3" />
1818
<PackageVersion Include="FluentAssertions" Version="6.12.0" />
1919
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
20-
<PackageVersion Include="xunit" Version="2.9.0" />
20+
<PackageVersion Include="xunit" Version="2.9.2" />
2121
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2" />
2222
<PackageVersion Include="coverlet.msbuild" Version="6.0.0" />
2323
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
2424
<!-- Shared dependencies -->
2525
<PackageVersion Include="Markdig.Signed" Version="0.34.0" />
2626
<PackageVersion Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0" />
2727
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="4.11.0" />
28+
<PackageVersion Include="Microsoft.OData.Client" Version="8.2.1" />
2829
<PackageVersion Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.11.20" />
2930
<PackageVersion Include="Microsoft.VisualStudioEng.MicroBuild.Core" Version="1.0.0" />
3031
</ItemGroup>

Microsoft.FluentUI.sln

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FluentUI.Demo.AssetExplorer
4343
EndProject
4444
Project("{54A90642-561A-4BB1-A94E-469ADEE60C69}") = "Microsoft.FluentUI.AspNetCore.Components.Assets", "src\Core.Assets\Microsoft.FluentUI.AspNetCore.Components.Assets.esproj", "{292081C2-5076-467C-AEFF-12DC0617531A}"
4545
EndProject
46+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.FluentUI.AspNetCore.Components.DataGrid.ODataAdapter", "src\Extensions\DataGrid.ODataAdapter\Microsoft.FluentUI.AspNetCore.Components.DataGrid.ODataAdapter.csproj", "{AFFDA282-83AB-44FA-B400-C935BBFE3308}"
47+
EndProject
4648
Global
4749
GlobalSection(SolutionConfigurationPlatforms) = preSolution
4850
Debug|Any CPU = Debug|Any CPU
@@ -95,6 +97,10 @@ Global
9597
{292081C2-5076-467C-AEFF-12DC0617531A}.Release|Any CPU.ActiveCfg = Release|Any CPU
9698
{292081C2-5076-467C-AEFF-12DC0617531A}.Release|Any CPU.Build.0 = Release|Any CPU
9799
{292081C2-5076-467C-AEFF-12DC0617531A}.Release|Any CPU.Deploy.0 = Release|Any CPU
100+
{AFFDA282-83AB-44FA-B400-C935BBFE3308}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
101+
{AFFDA282-83AB-44FA-B400-C935BBFE3308}.Debug|Any CPU.Build.0 = Debug|Any CPU
102+
{AFFDA282-83AB-44FA-B400-C935BBFE3308}.Release|Any CPU.ActiveCfg = Release|Any CPU
103+
{AFFDA282-83AB-44FA-B400-C935BBFE3308}.Release|Any CPU.Build.0 = Release|Any CPU
98104
EndGlobalSection
99105
GlobalSection(SolutionProperties) = preSolution
100106
HideSolutionNode = FALSE
@@ -117,6 +123,7 @@ Global
117123
{17F26C55-E329-4117-B64D-0393E912FFFE} = {9468ADD1-3660-410D-8231-6F89384D135D}
118124
{E4E62EAA-38FC-48FE-B63E-EB4ABAD660D2} = {17F26C55-E329-4117-B64D-0393E912FFFE}
119125
{292081C2-5076-467C-AEFF-12DC0617531A} = {DF88C07D-46D7-4DEC-ACE4-409217634E57}
126+
{AFFDA282-83AB-44FA-B400-C935BBFE3308} = {1199ECBA-EE19-44CD-A471-85AB2F44489C}
120127
EndGlobalSection
121128
GlobalSection(ExtensibilityGlobals) = postSolution
122129
SolutionGuid = {420693A7-C2FD-498C-8E78-4B65CC25389A}

README.md

Lines changed: 19 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010

1111
:star: We appreciate your star, it helps!
1212

13-
**This package is for use in .NET 8 Blazor projects. If you are using .NET 6 or 7, please use the v3 version of the package which is named `Microsoft.Fast.Components.FluentUI`**
13+
This package is for use in .NET 8 and 9 Blazor projects. If you are using **now unsupported** .NET 6 or 7, please use the v3 version of the packages (names starting with `Microsoft.Fast.Components.FluentUI`)
1414

1515
## Introduction
1616

17-
The `Microsoft.FluentUI.AspNetCore.Components` package provides a set of [Blazor](https://blazor.net) components which are used to build applications that have a Fluent design (i.e. have the look and feel of modern Microsoft applications).
17+
The `Microsoft.FluentUI.AspNetCore` family of packages provides a set of [Blazor](https://blazor.net) components, tools and utilities which are used to build applications that have a Fluent design (i.e. have the look and feel of modern Microsoft applications).
1818

19-
Some of the components in the library are wrappers around Microsoft's official Fluent UI Web Components. Others are components that leverage the Fluent Design System or make it easier to work with Fluent UI. To get up and running with the library, see the **Getting Started** section below.
19+
Some of the components in the library are wrappers around Microsoft's official Fluent UI Web Components. Others are components that leverage the Fluent Design System or make it easier to work with Fluent. To get up and running with the library, see the **Getting Started** section below.
2020

2121
The source for the library is hosted in the [fluentui-blazor](https://github.com/microsoft/fluentui-blazor) repository at GitHub. Documentation on the components is available at the [demo site](https://www.fluentui-blazor.net).
2222

@@ -43,10 +43,14 @@ If you want to create a new standalone WebAssembly project, you can use the foll
4343
dotnet new fluentblazorwasm --name MyApplication
4444
```
4545

46-
When using Visual Studio, you can also use the **New Project** dialog to create a new project. The templates will be available under the **Blazor** category.
46+
Other available templates are:
47+
- Fluent .NET Aspire Starter App (fluentaspire-starter)
48+
- Fluent .NET MAUI Blazor Hybrid and Web App (fluentmaui-blazor-web)
49+
50+
When using Visual Studio, you can also use the **New Project** dialog to create a new project. The templates can be found by typine **Fluent** in the search field.
4751

4852
### Manual Install
49-
To start using the **Fluent UI Blazor components** from scratch, you first need to install the main [Nuget package](https://www.nuget.org/packages/Microsoft.FluentUI.AspNetCore.Components/) in the project you want to use the library and its components.
53+
To start using the Fluent UI Blazor library from scratch, you first need to install the main [NuGet package](https://www.nuget.org/packages/Microsoft.FluentUI.AspNetCore.Components/) in the project you want to use the library and its components.
5054
You can use the NuGet package manager in your IDE or use the following command when using a CLI:
5155

5256
```shell
@@ -109,14 +113,14 @@ These providers are used by associated services to display Toasts, Dialog boxes,
109113
<FluentMessageBarProvider />
110114
<FluentMenuProvider />
111115
```
112-
> **note:** You can remove providers that are not used in your application.
116+
> **note:** You can remove providers which you are using in your application.
113117
114118
## Working with Icons and Emoji
115-
We have additional packages available that include the complete **Fluent UI System icons** and **Fluent UI Emoji** collections.
119+
We have additional packages available that include the complete Fluent UI System icons and Fluent UI Emoji collections.
116120
Please refer to the [Icons and Emoji](https://www.fluentui-blazor.net/IconsAndEmoji) page for more information.
117121

118122
## Usage
119-
With the package installed, you can begin using the **Fluent UI Blazor components** in the same way as any other Blazor component.
123+
With the package installed, you can begin using the Fluent UI Blazor components in the same way as any other Blazor component.
120124

121125
### Add Imports
122126

@@ -137,7 +141,7 @@ This is literally all you need in your views to use Fluent UI Blazor components.
137141
```
138142

139143
## Configuring the Design System
140-
The **Fluent UI Blazor** components are built on FAST's (Adaptive UI) technology, which enables design customization and personalization, while automatically
144+
The Fluent UI Blazor components are built on FAST's (Adaptive UI) technology, which enables design customization and personalization, while automatically
141145
maintaining accessibility. This is accomplished through setting various "design tokens". The library exposes all design tokens, which you can use both from code as in a declarative way in your `.razor` pages. The different ways of working with design tokens are described in the [design tokens](https://www.fluentui-blazor.net/DesignTokens) page.
142146

143147
## Blazor Hybrid
@@ -146,7 +150,7 @@ You can use this library in **Blazor Hybrid** (MAUI/WPF/Windows Forms) projects.
146150
### Temporary workaround for MAUI/WPF/Windows Forms issues
147151

148152
> [!NOTE]
149-
> The workaround below only applies to .NET 8 (and below). As of .NET 9 this workaround is no longer needed. If you have this workaround in place for .NET 9 your Blazor Hybrid project **will not load**.
153+
> The workaround below only applies to .NET 8. As of .NET 9 this workaround is no longer needed. If you have this workaround in place for .NET 9 your Blazor Hybrid project **will not load**.
150154
151155
Currently when using the WebView to run Blazor (so all Hybrid variants) the web-components script is not imported automatically (see [#404](https://github.com/microsoft/fluentui-blazor/issues/404)).
152156
There is also an issue with loading the custom event handlers that are being configured by the web-components script. Until these are fixed on the WebView side, there is a workaround available, namely to intercept `'_framework/blazor.modules.json'` and provide proper JS initializers file (created by build). The needed `initializersLoader.webview.js` has been added to the library and needs to be included with a script tag **before** the `_framework/blazor.webview.js` script tag:
@@ -161,20 +165,9 @@ initializersLoader replaces standard `fetch` function with one which provides th
161165

162166
For more information regarding the bug, see issue [15234](https://github.com/dotnet/maui/issues/15234) in the MAUI repo.
163167

164-
## Use the DataGrid component with EF Core
165-
If you want to use the `<FluentDataGrid>` with data provided through EF Core, you need to install an additional package so the grid knows how to resolve queries asynchronously for efficiency.
166-
167-
### Installation
168-
Install the package by running the command:
169-
```
170-
dotnet add package Microsoft.FluentUI.AspNetCore.Components.DataGrid.EntityFrameworkAdapter
171-
```
172-
173-
### Usage
174-
In your `Program.cs` file, you need to add the following after the `builder.Services.AddFluentUIComponents(...);` lines:
175-
```csharp
176-
builder.Services.AddDataGridEntityFrameworkAdapter();
177-
```
168+
## Use the DataGrid component with EF Core or OData Client
169+
If you want to use the `<FluentDataGrid>` with data provided through EF Core or an OData Client, you need to install an additional package so the grid knows how to resolve queries asynchronously for efficiency.
170+
Please see the [DataGrid](https://www.fluentui-blazor.net/DataGrid) page for more information.
178171

179172

180173
## Additional resources
@@ -200,13 +193,13 @@ Made with [contrib.rocks](https://contrib.rocks).
200193

201194
## Joining the Community
202195

203-
Looking to get answers to questions or engage with us in real-time? Our community is active on [Gitter](https://app.gitter.im/#/room/#fluentui-blazor:gitter.im) and [Discord](https://discord.gg/FcSNfg4). Submit requests
196+
Looking to get answers to questions or engage with us in real-time? Our community is active on [Discord](https://discord.gg/FcSNfg4). Submit requests
204197
and issues on [GitHub](https://github.com/microsoft/fluentui-blazor/issues/new/choose), or join us by contributing on [some good first issues via GitHub](https://github.com/microsoft/fluentui-blazor/labels/community:good-first-issue).
205198

206199
We look forward to building an amazing open source community with you!
207200

208201
## Contact
209202

210-
* Join the DotNetEvolution server and chat with us in real-time on [Discord](https://discord.gg/M5cBTfp6J2). You can also find us on [Gitter](https://app.gitter.im/#/room/#fluentui-blazor:gitter.im).
203+
* Join the DotNetEvolution server and chat with us in real-time on [Discord](https://discord.gg/M5cBTfp6J2).
211204
* Submit requests and issues (only) on [GitHub](https://github.com/microsoft/fluentui-blazor/issues/new/choose).
212205
* Contribute by helping out on some of our recommended first issues on [GitHub](https://github.com/microsoft/fluentui-blazor/labels/community:good-first-issue).

0 commit comments

Comments
 (0)