Lyo.Reporting.Models
2.0.0
dotnet add package Lyo.Reporting.Models --version 2.0.0
NuGet\Install-Package Lyo.Reporting.Models -Version 2.0.0
<PackageReference Include="Lyo.Reporting.Models" Version="2.0.0" />
<PackageVersion Include="Lyo.Reporting.Models" Version="2.0.0" />
<PackageReference Include="Lyo.Reporting.Models" />
paket add Lyo.Reporting.Models --version 2.0.0
#r "nuget: Lyo.Reporting.Models, 2.0.0"
#:package Lyo.Reporting.Models@2.0.0
#addin nuget:?package=Lyo.Reporting.Models&version=2.0.0
#tool nuget:?package=Lyo.Reporting.Models&version=2.0.0
Lyo.Reporting.Models
Fluent builders, API contracts, generation hooks, and composition models for Lyo Reporting.
Features
ReportFormatExtensions(Enums/). MapsReportFormatonto the sharedFileTypeInfocatalog and surfacesFileType,Extension, andContentType. Renderers andReportServiceread these instead of keeping parallelFormatExtensionandGuessContentTypeswitches.
Routes and formats
ReportFormatvalues:Html,Pdf,Csv,Xlsx,Json.Constants.Rest.Reportingroute constants coverGenerationsGenerateplus theGenerationsDownloadSuffix(Download) andGenerationsRerunSuffix(Rerun) segments underReporting/Generation/{id}/….- Retention cleanup is recorded by
Constants.Metricsasreporting.generation.cleaned. ReportBuildercontrols: card, block, table, and CSS grid (AddCard/AddBlock/AddTable/AddGrid). Blocks include heading, callout, image, divider, spacer, page break, progress, key-value, quote, code, chart (ChartKindbar/line/doughnut/pie/sparkline/gauge, static series orAddChartFromParameter), badge, signature, table of contents, timeline, address, totals, checkbox terms, notes, andAddComponent(Blazor FullName), plusSetLayout(theme, page size, watermark, logo, padding, margin, optionalRootComponentType) andAddParameter(schema + example values).ToDefinitionReqdual-writes composition JSON and parameter specs, copyingExampleValueontoValuewhen no default is set.ReportDesignTemplatesstarters: Blank, Controls gallery (TOC, static and FromParameter charts, page break, collapsed appendix), Sales summary, Invoice (FromParameter line items), Operations dashboard (KPI cards + FromParameter chart).Samplesis the saved-definition catalog (excludes Blank) used by the workbench Templates menu and Test Gateway seed.ReportCompositionProcessorinterpolates{Key}placeholders and honorsVisibleWhenbefore generate and file render. The design canvas interpolates example values at paint time on the live composition (no clone, hiddenVisibleWhenitems stay editable and dimmed). Empty TOC blocks andFromParametertables/charts fill from example parameter JSON at paint without mutating the live graph.SectionBodyenumerates mixed controls and subsections. All-zeroOrderkeeps list order then subsections. Designer chrome keys (ReportDesignTreeExpand.LiveKey) do not writeSection.Id. Nested grids are rejected.KeepTogetheris omit-null. Null means the type default: on for cards, blocks, and layout grids; off for tables so tall tables can split. Page breaks ignore the flag.ReportViewPainteremitsbreak-inside: avoidwhen effective.Tablecan load rows from Static cells,FromParameter(JSON array on a definition parameter) viaFieldMap, or Query/SprocOptionsJSON (the same ParameterOptions document as definition parameters). Chart blocks can fill from a parameter withChartLabelField/ChartValueField. Query/Sproc execution stays out of this package.
Notes
- Column
ValueFormatterdelegates are[JsonIgnore]and do not survive JSON persistence intoReportDataJson. Lyo.Reporting.Webowns HTML/PDF rendering;Lyo.Reporting.Postgresowns CSV/XLSX/JSON rendering and orchestration.Lyo.Reporting.Apihosts the HTTP endpoints. Persist staged output in consumerReportGenerationHooks(Reporting does not reference FileStorage); drop persisted output inOnCleanupAsyncwhen retention, generation delete, or definition delete removes rows.ReportDefinitionParameterReq.Options. JSON picker source (static items, rootQueryReq, orschema.funcsproc);Valueis JSON for the declared CLR FullName (LyoTypeInfo). Collection/JSON types (and tables withFromParameter) materialize row JSON. Tables can also run Query/SprocOptionsdirectly.AllowedValuesremains the validation shorthand.ReportDefinitionParameterReq.DefaultKind+DefaultTemplate.Literal(the default) takes the default fromValue;ExpressionrendersDefaultTemplatewhen the caller supplies no value, soTypecan still describe the value itself. During merge,ReportServiceresolves it and validates the rendered text againstType.
Dependencies
Generated from ProjectReference / PackageReference (same model as docs/Lyo.ProjectGraph.html).
Lyo.Common.Json(direct, lyo)Lyo.Common.Metadata(direct, lyo)Lyo.Exceptions(direct, lyo)Lyo.Metrics(direct, lyo)Lyo.Parameters(direct, lyo)System.Text.Json10.0.5(direct, microsoft, netstandard2.0)Lyo.Common.Core(transitive, lyo)Microsoft.Bcl.AsyncInterfaces10.0.5(transitive, microsoft, netstandard2.0)System.Memory4.6.3(transitive, microsoft, netstandard2.0)
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Lyo.Common.Json (>= 2.0.0)
- Lyo.Common.Metadata (>= 2.0.0)
- Lyo.Exceptions (>= 2.0.0)
- Lyo.Metrics (>= 2.0.0)
- Lyo.Parameters (>= 2.0.0)
- System.Text.Json (>= 10.0.5)
-
net10.0
- Lyo.Common.Json (>= 2.0.0)
- Lyo.Common.Metadata (>= 2.0.0)
- Lyo.Exceptions (>= 2.0.0)
- Lyo.Metrics (>= 2.0.0)
- Lyo.Parameters (>= 2.0.0)
NuGet packages (6)
Showing the top 5 NuGet packages that depend on Lyo.Reporting.Models:
| Package | Downloads |
|---|---|
|
Lyo.Reporting.Postgres
PostgreSQL reporting data layer with EF Core, optional auto-migrations, and report generation orchestration. |
|
|
Lyo.Reporting.Client
HTTP client for the Lyo Reporting API. |
|
|
Lyo.Reporting.Web.Components
Blazor components library for browsing report definitions, designing compositions, running reports, and viewing/downloading generations with MudBlazor. |
|
|
Lyo.Api.Reporting
HTTP API surface for Lyo Reporting: authenticated definition CRUD, read-only generations, and Generate. |
|
|
Lyo.Reporting.Web
Blazor report viewer and HTML/PDF report renderers for Lyo Reporting. |
GitHub repositories
This package is not used by any popular GitHub repositories.