Skip to content

Commit 139be1f

Browse files
committed
Merge branch 'dev'
2 parents 73d3587 + d6d5ff9 commit 139be1f

File tree

80 files changed

+1118
-330
lines changed

Some content is hidden

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

80 files changed

+1118
-330
lines changed

Directory.Build.props

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

15-
<VersionFile>4.11.9</VersionFile>
16-
<VersionPrefix>4.11.9</VersionPrefix>
15+
<VersionFile>4.12.0</VersionFile>
16+
<VersionPrefix>4.12.0</VersionPrefix>
1717
<VersionSuffix></VersionSuffix>
1818
<AssemblyVersion>$(VersionFile)</AssemblyVersion>
1919
<FileVersion>$(VersionFile)</FileVersion>

Directory.Packages.props

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
<PropertyGroup>
33
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
44
<RuntimeVersion8>8.0.0</RuntimeVersion8>
5-
<AspNetCoreVersion8>8.0.15</AspNetCoreVersion8>
6-
<EfCoreVersion8>8.0.15</EfCoreVersion8>
7-
<RuntimeVersion9>9.0.4</RuntimeVersion9>
8-
<AspNetCoreVersion9>9.0.4</AspNetCoreVersion9>
9-
<EfCoreVersion9>9.0.4</EfCoreVersion9>
10-
<RuntimeVersion10>10.0.0-preview.3.25171.5</RuntimeVersion10>
11-
<AspNetCoreVersion10>10.0.0-preview.3.25172.1</AspNetCoreVersion10>
12-
<EfCoreVersion10>10.0.0-preview.3.25171.6</EfCoreVersion10>
5+
<AspNetCoreVersion8>8.0.16</AspNetCoreVersion8>
6+
<EfCoreVersion8>8.0.16</EfCoreVersion8>
7+
<RuntimeVersion9>9.0.5</RuntimeVersion9>
8+
<AspNetCoreVersion9>9.0.5</AspNetCoreVersion9>
9+
<EfCoreVersion9>9.0.5</EfCoreVersion9>
10+
<RuntimeVersion10>10.0.0-preview.4.25258.110</RuntimeVersion10>
11+
<AspNetCoreVersion10>10.0.0-preview.4.25258.110</AspNetCoreVersion10>
12+
<EfCoreVersion10>10.0.0-preview.4.25258.110</EfCoreVersion10>
1313
</PropertyGroup>
1414
<ItemGroup>
1515
<!-- For Sample Apps -->
16-
<PackageVersion Include="Microsoft.FluentUI.AspNetCore.Components" Version="4.11.8" />
17-
<PackageVersion Include="Microsoft.FluentUI.AspNetCore.Components.Icons" version="4.11.8" />
18-
<PackageVersion Include="Microsoft.FluentUI.AspNetCore.Components.Emoji" Version="4.11.8" />
16+
<PackageVersion Include="Microsoft.FluentUI.AspNetCore.Components" Version="4.11.9" />
17+
<PackageVersion Include="Microsoft.FluentUI.AspNetCore.Components.Icons" version="4.11.9" />
18+
<PackageVersion Include="Microsoft.FluentUI.AspNetCore.Components.Emoji" Version="4.11.9" />
1919
<!-- Test dependencies -->
2020
<PackageVersion Include="bunit" Version="1.38.5" />
2121
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />

