Skip to content

Commit fc36d63

Browse files
update do WASM 3.2.0 Preview 1 and 2.7.0
1 parent f233f14 commit fc36d63

Some content is hidden

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

49 files changed

+126
-119
lines changed

Diff for: chart/label-template/FormatLabel.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Telerik.UI.for.Blazor" Version="2.3.0" />
9+
<PackageReference Include="Telerik.UI.for.Blazor" Version="2.7.0" />
1010
</ItemGroup>
1111

1212
</Project>

Diff for: chart/responsive-chart/Data/WindowResizeService.cs

+1-9
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,11 @@ public static async Task RaiseWindowResizeEvent(int width, int height)
1717
{
1818
WindowWidth = width;
1919
WindowHeight = height;
20-
bool canRaiseEvent = true;
2120
try
22-
{
23-
_ = WindowResize.Target.ToString();
24-
}
25-
catch (Exception ex)
26-
{
27-
canRaiseEvent = false;
28-
}
29-
if (canRaiseEvent)
3021
{
3122
await WindowResize?.Invoke();
3223
}
24+
catch { }
3325
}
3426
}
3527
}

Diff for: chart/responsive-chart/ResponsiveChart.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Telerik.UI.for.Blazor" Version="2.3.0" />
9+
<PackageReference Include="Telerik.UI.for.Blazor" Version="2.7.0" />
1010
</ItemGroup>
1111

1212
</Project>

Diff for: chart/responsive-chart/readme.md

