Skip to content

Commit 50dad47

Browse files
authored
Merge pull request #162 from Blazorade/release/v1.0
Release/v1.0
2 parents a3022e8 + a0b6447 commit 50dad47

26 files changed

+47
-160
lines changed

Blazorade.Bootstrap.Components/Alert.razor.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77

88
namespace Blazorade.Bootstrap.Components
99
{
10+
/// <summary>
11+
/// The Alert component is used to provide feedback messages, typically in response to user actions.
12+
/// </summary>
13+
/// <remarks>
14+
/// For details see https://github.com/Blazorade/Blazorade-Bootstrap/wiki/Alert
15+
/// </remarks>
1016
public partial class Alert
1117
{
1218

@@ -70,7 +76,7 @@ public async Task DismissAsync()
7076
throw new InvalidOperationException("Cannot dismiss an Alert if the IsDismissible property is false.");
7177
}
7278

73-
await this.JsInterop.Alert().DismissAsync(this.Id);
79+
await this.JsInterop.InvokeVoidAsync(JsFunctions.Alert.Dismiss, $"#{this.Id}");
7480
}
7581

7682

Blazorade.Bootstrap.Components/AlertLink.razor.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
namespace Blazorade.Bootstrap.Components
66
{
7+
/// <summary>
8+
/// This component can be used inside of Alert components to provide link colors matching with the parent Alert component.
9+
/// </summary>
10+
/// <remarks>
11+
/// For details see https://github.com/Blazorade/Blazorade-Bootstrap/wiki/AlertLink
12+
/// </remarks>
713
public partial class AlertLink
814
{
915
protected override void OnParametersSet()

Blazorade.Bootstrap.Components/Badge.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace Blazorade.Bootstrap.Components
1111
/// The base class for the <see cref="Badge"/> component.
1212
/// </summary>
1313
/// <remarks>
14-
/// For details see <see cref="https://github.com/MikaBerglund/Blazor-Bootstrap/wiki/Badge"/>
14+
/// For details see https://github.com/MikaBerglund/Blazor-Bootstrap/wiki/Badge
1515
/// </remarks>
1616
public partial class Badge
1717
{

Blazorade.Bootstrap.Components/Blazorade.Bootstrap.Components.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>netstandard2.1</TargetFramework>
55
<RazorLangVersion>3.0</RazorLangVersion>
66
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
7-
<Version>1.0.0-rc2</Version>
7+
<Version>1.0.0-rc3</Version>
88
<Authors>Mika Berglund</Authors>
99
<Company>Blazorade</Company>
1010
<Product>Blazorade Bootstrap</Product>

Blazorade.Bootstrap.Components/Blazorade.Bootstrap.Components.xml

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Blazorade.Bootstrap.Components/BootstrapComponentBase.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ namespace Blazorade.Bootstrap.Components
1212
/// <summary>
1313
/// Base implementation for all Blazor Boostrap components.
1414
/// </summary>
15+
/// <remarks>
16+
/// For details see https://github.com/Blazorade/Blazorade-Bootstrap/wiki/BootstrapComponentBase
17+
/// </remarks>
1518
public abstract class BootstrapComponentBase : Blazorade.Core.Components.BlazoradeComponentBase
1619
{
1720

Blazorade.Bootstrap.Components/Collapse.razor.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void Hide()
5050
/// </summary>
5151
public async Task HideAsync()
5252
{
53-
await this.JsInterop.Collapse().HideAsync(this.Id);
53+
await this.JsInterop.InvokeVoidAsync(JsFunctions.Collapse.Hide, $"#{this.Id}");
5454
}
5555

5656
/// <summary>
@@ -66,7 +66,7 @@ public void Show()
6666
/// </summary>
6767
public async Task ShowAsync()
6868
{
69-
await this.JsInterop.Collapse().ShowAsync(this.Id);
69+
await this.JsInterop.InvokeVoidAsync(JsFunctions.Collapse.Show, $"#{this.Id}");
7070
}
7171

7272
/// <summary>
@@ -82,7 +82,7 @@ public void Toggle()
8282
/// </summary>
8383
public async Task ToggleAsync()
8484
{
85-
await this.JsInterop.Collapse().ToggleAsync(this.Id);
85+
await this.JsInterop.InvokeVoidAsync(JsFunctions.Collapse.Toggle, $"#{this.Id}");
8686
}
8787

8888

Blazorade.Bootstrap.Components/ExtensionMethods.cs

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using Blazorade.Bootstrap.Components.JSInterop;
2-
using Microsoft.JSInterop;
1+
using Microsoft.JSInterop;
32
using System;
43
using System.Collections.Generic;
54
using System.Linq;
@@ -15,24 +14,6 @@ namespace Blazorade.Bootstrap.Components
1514
public static class ExtensionMethods
1615
{
1716

18-
/// <summary>
19-
/// Returns the interop implementation for <see cref="Components.Alert"/>.
20-
/// </summary>
21-
public static AlertInterop Alert(this IJSRuntime jsInterop)
22-
{
23-
return new AlertInterop(jsInterop);
24-
}
25-
26-
/// <summary>
27-
/// Returns the interop implementation for <see cref="Components.Collapse"/>.
28-
/// </summary>
29-
/// <param name="jsInterop"></param>
30-
/// <returns></returns>
31-
public static CollapseInterop Collapse(this IJSRuntime jsInterop)
32-
{
33-
return new CollapseInterop(jsInterop);
34-
}
35-
3617
/// <summary>
3718
/// Assumes the input is a string where each word starts with a capital letter. Breaks up the string into the separate words.
3819
/// </summary>
@@ -100,15 +81,5 @@ public static async Task RegisterEventCallbackAsync(this IJSRuntime jsInterop, s
10081
await jsInterop.InvokeVoidAsync(JsFunctions.RegisterEventCallback, $"#{id}", eventName, DotNetObjectReference.Create(callbackTarget), callbackMethodName, singleEvent, callbackParameters);
10182
}
10283

103-
/// <summary>
104-
/// Returns the interop implementation for <see cref="Components.Toast"/>.
105-
/// </summary>
106-
/// <param name="jsInterop"></param>
107-
/// <returns></returns>
108-
public static ToastInterop Toast(this IJSRuntime jsInterop)
109-
{
110-
return new ToastInterop(jsInterop);
111-
}
112-
11384
}
11485
}

Blazorade.Bootstrap.Components/JSInterop/AlertInterop.cs

Lines changed: 0 additions & 19 deletions
This file was deleted.

Blazorade.Bootstrap.Components/JSInterop/CollapseInterop.cs

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)