Skip to content

Commit 7e3a6bf

Browse files
authored
Merge pull request #8654 from bitfoundation/develop
Version 8.11.0 (#8578)
2 parents 11e752d + c6cb0ba commit 7e3a6bf

File tree

782 files changed

+26214
-15078
lines changed

Some content is hidden

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

782 files changed

+26214
-15078
lines changed

.devcontainer/devcontainer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"hostRequirements": {
44
"cpus": 4
55
},
6-
"onCreateCommand": "wget https://download.visualstudio.microsoft.com/download/pr/60218cc4-13eb-41d5-aa0b-5fd5a3fb03b8/6c42bee7c3651b1317b709a27a741362/dotnet-sdk-8.0.303-linux-x64.tar.gz -O $HOME/dotnet.tar.gz && export DOTNET_ROOT=$HOME/.dotnet && mkdir -p \"$DOTNET_ROOT\" && tar zxf $HOME/dotnet.tar.gz -C \"$DOTNET_ROOT\" && export PATH=$DOTNET_ROOT:$DOTNET_ROOT/tools:$PATH && dotnet dev-certs https --trust && find . -type f -name '*.csproj' -exec sed -i 's/Microsoft.NET.Sdk.BlazorWebAssembly/Microsoft.NET.Sdk.Web/g' {} \\;",
6+
"onCreateCommand": "wget https://download.visualstudio.microsoft.com/download/pr/db901b0a-3144-4d07-b8ab-6e7a43e7a791/4d9d1b39b879ad969c6c0ceb6d052381/dotnet-sdk-8.0.401-linux-x64.tar.gz -O $HOME/dotnet.tar.gz && export DOTNET_ROOT=$HOME/.dotnet && mkdir -p \"$DOTNET_ROOT\" && tar zxf $HOME/dotnet.tar.gz -C \"$DOTNET_ROOT\" && export PATH=$DOTNET_ROOT:$DOTNET_ROOT/tools:$PATH && dotnet dev-certs https --trust && find . -type f -name '*.csproj' -exec sed -i 's/Microsoft.NET.Sdk.BlazorWebAssembly/Microsoft.NET.Sdk.Web/g' {} \\;",
77
"waitFor": "onCreateCommand",
88
"customizations": {
99
"codespaces": {

.github/workflows/admin-sample.cd.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ jobs:
5151
node-version: 20
5252

5353
- name: Install wasm
54-
run: cd src && dotnet workload install wasm-tools wasm-experimental
54+
run: cd src && dotnet workload install wasm-tools
5555

5656
- name: Configure app render mode
5757
run: |
58-
sed -i 's/Auto;/BlazorWebAssembly;/g' AdminPanel/src/Client/AdminPanel.Client.Core/Services/AppRenderMode.cs
58+
sed -i 's/BlazorAuto;/BlazorWebAssembly;/g' AdminPanel/src/Client/AdminPanel.Client.Core/Services/AppRenderMode.cs
5959
6060
- name: Generate CSS/JS files
6161
run: dotnet build AdminPanel/src/Client/AdminPanel.Client.Core/AdminPanel.Client.Core.csproj -t:BeforeBuildTasks -p:Version="${{ vars.APPLICATION_DISPLAY_VERSION}}" --no-restore -c Release
@@ -178,7 +178,7 @@ jobs:
178178
echo A | xcopy .\bin\publish-x64 .\publish-result /s /e /h
179179
echo A | xcopy .\bin\publish .\publish-result /s /e /h
180180
dotnet tool restore
181-
dotnet vpk pack -u AdminPanel.Client.Windows -v "${{ vars.APPLICATION_DISPLAY_VERSION }}" -p .\publish-result -e AdminPanel.Client.Windows-x86.exe -r win-x86 --framework net8.0.7-x86-desktop,webview2 --icon .\wwwroot\favicon.ico --packTitle 'AdminPanel'
181+
dotnet vpk pack -u AdminPanel.Client.Windows -v "${{ vars.APPLICATION_DISPLAY_VERSION }}" -p .\publish-result -e AdminPanel.Client.Windows-x86.exe -r win-x86 --framework net8.0.8-x86-desktop,webview2 --icon .\wwwroot\favicon.ico --packTitle 'AdminPanel'
182182
183183
- name: Upload artifact
184184
uses: actions/upload-artifact@v4

.github/workflows/bit.ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
node-version: 20
2626

2727
- name: Install wasm and maui
28-
run: cd src && dotnet workload install maui-android wasm-tools wasm-experimental
28+
run: cd src && dotnet workload install maui-android wasm-tools
2929

3030
- name: Run BeforeBuildTasks
3131
continue-on-error: true # Error MSB4057, not all csproj files have BeforeBuildTasks target.
@@ -57,7 +57,7 @@ jobs:
5757
node-version: 20
5858

5959
- name: Install wasm and maui
60-
run: cd src && dotnet workload install maui-android wasm-tools wasm-experimental
60+
run: cd src && dotnet workload install maui-android wasm-tools
6161

6262
- name: Install Android Sdk platform tools
6363
run: ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT "platform-tools"

.github/workflows/bit.full.ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
cd src/Templates/Boilerplate && dotnet build -c Release
3232
dotnet pack -c Release -o . -p:ReleaseVersion=0.0.0 -p:PackageVersion=0.0.0
3333
dotnet new install Bit.Boilerplate.0.0.0.nupkg && cd ../../../
34-
dotnet workload install maui-tizen maui-android wasm-tools wasm-experimental
34+
dotnet workload install maui-tizen maui-android wasm-tools
3535
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT "platform-tools"
3636
3737
- name: Install sql server

.github/workflows/blazorui.demo.cd.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
node-version: 20
4141

4242
- name: Install wasm
43-
run: cd src && dotnet workload install wasm-tools wasm-experimental
43+
run: cd src && dotnet workload install wasm-tools
4444

4545
- name: Enable pre rendering
4646
run: sed -i 's/public static readonly bool PrerenderEnabled = false;/public static readonly bool PrerenderEnabled = true;/g' src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Services/AppRenderMode.cs
@@ -132,7 +132,7 @@ jobs:
132132
echo A | xcopy .\bin\publish-x64 .\publish-result /s /e /h
133133
echo A | xcopy .\bin\publish .\publish-result /s /e /h
134134
dotnet tool restore
135-
dotnet vpk pack -u Bit.BlazorUI.Demo.Client.Windows -v "${{ vars.APPLICATION_DISPLAY_VERSION }}" -p .\publish-result -e Bit.BlazorUI.Demo.Client.Windows-x86.exe -r win-x86 --framework net8.0.7-x86-desktop,webview2 --icon .\wwwroot\favicon.ico --packTitle 'Bit Blazor UI'
135+
dotnet vpk pack -u Bit.BlazorUI.Demo.Client.Windows -v "${{ vars.APPLICATION_DISPLAY_VERSION }}" -p .\publish-result -e Bit.BlazorUI.Demo.Client.Windows-x86.exe -r win-x86 --framework net8.0.8-x86-desktop,webview2 --icon .\wwwroot\favicon.ico --packTitle 'Bit Blazor UI'
136136
137137
- name: Upload artifact
138138
uses: actions/upload-artifact@v4

.github/workflows/platform.website.cd.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
global-json-file: src/global.json
2929

3030
- name: Install wasm
31-
run: cd src && dotnet workload install wasm-tools wasm-experimental
31+
run: cd src && dotnet workload install wasm-tools
3232

3333
- name: Generate CSS/JS files
3434
run: dotnet build src/Websites/Platform/src/Bit.Websites.Platform.Client/Bit.Websites.Platform.Client.csproj -t:BeforeBuildTasks --no-restore -c Release

.github/workflows/prerelease.nuget.org.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
push:
66
tags:
7-
- 'v-*'
7+
- 'v-*-pre-*'
88

99
jobs:
1010
build-publish:

.github/workflows/sales.website.cd.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
global-json-file: src/global.json
2929

3030
- name: Install wasm
31-
run: cd src && dotnet workload install wasm-tools wasm-experimental
31+
run: cd src && dotnet workload install wasm-tools
3232

3333
- name: Generate CSS/JS files
3434
run: dotnet build src/Websites/Sales/src/Bit.Websites.Sales.Client/Bit.Websites.Sales.Client.csproj -t:BeforeBuildTasks --no-restore -c Release

.github/workflows/todo-sample.cd.yml

+13-3
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ jobs:
4949
ApplicationInsights.ConnectionString: ${{ secrets.APPLICATION_INSIGHTS_CONNECTION_STRING }}
5050

5151
- name: Install wasm
52-
run: cd src && dotnet workload install wasm-tools wasm-experimental
52+
run: cd src && dotnet workload install wasm-tools
5353

5454
- name: Configure app render mode
5555
run: |
5656
sed -i 's/public static readonly bool PrerenderEnabled = false;/public static readonly bool PrerenderEnabled = true;/g' TodoSample/src/Client/TodoSample.Client.Core/Services/AppRenderMode.cs
57-
sed -i 's/Auto;/BlazorWebAssembly;/g' TodoSample/src/Client/TodoSample.Client.Core/Services/AppRenderMode.cs
57+
sed -i 's/BlazorAuto;/BlazorWebAssembly;/g' TodoSample/src/Client/TodoSample.Client.Core/Services/AppRenderMode.cs
5858
5959
- name: Changes for static-todo.bitplatform.dev - Part 1
6060
run: sed -i 's/http:\/\/localhost:4030/https:\/\/static-todo.bitplatform.dev/g' TodoSample/src/Server/TodoSample.Server.Web/Program.Middlewares.cs
@@ -149,6 +149,16 @@ jobs:
149149
- name: Set app center secret
150150
run: (Get-Content TodoSample\src\Client\TodoSample.Client.Windows\Program.cs) -Replace 'appCenterSecret = null;', 'appCenterSecret = "39f576f2-7c16-4990-af3f-7b70509d41e2";' | Out-File -Encoding utf8 TodoSample\src\Client\TodoSample.Client.Windows\Program.cs
151151
shell: pwsh
152+
153+
- name: Delete App Splash Screen
154+
run: rm TodoSample/src/Client/TodoSample.Client.Windows/Resources/SplashScreen.png
155+
156+
- name: Extract App Splash Screen from env
157+
uses: timheuer/[email protected]
158+
with:
159+
fileDir: './TodoSample/src/Client/TodoSample.Client.Windows/Resources/'
160+
fileName: 'SplashScreen.png'
161+
encodedString: ${{ vars.TODO_WPF_SPLASH_SCREEN }}
152162

153163
- name: Generate CSS/JS files
154164
run: dotnet build TodoSample\src\Client\TodoSample.Client.Core\TodoSample.Client.Core.csproj -t:BeforeBuildTasks -p:Version="${{ vars.APPLICATION_DISPLAY_VERSION}}" --no-restore -c Release
@@ -169,7 +179,7 @@ jobs:
169179
echo A | xcopy .\bin\publish-x64 .\publish-result /s /e /h
170180
echo A | xcopy .\bin\publish .\publish-result /s /e /h
171181
dotnet tool restore
172-
dotnet vpk pack -u TodoSample.Client.Windows -v "${{ vars.APPLICATION_DISPLAY_VERSION }}" -p .\publish-result -e TodoSample.Client.Windows-x86.exe -r win-x86 --framework net8.0.7-x86-desktop,webview2 --icon .\wwwroot\favicon.ico --packTitle TodoSample
182+
dotnet vpk pack -u TodoSample.Client.Windows -v "${{ vars.APPLICATION_DISPLAY_VERSION }}" -p .\publish-result -e TodoSample.Client.Windows-x86.exe -r win-x86 --framework net8.0.8-x86-desktop,webview2 --icon .\wwwroot\favicon.ico --packTitle TodoSample
173183
174184
- name: Upload artifact
175185
uses: actions/upload-artifact@v4

docs/how-to-build.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ building each one of them requires some specific steps that are explained below.
2222

2323
Building each of the bit platform projects needs the following basic requirements other than the specific requirements that are explained later:
2424

25-
- [.NET 8 SDK (8.0.303)](https://dotnet.microsoft.com/en-us/download/dotnet/8.0)
25+
- [.NET 8 SDK (8.0.401)](https://dotnet.microsoft.com/en-us/download/dotnet/8.0)
2626
- [Node.js](https://nodejs.org)
2727

2828
<br/>

src/Besql/Bit.Besql/wwwroot/bit-besql.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
var BitBesql = BitBesql || {};
2-
BitBesql.version = window['bit-besql version'] = '8.10.0';
2+
BitBesql.version = window['bit-besql version'] = '8.11.0';
33

44
async function synchronizeDbWithCache(file) {
55

src/Besql/Demo/Bit.Besql.Demo.Client/Bit.Besql.Demo.Client.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</PropertyGroup>
1111

1212
<ItemGroup>
13-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.7" />
13+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.8" />
1414
</ItemGroup>
1515

1616
<ItemGroup>

src/Besql/Demo/Bit.Besql.Demo/Bit.Besql.Demo.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<ItemGroup>
1010
<ProjectReference Include="..\Bit.Besql.Demo.Client\Bit.Besql.Demo.Client.csproj" />
11-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="8.0.7" />
11+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="8.0.8" />
1212
</ItemGroup>
1313

1414
<ItemGroup>
@@ -19,11 +19,11 @@
1919
and open Nuget Package Manager Console, and select `Bit.Besql.Demo` project as default project
2020
Then run either Add-Migration MigrationName -OutputDir Data\Migrations or
2121
Optimize-DbContext -OutputDir Data/CompiledModel commands. -->
22-
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.7">
22+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.8">
2323
<PrivateAssets>all</PrivateAssets>
2424
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2525
</PackageReference>
26-
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.7">
26+
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.8">
2727
<PrivateAssets>all</PrivateAssets>
2828
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2929
</PackageReference>

src/Bit.Build.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<PackageProjectUrl>https://github.com/bitfoundation/bitplatform</PackageProjectUrl>
2626
<PackageIconUrl>https://avatars.githubusercontent.com/u/22663390</PackageIconUrl>
2727

28-
<ReleaseVersion>8.10.0</ReleaseVersion>
28+
<ReleaseVersion>8.11.0</ReleaseVersion>
2929

3030
<PackageReleaseNotes>https://github.com/bitfoundation/bitplatform/releases/tag/v-$(ReleaseVersion)</PackageReleaseNotes>
3131
<PackageVersion>$(ReleaseVersion)</PackageVersion>

src/BlazorUI/Bit.BlazorUI.Extras/Bit.BlazorUI.Extras.csproj

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<TargetFrameworks>net8.0;net7.0;net6.0</TargetFrameworks>
77
<ImplicitUsings>enable</ImplicitUsings>
88
<RootNamespace>Bit.BlazorUI</RootNamespace>
9-
<IsTrimmable>false</IsTrimmable>
9+
<IsTrimmable>true</IsTrimmable>
1010
<WarningLevel>0</WarningLevel>
1111
<ResolveStaticWebAssetsInputsDependsOn Condition="'$(TargetFramework)' == 'net8.0'">
1212
BeforeBuildTasks;
@@ -21,7 +21,9 @@
2121
</ItemGroup>
2222

2323
<ItemGroup>
24-
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
24+
<PackageReference Include="Newtonsoft.Json" Version="13.0.3">
25+
<PrivateAssets>all</PrivateAssets>
26+
</PackageReference>
2527
<PackageReference Condition="'$(TargetFramework)' == 'net6.0'" Include="Microsoft.AspNetCore.Components.Web" Version="6.0.0" />
2628
<PackageReference Condition="'$(TargetFramework)' == 'net7.0'" Include="Microsoft.AspNetCore.Components.Web" Version="7.0.0" />
2729
<PackageReference Condition="'$(TargetFramework)' == 'net8.0'" Include="Microsoft.AspNetCore.Components.Web" Version="8.0.0" />

src/BlazorUI/Bit.BlazorUI.Extras/Components/Chart/BarChart/BitChartBarScales.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ public class BitChartBarScales
1212
/// <para>You can use any <see cref="BitChartCartesianAxis"/> but there are extended axes in the <see cref="BarChart.Axes"/> namespace which contain additional properties to customize the bar chart axes.</para>
1313
/// </summary>
1414
[JsonProperty("xAxes")]
15-
public IList<BitChartCartesianAxis> XAxes { get; set; }
15+
public List<BitChartCartesianAxis> XAxes { get; set; }
1616

1717
/// <summary>
1818
/// Gets or sets the configurations for the y-axes.
1919
/// <para>You can use any <see cref="BitChartCartesianAxis"/> but there are extended axes in the <see cref="BarChart.Axes"/> namespace which contain additional properties to customize the bar chart axes.</para>
2020
/// </summary>
2121
[JsonProperty("yAxes")]
22-
public IList<BitChartCartesianAxis> YAxes { get; set; }
22+
public List<BitChartCartesianAxis> YAxes { get; set; }
2323
}

src/BlazorUI/Bit.BlazorUI.Extras/Components/Chart/BitChart.razor.cs

+65-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// a fork from https://github.com/mariusmuntean/ChartJs.Blazor
22

3+
using System.Diagnostics.CodeAnalysis;
4+
35
namespace Bit.BlazorUI;
46

57
/// <summary>
@@ -9,8 +11,6 @@ public partial class BitChart : IAsyncDisposable
911
{
1012
[Inject] private IJSRuntime _js { get; set; }
1113

12-
13-
1414
/// <summary>
1515
/// The configuration of the chart.
1616
/// </summary>
@@ -48,7 +48,64 @@ public partial class BitChart : IAsyncDisposable
4848
[Parameter] public IEnumerable<string>? DateAdapterScripts { get; set; }
4949

5050

51-
51+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartBarConfig))]
52+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartBubbleConfig))]
53+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartLineConfig))]
54+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartPieConfig))]
55+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartPolarAreaConfig))]
56+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartRadarConfig))]
57+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartScatterConfig))]
58+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartConfigBase<,>))]
59+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartConfigBase<>))]
60+
61+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(JsonStringEnumConverter))]
62+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(IndexableOptionConverter))]
63+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(FloatingBarPointConverter))]
64+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(ClippingJsonConverter))]
65+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(JsonWriteOnlyConverter<>))]
66+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(JsonObjectEnumConverter))]
67+
68+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartBarOptions))]
69+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartBubbleOptions))]
70+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartBaseConfigOptions))]
71+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartLineOptions))]
72+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartPieOptions))]
73+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartPolarAreaOptions))]
74+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartRadarOptions))]
75+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartIndexableOption<>))]
76+
77+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartBarDataset<>))]
78+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartBubbleDataset))]
79+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartDataset<>))]
80+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartLineDataset<>))]
81+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartPieDataset))]
82+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartPolarAreaDataset))]
83+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartRadarDataset))]
84+
85+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartLegend))]
86+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartPosition))]
87+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartTooltips))]
88+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartAnimation))]
89+
90+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartBarScales))]
91+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartScales))]
92+
93+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartCartesianTicks))]
94+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartCategoryTicks))]
95+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartLinearCartesianTicks))]
96+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartLogarithmicTicks))]
97+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartTimeTicks))]
98+
99+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartBarCategoryAxis))]
100+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartBarLinearCartesianAxis))]
101+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartBarLogarithmicAxis))]
102+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartBarTimeAxis))]
103+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartCartesianAxis))]
104+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartCartesianAxis<>))]
105+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartCategoryAxis))]
106+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartLinearCartesianAxis))]
107+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartLogarithmicAxis))]
108+
[DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(BitChartTimeAxis))]
52109
protected override async Task OnAfterRenderAsync(bool firstRender)
53110
{
54111
if (firstRender)
@@ -99,6 +156,10 @@ protected virtual async ValueTask DisposeAsync(bool disposing)
99156
{
100157
if (disposing is false) return;
101158

102-
await _js.RemoveChart(Config?.CanvasId);
159+
try
160+
{
161+
await _js.RemoveChart(Config?.CanvasId);
162+
}
163+
catch (JSDisconnectedException) { } // we can ignore this exception here
103164
}
104165
}

src/BlazorUI/Bit.BlazorUI.Extras/Components/Chart/BubbleChart/BitChartBubbleConfig.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/// <summary>
44
/// Represents the config for a bubble chart.
55
/// </summary>
6-
public class BitChartBubbleConfig : BitChartConfigBase<BitChartBubbleOptions>
6+
public class BitChartBubbleConfig : BitChartConfigBase<BitChartLineOptions>
77
{
88
/// <summary>
99
/// Creates a new instance of <see cref="BitChartBubbleConfig"/>.

src/BlazorUI/Bit.BlazorUI.Extras/Components/Chart/Common/Axes/Ticks/BitChartCategoryTicks.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class BitChartCategoryTicks : BitChartCartesianTicks
88
/// <summary>
99
/// Gets or sets an array of labels to display.
1010
/// </summary>
11-
public IList<string> Labels { get; set; }
11+
public List<string> Labels { get; set; }
1212

1313
/// <summary>
1414
/// Gets or sets the minimum item to display. The item has to be present in <see cref="Labels"/>.

0 commit comments

Comments
 (0)