+2
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ The key points are:
99
* In this example, a static class is used to dispatch an "event" that comes from the JS Interop (it's perhaps the easiest way to call a C# method from JS).
1010
* In your actual project you would need to change the JS Interop file to match your namespace.
1111
* You can use a similar approach to reach to changes in dimensions coming from other sources, not just JS Interop and browser events.
12+
13+
You can also consider ready-made packages such as [Blazor Size by Ed Charbeneau](https://github.com/EdCharbeneau/BlazorSize)

Diff for: common/confirm-button/confirm_button.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Telerik.UI.for.Blazor" Version="2.5.0" />
9+
<PackageReference Include="Telerik.UI.for.Blazor" Version="2.7.0" />
1010
</ItemGroup>
1111

1212
</Project>

Diff for: common/grpc-example/ConsoleApp1/ConsoleApp1.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Google.Protobuf" Version="3.10.1" />
10-
<PackageReference Include="Grpc.Net.Client" Version="2.25.0" />
11-
<PackageReference Include="Grpc.Tools" Version="2.25.0">
9+
<PackageReference Include="Google.Protobuf" Version="3.11.2" />
10+
<PackageReference Include="Grpc.Net.Client" Version="2.27.0-pre1" />
11+
<PackageReference Include="Grpc.Tools" Version="2.27.0-pre1">
1212
<PrivateAssets>all</PrivateAssets>
1313
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1414
</PackageReference>

Diff for: common/grpc-example/GrpcClientUsers/GrpcClientUsers.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Google.Protobuf" Version="3.9.1" />
9-
<PackageReference Include="Grpc.Net.ClientFactory" Version="2.23.2" />
10-
<PackageReference Include="Grpc.Tools" Version="2.23.0">
8+
<PackageReference Include="Google.Protobuf" Version="3.11.2" />
9+
<PackageReference Include="Grpc.Net.ClientFactory" Version="2.27.0-pre1" />
10+
<PackageReference Include="Grpc.Tools" Version="2.27.0-pre1">
1111
<PrivateAssets>all</PrivateAssets>
1212
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1313
</PackageReference>

Diff for: common/grpc-example/GrpcInBlazor/GrpcInBlazor.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Telerik.UI.for.Blazor" Version="2.3.0" />
9+
<PackageReference Include="Telerik.UI.for.Blazor" Version="2.7.0" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

Diff for: common/localization/ClientLocalizationResx/Client/ClientLocalizationResx.Client.csproj

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Microsoft.AspNetCore.Blazor" Version="3.1.0-preview4.19579.2" />
11-
<PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="3.1.0-preview4.19579.2" PrivateAssets="all" />
12-
<PackageReference Include="Microsoft.AspNetCore.Blazor.HttpClient" Version="3.1.0-preview4.19579.2" />
13-
<PackageReference Include="Microsoft.AspNetCore.Blazor.DevServer" Version="3.1.0-preview4.19579.2" PrivateAssets="all" />
14-
<PackageReference Include="Telerik.UI.for.Blazor" Version="2.5.1" />
10+
<PackageReference Include="Microsoft.AspNetCore.Blazor" Version="3.2.0-preview1.20073.1" />
11+
<PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="3.2.0-preview1.20073.1" PrivateAssets="all" />
12+
<PackageReference Include="Microsoft.AspNetCore.Blazor.HttpClient" Version="3.2.0-preview1.20073.1" />
13+
<PackageReference Include="Microsoft.AspNetCore.Blazor.DevServer" Version="3.2.0-preview1.20073.1" PrivateAssets="all" />
14+
<PackageReference Include="Telerik.UI.for.Blazor" Version="2.7.0" />
1515
</ItemGroup>
1616
<ItemGroup>
1717
<ProjectReference Include="..\Shared\ClientLocalizationResx.Shared.csproj" />
+15-7
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,29 @@
1-
using Microsoft.AspNetCore.Blazor.Hosting;
1+
using ClientLocalizationResx.Client.Services;
2+
using Microsoft.AspNetCore.Blazor.Hosting;
3+
using Microsoft.Extensions.DependencyInjection;
4+
using System.Threading.Tasks;
5+
using Telerik.Blazor.Services;
26

37
namespace ClientLocalizationResx.Client
48
{
59
public class Program
610
{
7-
public static void Main(string[] args)
11+
public static async Task Main(string[] args)
812
{
913
// in this sample, we set the culture that way, change it to fr-FR or something else (or remove entirely) to test
1014
var desiredCulture = new System.Globalization.CultureInfo("fr-FR");
1115
System.Globalization.CultureInfo.CurrentUICulture = desiredCulture;
1216
System.Globalization.CultureInfo.CurrentCulture = desiredCulture;
1317

14-
CreateHostBuilder(args).Build().Run();
15-
}
18+
var builder = WebAssemblyHostBuilder.CreateDefault(args);
19+
builder.RootComponents.Add<App>("app");
20+
21+
builder.Services.AddTelerikBlazor();
1622

17-
public static IWebAssemblyHostBuilder CreateHostBuilder(string[] args) =>
18-
BlazorWebAssemblyHost.CreateDefaultBuilder()
19-
.UseBlazorStartup<Startup>();
23+
// register a custom localizer for the Telerik components, after registering the Telerik services
24+
builder.Services.AddSingleton(typeof(ITelerikStringLocalizer), typeof(SampleResxLocalizer));
25+
26+
await builder.Build().RunAsync();
27+
}
2028
}
2129
}

Diff for: common/localization/ClientLocalizationResx/Client/Startup.cs

-22
This file was deleted.

Diff for: common/localization/ClientLocalizationResx/Server/ClientLocalizationResx.Server.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.AspNetCore.Blazor.Server" Version="3.1.0-preview4.19579.2" />
9+
<PackageReference Include="Microsoft.AspNetCore.Blazor.Server" Version="3.2.0-preview1.20073.1" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

Diff for: common/localization/ClientLocalizationResx/Server/Startup.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
3333
}
3434

3535
app.UseStaticFiles();
36-
app.UseClientSideBlazorFiles<Client.Startup>();
36+
app.UseClientSideBlazorFiles<Client.Program>();
3737

3838
app.UseRouting();
3939

4040
app.UseEndpoints(endpoints =>
4141
{
4242
endpoints.MapDefaultControllerRoute();
43-
endpoints.MapFallbackToClientSideBlazor<Client.Startup>("index.html");
43+
endpoints.MapFallbackToClientSideBlazor<Client.Program>("index.html");
4444
});
4545
}
4646
}

Diff for: common/localization/ClientLocalizationResx/Shared/ResxSource/TelerikMessages.bg-BG.resx

+12
Original file line numberDiff line numberDiff line change
@@ -513,4 +513,16 @@
513513
<data name="Calendar_Choose_Year" xml:space="preserve">
514514
<value>Избери година</value>
515515
</data>
516+
<data name="AutoComplete_Clear" xml:space="preserve">
517+
<value>Изчисти</value>
518+
</data>
519+
<data name="AutoComplete_NoData" xml:space="preserve">
520+
<value>Няма намерени данни</value>
521+
</data>
522+
<data name="MultiSelect_Clear" xml:space="preserve">
523+
<value>Изчисти</value>
524+
</data>
525+
<data name="MultiSelect_NoData" xml:space="preserve">
526+
<value>Няма намерени данни</value>
527+
</data>
516528
</root>

