Dabbler.Components 1.0.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Dabbler.Components --version 1.0.0
                    
NuGet\Install-Package Dabbler.Components -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Dabbler.Components" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Dabbler.Components" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Dabbler.Components" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Dabbler.Components --version 1.0.0
                    
#r "nuget: Dabbler.Components, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Dabbler.Components@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Dabbler.Components&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Dabbler.Components&version=1.0.0
                    
Install as a Cake Tool

Dabbler.Components

Part of the Dabbler Platform. See docs/platform-overview.md for the platform-level view of how this library fits in.

MudBlazor-native CRUD primitives for Blazor Server: declarative QBE filter panel, dirty-tracking edit session, master/detail expansion shell, and the underlying expression-engine + data-provider abstractions. Composition-over-configuration — pages declare their own MudDataGrid columns and MudForm fields.

Audience

Teams building Blazor Server CRUD applications who want a tightly focused set of composable helpers (filter panel, dirty tracking, action row, master-detail shell) instead of a config-driven page generator. The helpers are à-la-carte: each page wires only the helpers it needs.

Prerequisites and stack constraints

  • Blazor Server (Blazor WebAssembly is out of scope today)
  • MudBlazor 8.x
  • .NET 10 (current LTS)
  • Dependency-injected access to your IGridDataProvider<T> implementations

Install

Adoption note: The recommended adoption model for internal projects is integrated source — add a <ProjectReference> from your app csproj to src/Libs/Dabbler.Components/. NuGet packages are also available (current preview release 0.1.0-preview.1). To install via NuGet: dotnet add package Dabbler.Components --prerelease

Minimal registration

There is no library-wide DI extension — Dabbler.Components types are used directly by the pages that need them. The only requirement is MudBlazor services:

builder.Services.AddMudServices();

If a page consumes a grid-data primitive, register the concrete provider for that page's entity:

builder.Services.AddScoped<IGridDataProvider<Customer>, CustomerGridDataProvider>();

Smallest working example

A query page that combines DeclarativeFilterPanel<TEntity> with a MudDataGrid<T> server-data callback:

@page "/customers"

<DeclarativeFilterPanel TEntity="Customer"
                        FilterColumns="@_filterColumns"
                        Coordinator="@_coordinator" />

<MudDataGrid T="Customer"
             Bordered="true"
             ServerData="@_dataProvider.ToServerDataFunc(_coordinator.GetCompositeFilter)">
    <Columns>
        <PropertyColumn Property="x => x.Name" Title="Name" />
        <PropertyColumn Property="x => x.City" Title="City" />
    </Columns>
</MudDataGrid>

@code {
    [Inject] private IGridDataProvider<Customer> _dataProvider { get; set; } = default!;
    private readonly FilteringCoordinator _coordinator = new();
    private readonly List<FilterColumnDefinition> _filterColumns = new()
    {
        new() { Field = nameof(Customer.Name), Caption = "Name" },
        new() { Field = nameof(Customer.City), Caption = "City" },
    };
}

Detail pages additionally compose EditSession<T> with <DirtyAwareActionRow> for save/cancel/delete; see docs/platform-overview.md § "CRUD Form Conventions" for the form wiring pattern.

Active core

The library's surface, organized by role:

Surface Role
DeclarativeFilterPanel<TEntity> Catalog-friendly QBE filter panel with AND/OR group logic, operator selection, presets, and active filter chips. Default for new query pages.
EditSession<T> Dirty-tracking snapshot for a detail-page record (NotifyChanged / Commit / CommitFrom / Cancel). Pairs with <DirtyAwareActionRow>.
<DirtyAwareActionRow> Save / Cancel / Delete action row that reads EditSession<T> state, with a CustomActions slot for page-specific buttons.
<MasterDetailExpansionShell> Generic master/detail composite (Add-Only, Search+Update, Pick-or-Add, M:N-with-payload) selected via capability parameters (ShowGrid, ShowLinkData, TargetEditability).
FilterPanel<T> Original MudBlazor-native QBE filter panel; retained for legacy callers. New pages prefer DeclarativeFilterPanel<TEntity>.
FilteringCoordinator Manages filter state, group lifecycle, and change notification.
FilterColumnDefinition Defines filterable columns with types, operators, and editor metadata.
FilterGroupCollection / FilterGroup AND/OR group model for composable filter expressions.
CompositeFilterDescriptor / FilterDescriptor Filter expression descriptors consumed by the expression engine.
FilterSummaryBuilder Generates human-readable filter summary text.
IGridDataProvider<T> Data provider abstraction with ToServerDataFunc for MudDataGrid ServerData callbacks.
  • Dabbler.Security.Blazor — combines with the helpers above for restriction-aware CRUD pages (column hiding, row scoping, control disablement).
  • Dabbler.Reports.Blazor — consumes the expression engine for report parameter prompts.
  • Dabbler.Platform.Stubs — provides in-memory StubGridDataProvider<T> and friends for bUnit tests and demo hosts.

Warnings and caveats

  • The library focuses on à-la-carte helpers, not a metadata DSL. The abandoned MasterDetailsConfig<TEntity> config-DSL prototype is not coming back; see docs/planning/project-guidance.md → Composition over configuration.
  • MudBlazor 8.x data-testid lands on the <input>, not the wrapper. Playwright tests should use GetByTestId("foo") directly rather than chaining a .Locator("input") after.
  • MudTextField ReadOnly="true" does NOT set the HTML readonly attribute in MudBlazor 8.x. Tests asserting read-only state must use behavior-level proxies (e.g., the toggle-button text), not Not.ToBeEditableAsync.
  • License: MIT (see LICENSE).

If this library stops being maintained

This package is MIT-licensed, and its source is in src/Libs/Dabbler.Components. If it stops being maintained, copy that source into your application, replace the package reference with a project reference to your copy, and own it from there. Keep the MIT license notice with the copied code.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Dabbler.Components:

Package Downloads
Dabbler.Security.Blazor

Blazor Server UI surface for Dabbler.Security: secured-rendering components, the security-administration dashboard, role-switcher and organization-switcher controls, masked-field renderers, and the restriction-aware grid/form binders.

Dabbler.Reports.Blazor

Blazor components for rendering and interacting with Dabbler Reports: ReportViewer, ParameterPromptForm, and PDF export integration. MIT-licensed. Note: this package takes a transitive dependency on DabblerPdf (LGPL-2.1-only OR MPL-2.0) via Dabbler.Reports.Core and Dabbler.Reports.Export; see THIRD-PARTY-NOTICES.txt for the canonical license text.

Dabbler.Platform.Stubs

Opt-in stub providers for Dabbler bUnit and demo hosts: grid-data, combo-box, entity-metadata and navigation providers for Dabbler.Components; report-data, artifact-catalog and usage-tracking providers for Dabbler.Reports.Core; and a stub authentication-state provider. Includes AddDabblerPlatformStubs(definition) and the focused per-provider helpers. Carries a transitive dependency on DabblerPdf (LGPL-2.1-only OR MPL-2.0) via Dabbler.Reports.Core.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.2 131 11/13/2026
2.0.1 121 11/13/2026
2.0.0 120 11/13/2026
1.0.0 125 11/9/2026
0.1.0-preview.1 193 5/30/2026