BlazorStrap

Bootstrap 4 Components for Blazor Framework

UNLICENSE License

Stars
916
Committers
56

Bot releases are visible (Hide)

BlazorStrap - 5.2.102-Preview3 Latest Release

Published by jbomhold3 about 1 month ago

Adds Confirmation options to BSModal and BSPopover

! Soft breaking change BSPopover Content now has a context you may need to rename it.

BlazorStrap - 5.2.102-Preview1

Published by jbomhold3 2 months ago

Adds support for Static Forms

BlazorStrap - 5.2.101

Published by jbomhold3 2 months ago

Fixes #613
Fixes BSModal ignored ContentAlwaysRendered after you closed it once.

BlazorStrap - 5.2.100

Published by jbomhold3 4 months ago

Warning: Contains breaking changes for Interop if you were calling it directly moved to IBlazorStrap.JavascriptInterop

Warning: Contains breaking changes for ThemeSwitcher now takes an Enum of the default themes or URI to the CSS file.

Changes:

  • Rewritten: Interop was completely replaced.
  • Adds: IsMouseOver to drop downs.
  • Changes: Tooltips, Popovers, Modals, OffCanvas will no longer render on the page unless opened by default.

Default behavior changes

  • Modals, OffCanvas, Poppover, Toolips. No longer render HTML until open. Change ContentAlwaysRendered =true if you do not want this behavior.

Fixes

  • IsMouseOver for dropdowns
  • Width was not removed from Horizontal Collapse
  • Removes a rogue Console.Writeline

Added

  • Ability to change tab via Data ID from BSNav ref (see docs) (V5.2.100.61524)
  • PopperOptions to BSTooltip, BSPopover, BSDropDown

Steps to update from V5.1.102

  • Remove all references to blazorstrap.js. This is now loaded in as a module
  • In your MainLayout, unless required to be placed in a specific location with your template. Remove <BSToaster/>
  • In your MainLayout after @Body add <BSCore/>. Use <BSCore HasToaster="false" /> instead if your keeping <BSToaster/>

Note. is also responsible for rendering the backdrop now. If omitted, the backdrop will not be shown. BSCore also preloads the javascript module so it's ready when called by components.

BlazorStrap - V5.2.100-Preview3

Published by jbomhold3 over 1 year ago

Warning: Contains breaking changes for Interop if you were calling it directly moved to IBlazorStrap.JavascriptInterop
Warning: Contains breaking changes for ThemeSwitcher now takes an Enum of the default themes or URI to the CSS file.

While this is still a preview release, it should be stable and able to be used in production. Committing your code before updating and testing after the update is always highly recommended.

Minor Update BlazorStrap 5.2.100-Preview3a

  • Fixes placeholder logic in BSImage

Default behavior changes

  • Modals, OffCanvas, Poppover, Toolips. No longer render HTML until open. Change ContentAlwaysRendered =true if you do not want this behavior.

Fixes

  • IsMouseOver for dropdowns
  • Width was not removed from Horizontal Collapse
  • Removes a rogue Console.Writeline

Added

  • PopperOptions to BSTooltip, BSPopover, BSDropDown

Steps to update from V5.1.102

  • Remove all references to blazorstrap.js. This is now loaded in as a module
  • In your MainLayout, unless required to be placed in a specific location with your template. Remove <BSToaster/>
  • In your MainLayout after @Body add <BSCore/>. Use <BSCore HasToaster="false" /> instead if your keeping <BSToaster/>
BlazorStrap - V5.2.100-Preview1

Published by jbomhold3 over 1 year ago

Warning: Contains breaking changes for Interop if you were calling it directly moved to IBlazorStrap.JavascriptInterop
Warning: Contains breaking changes for ThemeSwitcher now takes an Enum of the default themes or URI to the CSS file.
Note: This is the first release with the new interop. Test before using it in production.

To upgrade, remove blazorstrap.js script from _host.cshtml or index.html. Then it's recommended to replace <BSToaster/> with <BSCore/>. Placing it after your @Body in your main layout. If you're placing the toaster, in a specific location use <BSCore HasToaster="false" /> keeping your <BSToaser/> where you like.

Note. is also responsible for rendering the backdrop now. If omitted, the backdrop will not be shown. BSCore also preloads the javascript module so it's ready when called by components.