Diff for: common/localization/ClientLocalizationResx/Shared/ResxSource/TelerikMessages.resx

+6
Original file line numberDiff line numberDiff line change
@@ -534,4 +534,10 @@
534534
<data name="AutoComplete_NoData" xml:space="preserve">
535535
<value>No data</value>
536536
</data>
537+
<data name="MultiSelect_Clear" xml:space="preserve">
538+
<value>Clear</value>
539+
</data>
540+
<data name="MultiSelect_NoData" xml:space="preserve">
541+
<value>No data</value>
542+
</data>
537543
</root>

Diff for: common/localization/ClientLocalizationResx/Shared/Translations/TelerikMessages.bg-BG.cs

+4
Original file line numberDiff line numberDiff line change
@@ -136,5 +136,9 @@ public class TelerikMessages_bg_BG
136136
public static string Calendar_Choose_Decade => "Избери десетилетие";
137137
public static string Calendar_Choose_Month => "Избери месец";
138138
public static string Calendar_Choose_Year => "Избери година";
139+
public static string AutoComplete_Clear => "Изчисти";
140+
public static string AutoComplete_NoData => "Няма намерени данни";
141+
public static string MultiSelect_Clear => "Изчисти";
142+
public static string MultiSelect_NoData => "Няма намерени данни";
139143
}
140144
}

Diff for: common/localization/ClientLocalizationResx/Shared/Translations/TelerikMessages.cs

+2
Original file line numberDiff line numberDiff line change
@@ -143,5 +143,7 @@ public class TelerikMessages
143143
public static string Calendar_Choose_Year => "Choose an year";
144144
public static string AutoComplete_Clear => "Clear";
145145
public static string AutoComplete_NoData => "No data";
146+
public static string MultiSelect_Clear => "Clear";
147+
public static string MultiSelect_NoData => "No data";
146148
}
147149
}

Diff for: common/localization/ClientLocalizationResx/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ Key points of the implementation:
1212
* These localization classes are dynamically generated so Reflection is used to fetch the correct ones in this example. You can implement any other approach you prefer.
1313
* Make sure to update the resource (`.resx`) files regularly - as the component suite grows more resource keys will be added.
1414
* Set the `Build Action` of the `resx` files to `None`, otherwise the framework will fail to build the project - it seems to attempt to generate resource assemblies from those files, but throws exceptions that they are duplicated.
15-
* The Telerik-specific bits are the custom localization service registered in the `Client` app in `Startup.cs` and the `.resx` files in `Shared` under `~/ResxSource`. Both of those are to be implemented by the application.
15+
* The Telerik-specific bits are the custom localization service registered in the `Client` app in `Program.cs` and the `.resx` files in `Shared` under `~/ResxSource`. Both of those are to be implemented by the application.
1616
* You can also see how to use those same resources for other texts in the `Index.razor` component where they are used to localize grid command buttons.

Diff for: common/localization/ServerLocalizationResx/Resources/TelerikMessages.bg-BG.resx

+12
Original file line numberDiff line numberDiff line change
@@ -513,4 +513,16 @@
513513
<data name="Calendar_Choose_Year" xml:space="preserve">
514514
<value>Избери година</value>
515515
</data>
516+
<data name="AutoComplete_Clear" xml:space="preserve">
517+
<value>Изчисти</value>
518+
</data>
519+
<data name="AutoComplete_NoData" xml:space="preserve">
520+
<value>Няма намерени данни</value>
521+
</data>
522+
<data name="MultiSelect_Clear" xml:space="preserve">
523+
<value>Изчисти</value>
524+
</data>
525+
<data name="MultiSelect_NoData" xml:space="preserve">
526+
<value>Няма намерени данни</value>
527+
</data>
516528
</root>

Diff for: common/localization/ServerLocalizationResx/Resources/TelerikMessages.resx

