Soenneker.Blazor.SheetMapper 3.0.48

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Blazor.SheetMapper --version 3.0.48
                    
NuGet\Install-Package Soenneker.Blazor.SheetMapper -Version 3.0.48
                    
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="Soenneker.Blazor.SheetMapper" Version="3.0.48" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Blazor.SheetMapper" Version="3.0.48" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Blazor.SheetMapper" />
                    
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 Soenneker.Blazor.SheetMapper --version 3.0.48
                    
#r "nuget: Soenneker.Blazor.SheetMapper, 3.0.48"
                    
#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 Soenneker.Blazor.SheetMapper@3.0.48
                    
#: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=Soenneker.Blazor.SheetMapper&version=3.0.48
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Blazor.SheetMapper&version=3.0.48
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.Blazor.SheetMapper

A Blazor component and utility library for mapping CSV or tabular files to C# objects.

image

Leverage FilePond for uploads and TomSelect for interactive dropdowns. Automatically extract headers, map columns to your model, and retrieve a clean { property → column } map.

Demo

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

  1. Register interop in your DI container (e.g., Program.cs):

    builder.Services.AddSheetMapperAsScoped();
    
  2. 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
4.0.160 204 11/22/2025
4.0.159 280 11/21/2025
4.0.158 290 11/21/2025
4.0.157 296 11/21/2025
4.0.156 341 11/21/2025
4.0.155 365 11/21/2025
4.0.154 384 11/20/2025
4.0.153 265 11/17/2025
4.0.152 266 11/12/2025
4.0.151 268 11/12/2025
4.0.150 265 11/12/2025
4.0.149 267 11/11/2025
4.0.148 265 11/11/2025
4.0.147 263 11/11/2025
4.0.146 252 11/10/2025
4.0.145 246 11/10/2025
4.0.144 245 11/10/2025
4.0.143 230 11/10/2025
4.0.142 195 11/9/2025
4.0.141 120 11/7/2025
4.0.140 127 11/7/2025
4.0.139 171 11/7/2025
4.0.138 184 11/6/2025
4.0.137 179 11/5/2025
4.0.136 181 11/5/2025
4.0.135 177 11/4/2025
4.0.134 180 11/4/2025
4.0.133 188 11/4/2025
4.0.132 180 11/2/2025
4.0.131 144 10/31/2025
4.0.130 173 10/31/2025
4.0.129 176 10/30/2025
4.0.128 175 10/29/2025
3.0.127 185 10/29/2025
3.0.126 170 10/27/2025
3.0.125 109 10/24/2025
3.0.124 128 10/24/2025
3.0.123 160 10/22/2025
3.0.122 152 10/17/2025
3.0.121 157 10/17/2025
3.0.120 166 10/16/2025
3.0.119 163 10/15/2025
3.0.118 162 10/15/2025
3.0.117 162 10/15/2025
3.0.116 164 10/8/2025
3.0.115 170 10/8/2025
3.0.114 162 10/8/2025
3.0.113 175 10/5/2025
3.0.112 159 10/5/2025
3.0.111 100 10/4/2025
3.0.110 171 10/2/2025
3.0.109 169 10/1/2025
3.0.108 166 9/30/2025
3.0.107 113 9/27/2025
3.0.106 94 9/27/2025
3.0.105 194 9/22/2025
3.0.104 160 9/21/2025
3.0.103 203 9/20/2025
3.0.102 247 9/19/2025
3.0.101 303 9/19/2025
3.0.100 289 9/18/2025
3.0.99 297 9/17/2025
3.0.98 297 9/17/2025
3.0.97 300 9/17/2025
3.0.96 299 9/17/2025
3.0.95 288 9/17/2025
3.0.94 283 9/17/2025
3.0.93 295 9/17/2025
3.0.92 295 9/16/2025
3.0.91 287 9/16/2025
3.0.90 139 9/13/2025
3.0.89 165 9/11/2025
3.0.88 161 9/10/2025
3.0.87 157 9/10/2025
3.0.86 159 9/10/2025
3.0.85 161 9/10/2025
3.0.84 150 9/9/2025
3.0.83 161 9/9/2025
3.0.82 173 9/7/2025
3.0.81 127 9/7/2025
3.0.80 127 9/7/2025
3.0.79 133 9/6/2025
3.0.78 135 9/6/2025
3.0.77 107 9/5/2025
3.0.76 120 9/5/2025
3.0.75 174 9/4/2025
3.0.74 175 9/4/2025
3.0.73 184 9/4/2025
3.0.72 170 9/4/2025
3.0.71 168 9/4/2025
3.0.70 170 9/4/2025
3.0.69 172 9/4/2025
3.0.68 182 9/3/2025
3.0.67 88 8/23/2025
3.0.66 70 8/23/2025
3.0.65 64 8/23/2025
3.0.64 78 8/22/2025
3.0.63 128 8/17/2025
3.0.62 126 8/17/2025
3.0.61 137 8/15/2025
3.0.60 141 8/15/2025
3.0.59 140 8/15/2025
3.0.58 160 8/14/2025
3.0.57 162 8/14/2025
3.0.56 158 8/13/2025
3.0.55 164 8/13/2025
3.0.54 161 8/12/2025
3.0.53 155 8/12/2025
3.0.52 156 8/12/2025
3.0.51 161 8/12/2025
3.0.50 157 8/12/2025
3.0.49 157 8/11/2025
3.0.48 161 8/11/2025
3.0.47 155 8/11/2025
3.0.46 156 8/11/2025
3.0.45 156 8/11/2025
3.0.44 166 8/11/2025
3.0.43 233 8/7/2025
3.0.42 228 8/7/2025
3.0.41 253 8/5/2025
3.0.40 253 8/5/2025
3.0.39 250 8/5/2025
3.0.38 255 8/5/2025
3.0.37 239 8/5/2025
3.0.36 149 7/30/2025
3.0.35 148 7/30/2025
3.0.34 132 7/29/2025
3.0.33 488 7/24/2025
3.0.32 489 7/24/2025
3.0.31 177 7/9/2025
3.0.30 174 7/9/2025
3.0.29 173 7/9/2025
3.0.28 108 7/4/2025
3.0.27 172 7/3/2025
3.0.26 176 7/3/2025
3.0.25 174 7/2/2025
3.0.24 160 7/2/2025
3.0.23 170 7/1/2025
3.0.22 127 6/28/2025
3.0.21 128 6/28/2025
3.0.20 129 6/28/2025
3.0.19 86 6/28/2025
3.0.18 195 6/25/2025
3.0.17 173 6/25/2025
3.0.16 170 6/25/2025
3.0.15 335 6/12/2025
3.0.14 323 6/12/2025
3.0.13 313 6/12/2025
3.0.12 321 6/11/2025
3.0.11 317 6/11/2025
3.0.10 315 6/11/2025
3.0.9 324 6/10/2025
3.0.8 175 6/3/2025
3.0.7 178 6/3/2025
3.0.6 173 6/3/2025
3.0.5 171 6/3/2025
3.0.4 175 5/28/2025
3.0.3 176 5/28/2025
3.0.2 180 5/28/2025
3.0.1 175 5/28/2025