Skip to content

Commit 19c38ba

Browse files
committed
Merge remote-tracking branch 'MudBlazor/dev' into feature/datetime-picker
2 parents 565521d + f1c6ce0 commit 19c38ba

File tree

1,645 files changed

+44531
-27507
lines changed

Some content is hidden

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

1,645 files changed

+44531
-27507
lines changed

.github/release.yml

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ changelog:
55
- docs
66
- tests
77
- dependency
8-
- refactor
9-
- reverted
108
categories:
119
- title: Breaking Changes
1210
labels:

.github/renovate.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"config:recommended"
55
],
66
"ignorePresets": [
7-
":ignoreModulesAndTests"
7+
":ignoreModulesAndTests",
8+
"mergeConfidence:all-badges"
89
],
910
"labels": [
1011
"dependency"
@@ -24,9 +25,9 @@
2425
},
2526
{
2627
"matchPackageNames": [
27-
"AspNetCore.SassCompiler"
28+
"FluentAssertions"
2829
],
29-
"enabled": false
30+
"allowedVersions": "< 8.0.0"
3031
}
3132
]
3233
}

.github/workflows/build-test-mudblazor.yml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
build-test:
1010
name: Build and test mudblazor projects
1111
uses: MudBlazor/Workflows/.github/workflows/template-build-test.yml@main
12+
secrets: inherit
1213
with:
1314
check-eslint: 'MudBlazor/TScripts'
1415
publish-coverage: true

.github/workflows/deploy-mudblazor-nuget.yml

