Bloqs 0.1.5 – Release Notes
Version 0.1.5 introduces several important renames, new features, and enhancements to make development with Bloqs more consistent, powerful, and future-proof.
Renames
To improve clarity and consistency, several components and utilities have been renamed:
EntityCreateCommand
NewEntityCommand
BoundLabelComponent
PropertyValueComponent
GuidGenerator.G
IdGen.Get
StandardIds
IdGen
DataQuery
MultiQuery
NumericInputComponent
IntegerInputComponent or DecimalInputComponent
New Features
Realtime Communication
SignalR support for real-time updates and event handling.
API Enhancements
OData implementation is now based on Minimal APIs for improved simplicity and performance.
Simple CRUD Generation
AddSimpleCrudForClass now also generates a view page, by default:
AddSimpleCrudForClass<MyEntity>();Control CRUD generation with (for example, skip generation of view page):
new SimpleCrudBuilderConfiguration { ViewPage = new PageConfig.None() }
Input Validation
Text components now support validation:
TextInputComponentTextareaInputComponent
Supported rules:
MinLengthMaxLengthRegularExpression
Example using attributes on your model:
[RegularExpression(@"^[^@\s]+@[^@\s]+\.[^@\s]+$")] [MinLength(6)] [MaxLength(100)] public string? EmailAddress { get; set; }Integer and Decimal input components now support:
MinValueMaxValueConfigurable via attributes.
New Components
LabelComponentEntity view components:
EntityViewButtonComponentSubEntityViewComponentEntityViewComponentEntityListViewComponent
Enhancements
List searching is now server-side using MongoDB text index (requires
EnableTextSearchonEntityClass).Default view properties can be customized with
IncludeInDefaultViewonProperty.FilterScope support for scoped filtering in:
ListComponentEntityRelationInputComponentRepeaterComponent
List paging is now server-side, handled through the API.
Properties Created, CreatedBy, Modified and ModifiedBy are removed from Entity class.
Last updated