WHATSNEW.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
1+
## V4.12.0
2+
3+
### General
4+
- \[General\] Use latest .NET SDKs (including .NET 10 preview 4)([#3789](https://github.com/microsoft/fluentui-blazor/pull/3789))
5+
6+
### Components
7+
- \[AutoComplete\] Do not show previous/next when no option is selected ([#3780](https://github.com/microsoft/fluentui-blazor/pull/3780))
8+
- \[Autocomplete\] Fix active highlight size for single-select mode ([#3819](https://github.com/microsoft/fluentui-blazor/pull/3819))
9+
- \[AutoComplete\] Fix using different height for MaxAutoHeight (#3793) ([#3796](https://github.com/microsoft/fluentui-blazor/pull/3796))
10+
- \[DataGrid\] Add UseMenuService parameter to override menu behavior ([#3862](https://github.com/microsoft/fluentui-blazor/pull/3862))
11+
- \[DataGrid\] Make Select/Deselect all more robust ([#3866](https://github.com/microsoft/fluentui-blazor/pull/3866))
12+
- \[DataGrid\] Refine logic that determines if the DataGrid data needs to be reloaded ([#3864](https://github.com/microsoft/fluentui-blazor/pull/3864))
13+
- \[DataGrid\] Resize enhancements ([#3767](https://github.com/microsoft/fluentui-blazor/pull/3767))
14+
- \[DataGrid\] Tweak new resize behavior ([#3787](https://github.com/microsoft/fluentui-blazor/pull/3787))
15+
- \[DataGrid\] Use ColumnOptionsLabels.Icon in more places ([#3865](https://github.com/microsoft/fluentui-blazor/pull/3865))
16+
- \[DataGrid\] Add `HeaderCellTitleTemplate` to `ColumnBase` ([#3860](https://github.com/microsoft/fluentui-blazor/pull/3860))
17+
- \[DesignTheme\] Store selected color in GlobalState ([#3833](https://github.com/microsoft/fluentui-blazor/pull/3833))
18+
- \[Lists\] Do not set internal value when using multiple ([#3835](https://github.com/microsoft/fluentui-blazor/pull/3835))
19+
- \[MainLayout\] Remove double header reduction ([#3841](https://github.com/microsoft/fluentui-blazor/pull/3841))
20+
- \[MenuButton\] Pass through AdditionalAttributes ([#3798](https://github.com/microsoft/fluentui-blazor/pull/3798))
21+
- \[MenuProvider\] Pass through class and style from menu's. ([#3809](https://github.com/microsoft/fluentui-blazor/pull/3809))
22+
- \[MultiSplitter\] Remove position from panel CSS ([#3870](https://github.com/microsoft/fluentui-blazor/pull/3870))
23+
- \[SortableList\] Extend the CSS class with more predefined variables([#3877](https://github.com/microsoft/fluentui-blazor/pull/3877))
24+
- \[Tabs\] Make initialization logic more robust ([#3878](https://github.com/microsoft/fluentui-blazor/pull/3878))
25+
26+
### Demo site and documentation
27+
- \[Docs\] Add docs about `FluentEditForm` ([#3832](https://github.com/microsoft/fluentui-blazor/pull/3832))
28+
- \[Docs\] Fix typo in InputFile documentation ([#3769](https://github.com/microsoft/fluentui-blazor/pull/3769))
29+
- \[Docs\] Fix typo in Card documentation ([#3839](https://github.com/microsoft/fluentui-blazor/pull/3839))
30+
- \[Docs\] Remove Autofocus to prevent scrolling in the docs (#3826) ([#3828](https://github.com/microsoft/fluentui-blazor/pull/3828))
31+
- \[Docs\] Update reboot section for IIS hosting workaround ([#3788](https://github.com/microsoft/fluentui-blazor/pull/3788))
32+
33+
### Icons and Emoji
34+
- Update to Fluent UI System Icons 1.1.302.
35+
See the commit history in the Fluent UI System Icons repository [commit history](https://github.com/microsoft/fluentui-system-icons/commits/main/) for the full list of changes.
36+
137
## V4.11.9
238

339
### General

docs/contributing.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,17 @@ dotnet build
3838

3939
### Submitting a pull request
4040

41-
If you'd like to contribute by fixing a bug, implementing a feature, or even correcting typos in our documentation, you'll want to submit a pull request. Before submitting a pull request, be sure to [rebase](https://www.atlassian.com/git/tutorials/merging-vs-rebasing) your branch from master. Do not use ``git merge`` or the *merge* button provided by GitHub.
41+
If you'd like to contribute by fixing a bug, implementing a feature, or even correcting typos in our documentation, you'll need to submit a pull request.
42+
Before submitting a pull request, be sure to [rebase](https://www.atlassian.com/git/tutorials/merging-vs-rebasing) your branch from master. Do not use ``git merge`` or the *merge* button provided by GitHub.
4243

43-
### Merging a pull request
44+
For PR naming use the following convention: `[component name] Description` (note no period at the end)
4445

45-
If you are merging a pull request, be sure to use the pull request title as the commit title. The title should follow the [conventional commit guidelines](https://www.conventionalcommits.org/). It is recommended that if you are merging in pull requests regularly that you add a browser extension that will auto-correct the title for you. A few that should do this are [Refined GitHub](https://github.com/sindresorhus/refined-github) and [Squashed Merge Message](https://github.com/zachwhaley/squashed-merge-message).
46+
- For the component name, leave out the Fluent part.
47+
- For the description, do not reference an issue number in there. Just a clear, short summary of what change entails is enough. There is enough room to elaborate in the description .
48+
49+
When a PR is related to an issue, use the 'fix #issuenumber' syntax to automatically link the issue to the PR. That way the issue gets closed when the PR is merged.
50+
51+
For PR description use before and after images /screenshot when possible to make more clear what has changed. We link to the PRs from the what's new page so it helps to provide better context.
4652

4753
## Contribution policy
4854

eng/pipelines/version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ variables:
22
# File and Package version
33
# dev branch: 1.2.4-Preview-23282-1' (PackageSuffix is always ignored in Dev branch)
44
# main branch: 1.2.4-RC.1' (PackageSuffix is ignored, if empty, in Main branch)
5-
FileVersion: '4.11.9' # Set the next final version here.
5+
FileVersion: '4.12.0' # Set the next final version here.
66
PackageSuffix: ''

examples/Demo/Shared/Microsoft.FluentUI.AspNetCore.Components.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,6 +1241,12 @@
12411241
If not specified, the default header template includes the <see cref="P:Microsoft.FluentUI.AspNetCore.Components.ColumnBase`1.Title" /> along with any applicable sort indicators and options buttons.
12421242
</summary>
12431243
</member>
1244+
<member name="P:Microsoft.FluentUI.AspNetCore.Components.ColumnBase`1.HeaderCellTitleTemplate">
1245+
<summary>
1246+
Gets or sets a template for the title content of this column's header cell.
1247+
If not specified, the default header template includes the <see cref="P:Microsoft.FluentUI.AspNetCore.Components.ColumnBase`1.Title" />.
1248+
</summary>
1249+
</member>
12441250
<member name="P:Microsoft.FluentUI.AspNetCore.Components.ColumnBase`1.ColumnOptions">
12451251
<summary>
12461252
If specified, indicates that this column has this associated options UI. A button to display this
@@ -1350,6 +1356,14 @@
13501356
respecting that option.
13511357
</summary>
13521358
</member>
1359+
<member name="P:Microsoft.FluentUI.AspNetCore.Components.ColumnBase`1.HeaderTitleContent">
1360+
<summary>
1361+
Gets or sets a <see cref="T:Microsoft.AspNetCore.Components.RenderFragment" /> that will be rendered for this column's header title.
1362+
This allows derived components to change the header title output. However, derived components are then
1363+
responsible for using <see cref="P:Microsoft.FluentUI.AspNetCore.Components.ColumnBase`1.HeaderCellTitleTemplate" /> within that new output if they want to continue
1364+
respecting that option.
1365+
</summary>
1366+
</member>
13531367
<member name="M:Microsoft.FluentUI.AspNetCore.Components.ColumnBase`1.IsSortableByDefault">
13541368
<summary>
13551369
Gets a value indicating whether this column should act as sortable if no value was set for the
@@ -1966,6 +1980,13 @@
19661980
If true, enables the new style of header cell that includes a button to display all column options through a menu.
19671981
</summary>
19681982
</member>
1983+
<member name="P:Microsoft.FluentUI.AspNetCore.Components.FluentDataGrid`1.UseMenuService">
1984+
<summary>
1985+
Use IMenuService to create the menu, if this service was injected.
1986+
This value must be defined before the component is rendered (you can't change it during the component lifecycle).
1987+
Default, true.
1988+
</summary>
1989+
</member>
19691990
<member name="P:Microsoft.FluentUI.AspNetCore.Components.FluentDataGrid`1.ItemKey">
19701991
<summary>
19711992
Optionally defines a value for @key on each rendered row. Typically this should be used to specify a
@@ -2255,6 +2276,12 @@
22552276
</summary>
22562277
<returns></returns>
22572278
</member>
2279+
<member name="M:Microsoft.FluentUI.AspNetCore.Components.FluentDataGrid`1.ComputeItemsHash(System.Collections.Generic.IEnumerable{`0},System.Int32)">
2280+
<summary>
2281+
Computes a hash code for the given items.
2282+
To limit the effect on performance, only the given maximum number (default 250) of items will be considered.
2283+
</summary>
2284+
</member>
22582285
<member name="P:Microsoft.FluentUI.AspNetCore.Components.FluentDataGridCell`1.Item">
22592286
<summary>
22602287
Gets or sets the reference to the item that holds this cell's values.
@@ -6378,6 +6405,12 @@
63786405
Gets or sets the function used to determine if an option is initially selected.
63796406
</summary>
63806407
</member>
6408+
<member name="P:Microsoft.FluentUI.AspNetCore.Components.ListComponentBase`1.OptionComparer">
6409+
<summary>
6410+
Gets or sets the <see cref="T:System.Collections.Generic.IEqualityComparer`1"/> used to determine if an option is already added to the internal list.
6411+
⚠️ Only available when Multiple = true.
6412+
</summary>
6413+
</member>
63816414
<member name="P:Microsoft.FluentUI.AspNetCore.Components.ListComponentBase`1.Items">
63826415
<summary>
63836416
Gets or sets the content source of all items to display in this list.

examples/Demo/Shared/Pages/Card/CardPage.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<DemoSection Title="Area restricted examples" Component="@typeof(CardAreaRestricted)">
1717
<Description>
1818
<p>
19-
By default a card restricts its content to the card area. This means, for exmple, that if you have a select list with a lot of items, the list will be cut off at the bottom of the card.
19+
By default a card restricts its content to the card area. This means, for example, that if you have a select list with a lot of items, the list will be cut off at the bottom of the card.
2020
You can override this behavior by setting the <code>AreaRestricted</code> property to <code>false</code>.
2121
</p>
2222
</Description>

examples/Demo/Shared/Pages/DataGrid/DataGridPage.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
<h2 id="sorting">Sorting</h2>
5959
<p>
6060
The DataGrid supports sorting by clicking on the column headers. The default sort direction is ascending. Clicking on the same column header again will toggle the sort direction.
61-
A sort can be removed by right clicking on the header column (with exception of the default sort).
61+
A sort can be removed by right clicking (or by pressing Shift+R) on the header column (with exception of the default sort).
6262
</p>
6363

6464
<h2 id="styling">Row size</h2>

examples/Demo/Shared/Pages/DataGrid/Examples/DataGridCustomComparer.razor

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@
1818
</FluentRadioGroup>
1919
<FluentSpacer Width="25" />
2020
<FluentCheckbox @bind-Value="@_showActionsMenu" Label="Use menu for column actions" />
21+
<FluentCheckbox @bind-Value="@_useMenuService" Label="Use service for rendering menu" Disabled="!_showActionsMenu" />
2122
</FluentToolbar>
2223
<div style="height: 400px; overflow-x:auto; display:flex;">
2324
<FluentDataGrid Items="@FilteredItems"
2425
ResizableColumns=true
2526
ResizeType="@_resizeType"
2627
HeaderCellAsButtonWithMenu="_showActionsMenu"
28+
UseMenuService="_useMenuService"
2729
Pagination="@pagination"
2830
TGridItem="Country"
2931
OnRowFocus="HandleRowFocus"
@@ -75,6 +77,7 @@
7577
string nameFilter = string.Empty;
7678
DataGridResizeType? _resizeType = null;
7779
bool _showActionsMenu;
80+
bool _useMenuService = true;
7881

7982
GridSort<Country> rankSort = GridSort<Country>
8083
.ByDescending(x => x.Medals.Gold)
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
@using FluentUI.Demo.Shared.Pages.DataGrid.Examples
2+
@using Microsoft.FluentUI.AspNetCore.Components
3+
4+
<FluentDataGrid Items="@people">
5+
<PropertyColumn Property="@(p => p.PersonId)" Sortable="true" Title="Identity">
6+
<HeaderCellTitleTemplate>
7+
<FluentStack Orientation="Orientation.Horizontal"
8+
VerticalAlignment="VerticalAlignment.Center">
9+
<FluentIcon Icon="Icons.Regular.Size20.Person" />
10+
@context.Title
11+
</FluentStack>
12+
</HeaderCellTitleTemplate>
13+
</PropertyColumn>
14+
<PropertyColumn Property="@(p => p.Name)" Sortable="true" Title="Full _name" />
15+
<PropertyColumn Property="@(p => p.BirthDate)" Format="yyyy-MM-dd" Sortable="true">
16+
<HeaderCellTitleTemplate>
17+
<FluentStack Orientation="Orientation.Horizontal"
18+
VerticalAlignment="VerticalAlignment.Center">
19+
<FluentIcon Icon="Icons.Regular.Size20.Calendar" />
20+
Birth date
21+
</FluentStack>
22+
</HeaderCellTitleTemplate>
23+
</PropertyColumn>
24+
</FluentDataGrid>
25+
26+
@code {
27+
public class Person
28+
{
29+
public Person(int personId, string name, DateOnly birthDate)
30+
{
31+
PersonId = personId;
32+
Name = name;
33+
BirthDate = birthDate;
34+
}
35+
36+
public int PersonId { get; set; }
37+
38+
public string Name { get; set; }
39+
40+
public DateOnly BirthDate { get; set; }
41+
}
42+
43+
IQueryable<Person> people = new[]
44+
{
45+
new Person(10895, "Jean Martin", new DateOnly(1985, 3, 16)),
46+
new Person(10944, "António Langa", new DateOnly(1991, 12, 1)),
47+
new Person(11203, "Julie Smith", new DateOnly(1958, 10, 10)),
48+
new Person(11205, "Nur Sari", new DateOnly(1922, 4, 27)),
49+
new Person(11898, "Jose Hernandez", new DateOnly(2011, 5, 3)),
50+
new Person(12130, "Kenji Sato", new DateOnly(2004, 1, 9)),
51+
}.AsQueryable();
52+
}

0 commit comments

Comments
 (0)