Changes:

  • Rewritten: Interop was completely replaced.
  • Adds: IsMouseOver to drop downs.
  • Changes: Tooltips, Popovers, Modals, OffCanvas will no longer render on the page unless opened by default.
BlazorStrap - 5.1.102.51723

Published by jbomhold3 over 1 year ago

Minor update completely optional

Adds

  • ContainerClass to BSInputSwitch. @LockTar

    NOTE: BSInputCheckbox uses the same base type as BSInputSwitch if used on BSInputCheckbox it dumps the values into the Class
    parameter.

  • Adds bool/bool? null support for InputType.Switch.

    NOTE:

    <option value="">Null</option>
    <option value="true">True</option>
    <option value="false">False</option>
    
BlazorStrap - BlazorStrap 5.1.102.50923

Published by jbomhold3 over 1 year ago

Fixes Human Error...

https://www.nuget.org/packages/BlazorStrap/5.1.102.50923

First, my apologies. I introduced a deadlock on BSCollapse with last minute fix for a rendering issue. This release fixes that issue.
You only need to update the core package BlazorStrap to this version.
You do not need to update the BlazorStrap.V4/BlazorStrap.V5 from 5.1.102

BlazorStrap - BlazorStrap 5.1.102

Published by jbomhold3 over 1 year ago

Fixes/Changes

  • Fixed an access issue with BSToast collection. Thanks, @EMaderbacher
  • Fixed an issue where context was not shown correctly on BSModal Thanks, @EMaderbacher
  • Fixed a rendering lock issue with BSCollapse. That could cause a race condition with StateHasChanged causing improper display of the element.
  • Added: ModalContentClass to BSModel. ContentClass marked as obsolete to be removed later @EMaderbacher
  • Adds HasIcon for BSToast
  • Adds Invoke to BSNavitem
  • Adds: Adds NoClickEvent to BSPopover to prevent the default javascript click event on the target from being created
  • Adds: Horizontal Collapse to both V4 and V5
  • Performance improvements: for BSModal, BSDropdown, BSOffcanvas on server side.
  • Misc improvements and fixes

https://www.nuget.org/packages/BlazorStrap/5.1.102.50923
https://www.nuget.org/packages/BlazorStrap.V4/5.1.102
https://www.nuget.org/packages/BlazorStrap.V5/5.1.102

BlazorStrap - BlazorStrap 5.1.101

Published by jbomhold3 over 1 year ago

Very Small update.

  • Adds OnValueChange to inputs (testing)
  • Fixed: Ignores case on enum for the current theme.
  • PR #574 Thanks @jonsaich
  • PR #571 Thanks @amunk
BlazorStrap - BlazorStrap 5.1.100

Published by jbomhold3 almost 2 years ago

5.1.100

Warning : BlazorStrap and BlazorStrap.V# packages must be the same version.

Warning : BSModal Content now has a Context it might be necessary to rename it when upgrading.

The following steps will help you upgrade from both existing versions of BlazorStrap.
V5.0 to V5.1

  • Add <PackageReference Include="BlazorStrap.V5" Version="5.1.100" /> to csproj
  • Add @using BlazorStrap.V5 to your _imports.razor

V1 To V5.1
There is no direct upgrade path as some components and parameters have been renamed. However, to get started do the following actions. Assuming you're still targeting Bootstrap 4

  • Add <PackageReference Include="BlazorStrap.V4" Version="5.1.100" /> to csproj
  • Add @using BlazorStrap.V4 to your _imports.razor

Fixes/Changes

  • BSInputCheckbox and BSInputRadio will now trigger EditContext.OnFieldChanged when toggled
  • OnReset now is of type IBSForm.
  • ShowAsync/HideAsync/ToggleAsync now awaits for the animation to complete or timeout before completing the task.
  • ShowAsync/HideAsync/ToggleAsync also has a new event queuing system.

These changes affect the following components

  • BSModal
  • BSOffCanvas
  • BSAccordionItem
  • BSCollapseBase

Adds

  • Reset method to BSForm. This will unmark the form as modified, removing validation messages and resetting the field to the value given when the component was initialized.
  • BSModal/BSForm
    • BSModal now has HideOnSubmit and HideOnValidSubmit parameters. When true BSForm will auto-hide the Modal.
  • BSToaster
    • Adds Position, ZIndex parameters allow you to better control where your toasts are projected. Defaults are now position fixed, 1025
