Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## 0.11.0 - 2026-10-08

### Changed

- **DEPRECATED**: The bundled theme stylesheets moved from
Expand All @@ -19,7 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
```
matching the layout the `IgniteUI.Blazor` and `IgniteUI.Blazor.Lite` packages use. The old paths still work, through a stylesheet that imports the theme from its new location, and will be removed in a future release.
- **BREAKING**: `IgbGridLiteFilterExpression.Condition` is a `string`, the name of a grid-lite filter condition, instead of `object`. Its documentation and the README list the names for each column data type. In the `Filtering` and `Filtered` events it holds the condition's name; before, it held grid-lite's condition object as a `JsonElement`.
- **BREAKING**: In the `Filtering` and `Filtered` events, `IgbGridLiteFilterExpression.SearchTerm` holds a `string`, `double` or `bool` instead of a `JsonElement`. Numbers are always `double`, as JavaScript has one number type, so a search term set as an `int` comes back as a `double`.
- **BREAKING**: In the `Filtering` and `Filtered` events, `IgbGridLiteFilterExpression.SearchTerm` holds a `string` or a `double`. Numbers are always `double`: they arrive as JSON numbers, which don't record whether a value was an integer, so a search term set as an `int` comes back as a `double`. While boolean conditions are unary, a `bool` is preserved as well. Only unrecognized values provided by the app stay a `JsonElement` as fallback.
Comment thread
damyanpetev marked this conversation as resolved.
- **BREAKING**: `IgbGridLiteFilterExpression.Criteria` is a `GridLiteFilterCriteria?` (`And`, `Or`) instead of a `string?`, and `IgbGridLiteFilteringEventArgs.Type` is a `GridLiteFilteringType` (`Add`, `Modify`, `Remove`) instead of a `string`.
- **BREAKING**: `IgbGridLiteFilteringEventArgs.Expressions` and `IgbGridLiteFilteredEventArgs.State` are `IReadOnlyList<IgbGridLiteFilterExpression>` instead of `List<IgbGridLiteFilterExpression>`.
- **BREAKING**: Renamed `IgbColumnConfiguration` → `IgbGridLiteColumnConfiguration`, the only public type without `GridLite` in its name.
Expand Down
4 changes: 2 additions & 2 deletions src/IgniteUI.Blazor.GridLite/Internal/AppValueSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ private static JsonSerializerOptions CreateOptions()
/// </summary>
internal sealed class FilterValueConverter : JsonConverter<object>
{
// JSON has one number type OOB, so every number reads as a double. An array or object can only be a value
// the app set itself; it stays a JsonElement.
// A JSON number doesn't record whether it was an integer, so every number reads as a double. An array or object
// can only be a value the app set itself; it stays a JsonElement.
public override object Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
=> reader.TokenType switch
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ public class IgbGridLiteFilterExpression
/// Optional for unary conditions.
/// </summary>
/// <remarks>
/// Typically matches the <see cref="IgbGridLiteColumn.DataType"/> holding a <see cref="string"/>,
/// a <see cref="double"/> (any number, including one set as an <see cref="int"/>) or a <see cref="bool"/>;
/// falls back to <see cref="System.Text.Json.JsonElement"/> for other unrecognized/app-provided types.
/// Typically matches the <see cref="IgbGridLiteColumn.DataType"/> holding a <see cref="string"/> or
/// a <see cref="double"/> (any number, including one set as an <see cref="int"/>). While boolean conditions
/// are unary, a <see cref="bool"/> is preserved as well.
/// Falls back to <see cref="System.Text.Json.JsonElement"/> for other app-provided values.
/// </remarks>
[JsonPropertyName("searchTerm")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
Expand Down
1 change: 0 additions & 1 deletion src/IgniteUI.Blazor.GridLite/_Imports.razor

This file was deleted.

Loading