-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding changes from build igniteui-xplat-examples-output+PRs_2024.1.24.1
- Loading branch information
tfsbuild
committed
Jan 24, 2024
1 parent
34007c3
commit 585dfe7
Showing
10 changed files
with
16,951 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
@using IgniteUI.Blazor.Controls | ||
@using IgniteUI.Blazor.Controls; | ||
@using System; | ||
@using System.Linq; | ||
|
||
<div class="container vertical"> | ||
<div class="options vertical"> | ||
<IgbPropertyEditorPanel | ||
Name="editor" | ||
@ref="editor" | ||
|
||
DescriptionType="CategoryChart" | ||
IsHorizontal="true" | ||
IsWrappingEnabled="true"> | ||
<IgbPropertyEditorPropertyDescription | ||
PropertyPath="InitialFilterHandler" | ||
EditorWidth="800" | ||
Name="InitialFilter" | ||
@ref="initialFilter" | ||
Label="Modify Chart Filter" | ||
ValueType="PropertyEditorValueType.StringValue" | ||
ShouldOverrideDefaultEditor="true" | ||
Changed="EditorChangeUpdateInitialFilter"> | ||
</IgbPropertyEditorPropertyDescription> | ||
|
||
</IgbPropertyEditorPanel> | ||
|
||
</div> | ||
<div class="legend-title"> | ||
Sales Data Filtered Country and Product | ||
</div> | ||
<div class="legend"> | ||
<IgbLegend | ||
Name="Legend" | ||
@ref="legend" | ||
Orientation="LegendOrientation.Horizontal"> | ||
</IgbLegend> | ||
|
||
</div> | ||
<div class="container vertical fill"> | ||
<IgbCategoryChart | ||
Name="chart" | ||
@ref="chart" | ||
DataSource="SalesData" | ||
ChartType="CategoryChartType.Column" | ||
IsHorizontalZoomEnabled="false" | ||
IsVerticalZoomEnabled="false" | ||
CrosshairsDisplayMode="CrosshairsDisplayMode.None" | ||
IncludedProperties="@(new string[] { "Date", "GrossSales", "Profit", "Sales" })" | ||
InitialFilter="(startswith(Country, 'B') and endswith(Country, 'l') and contains(Product, 'Royal Oak') and contains(Date, '3/1/20'))"> | ||
</IgbCategoryChart> | ||
|
||
</div> | ||
</div> | ||
|
||
@code { | ||
|
||
private Action BindElements { get; set; } | ||
|
||
protected override async Task OnAfterRenderAsync(bool firstRender) | ||
{ | ||
var legend = this.legend; | ||
var editor = this.editor; | ||
var initialFilter = this.initialFilter; | ||
var chart = this.chart; | ||
|
||
this.BindElements = () => { | ||
editor.Target = this.chart; | ||
chart.Legend = this.legend; | ||
}; | ||
this.BindElements(); | ||
|
||
} | ||
|
||
private IgbLegend legend; | ||
private IgbPropertyEditorPanel editor; | ||
private IgbPropertyEditorPropertyDescription initialFilter; | ||
private IgbCategoryChart chart; | ||
|
||
public void EditorChangeUpdateInitialFilter(IgbPropertyEditorPropertyDescriptionChangedEventArgs args) | ||
{ | ||
var chart = this.chart; | ||
var intialFilterVal = args.NewValue.ToString(); | ||
chart.InitialFilter = null; | ||
chart.InitialFilter = intialFilterVal; | ||
} | ||
|
||
private SalesData _salesData = null; | ||
public SalesData SalesData | ||
{ | ||
get | ||
{ | ||
if (_salesData == null) | ||
{ | ||
_salesData = new SalesData(); | ||
} | ||
return _salesData; | ||
} | ||
} | ||
|
||
} |
21 changes: 21 additions & 0 deletions
21
samples/charts/category-chart/data-filter/BlazorClientApp.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<RazorLangVersion>3.0</RazorLangVersion> | ||
<AssemblyName>Infragistics.Samples</AssemblyName> | ||
<RootNamespace>Infragistics.Samples</RootNamespace> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> | ||
<NoWarn>1701;1702,IDE0028,BL0005,0219,CS1998</NoWarn> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="IgniteUI.Blazor" Version="23.2.120" /> | ||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.0" /> | ||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.0" /> | ||
<PackageReference Include="System.Net.Http.Json" Version="8.0.0" /> | ||
</ItemGroup> | ||
|
||
</Project> |
25 changes: 25 additions & 0 deletions
25
samples/charts/category-chart/data-filter/BlazorClientApp.sln
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 16 | ||
VisualStudioVersion = 16.0.29613.14 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorClientApp", "BlazorClientApp.csproj", "{F69CC3F0-BCD1-4CE6-9F39-CBED14E7FA78}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{F69CC3F0-BCD1-4CE6-9F39-CBED14E7FA78}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{F69CC3F0-BCD1-4CE6-9F39-CBED14E7FA78}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{F69CC3F0-BCD1-4CE6-9F39-CBED14E7FA78}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{F69CC3F0-BCD1-4CE6-9F39-CBED14E7FA78}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {FC52AAC8-4488-40AE-9621-75F6BA744B18} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System; | ||
using System.Net.Http; | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
using System.Text; | ||
using Microsoft.AspNetCore.Components.WebAssembly.Hosting; | ||
using Microsoft.Extensions.Configuration; | ||
using Microsoft.Extensions.DependencyInjection; | ||
using Microsoft.Extensions.Logging; | ||
using IgniteUI.Blazor.Controls; // for registering Ignite UI modules | ||
|
||
namespace Infragistics.Samples | ||
{ | ||
public class Program | ||
{ | ||
public static async Task Main(string[] args) | ||
{ | ||
var builder = WebAssemblyHostBuilder.CreateDefault(args); | ||
builder.RootComponents.Add<App>("app"); | ||
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }); | ||
// registering Ignite UI modules | ||
builder.Services.AddIgniteUIBlazor( | ||
typeof(IgbInputModule), | ||
typeof(IgbPropertyEditorPanelModule), | ||
typeof(IgbLegendModule), | ||
typeof(IgbCategoryChartModule) | ||
); | ||
await builder.Build().RunAsync(); | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
samples/charts/category-chart/data-filter/Properties/launchSettings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"iisSettings": { | ||
"windowsAuthentication": false, | ||
"anonymousAuthentication": true, | ||
"iisExpress": { | ||
"applicationUrl": "http://localhost:4200", | ||
"sslPort": 44385 | ||
} | ||
}, | ||
"profiles": { | ||
"IIS Express": { | ||
"commandName": "IISExpress", | ||
"launchBrowser": true, | ||
"environmentVariables": { | ||
"ASPNETCORE_ENVIRONMENT": "Development" | ||
} | ||
}, | ||
"BlazorSamples": { | ||
"commandName": "Project", | ||
"launchBrowser": true, | ||
"environmentVariables": { | ||
"ASPNETCORE_ENVIRONMENT": "Development" | ||
}, | ||
"applicationUrl": "https://localhost:5001;http://localhost:4200" | ||
} | ||
} | ||
} |
Oops, something went wrong.