BlazorStrap - 5.1.100-Preview6

Published by jbomhold3 almost 2 years ago

5.1.100-Preview6

Note: This should be the last preview before release.

Warning : BlazorStrap and BlazorStrap.V# packages must be the same version.

The following steps will help you upgrade from both existing versions of BlazorStrap.
V5.0 to V5.1

  • Add <PackageReference Include="BlazorStrap.V5" Version="5.1.100-Preview6" /> to csproj
  • Add @using BlazorStrap.V5 to your _imports.razor

V1 To V5.1
There is no direct upgrade path as some components and parameters have been renamed. However, to get started do the following actions. Assuming you're still targeting Bootstrap 4

  • Add <PackageReference Include="BlazorStrap.V4" Version="5.1.100-Preview6" /> to csproj
  • Add @using BlazorStrap.V4 to your _imports.razor

Warning : BSModal Content now has a Context it might be necessary to rename it you may have to rename it when upgrading.

Fixes/Changes

  • BSInputCheckbox and BSInputRadio will now trigger EditContext.OnFieldChanged when toggled
  • OnReset now is of type IBSForm.
  • ShowAsync/HideAsync/ToggleAsync now awaits for the animation to complete or timeout before completing the task.
  • ShowAsync/HideAsync/ToggleAsync also has a new event queuing system.

These changes affect the following components

  • BSModal
  • BSOffCanvas
  • BSAccordionItem
  • BSCollapseBase

Adds

  • Reset method to BSForm. This will unmark the form as modified, removing validation messages and resetting the field to the value given when the component was initialized.
  • BSModal/BSForm
    • BSModal now has HideOnSubmit and HideOnValidSubmit parameters. When true BSForm will auto-hide the Modal.
  • BSToaster
    • Adds Position, ZIndex parameters allow you to better control where your toasts are projected. Defaults are now position fixed, 1025
BlazorStrap - 5.1.100-Preview5

Published by jbomhold3 almost 2 years ago

5.1.100-Preview5

Fixes/Changes

  • BSModal now uses a new Show/Hide style.
    • Fixes modal getting stuck in odd states.
  • BSOffCanvas now uses the same new Show/Hide style

Adds

BSModal/BSForm

  • BSModal now has HideOnSubmit and HideOnValidSubmit parameters. When true BSForm will auto-hide the Modal.
BlazorStrap - BlazorStrap 5.1.100-Beta2

Published by jbomhold3 about 2 years ago

Docs https://blazorstrap.io/Beta/

  • Change: BSInputCheckbox and BSInputRadio will now trigger EditContext.OnFieldChanged when toggled
  • Change: OnReset now is of type IBSForm.
  • Added: Reset method to BSForm. This will unmark the form as modified, removing validation messages and resetting the field to the value given when the component was initialized.
BlazorStrap - BlazorStrap 5.1.100-Beta1

Published by jbomhold3 about 2 years ago

Docs https://blazorstrap.io/Beta/

New Installs

_Imports.razor

For Bootstrap 4 @using BlazorStrap.V4
For Bootstrap 5 @using BlazorStrap.V5

In _Host.cshtml for server side or index.html for wasm add the following
For bootstrap 4.

  • Head section
    • <link href="_content/BlazorStrap.V4/offcanvas.css" rel="stylesheet" /> or your custom version of it.
    • <link href=yourproject.styles.css" rel="stylesheet">
  • End of Body section
    • <script src="_content/BlazorStrap/popper.min.js"></script>
    • <script src="_content/BlazorStrap/blazorstrap.js"></script>

For bootstrap 5.
In _Host.cshtml for server side or index.html for wasm add the following
For bootstrap 4.

  • Head section
    • <link href=yourproject.styles.css" rel="stylesheet">
  • End of Body section
    • <script src="_content/BlazorStrap/popper.min.js"></script>
    • <script src="_content/BlazorStrap/blazorstrap.js"></script>

Upgrading from BlazorStrap 5.0.x

Change @using BlazorStrap to @using BlazorStrap.V5 in your _Imports.razor
Add package https://www.nuget.org/packages/BlazorStrap.V5/5.1.100-Beta1

