Soenneker.Blazor.SheetMapper
3.0.116
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Blazor.SheetMapper --version 3.0.116
NuGet\Install-Package Soenneker.Blazor.SheetMapper -Version 3.0.116
<PackageReference Include="Soenneker.Blazor.SheetMapper" Version="3.0.116" />
<PackageVersion Include="Soenneker.Blazor.SheetMapper" Version="3.0.116" />
<PackageReference Include="Soenneker.Blazor.SheetMapper" />
paket add Soenneker.Blazor.SheetMapper --version 3.0.116
#r "nuget: Soenneker.Blazor.SheetMapper, 3.0.116"
#:package Soenneker.Blazor.SheetMapper@3.0.116
#addin nuget:?package=Soenneker.Blazor.SheetMapper&version=3.0.116
#tool nuget:?package=Soenneker.Blazor.SheetMapper&version=3.0.116
Soenneker.Blazor.SheetMapper
A Blazor component and utility library for mapping CSV or tabular files to C# objects.
Leverage FilePond for uploads and TomSelect for interactive dropdowns. Automatically extract headers, map columns to your model, and retrieve a clean { property → column }
map.
Features
- Header extraction from CSV or tab-delimited files
- Interactive mapping of columns to model properties
- Automatic heuristic mapping (case‑ and whitespace‑insensitive)
- Status icons for unmapped, duplicate, and mapped states
- Show/hide the status‑icon column on demand
- API to fetch the final mapping as
Dictionary<string, string>
Installation
dotnet add package Soenneker.Blazor.SheetMapper
Setup
Register interop in your DI container (e.g.,
Program.cs
):builder.Services.AddSheetMapperAsScoped();
Import namespace in your
_Imports.razor
or component:@using Soenneker.Blazor.SheetMapper
Basic Usage
@page "/import"
@inject ISheetMapperInterop SheetMapperInterop
<SheetMapper
@ref="sheetMapper"
TargetType="typeof(Employee)"
AutomaticallyMap="true"
ShowStatusIcons="true" />
<button class="btn btn-primary mt-3" @onclick="ShowMap">
Get Mapping
</button>
@code {
private SheetMapper? sheetMapper;
private void ShowMap()
{
if (sheetMapper is not null)
{
var map = sheetMapper.GetCurrentMap();
// map: property → CSV column
}
}
}
Component Parameters
Parameter | Type | Default | Description |
---|---|---|---|
TargetType |
Type |
— | Required. Model type whose writable properties are mapped. |
AutomaticallyMap |
bool |
false |
Run auto-mapping heuristic on file load. |
ShowStatusIcons |
bool |
true |
Toggle visibility of the status‑icon column. |
NotMappedIcon |
RenderFragment |
⚠️ | Icon/markup for unmapped state. |
DuplicatedIcon |
RenderFragment |
🔁 | Icon/markup for duplicate‑mapping state. |
MappedIcon |
RenderFragment |
✅ | Icon/markup for successful mapping. |
Public API
void AutoMap()
Re-run the auto-mapping logic at any time.Dictionary<string, string> GetCurrentMap()
Returns{ property → selected column }
. Unmapped properties return""
.
Customization
Status Icons
Override the built-in emojis with your own markup (SVG, <i>
, etc.):
<SheetMapper
TargetType="typeof(Employee)"
NotMappedIcon="@<i class='fas fa-exclamation-triangle'></i>"
DuplicatedIcon="@<i class='fas fa-sync-alt'></i>"
MappedIcon="@<i class='fas fa-check-circle'></i>"
/>
Show/Hide Icon Column
Use the ShowStatusIcons
parameter to toggle the entire status‑icon column:
<SheetMapper TargetType="typeof(Employee)" ShowStatusIcons="false" />
Styling
CSS classes for fine‑tuning:
.map-row
— wrapper for each mapping row.status-icon
— container for the icon
Override or extend them to match your design system.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. 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 was computed. 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. |
-
net9.0
- Sep (>= 0.11.2)
- Soenneker.Blazor.FilePond (>= 3.0.3318)
- Soenneker.Blazor.TomSelect (>= 3.0.3993)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
3.0.122 | 0 | 10/17/2025 |
3.0.121 | 0 | 10/17/2025 |
3.0.120 | 23 | 10/16/2025 |
3.0.119 | 28 | 10/15/2025 |
3.0.118 | 29 | 10/15/2025 |
3.0.117 | 52 | 10/15/2025 |
3.0.116 | 151 | 10/8/2025 |
3.0.115 | 153 | 10/8/2025 |
3.0.114 | 147 | 10/8/2025 |
3.0.113 | 158 | 10/5/2025 |
3.0.112 | 147 | 10/5/2025 |
3.0.111 | 89 | 10/4/2025 |
3.0.110 | 160 | 10/2/2025 |
3.0.109 | 158 | 10/1/2025 |
3.0.108 | 158 | 9/30/2025 |
3.0.107 | 101 | 9/27/2025 |
3.0.106 | 85 | 9/27/2025 |
3.0.105 | 188 | 9/22/2025 |
3.0.104 | 151 | 9/21/2025 |
3.0.103 | 196 | 9/20/2025 |
3.0.102 | 236 | 9/19/2025 |
3.0.101 | 290 | 9/19/2025 |
3.0.100 | 280 | 9/18/2025 |
3.0.99 | 292 | 9/17/2025 |
3.0.98 | 288 | 9/17/2025 |
3.0.97 | 294 | 9/17/2025 |
3.0.96 | 292 | 9/17/2025 |
3.0.95 | 279 | 9/17/2025 |
3.0.94 | 273 | 9/17/2025 |
3.0.93 | 286 | 9/17/2025 |
3.0.92 | 286 | 9/16/2025 |
3.0.91 | 278 | 9/16/2025 |
3.0.90 | 128 | 9/13/2025 |
3.0.89 | 159 | 9/11/2025 |
3.0.88 | 155 | 9/10/2025 |
3.0.87 | 150 | 9/10/2025 |
3.0.86 | 153 | 9/10/2025 |
3.0.85 | 153 | 9/10/2025 |
3.0.84 | 143 | 9/9/2025 |
3.0.83 | 156 | 9/9/2025 |
3.0.82 | 164 | 9/7/2025 |
3.0.81 | 121 | 9/7/2025 |
3.0.80 | 119 | 9/7/2025 |
3.0.79 | 125 | 9/6/2025 |
3.0.78 | 125 | 9/6/2025 |
3.0.77 | 101 | 9/5/2025 |
3.0.76 | 114 | 9/5/2025 |
3.0.75 | 166 | 9/4/2025 |
3.0.74 | 166 | 9/4/2025 |
3.0.73 | 174 | 9/4/2025 |
3.0.72 | 160 | 9/4/2025 |
3.0.71 | 159 | 9/4/2025 |
3.0.70 | 163 | 9/4/2025 |
3.0.69 | 165 | 9/4/2025 |
3.0.68 | 172 | 9/3/2025 |
3.0.67 | 84 | 8/23/2025 |
3.0.66 | 65 | 8/23/2025 |
3.0.65 | 57 | 8/23/2025 |
3.0.64 | 73 | 8/22/2025 |
3.0.63 | 123 | 8/17/2025 |
3.0.62 | 121 | 8/17/2025 |
3.0.61 | 130 | 8/15/2025 |
3.0.60 | 135 | 8/15/2025 |
3.0.59 | 135 | 8/15/2025 |
3.0.58 | 154 | 8/14/2025 |
3.0.57 | 153 | 8/14/2025 |
3.0.56 | 153 | 8/13/2025 |
3.0.55 | 157 | 8/13/2025 |
3.0.54 | 153 | 8/12/2025 |
3.0.53 | 146 | 8/12/2025 |
3.0.52 | 149 | 8/12/2025 |
3.0.51 | 155 | 8/12/2025 |
3.0.50 | 152 | 8/12/2025 |
3.0.49 | 148 | 8/11/2025 |
3.0.48 | 152 | 8/11/2025 |
3.0.47 | 149 | 8/11/2025 |
3.0.46 | 148 | 8/11/2025 |
3.0.45 | 150 | 8/11/2025 |
3.0.44 | 152 | 8/11/2025 |
3.0.43 | 224 | 8/7/2025 |
3.0.42 | 221 | 8/7/2025 |
3.0.41 | 247 | 8/5/2025 |
3.0.40 | 243 | 8/5/2025 |
3.0.39 | 241 | 8/5/2025 |
3.0.38 | 243 | 8/5/2025 |
3.0.37 | 231 | 8/5/2025 |
3.0.36 | 139 | 7/30/2025 |
3.0.35 | 141 | 7/30/2025 |
3.0.34 | 124 | 7/29/2025 |
3.0.33 | 478 | 7/24/2025 |
3.0.32 | 478 | 7/24/2025 |
3.0.31 | 166 | 7/9/2025 |
3.0.30 | 164 | 7/9/2025 |
3.0.29 | 166 | 7/9/2025 |
3.0.28 | 100 | 7/4/2025 |
3.0.27 | 164 | 7/3/2025 |
3.0.26 | 168 | 7/3/2025 |
3.0.25 | 165 | 7/2/2025 |
3.0.24 | 155 | 7/2/2025 |
3.0.23 | 162 | 7/1/2025 |
3.0.22 | 117 | 6/28/2025 |
3.0.21 | 119 | 6/28/2025 |
3.0.20 | 119 | 6/28/2025 |
3.0.19 | 78 | 6/28/2025 |
3.0.18 | 179 | 6/25/2025 |
3.0.17 | 165 | 6/25/2025 |
3.0.16 | 164 | 6/25/2025 |
3.0.15 | 322 | 6/12/2025 |
3.0.14 | 315 | 6/12/2025 |
3.0.13 | 305 | 6/12/2025 |
3.0.12 | 312 | 6/11/2025 |
3.0.11 | 310 | 6/11/2025 |
3.0.10 | 309 | 6/11/2025 |
3.0.9 | 313 | 6/10/2025 |
3.0.8 | 171 | 6/3/2025 |
3.0.7 | 167 | 6/3/2025 |
3.0.6 | 167 | 6/3/2025 |
3.0.5 | 166 | 6/3/2025 |
3.0.4 | 169 | 5/28/2025 |
3.0.3 | 168 | 5/28/2025 |
3.0.2 | 172 | 5/28/2025 |
3.0.1 | 166 | 5/28/2025 |