Skip to content

Commit

Permalink
3.0.0-preview.1 release updates (#744)
Browse files Browse the repository at this point in the history
  • Loading branch information
gvreddy04 authored Jun 7, 2024
1 parent 242417e commit 3851f6c
Show file tree
Hide file tree
Showing 22 changed files with 98 additions and 25 deletions.
4 changes: 2 additions & 2 deletions BlazorBootstrap.Demo.Hosted/Client/wwwroot/appsettings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": "2.2.1",
"version": "3.0.0-preview.1",
"release": {
"short_description": "Confirm Dialog, Grid Updates, and Demo Projects Upgraded to .NET 8!!!"
"short_description": "Grid, Modal, Sidebar, Sidebar2 updates, and other improvements!!!"
},
"urls": {
"docs": "//docs.blazorbootstrap.com/docs/getting-started/blazor-webassembly",
Expand Down
4 changes: 2 additions & 2 deletions BlazorBootstrap.Demo.Server/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
}
},
"AllowedHosts": "*",
"version": "2.2.1",
"version": "3.0.0-preview.1",
"release": {
"short_description": "Confirm Dialog, Grid Updates, and Demo Projects Upgraded to .NET 8!!!"
"short_description": "Grid, Modal, Sidebar, Sidebar2 updates, and other improvements!!!"
},
"urls": {
"docs": "//docs.blazorbootstrap.com/getting-started/blazor-webassembly-net-8",
Expand Down
4 changes: 2 additions & 2 deletions BlazorBootstrap.Demo.WebAssembly/wwwroot/appsettings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": "2.2.1",
"version": "3.0.0-preview.1",
"release": {
"short_description": "Confirm Dialog, Grid Updates, and Demo Projects Upgraded to .NET 8!!!"
"short_description": "Grid, Modal, Sidebar, Sidebar2 updates, and other improvements!!!"
},
"urls": {
"docs": "//docs.blazorbootstrap.com/getting-started/blazor-webassembly-net-8",
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

## Install

Install with [NuGet](https://www.nuget.org/): `Install-Package Blazor.Bootstrap -Version 2.2.1`
Install with [NuGet](https://www.nuget.org/): `Install-Package Blazor.Bootstrap -Version 3.0.0-preview.1`

## Install Blazor Bootstrap templates

Expand Down
4 changes: 2 additions & 2 deletions blazorbootstrap/BlazorBootstrap.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<PropertyGroup>

<PackageId>Blazor.Bootstrap</PackageId>
<Version>2.2.1</Version>
<PackageVersion>2.2.1</PackageVersion>
<Version>3.0.0-preview.1</Version>
<PackageVersion>3.0.0-preview.1</PackageVersion>

<!--<PackageIconUrl></PackageIconUrl>-->
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
Expand Down
4 changes: 2 additions & 2 deletions blazorbootstrap/Components/Sidebar/Sidebar.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ private string GetNavMenuCssClass()
/// Gets or sets the Href.
/// </summary>
/// <remarks>
/// Default value is null.
/// Default value is <see cref="string.Empty" />.
/// </remarks>
[Parameter]
public string? Href { get; set; }
public string? Href { get; set; } = string.Empty;

/// <summary>
/// Gets or sets the IconName.
Expand Down
4 changes: 2 additions & 2 deletions blazorbootstrap/Components/Sidebar2/Sidebar2.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,10 @@ private string GetNavMenuCssClass()
/// Gets or sets the Href.
/// </summary>
/// <remarks>
/// Default value is null.
/// Default value is <see cref="string.Empty" />.
/// </remarks>
[Parameter]
public string? Href { get; set; }
public string? Href { get; set; } = string.Empty;

/// <summary>
/// Gets or sets the IconName.
Expand Down
71 changes: 71 additions & 0 deletions docs/blog/2024-05-24-blazorbootstrap-3.0.0-preview.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
---
title: Blazor Bootstrap v3.0.0
authors:
name: Vikram Reddy
title: Creator
url: https://github.com/gvreddy04
image_url: https://avatars.githubusercontent.com/u/2337067
tags: [v3.0.0, blazor, bootstrap, blazorbootstrap, accordion, button, callout, dropdown, grid, modal, ribbon, tab, sidebar, sidebar2]
---

We are excited to release version 3.0.0, which includes a Grid, Modal, Sidebar, Sidebar2 updates, and other improvements!!!

![image](https://i.imgur.com/XG4Wv17.png "Blazor Bootstrap: Grid Component - Column class")

<!--truncate-->

## What's changed

- `Grid` component
- New parameter **FilterButtonColor** added to change the filter button color.
- New parameter **FilterButtonCSSClass** added to apply custom CSS classes.
- Grid filters - Supports `DoesNotContain` filter.
- Grid filters - **Enum** support added.
- Grid filters - **Guid** support added.

- `Modal` component
- Bootstrtap 5.3.3 fixes: Modal close button alignment issue fixed.

- `Sidebar` component
- **Href** parameter added.

- `Sidebar2` component
- **Href** parameter added.

- BlazorBootstrtap component library targets .NET 6 and .NET 8 frameworks.

- Demos & Docs updated.

## Breaking changes

- `AccordionItem`
- **IsActive** parameter renamed to **Active**.

- `Button`
- **Size**'s parameter data type changed from **Size** to **ButtonSize**.

- `Callout`
- **Type** parameter changed to **Color**.

- `Dropdown`
- Set the dropdown color on `Dropdown` component only instead of setting on the `DropdownActionButton` and `DropdownToggleButton`.
- **Size**'s parameter data type changed from **Size** to **DropdownSize**.

- `DropdownActionButton`
- **Color** parameter removed.

- `DropdownToggleButton`
- **Color** parameter removed.

- `DropdownItem`
- **Type**'s parameter data type changed from **ButtonType** to **DropdownItemType**.

- `RibbonTab`
- **IsActive** parameter renamed to **Active**.

- `Tab`
- **IsActive** parameter renamed to **Active**.

## Links
- [Demo Website - Blazor Server](https://demos.blazorbootstrap.com/)
- [Demo Website - Blazor WebAssembly](https://demos.getblazorbootstrap.com/)
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Get started with the Enterprise-class Blazor Bootstrap Component library built o
Looking to quickly add **Blazor Bootstrap** to your project? Use NuGet package manager.

```shell
Install-Package Blazor.Bootstrap -Version 2.2.1
Install-Package Blazor.Bootstrap -Version 3.0.0-preview.1
```

## Add CSS references
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Get started with the Enterprise-class Blazor Bootstrap Component library built o
Looking to quickly add **Blazor Bootstrap** to your project? Use NuGet package manager.

```shell
Install-Package Blazor.Bootstrap -Version 2.2.1
Install-Package Blazor.Bootstrap -Version 3.0.0-preview.1
```

## Add CSS references
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Get started with the Enterprise-class Blazor Bootstrap Component library built o
Use NuGet package manager.

```shell
Install-Package Blazor.Bootstrap -Version 2.2.1
Install-Package Blazor.Bootstrap -Version 3.0.0-preview.1
```

### Add CSS references
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Get started with the Enterprise-class Blazor Bootstrap Component library built o
Looking to quickly add **Blazor Bootstrap** to your project? Use NuGet package manager.

```shell
Install-Package Blazor.Bootstrap -Version 2.2.1
Install-Package Blazor.Bootstrap -Version 3.0.0-preview.1
```

## Add CSS references
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Get started with the Enterprise-class Blazor Bootstrap Component library built o
Looking to quickly add **Blazor Bootstrap** to your project? Use NuGet package manager.

```shell
Install-Package Blazor.Bootstrap -Version 2.2.1
Install-Package Blazor.Bootstrap -Version 3.0.0-preview.1
```

## Add CSS references
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Get started with the Enterprise-class Blazor Bootstrap Component library built o
Looking to quickly add **Blazor Bootstrap** to your project? Use NuGet package manager.

```shell
Install-Package Blazor.Bootstrap -Version 2.2.1
Install-Package Blazor.Bootstrap -Version 3.0.0-preview.1
```

## Add CSS references
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Get started with the Enterprise-class Blazor Bootstrap Component library built o
Looking to quickly add **Blazor Bootstrap** to your project? Use NuGet package manager.

```shell
Install-Package Blazor.Bootstrap -Version 2.2.1
Install-Package Blazor.Bootstrap -Version 3.0.0-preview.1
```

## Add CSS references
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Get started with the Enterprise-class Blazor Bootstrap Component library built o
Looking to quickly add **Blazor Bootstrap** to your project? Use NuGet package manager.

```shell
Install-Package Blazor.Bootstrap -Version 2.2.1
Install-Package Blazor.Bootstrap -Version 3.0.0-preview.1
```

## Add CSS references
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Get started with the Enterprise-class Blazor Bootstrap Component library built o
Looking to quickly add **Blazor Bootstrap** to your project? Use NuGet package manager.

```shell
Install-Package Blazor.Bootstrap -Version 2.2.1
Install-Package Blazor.Bootstrap -Version 3.0.0-preview.1
```

## Add CSS references
Expand Down
1 change: 1 addition & 0 deletions docs/docs/02-layout/getting-started-server.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Remove all the CSS content from the **Shared/MainLayout.razor.css** file.
<div class="bb-page">
<Sidebar @ref="sidebar"
Href="/"
IconName="IconName.BootstrapFill"
Title="Blazor Bootstrap"
DataProvider="SidebarDataProvider" />
Expand Down
1 change: 1 addition & 0 deletions docs/docs/02-layout/getting-started-webassembly.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Remove all the CSS content from the **Shared/MainLayout.razor.css** file.
<div class="bb-page">
<Sidebar @ref="sidebar"
Href="/"
IconName="IconName.BootstrapFill"
Title="Blazor Bootstrap"
DataProvider="SidebarDataProvider" />
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/05-components/sidebar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Use the Blazor Bootstrap Sidebar component to show consistent cross-browser, res
| BadgeText | `string?` | null | | Gets or sets the badge text. | 1.4.0 |
| CustomIconName | `string?` | null | | Gets or sets the custom icon name. | 1.4.0 |
| DataProvider | `SidebarDataProviderDelegate` | null | ✔️ | Gets or sets the data provider. | 1.4.0 |
| Href | `string?` | null | | Gets or sets the Href. | 3.0.0 |
| Href | `string?` | `string.Empty` | | Gets or sets the Href. | 3.0.0 |
| IconName | `IconName` | `IconName.None` | | Gets or sets the IconName. | 1.4.0 |
| ImageSrc | `string?` | null | | Gets or sets the sidebar logo. | 1.4.0 |
| Title | `string?` | null | ✔️ | Gets or sets the sidebar title. | 1.4.0 |
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/05-components/sidebar2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Use the Blazor Bootstrap Sidebar2 component to display consistent, cross-browser
| BadgeText | `string?` | null | | Gets or sets the badge text. | 2.1.0 |
| CustomIconName | `string?` | null | | Gets or sets the custom icon name. | 2.1.0 |
| DataProvider | `Sidebar2DataProviderDelegate?` | | ✔️ | Gets or sets the data provider. | 2.1.0 |
| Href | `string?` | null | | Gets or sets the Href. | 3.0.0 |
| Href | `string?` | `string.Empty` | | Gets or sets the Href. | 3.0.0 |
| IconName | `IconName` | `IconName.None` | | Gets or sets the IconName. | 2.1.0 |
| ImageSrc | `string?` | null | | Gets or sets the logo. | 2.1.0 |
| Title | `string?` | null | ✔️ | Gets or sets the title. | 2.1.0 |
Expand Down
2 changes: 1 addition & 1 deletion nuget/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
Get started any way you want

- Clone the repo: `git clone https://github.com/vikramlearning/blazorbootstrap.git`
- Install with [NuGet](https://www.nuget.org/): `Install-Package Blazor.Bootstrap -Version 2.2.1`
- Install with [NuGet](https://www.nuget.org/): `Install-Package Blazor.Bootstrap -Version 3.0.0-preview.1`
- Install [Blazor Bootstrap templates](https://github.com/vikramlearning/blazorbootstrap-project-templates) with **.NET CLI**: `dotnet new install Blazor.Bootstrap.Templates::1.10.0`

![image](https://user-images.githubusercontent.com/2337067/233800604-43986ae7-27dd-4f17-9af6-c2f1a6f07097.png)
Expand Down

0 comments on commit 3851f6c

Please sign in to comment.