+6
Original file line numberDiff line numberDiff line change
@@ -534,4 +534,10 @@
534534
<data name="AutoComplete_NoData" xml:space="preserve">
535535
<value>No data</value>
536536
</data>
537+
<data name="MultiSelect_Clear" xml:space="preserve">
538+
<value>Clear</value>
539+
</data>
540+
<data name="MultiSelect_NoData" xml:space="preserve">
541+
<value>No data</value>
542+
</data>
537543
</root>

Diff for: common/localization/ServerLocalizationResx/ServerLocalizationResx.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Telerik.UI.for.Blazor" Version="2.5.1" />
9+
<PackageReference Include="Telerik.UI.for.Blazor" Version="2.7.0" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

Diff for: common/message-box/callback-event/MessageBoxControl.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Telerik.UI.for.Blazor" Version="2.5.1" />
9+
<PackageReference Include="Telerik.UI.for.Blazor" Version="2.7.0" />
1010
</ItemGroup>
1111

1212
</Project>

Diff for: common/message-box/dynamic-creation/PopupControl.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Telerik.UI.for.Blazor" Version="2.5.1" />
9+
<PackageReference Include="Telerik.UI.for.Blazor" Version="2.7.0" />
1010
</ItemGroup>
1111

1212
</Project>

Diff for: common/razor-components/BlazorInRazorPages.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Telerik.UI.for.Blazor" Version="2.3.0" />
8+
<PackageReference Include="Telerik.UI.for.Blazor" Version="2.7.0" />
99
</ItemGroup>
1010

1111
</Project>

Diff for: grid/batch-editing/BatchEditingMimic.csproj renamed to grid/batch-editing/BatchEditing.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Telerik.UI.for.Blazor" Version="2.2.0" />
9+
<PackageReference Include="Telerik.UI.for.Blazor" Version="2.7.0" />
1010
</ItemGroup>
1111

1212
</Project>

Diff for: grid/batch-editing/BatchEditingMimic.sln renamed to grid/batch-editing/BatchEditing.sln

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 16
44
VisualStudioVersion = 16.0.29319.158
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BatchEditingMimic", "BatchEditingMimic.csproj", "{3970E137-F632-4981-95CB-D1A674E4B454}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BatchEditing", "BatchEditing.csproj", "{3970E137-F632-4981-95CB-D1A674E4B454}"
77
EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution

Diff for: grid/batch-editing/Data/BatchEditModel.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using System.Linq;
44
using System.Threading.Tasks;
55

6-
namespace BatchEditingMimic.Data
6+
namespace BatchEditing.Data
77
{
88
public class BatchEditModel : Employee
99
{

Diff for: grid/batch-editing/Data/BatchEditingService.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using System.Linq;
44
using System.Threading.Tasks;
55

6-
namespace BatchEditingMimic.Data
6+
namespace BatchEditing.Data
77
{
88
public class BatchEditingService
99
{

Diff for: grid/batch-editing/Data/Employee.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using System.Linq;
44
using System.Threading.Tasks;
55

6-
namespace BatchEditingMimic.Data
6+
namespace BatchEditing.Data
77
{
88
public class Employee
99
{

Diff for: grid/batch-editing/Data/WeatherForecast.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
namespace BatchEditingMimic.Data
3+
namespace BatchEditing.Data
44
{
55
public class WeatherForecast
66
{

Diff for: grid/batch-editing/Data/WeatherForecastService.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Linq;
33
using System.Threading.Tasks;
44

5-
namespace BatchEditingMimic.Data
5+
namespace BatchEditing.Data
66
{
77
public class WeatherForecastService
88
{

Diff for: grid/batch-editing/Pages/Index.razor

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@page "/"
22
@inherits IndexBase
3-
@using BatchEditingMimic.Data
3+
@using BatchEditing.Data
44

55
@* Upon "Save All" click all changes go to the service at once. New items are added at the end because the service is implemented that way
66
while the UI adds them at the top for easier consumption by the user.*@

Diff for: grid/batch-editing/Pages/Index.razor.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
using Microsoft.AspNetCore.Components;
77
using Telerik.Blazor.Components;
88
using Telerik.Blazor;
9-
using BatchEditingMimic.Data;
9+
using BatchEditing.Data;
1010

11-
namespace BatchEditingMimic.Pages
11+
namespace BatchEditing.Pages
1212
{
1313
public class IndexBase : ComponentBase
1414
{

0 commit comments

Comments
 (0)