Upgrading from BlazorStrap 1.x

There is no direct upgrade path as some components have changed names and/or parameters.
Please follow new install steps to get started.

BlazorStrap - BlazorStrap 5.0.106

Published by jbomhold3 about 2 years ago

BlazorStrap 5.0.106

Fixes

  • BSInput: Int, Long, Double, Float, Decimal. Will no longer throw an exception when conversion fails. Instead, it will throw a validation error.

  • BSFeedback #522

  • BSToaster #520

  • Misc Bug fixes

  • Multi-line feedback will no longer print html as text

  • "A typo in BSTooltip was making it so that after showing and hiding a tooltip, it was not visible but was still intercepting mouse events." #532

  • Ignore duplicate calls to show/hide BSDropDown, BSPopover #529

  • Guttering Issue #524

  • Validation now correctly marks Fields on submit.

Changes

  • Improved support for BlazorServer Side
  • Don't submit when clicking buttons #526
  • EventListener in javascript is now able to clean up dereferenced event listeners.

Adds

  • Callbacks for all necessary Interop
  • BindConverter Exception defense
  • More type support for BSInput #534 / #530
  • BSInputGroup
BlazorStrap - BlazorStrap 5.0.106-Preview3

Published by jbomhold3 over 2 years ago

BlazorStrap 5.0.106-Preview3 (Should be last preview and official release will come out soon.)

Note preview versions are generally safe use and are there just to ensure we didn't create new bugs before release. Adopting these versions helps to prevent bugs getting into official releases. TL;DR please help test if you can so I can get the official release out sooner.

Fixes

  • BSInput: Int, Long, Double, Float, Decimal. Will no longer throw an exception when conversion fails. Instead, it will throw a validation error.

Thanks for the following changes @uecasm really appreciate all the effort and help you have provided.

Fixes

  • Multi-line feedback will no longer print html as text
  • "A typo in BSTooltip was making it so that after showing and hiding a tooltip, it was not visible but was still intercepting mouse events." #532
  • Ignore duplicate calls to show/hide BSDropDown, BSPopover #529
  • Guttering Issue #524

Changes

  • Don't submit when clicking buttons #526

Adds

  • BindConverter Exception defense
  • More type support for BSInput #534 / #530
  • BSInputGroup
BlazorStrap - BlazorStrap 5.0.106-Preview2

Published by jbomhold3 over 2 years ago

BlazorStrap 5.0.106-Preview2

Fixes

  • BSFeedback #522
  • BSToaster #520
  • Misc Bug fixes

Docs

  • Adds XML Documentation to all public facing classes, properties, and methods #518
BlazorStrap - BlazorStrap 5.0.106-Beta1

Published by jbomhold3 over 2 years ago

BlazorStrap 5.0.106-Beta1

  • Improved support for BlazorServer Side
  • Adds Callbacks for all necessary Interop
  • EventListener in javascript is now able to clean up dereferenced event listeners.
  • Validation now correctly marks Fields on submit.
BlazorStrap - BlazorStrap 5.0.105

Published by jbomhold3 over 2 years ago

BlazorStrap 5.0.105

Misc

  • Added: HasCloseButton to BSModal defaults to true Thanks @uecasm
  • Added: Dynamic Support For BSPopover see docs
  • Added: New version of BSDataTable to core.
  • Added: BSDataTableRow #495 Thanks @zandermar18
  • Added: BSSpinner Thanks @JulianDev24
  • Added: Set styles for Modal footer.
  • Fixes: empty footer error #496 Thanks @stepkillah

Changes to BSProgressBar Thanks @uecasm

  • Added: Min parameter
  • Fixes: the width calculation for multiple progress bars
  • Removes: rounding of the width percent

Changes to BSAccordionItem, BSCollapse, BSDropDown, BSModal, BSOffCanvas, BSPopover, BSToast, BSTooltip Thanks @uecasm

  • Adds: RefreshAsync()
  • Change: ShowAsync, HideAsync will no longer fire if the component is already in that state.
  • Shown: Is now public.

Javascript

  • Fixes: JS PeakHeight was resolving before the timeout completed.
  • Change: JS PeakHeight now restores the orginal styles of the element