+7
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,16 @@ jobs:
5151
with:
5252
dotnet-version: |
5353
8.0.x
54+
9.0.x
5455
- name: Pack nuget package
5556
run: dotnet pack -c Release --output nupkgs /p:Version=${{ needs.get-version.outputs.VERSION }}
5657
working-directory: ./src/MudBlazor
58+
- name: Check package contains css
59+
shell: pwsh
60+
run: ./tools/CheckPackageContainsStaticAssets.ps1 ./src/MudBlazor/nupkgs MudBlazor.min.css
61+
- name: Check package contains js
62+
shell: pwsh
63+
run: ./tools/CheckPackageContainsStaticAssets.ps1 ./src/MudBlazor/nupkgs MudBlazor.min.js
5764
- name: Publish nuget package
5865
run: dotnet nuget push nupkgs/*.nupkg -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
5966
working-directory: ./src/MudBlazor

.github/workflows/deploy-mudblazor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
type: string
1111
push:
1212
tags:
13-
- "v7.[0-9]+.[0-9]+"
13+
- "v8.[0-9]+.[0-9]+"
1414

1515
jobs:
1616
get-version:

.github/workflows/deploy-trymudblazor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
push:
66
tags:
7-
- "v7.[0-9]+.[0-9]+"
7+
- "v8.[0-9]+.[0-9]+"
88

99
jobs:
1010
wait-for-nuget:

.github/workflows/sonar.yml

-18
This file was deleted.

.vscode/launch.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"type": "blazorwasm",
1010
"request": "launch",
1111
"preLaunchTask": "build",
12-
"program": "${workspaceFolder}/src/MudBlazor.UnitTests.Viewer/bin/Debug/net8.0/MudBlazor.UnitTests.Viewer.dll",
12+
"program": "${workspaceFolder}/src/MudBlazor.UnitTests.Viewer/bin/Debug/net9.0/MudBlazor.UnitTests.Viewer.dll",
1313
"cwd": "${workspaceFolder}/src/MudBlazor.UnitTests.Viewer",
1414
"browser": "edge",
1515
"env": {
@@ -22,7 +22,7 @@
2222
"request": "launch",
2323
"preLaunchTask": "build",
2424
"hosted": true,
25-
"program": "${workspaceFolder}/src/MudBlazor.Docs.WasmHost/bin/Debug/net8.0/MudBlazor.Docs.WasmHost.dll",
25+
"program": "${workspaceFolder}/src/MudBlazor.Docs.WasmHost/bin/Debug/net9.0/MudBlazor.Docs.WasmHost.dll",
2626
"cwd": "${workspaceFolder}/src/MudBlazor.Docs.WasmHost",
2727
"browser": "edge",
2828
"env": {
@@ -34,7 +34,7 @@
3434
"type": "blazorwasm",
3535
"request": "launch",
3636
"preLaunchTask": "build",
37-
"program": "${workspaceFolder}/src/MudBlazor.Docs.Wasm/bin/Debug/net8.0/MudBlazor.Docs.Wasm.dll",
37+
"program": "${workspaceFolder}/src/MudBlazor.Docs.Wasm/bin/Debug/net9.0/MudBlazor.Docs.Wasm.dll",
3838
"cwd": "${workspaceFolder}/src/MudBlazor.Docs.Wasm",
3939
"browser": "edge",
4040
"env": {
@@ -46,7 +46,7 @@
4646
"type": "coreclr",
4747
"request": "launch",
4848
"preLaunchTask": "build",
49-
"program": "${workspaceFolder}/src/MudBlazor.Docs.Server/bin/Debug/net8.0/MudBlazor.Docs.Server.dll",
49+
"program": "${workspaceFolder}/src/MudBlazor.Docs.Server/bin/Debug/net9.0/MudBlazor.Docs.Server.dll",
5050
"cwd": "${workspaceFolder}/src/MudBlazor.Docs.Server",
5151
"stopAtEntry": false,
5252
"serverReadyAction": {

.vscode/tasks.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"problemMatcher": []
7474
},
7575
{
76-
"label": "compile docs",
76+
"label": "docs generator",
7777
"command": "dotnet",
7878
"type": "shell",
7979
"args": [

CHANGELOG.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
# MudBlazor Changelog
22

3-
## Please refer to github releases
4-
5-
https://github.com/MudBlazor/MudBlazor/releases
3+
Find an up-to-date summary of changes from each version on the [Releases page](https://github.com/MudBlazor/MudBlazor/releases).

CONTRIBUTING.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,12 @@ cs files start with an underscore.
434434

435435
### Continuous Integration
436436

437-
We have an Azure DevOps pipeline which will automatically execute the entire
438-
test suite on all pushes and PRs. If your commit or PR breaks the tests
439-
you'll be notified.
437+
We have a GitHub action which runs against all Pull Requests.
438+
439+
It performs the following checks.
440+
- Builds the project.
441+
- Runs the test suite.
442+
- Checks the code coverage.
443+
- Checks the code quality.
444+
445+
We generally require all these checks to pass before merging contributions.

MIGRATION.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## Migration Guide: Overview
2+
Welcome to the MudBlazor Migration Guide for upgrading your project to newer versions. This guide provides essential information to help you transition smoothly to the latest version of MudBlazor.
3+
4+
Each release might include new features, improvements, bug fixes, and, in some cases, breaking changes. To ensure you can adopt the new version without issues, we have outlined the necessary steps and linked to detailed migration instructions for specific releases.
5+
6+
#
7+
8+
### How to Use This Guide
9+
- Identify Your Current Version
10+
* Before starting, confirm which version you are upgrading from.
11+
- Follow the Version-Specific Guide
12+
* Each release has a dedicated GitHub issue containing all the details for migrating.
13+
* If you're upgrading across multiple versions, follow each guide sequentially, starting from your current version and progressing to the latest.
14+
- Address Breaking Changes
15+
* Pay attention to any breaking changes or deprecated features listed for the target version.
16+
17+
#
18+
19+
### Migration Guides by Version
20+
#### v7.0.0
21+
- [Migration Guide](https://github.com/MudBlazor/MudBlazor/issues/8447)
22+
- [Feedback/Discussion](https://github.com/MudBlazor/MudBlazor/discussions/8976)
23+
#### v8.0.0
24+
- [Migration Guide](https://github.com/MudBlazor/MudBlazor/issues/9953)
25+
- [Feedback/Discussion](https://github.com/MudBlazor/MudBlazor/discussions/10003)

README.md

+33-21
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
# Material Design components for Blazor
1010
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/mudblazor/mudblazor/build-test-mudblazor.yml?branch=dev&logo=github&style=flat-square)
1111
[![Codecov](https://img.shields.io/codecov/c/github/MudBlazor/MudBlazor)](https://app.codecov.io/github/MudBlazor/MudBlazor)
12+
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=MudBlazor_MudBlazor&metric=alert_status)](https://sonarcloud.io/summary/overall?id=MudBlazor_MudBlazor)
1213
[![GitHub](https://img.shields.io/github/license/mudblazor/mudblazor?color=594ae2&logo=github&style=flat-square)](https://github.com/mudblazor/MudBlazor/blob/master/LICENSE)
1314
[![GitHub Repo stars](https://img.shields.io/github/stars/mudblazor/mudblazor?color=594ae2&style=flat-square&logo=github)](https://github.com/mudblazor/MudBlazor/stargazers)
1415
[![GitHub last commit](https://img.shields.io/github/last-commit/mudblazor/mudblazor?color=594ae2&style=flat-square&logo=github)](https://github.com/mudblazor/mudblazor)
@@ -25,7 +26,7 @@ MudBlazor is an ambitious Material Design component framework for Blazor with an
2526
- [MudBlazor.com](https://mudblazor.com)
2627
- [Try.MudBlazor.com](https://try.mudblazor.com/)
2728

28-
### Why is MudBlazor so successful?
29+
## Why is MudBlazor so successful?
2930
- Clean and aesthetic graphic design based on Material Design.
3031
- Clear and easy to understand structure.
3132
- Good documentation with many examples and source snippets.
@@ -40,14 +41,17 @@ MudBlazor is an ambitious Material Design component framework for Blazor with an
4041
| :--- | :---: | :---: |
4142
| 1.x.x - 2.0.x | .NET 3.1 | Ended 03/2021 |
4243
| 5.x.x | .NET 5 | Ended 01/2022 |
43-
| 6.x.x | [.NET 6](https://dotnet.microsoft.com/download/dotnet/6.0), [.NET 7](https://dotnet.microsoft.com/download/dotnet/7.0), [.NET 8](https://dotnet.microsoft.com/download/dotnet/8.0) | :heavy_check_mark: |
44-
| 7.x.x | [.NET 7](https://dotnet.microsoft.com/download/dotnet/7.0), [.NET 8](https://dotnet.microsoft.com/download/dotnet/8.0) | :heavy_check_mark: |
44+
| 6.x.x | [.NET 6](https://dotnet.microsoft.com/download/dotnet/6.0), [.NET 7](https://dotnet.microsoft.com/download/dotnet/7.0), [.NET 8](https://dotnet.microsoft.com/download/dotnet/8.0) | Ended 01/2025 |
45+
| 7.x.x | [.NET 7](https://dotnet.microsoft.com/download/dotnet/7.0), [.NET 8](https://dotnet.microsoft.com/download/dotnet/8.0) | Limited |
46+
| 8.x.x | [.NET 8](https://dotnet.microsoft.com/download/dotnet/8.0), [.NET 9](https://dotnet.microsoft.com/download/dotnet/9.0) | :heavy_check_mark: |
4547

46-
:information_source: Currently only interactive rendering modes are supported - [Learn more](https://learn.microsoft.com/aspnet/core/blazor/components/render-modes).
48+
> [!TIP]
49+
> If you're updating to a newer version of MudBlazor, make sure to check out the [Migration Guide](https://github.com/MudBlazor/MudBlazor/blob/dev/MIGRATION.md) for detailed instructions on handling breaking changes and new features.
4750
48-
:warning: Blazor only supports [current browser versions](https://learn.microsoft.com/aspnet/core/blazor/supported-platforms).
49-
To ensure a seamless experience with MudBlazor, please use an up-to-date web browser.
50-
If a browser version is no longer maintained by its publisher, we cannot guarantee compatibility with MudBlazor.
51+
> [!WARNING]
52+
> 1. Static rendering is not supported - [Learn more](https://learn.microsoft.com/aspnet/core/blazor/components/render-modes).
53+
> 2. We cannot guarantee compatibility with browsers no longer maintained by their publishers.
54+
For the best experience, use an up-to-date browser - See [Blazor supported platforms](https://learn.microsoft.com/aspnet/core/blazor/supported-platforms).
5155

5256
## Stats
5357
![Alt](https://repobeats.axiom.co/api/embed/db53a44092e88fc34a4c0f37db12773b6787ec7e.svg "Repobeats analytics image")
@@ -63,8 +67,9 @@ Please note there is no guarantee your PR will be merged, so if you want to be s
6367
Check out the [contribution guidelines](/CONTRIBUTING.md) to understand our goals and learn more about the internals of the project.
6468

6569
## Getting Started
66-
Full installation instructions can be found [on our website](https://mudblazor.com/getting-started/installation).
67-
Alternatively use one of our templates from the [MudBlazor.Templates](https://github.com/mudblazor/Templates) repo.
70+
We have premade templates available at the [MudBlazor.Templates](https://github.com/mudblazor/Templates) repository.
71+
72+
Full installation instructions can be found [on our website](https://mudblazor.com/getting-started/installation).
6873

6974
### Quick Installation Guide
7075
Install Package
@@ -102,19 +107,26 @@ builder.Services.AddMudServices();
102107

103108
### Usage
104109
```razor
105-
<MudText Typo="Typo.h6">MudBlazor is @Text</MudText>
106-
<MudButton Variant="Variant.Filled" Color="Color.Primary" OnClick="ButtonOnClick">@ButtonText</MudButton>
110+
<MudText Typo="Typo.h6">
111+
MudBlazor is @Text
112+
</MudText>
113+
114+
<MudButton Variant="Variant.Filled"
115+
Color="Color.Primary"
116+
OnClick="ButtonOnClick">
117+
@ButtonText
118+
</MudButton>
107119
108120
@code {
109-
public string Text { get; set; } = "????";
110-
public string ButtonText { get; set; } = "Click Me";
111-
public int ButtonClicked { get; set; }
112-
113-
void ButtonOnClick()
114-
{
115-
ButtonClicked += 1;
116-
Text = $"Awesome x {ButtonClicked}";
117-
ButtonText = "Click Me Again";
118-
}
121+
string Text { get; set; } = "????";
122+
string ButtonText { get; set; } = "Click Me";
123+
int ClickCount { get; set; }
124+
125+
void ButtonOnClick()
126+
{
127+
ClickCount += 1;
128+
Text = $"Awesome x {ClickCount}";
129+
ButtonText = "Click Me Again";
130+
}
119131
}
120132
```

ROADMAP.md

+33-21
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,48 @@
11
# MudBlazor Roadmap
22

3-
MudBlazor is growing, with a significant reduction in the number of bugs.
4-
We remain committed to maintaining and improving the project, but as a non-commercial project we rely heavily on community contributions.
5-
We try to review and merge important bug fixes as soon as possible, so if your bug-fix pull request (PR) is overlooked, please tag a team member.
3+
MudBlazor continues to thrive with millions of downloads on [NuGet](https://www.nuget.org/packages/MudBlazor/) and thousands of members on [Discord](https://discord.gg/mudblazor).
64

7-
## .NET Versions
5+
With the recent release of v7, and now v8, we've made significant progress in ensuring the library remains healthy and robust.
6+
Not only have we introduced countless new features and bug fixes, but we've built a more stable foundation for future development, allowing us to continue moving the project forward to meet the needs of the community.
87

9-
We fully support both .NET 7 and .NET 8, and our top priority is to continue supporting upcoming .NET versions.
8+
## Migration
109

11-
## Breaking Changes
10+
### .NET Lifecycle
1211

13-
We avoided breaking changes for a very long time and have now finally merged several of them and removed all obsolete APIs from v6 in the move to v7.
14-
Please view the [v7.0.0 Migration Guide](https://github.com/MudBlazor/MudBlazor/issues/8447) to get an idea of what changes you will have to make in your projects.
12+
Builds are no longer provided for .NET 6 or .NET 7.
13+
This change aligns with Microsoft's [.NET support policies](https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core) and lets us focus on providing the best support for newer editions.
1514

16-
We may make further breaking changes in the future, but we will try to keep them to a minimum and provide a migration guide for each major release.
15+
Update your SDK to .NET 8 or .NET 9 to get the latest packages.
1716

18-
For those unable to immediately upgrade their projects to v7:
19-
We will maintain v6.x for some time, largely relying on community contributions for bug fixes and backports.
17+
### MudBlazor Lifecycle
2018

21-
## Looking Ahead
19+
**v8:**
20+
This is the current recommended version and all new features and development effort will be directed here.
21+
22+
**v7:**
23+
We will continue to accept bugfixes from the community for v7 but no new features will be introduced and we won't accept any requests.
24+
25+
**v6:**
26+
Support for v6 ended 01/2025 and no new patches will be released.
2227

23-
Right now we are focused on getting v7 stable and bug-free.
24-
After v7 has settled we will start proper work on v8.
25-
You can find our current plans on the [v8 project board](https://github.com/orgs/MudBlazor/projects/3).
26-
There is no ETA currently, but we aim to have more regular major releases with less breaking changes in the future.
28+
### Migrating from a Previous Version
2729

28-
Understand that our team members contribute to this project during their personal free time, so please don't expect the team to fix bugs for you.
29-
It's not feasible for us to offer free support to everyone, but we do our best to review and merge your PRs.
30-
That being said, we feel responsible for MudBlazor and intend to keep it going for the foreseeable future at a sustainable cost of free time by merging important bug fixes and new features if they enhance the project.
30+
The release of v7 addressed several long-standing needs for breaking changes and our goal for v8 is to build on that success while ensuring a smoother transition.
3131

32-
Please keep giving us your ideas so we can consider them for upcoming versions!
32+
For help with migrating to a new version, please refer to the [v7.0.0 Migration Guide](https://github.com/MudBlazor/MudBlazor/issues/8447) or [v8.0.0 Migration Guide](https://github.com/MudBlazor/MudBlazor/issues/9953).
33+
In addition we've created a [built-in analyzer](https://mudblazor.com/features/analyzers) that identifies parameters that have been removed or renamed.
34+
35+
## Looking Ahead
36+
37+
We are passionate about improving the library but can't make firm promises about release timelines or specific features as the MudBlazor team is made up of volunteers who contribute to the project in their personal time.
38+
39+
Our goal is to keep MudBlazor stable, performant, and evolving with thoughtful enhancements, but the pace of development depends on the availability of contributors.
40+
We appreciate your support as we continue to work on keeping MudBlazor the premiere UI library for Blazor.
3341

3442
## Get Involved
3543

36-
Contributions from the community are what makes MudBlazor successful. If you are proficient in technologies such as C#, Blazor, JavaScript, or CSS, and you wish to give something back, please contact the team [on Discord](https://discord.gg/mudblazor)! You can join our Contribution Team channel and discuss with other team members what you want to do to help and start making a difference on this very roadmap.
44+
MudBlazor thrives thanks to our amazing community. Whether you specialize in C#, Blazor, JavaScript, CSS, documentation, testing, or design, your help is always welcome.
45+
46+
If you’re interested in contributing, please check out [our contribution guidelines](https://github.com/MudBlazor/MudBlazor/blob/dev/CONTRIBUTING.md) to get started.
47+
48+
You can also open an issue, start a discussion, or tag a member of the team in relevant GitHub issues to collaborate with us.

0 commit comments

Comments
 (0)