Klyroo.Spreadsheet API reference
Every public type and member, generated from the compiled assemblies and their XML documentation.
On this page
- Klyroo.
Spreadsheet. Core - Static classes and extensions
- Spreadsheet
Column Builder Extensions - Spreadsheet
Xls Reader - Spreadsheet
Xlsx Reader - Classes
- Spreadsheet
Column <TRow> - Spreadsheet
Column <TRow, TValue> - Spreadsheet
Column Builder <TRow, TValue> - Spreadsheet
Column Schema - Spreadsheet
Importer - Spreadsheet
Importer <TRow> - Spreadsheet
Mapping Profile Json Context - Spreadsheet
Schema - Spreadsheet
Schema <TRow> - Spreadsheet
Schema Builder <TRow> - Spreadsheet
User Message Exception - Records
- Spreadsheet
Cell View - Spreadsheet
Column Suggestion - Spreadsheet
Disabled Rule - Spreadsheet
Field State - Spreadsheet
Indexed Issue - Spreadsheet
Mapping Apply Result - Spreadsheet
Mapping Profile - Spreadsheet
Option - Spreadsheet
Option <TValue> - Spreadsheet
Rejected Row - Spreadsheet
Row - Spreadsheet
Row <TRow> - Spreadsheet
Row Issue - Spreadsheet
Rule - Spreadsheet
Rule <TValue> - Spreadsheet
Sheet - Spreadsheet
Step Status - Spreadsheet
Value Answer - Spreadsheet
Value Question - Spreadsheet
Workbook - Structs
- Spreadsheet
Parse Result <TValue> - Enums
- Spreadsheet
Column Kind - Spreadsheet
Column Status - Spreadsheet
Disabled Reason - Spreadsheet
Discard Reason - Spreadsheet
Duplicates Policy - Spreadsheet
Existing Action - Spreadsheet
Issue Level - Spreadsheet
Review Level - Spreadsheet
Review Tab - Spreadsheet
Row Mode - Spreadsheet
Row Status - Spreadsheet
Submit Status - Spreadsheet
Unknown Value Policy - Spreadsheet
Validation Status - Spreadsheet
Value Answer Action - Delegates
- Spreadsheet
Parser <TValue> - Klyroo.
Spreadsheet - Components
- Kly
Spreadsheet Import - Static classes and extensions
- Klyroo
Spreadsheet Service Collection Extensions - Spreadsheet
Locales - Classes
- Klyroo
Spreadsheet Options - Records
- Spreadsheet
Download - Spreadsheet
Texts
Klyroo.Spreadsheet.Core
Static classes and extensions (3) · Classes (11) · Records (20) · Structs (1) · Enums (15) · Delegates (1)
Static classes and extensions
SpreadsheetColumnBuilderExtensions
Klyroo. · service
Settings that exist only for some column value types.
| Method | Returns | Description |
|---|---|---|
static Date |
Spreadsheet |
Sets the exact formats a DateOnly column reads, instead of the defaults. |
static Date |
Spreadsheet |
Sets the exact formats a nullable DateOnly column reads, instead of the defaults. |
static Date |
Spreadsheet |
Sets the exact formats a DateTime column reads, instead of the defaults. |
static Date |
Spreadsheet |
Sets the exact formats a nullable DateTime column reads, instead of the defaults. |
static Date |
Spreadsheet |
Sets the exact formats a DateTimeOffset column reads, instead of the defaults. An offset in the cell (a format with zzz or K) is kept, so 2026-03-05 10:00 +02:00 is that instant with that offset whatever the time zone of the machine; a cell without an offset is read as UTC. |
static Date |
Spreadsheet |
Sets the exact formats a nullable DateTimeOffset column reads, instead of the defaults. An offset in the cell (a format with zzz or K) is kept, so 2026-03-05 10:00 +02:00 is that instant with that offset whatever the time zone of the machine; a cell without an offset is read as UTC. |
static Decimal |
Spreadsheet |
Sets the decimal mark of a number column, . or ,. The other character is accepted as a thousands separator only between groups of three digits. |
static Decimal |
Spreadsheet |
Sets the decimal mark of a nullable number column, . or ,. |
static Options |
Spreadsheet |
Makes a nullable column a select with these allowed values. |
static Rule |
Spreadsheet |
Adds a rule to a nullable column. The rule is typed like the underlying value because it only runs on a cell that holds one. |
SpreadsheetXlsReader
Klyroo. · service
Reads a legacy Excel workbook (.: BIFF8 records inside an OLE2 compound file, Excel 97 to 2003) into a Spreadsheet, with the base class library only. It gives the same values as Spreadsheet: every worksheet becomes a sheet (hidden ones too), strings are text, numbers keep the invariant culture, booleans become TRUE or FALSE, error cells give their text (#DIV/), and numbers formatted as dates become yyyy-MM-dd (with HH:mm or HH:mm:ss when they have a time). Formulas are not evaluated: the value Excel saved is used. Password-protected workbooks and the Excel 5.0/95 format (BIFF5) are refused. The content is treated as untrusted: malformed or hostile files throw Invalid instead of looping or allocating without bound.
| Field | Type | Description |
|---|---|---|
const Max |
long |
The largest file, and the largest decoded stream, 256 MB, beyond which the file is refused. |
| Method | Returns | Description |
|---|---|---|
static Read |
Spreadsheet |
Reads a workbook. |
SpreadsheetXlsxReader
Klyroo. · service
Reads an Excel workbook in the Office Open XML format (.) into a Spreadsheet, with the base class library only. Every worksheet becomes a sheet. Shared, inline and formula strings are read as text, numbers keep the invariant culture (the importer reads them whatever the column's decimal mark), booleans become TRUE or FALSE, and numbers formatted as dates become yyyy-MM-dd (with HH:mm or HH:mm:ss when they have a time). Formulas are not evaluated: the value Excel saved is used. The legacy binary format (.) is read by Spreadsheet.
| Field | Type | Description |
|---|---|---|
const Max |
long |
The largest uncompressed size of one part of the file, 256 MB, beyond which the file is refused. |
| Method | Returns | Description |
|---|---|---|
static Read |
Spreadsheet |
Reads a workbook. |
Classes
SpreadsheetColumn<TRow>
Klyroo. · class · inherits Spreadsheet
A column of a row type, with the value type erased. It is the type the schema stores.
SpreadsheetColumn<TRow, TValue>
Klyroo. · class · inherits Spreadsheet
A column bound to one property of a row type. The kind of cell it reads follows TValue.
| Property | Type | Description |
|---|---|---|
DefaultValue |
TValue |
The value used for empty cells when Spreadsheet is true. |
SpreadsheetColumnBuilder<TRow, TValue>
Klyroo. · class
Configures one column. Methods return the builder so calls chain: c => c.. Settings that only make sense for some value types are extension methods on this type, so they do not compile on the others.
| Method | Returns | Description |
|---|---|---|
Default |
Spreadsheet |
Sets the value used for empty cells. A column with a default is never missing. For a nullable column the default may itself be null. |
Description |
Spreadsheet |
Sets help text shown under the column name. |
Editable |
Spreadsheet |
Sets whether the component lets the user edit this column's cells in the review table. |
Example |
Spreadsheet |
Sets the sample value written in the second row of the CSV template. |
From |
Spreadsheet |
Makes the column reuse the cell text of an earlier column instead of reading its own file column. Such a column never matches a header and is left out of the template. |
Group |
Spreadsheet |
Sets the grouping label the component uses in the column mapping. |
Headers |
Spreadsheet |
Adds header spellings that match this column, on top of the key and the label. |
Key |
Spreadsheet |
Overrides the key, which is the property name by default. The key is what a saved mapping profile stores, so set it to keep a profile valid when you rename the property. |
Label |
Spreadsheet |
Sets the display name, also matched against file headers. |
OnCreateOption |
Spreadsheet |
Called once per distinct value answered with Spreadsheet, when the import is submitted and before any row is sent. Use it to persist the new option. The rows then carry the returned option's value and later sends do not call it again for that value. Setting it makes the component offer a create choice. |
OnCreate |
Spreadsheet |
The asynchronous form of Spreadsheet, for a callback that calls a server. It receives the cancellation token of the submit. When both are set, this one is used. |
Options |
Spreadsheet |
Makes the column a select with these allowed values. Cells that match none become value questions governed by Spreadsheet. |
Parser |
Spreadsheet |
Replaces the built-in parsing of a non-select column with your own. |
Required |
Spreadsheet |
Makes an empty cell a blocking issue and a missing file column a blocker, unless the column has a default. |
Rule |
Spreadsheet |
Adds a validation rule, run on every non-empty parsed value in the order the rules were added. |
Rule |
Spreadsheet |
Adds a validation rule written as a predicate. |
UnknownPolicy |
Spreadsheet |
Sets what happens to select cells that match no option. |
SpreadsheetColumnSchema
Klyroo. · class
Declares one field of the imported data: how to find it in the file, how to parse it and how to validate it. Create columns with `SpreadsheetSchemaBuilder.Column``.
| Property | Type | Description |
|---|---|---|
CanCreateOption |
bool |
Whether the column creates new options: it has an Spreadsheet or Spreadsheet callback, so the component offers a create choice (Spreadsheet). |
DateFormats |
IReadOnlyList |
Exact DateTime format strings accepted for Spreadsheet cells. When empty, the defaults are yyyy-MM-dd, yyyy-MM-dd HH:mm, yyyy-MM-dd HH:mm:ss, dd/ and dd/. |
DecimalSeparator |
char |
The decimal mark of Spreadsheet cells, . or ,. The other character is accepted as a thousands separator only between groups of three digits, so 12,50 is rejected when the mark is .. |
Description |
string? |
Help text for your own UI and for the built-in component, which shows it under the column name. |
Editable |
bool |
Whether the built-in component lets the user edit this column's cells in the review table. Spreadsheet ignores it. |
EffectiveLabel |
string |
Spreadsheet when set, otherwise Spreadsheet turned into words, for example SecureCode becomes Secure code. |
Example |
string? |
A sample value written in the second row of Spreadsheet. |
From |
string? |
The Spreadsheet of an earlier column whose cell text this column reuses instead of reading its own file column. A column with Spreadsheet never matches a header and is left out of the template. |
Group |
string? |
A grouping label for the built-in component, which groups the column mapping by it. |
HasDefault |
bool |
Whether the column has a default for empty cells. A column with a default is never missing. |
Headers |
IReadOnlyList |
Additional header spellings that match this column, on top of Spreadsheet and Spreadsheet. |
Key |
string |
The field name. It is the key of SpreadsheetRow. and it also matches a file header. It defaults to the name of the row property. |
Kind |
Spreadsheet |
How cells are parsed. It follows the value type: text for String, number for numeric types, boolean for Boolean, date for DateOnly, DateTime and DateTimeOffset, select for enums and for any column with options. |
Label |
string? |
The display name, also matched against file headers. Defaults to Spreadsheet. |
Options |
IReadOnlyList |
The allowed values of a Spreadsheet column, as text. For an enum column without explicit options, one per member. |
Required |
bool |
When true, an empty cell is a blocking issue (code required) and a file with no matching column cannot be submitted, unless the column has a default. A column whose property type is a non-nullable value type (Int32, Boolean, an enum) is always required, because an empty cell cannot be stored in it. |
Rules |
IReadOnlyList |
Validation rules run, in order, on every non-empty parsed value. |
UnknownPolicy |
Spreadsheet |
What to do with select cells that match no option. Defaults to Spreadsheet. |
ValueType |
Type |
The type of the row property this column fills. |
SpreadsheetImporter
Klyroo. · class
The headless import engine. It loads delimited text or a prepared workbook, finds the sheet and header row, maps file columns to the columns of a Spreadsheet, parses and validates every row, tracks the user's corrections, and sends the importable rows to the schema's submit callback in batches.
| Field | Type | Description |
|---|---|---|
const Default |
int |
How many rows Spreadsheet and Spreadsheet use by default. |
const Header |
int |
How many leading rows of a sheet are scanned to find the header row. |
const Suggestion |
double |
The share of sampled cells that must parse and pass the error-level rules before a file column is suggested for a missing column. |
const Suggestion |
int |
The maximum number of non-empty cells sampled from a file column when looking for a suggestion. |
| Property | Type | Description |
|---|---|---|
Accepted |
IReadOnlySet |
The SpreadsheetRow. of every row a batch sent by Spreadsheet or Spreadsheet got accepted. It survives a failed or cancelled submit and is what a retry leaves out. A new file, sheet or header row, and Spreadsheet, empty it. |
AcceptedRows |
IReadOnlyList |
The rows whose index is in Spreadsheet, in row order, as the importer currently sees them. |
AllRows |
IReadOnlyList |
Every data row after the header, discarded ones included. The list is a snapshot: it does not change when you edit afterwards, and it is rebuilt on the next access after a change. |
Ambiguous |
bool |
true when several sheets matched the schema equally well and the first one was picked. Offer the user a sheet choice in that case. |
CanNextStep |
bool |
Whether the current step is ready and is not the last one. |
CanPreviousStep |
bool |
Whether there is an earlier step and no submit is running. |
CanSubmit |
bool |
true when a file is loaded, no field is missing, no question is open, no async check is running and at least one importable row is still pending (not accepted yet, see Spreadsheet). The component disables its Import button when this is false. |
CurrentSheet |
Spreadsheet |
The sheet being imported: the selected one, otherwise the first. |
CurrentStepKey |
string |
The key of the wizard step in progress: file, columns, values, review or submit. |
DefaultMaxRows (get, set) |
int? |
A row limit that applies when Spreadsheet is null. null (the default) means no limit. KlySpreadsheet sets it from its MaxRows parameter. Rows past the limit are left out with Spreadsheet. |
DisabledRules |
IReadOnlyList |
The rules the importer stopped evaluating in the current read because their matches kept timing out (see Spreadsheet). Values after the rule was stopped were not checked by it. Empty in the normal case. |
DiscardedRows |
IReadOnlyList |
The rows left out of the import for any reason. The list is cached until a row changes. |
EffectiveMaxRows |
int? |
The row limit in force: Spreadsheet when set, otherwise Spreadsheet. null when there is no limit. |
Fields |
IReadOnlyList |
The mapping state of every schema column, in schema order. |
FileLoaded |
bool |
Whether a workbook with at least one sheet is loaded. |
FileName |
string? |
The name of the loaded file, or null. |
HasAsyncChecks |
bool |
true when the schema defines Lookup or Validate. |
HeaderRowIndex |
int |
The index, within Spreadsheet, of the row used as header. |
HeaderRowNumber |
int |
The file row number of the header row, for messages to the user. 1 when no file is loaded. |
Headers |
IReadOnlyList |
The cell text of the header row. |
ImportableRows |
IReadOnlyList |
The rows that would be sent on submit. The list is cached until a row changes. |
ImportedCount |
int |
How many rows the host accepted so far, across the submit, its retries and its resumptions: Accepted. A retry adds the rows it got accepted and never counts a row twice. |
InspectedRow |
SpreadsheetRow? |
The row open in the inspector, or null. |
Inspected |
int? |
The SpreadsheetRow. of the row open in the inspector, or null. |
InvalidRows |
IReadOnlyList |
The rows with at least one error that are not discarded. The list is cached until a row changes. |
LimitedRowCount |
int |
The number of rows left out because they are past Spreadsheet. |
Logger (get, set) |
ILogger? |
Where the importer reports the exceptions your callbacks throw (the row factory, a property setter, a rule predicate or ValidateRow). The uploader never sees the text of such an exception, only a generic row. issue, so this is the one place it goes. One warning per rule, or one for the row callbacks, is written at the end of each read or edit, with the number of rows it failed on and the first exception. null (the default) reports nothing. |
MappingLocked |
bool |
true while a submit runs or once some rows were accepted: the column mapping, the sheet, the header row and the answers to value questions are then fixed, because the accepted rows were sent as they were read. Methods that would change them do nothing. Spreadsheet (or loading another file) unlocks them. |
MissingFields |
IReadOnlyList |
The fields with status Spreadsheet. Submission is blocked while this is not empty. |
Needs |
bool |
true when async checks are defined, a file is loaded, rows changed since they last completed, and no check is running or has failed (a failed run is repeated by Spreadsheet or by Spreadsheet). KlySpreadsheet runs the checks itself when this is true on the review step. |
OpenQuestions |
IReadOnlyList |
The questions with no answer yet. Submission is blocked while this is not empty. |
PendingRows |
IReadOnlyList |
The importable rows that no accepted batch has covered: what the next Spreadsheet sends. |
Questions |
IReadOnlyList |
Every unknown select value found in the file, answered or not. |
RejectedCount |
int |
The number of rows the server refused in the last submit and that have not been fixed or retried. |
Review |
string |
The issue filter applied to Spreadsheet, as fieldKey, fieldKey\|code, or \|code for issues on the whole row (such as row.). Empty for none. |
ReviewLevel |
Spreadsheet |
The severity filter applied to Spreadsheet. |
ReviewPage |
int |
The 0-based page Spreadsheet returns, kept inside the pages that exist. Changing a review filter goes back to the first page. |
ReviewPageCount |
int |
The number of pages of Spreadsheet at Spreadsheet. At least 1, so an empty table still has a first page. |
ReviewPageRows |
IReadOnlyList |
The rows of the current page of Spreadsheet. A table renders this list, so a file of tens of thousands of rows renders one page of rows only. |
ReviewPageSize |
int |
The number of rows Spreadsheet returns per page. See Spreadsheet. |
ReviewSearch |
string |
The text searched in the cells of Spreadsheet. Empty for none. |
ReviewTab |
Spreadsheet |
The row subset selected for Spreadsheet. |
SavedMapping (get, set) |
Spreadsheet |
A stored mapping to apply automatically. Whenever a file is loaded, or another sheet or header row is chosen, and the headers match the profile (Spreadsheet), its column mapping and answers are applied before the rows are read, so the user does not map the same export twice. Setting it while a file is loaded applies it at once when it matches. null (the default) applies nothing. |
Saved |
bool |
true when Spreadsheet matched the headers of the loaded file and was applied. |
Schema |
Spreadsheet |
The schema this importer was created with. |
Selected |
IReadOnlySet |
The indexes of the rows selected in the review table. |
Sheets |
IReadOnlyList |
The sheets of the loaded file. Empty when nothing is loaded. |
SubmitDone |
int |
How many rows of the current or last submit have been sent so far. |
SubmitError |
string? |
The message of a Spreadsheet thrown by the submit callback, shown as it is, or null. It is null too after any other exception (the component then shows a generic text, and the exception is logged through Spreadsheet), so check Spreadsheet for the failure. |
SubmitStatus |
Spreadsheet |
The state of the current or last submit. |
SubmitTotal |
int |
How many rows the current or last submit sends. |
UnusedHeaders |
IReadOnlyList |
The non-empty headers that no schema column uses. They are not imported. |
ValidationError |
string? |
The message of a Spreadsheet thrown by an async check callback, shown as it is, or null. It is null too after any other exception (the component then shows a generic text, and the exception is logged through Spreadsheet), so check Spreadsheet for the failure. |
ValidationStatus |
Spreadsheet |
The state of the last Spreadsheet run (or of the check Spreadsheet ran before sending). |
Visible |
IReadOnlyList |
The rows to show in a review table: the selected tab, narrowed by the severity filter, the issue filter and the search text. The list is cached until a row or a filter changes, so reading it again is free. |
| Method | Returns | Description |
|---|---|---|
AnswerValue |
void |
Answers an unknown select value for every row that contains it. A user answer overrides the column's policy. |
Apply |
Spreadsheet |
Applies a profile to the loaded file: maps the file headers it knows to their columns, declares its ignored columns absent, and records its value answers. It overrides earlier manual choices for the columns and answers it names and keeps the others. It does not check Spreadsheet: headers the file lacks are skipped. |
AssignColumn |
void |
Maps a file column to a schema column. If another column was manually mapped to the same file column, that mapping is removed. |
CancelSubmit() |
void |
Asks the running submit to stop before its next batch and cancels the batch in flight. The rows accepted so far stay accepted, and Spreadsheet resumes with the rest. Does nothing when no submit is running. |
Cancel |
void |
Stops the running Spreadsheet before its next batch and cancels the callback in flight. Does nothing when no check is running. |
ClearAnswer |
void |
Removes a user answer so the value falls back to the column's policy. |
ClearFile() |
void |
Unloads the file, clears every user decision and returns the wizard to the file step. |
ClearSelection() |
void |
Empties the selection. |
DiscardRows |
void |
Leaves rows out of the import (reason Spreadsheet) and clears the selection. |
EditCell |
void |
Replaces the text of one cell and revalidates that row (and, when the edit changes the row key, the other rows that share the old or the new key). The edit applies in the importer only and never changes the source file. It also clears a server rejection of that row. |
Export |
string |
Builds a CSV of the rows with errors so users can fix them in their own tool and import the file again. |
Export |
string |
Builds a CSV template for users to fill in: a header row and an example row for every column without Spreadsheet. |
GetMapping |
Spreadsheet |
Captures the current mapping: each file header that feeds a column (whether matched by name, by suggestion or by the user), the columns declared absent, and the answers the user gave to unknown values. Store it with Spreadsheet. |
GetSteps() |
IReadOnlyList |
Returns the five wizard steps (file, columns, values, review, submit) with their current state. |
GoToStep |
void |
Jumps back to an earlier step, including a step that was skipped because it had nothing to resolve, so users can still re-map a column. Forward jumps are ignored. |
static HumanizeKey |
string |
Turns a camelCase, PascalCase, snake_case or kebab-case key into words, for example secureCode into Secure code. |
IgnoreColumn |
void |
Declares that a schema column is not in the file, overriding automatic matching. A required column then becomes missing. |
Inspect |
void |
Moves the inspector to the next non-discarded row that has a warning or an error, wrapping around. Does nothing when there is none. |
Inspect |
void |
Moves the inspector to the previous non-discarded row that has a warning or an error, wrapping around. Does nothing when there is none. |
InspectRow |
void |
Opens a row in the inspector, or closes the inspector. |
IsRowAccepted |
bool |
Whether a row was accepted by the host. An accepted row is final: it cannot be edited, left out or restored. |
LoadFileAsync |
Task |
Reads a file and loads it: an . workbook through Spreadsheet, a legacy . workbook through Spreadsheet, anything else as delimited text decoded as UTF-8 (with or without a byte order mark), or as Latin-1 when the bytes are not valid UTF-8. The content decides for the legacy format: a file that starts with the OLE2 signature is read as . whatever its extension, a zip archive named . is read as ., and a text export named . (tab-separated or CSV, as many applications produce) is read as delimited text. An HTML or XML export named . is refused. |
LoadText |
void |
Parses delimited text as a one-sheet workbook and loads it, replacing any previous file and discarding the user's corrections. |
LoadWorkbook |
void |
Loads a prepared workbook, replacing any previous file and discarding the user's column choices, answers, edits and discards. Detects the sheet and header row unless the schema forces them. |
Matches |
bool |
Whether a profile fits the loaded file: it has the version and schema key of this importer, and every header it maps is a header of the file (compared after Spreadsheet, in any order, extra file headers allowed). |
NextStep() |
bool |
Moves to the next step that is not skipped. |
static Normalize |
string |
Normalizes a header or option text for comparison: removes a trailing (required) and trailing *, strips accents, collapses whitespace and lowercases. |
static Parse |
SpreadsheetSheet |
Parses CSV, TSV or semicolon-separated text into a sheet. Handles quoted fields with doubled quotes and line breaks, and strips a leading byte order mark. |
Paste |
void |
Loads text pasted from a spreadsheet. It behaves exactly like Spreadsheet with a different default name. |
PreviousStep() |
bool |
Moves to the previous step that is not skipped. |
ResetColumn |
void |
Removes a manual choice made by Spreadsheet or Spreadsheet so the column is matched by header again. |
ResetSubmit() |
void |
Forgets what was accepted and rejected, and returns Spreadsheet to Spreadsheet, so the next Spreadsheet sends every importable row again. Does nothing while a submit is running. |
RestoreRows |
void |
Brings back rows discarded with Spreadsheet and clears the selection. Rows left out for another reason stay out. |
Retry |
Task |
Sends again the rows the server rejected, that are still importable. The rejection issues are cleared before the send. Does nothing while a submit is running or when nothing was rejected. |
RevertCell |
void |
Removes an edit made by Spreadsheet and restores the file text. |
SetHeaderRow |
void |
Chooses a different header row of the current sheet and clears column choices and discards. |
SetReview |
void |
Filters the review rows to those with an issue on one column, optionally with one code. A non-empty filter switches the Importable and Discarded tabs back to All. |
SetReviewLevel |
void |
Filters the review rows by issue severity. A filter other than All switches the Importable and Discarded tabs back to All. |
SetReviewPage |
void |
Shows another page of the review rows. The number is clamped to the pages that exist. |
SetReview |
void |
Changes the number of rows per page and goes back to the first page. |
SetReviewSearch |
void |
Filters the review rows to those with a cell containing the text, ignoring case. |
SetReviewTab |
void |
Selects the review subset and clears the selection. Choosing Importable or Discarded also resets the severity filter. |
SetSheet |
void |
Switches to another sheet of the loaded file, re-detects its header row and clears column choices and discards. Does nothing for an unknown name. |
SubmitAsync |
Task |
Sends every importable row that was not accepted yet to the schema's submit callback in batches of Spreadsheet. It first calls the column's create-option callback once for each value answered with Create, then runs the async checks of Spreadsheet when Spreadsheet (rows the checks flag with an error are left out of the send and shown as invalid). Rejected rows are kept as errors on their row. Calling it again after a failure or a cancellation resumes: the rows already accepted are not sent twice. An exception from a callback is caught and the status becomes Spreadsheet (Spreadsheet holds the text of a Spreadsheet, the others go to Spreadsheet); a cancellation the host throws on its own is not caught; a cancellation ends in Spreadsheet. Does nothing while a submit is running or when Spreadsheet is false. |
Toggle |
void |
Adds a row to or removes it from the selection. |
ValidateAsync |
Task |
Runs the async checks the schema defines, on the rows that were not checked yet: first the existing-records lookup for the row keys that were not looked up (Lookup, which sets each row's SpreadsheetRow. and applies Spreadsheet), then the batched validation of the rows that are not discarded and have no error (Validate). Editing a row, or changing the column mapping or an answer, makes it unchecked again. Rows already checked are not sent twice, so calling it repeatedly is cheap. An exception is caught and the status becomes Spreadsheet (Spreadsheet holds the text of a Spreadsheet, the others go to Spreadsheet); a cancellation the host throws on its own is not caught; the results of the batches that finished are kept. |
SpreadsheetImporter<TRow>
Klyroo. · class · inherits Spreadsheet
The headless import engine for a row type. It is a Spreadsheet whose schema is typed, so the schema callbacks receive TRow instances, and which can hand you the rows it holds as SpreadsheetRow.
| Constructor | Description |
|---|---|
Spreadsheet |
Creates an importer for a schema, with no file loaded. |
| Property | Type | Description |
|---|---|---|
Importable |
IReadOnlyList |
The rows that would be sent on submit, typed. It builds one TRow per row on each call. It never throws for a row the host refused: such a row is not importable. |
Schema |
Spreadsheet |
The schema this importer was created with. |
| Method | Returns | Description |
|---|---|---|
ToTyped |
SpreadsheetRow |
Gives a row of this importer the typed form: the same row with its parsed values as a TRow. |
SpreadsheetMappingProfileJsonContext
Klyroo. · class · inherits Json
The source-generated JSON context of Spreadsheet, safe for NativeAOT and trimming.
| Property | Type | Description |
|---|---|---|
static Default |
Spreadsheet |
The default Json associated with a default Json instance. |
Int32 |
JsonTypeInfo |
Defines the source generated JSON serialization contract metadata for a given type. |
IRead |
JsonTypeInfo |
Defines the source generated JSON serialization contract metadata for a given type. |
IRead |
JsonTypeInfo |
Defines the source generated JSON serialization contract metadata for a given type. |
IRead |
JsonTypeInfo |
Defines the source generated JSON serialization contract metadata for a given type. |
Spreadsheet |
JsonTypeInfo |
Defines the source generated JSON serialization contract metadata for a given type. |
Spreadsheet |
JsonTypeInfo |
Defines the source generated JSON serialization contract metadata for a given type. |
Spreadsheet |
JsonTypeInfo |
Defines the source generated JSON serialization contract metadata for a given type. |
String |
JsonTypeInfo |
Defines the source generated JSON serialization contract metadata for a given type. |
SpreadsheetSchema
Klyroo. · class
Describes an import: its columns and the policies for limits, duplicates, existing records and submission. Create one with SpreadsheetSpreadsheetImporter`.
| Property | Type | Description |
|---|---|---|
Accept |
IReadOnlyList |
The file extensions the built-in component lists in its drop zone. They are display text: the importer enforces nothing, and Spreadsheet reads . and . workbooks and delimited text whatever this list says. |
BatchSize |
int |
The number of rows passed to the submit callback per call. Zero or less sends all rows in one call. |
Columns |
IReadOnlyList |
The columns to import, in display order. A column with Spreadsheet comes after its source. |
Duplicates |
Spreadsheet |
How rows that repeat a key within the file are handled. Keys are compared trimmed and case-insensitively. Needs Spreadsheet. |
ExistingAction |
Spreadsheet |
What to do with rows whose key is in the existing records. |
ForcedHeaderRow |
int? |
The 1-based file row number of the header row, which skips header detection. A number that matches no row selects the first row. |
ForcedSheet |
string? |
The name of the sheet to read, which skips sheet detection. null, empty or auto detects the sheet; an unknown name falls back to the first sheet. |
Key |
string |
A name for the import. The component uses it to name the downloads and a saved mapping profile is tied to it. |
LookupBatchSize |
int |
The number of keys passed to the existing-record lookup per call. Zero or less sends all keys in one call. |
MaxRows |
int? |
The maximum number of data rows to import. Later rows are left out with Spreadsheet. No limit when null. |
RowKeyField |
string? |
The Spreadsheet of the column that identifies a row. It enables the duplicate and existing-record checks. |
RuleTimeoutLimit |
int |
How many match timeouts one rule may cause in a file before the importer stops evaluating it (a circuit breaker, so a hostile file cannot cost one SpreadsheetRule. per cell). The rule is then listed once in Spreadsheet and the component shows a notice. Zero or less never stops a rule. |
Validate |
int |
The number of rows passed to the batched row check per call. Zero or less sends all rows in one call. |
| Method | Returns | Description |
|---|---|---|
static For |
Spreadsheet |
Creates a schema for a row type. Declare each column with `SpreadsheetSchemaBuilder.Column``. |
static For |
Spreadsheet |
Creates a schema for a row type that has no public parameterless constructor, for example a type with required members. |
SpreadsheetSchema<TRow>
Klyroo. · class · inherits Spreadsheet
A schema bound to a row type: the columns map to its properties, and the callbacks receive its rows.
| Property | Type | Description |
|---|---|---|
ExistingRecords |
IRead |
Records that already exist, keyed by the row key text (invariant: a DateOnly is yyyy-MM-dd, a DateTime is yyyy-MM-ddTHH:mm or with seconds, a DateTimeOffset is the same for its UTC instant, and a Decimal has no trailing zeros). A row matches when its key text equals a dictionary key under the dictionary's own comparer, with no trimming or case folding applied to the row, so build the dictionary with StringComparer. for case-insensitive keys. Needs a row key. |
Lookup |
Func |
Looks up existing records by key on demand, instead of loading them all into Spreadsheet. It receives the distinct row key texts of the file, Spreadsheet at a time, and returns the records found by key (keys it does not return are new). A row matches when its key text equals a returned key under the dictionary's own comparer, like Spreadsheet. Needs a row key. See Spreadsheet for when it runs. |
OnSubmit |
Func |
Receives each batch of importable rows and returns the rows the server refused, or null or an empty list when all were accepted. If it throws, the submit stops with Spreadsheet. |
OnSubmitAsync |
Func |
The cancellable form of Spreadsheet: it also receives a Cancellation that is cancelled by Spreadsheet (the Cancel button of the component) or by the token passed to Spreadsheet. A batch that throws Operation counts as not accepted, so make the call safe to repeat. When both are set, this one is used. |
ValidateRow |
Func |
A cross-field check run on every row after the column rules. It receives the parsed row (a cell that is empty or could not be read leaves its property at the default) and returns extra issues, which are added to the row. |
Validate |
Func |
A batched check that needs the host, for example "do these SKUs exist". It receives rows that are not discarded and have no error, Spreadsheet at a time, and returns the issues it found with the index of their row, or null or an empty list for none. See Spreadsheet for when it runs. |
SpreadsheetSchemaBuilder<TRow>
Klyroo. · class
Declares the columns and policies of a Spreadsheet. Columns are declared in display order.
| Property | Type | Description |
|---|---|---|
Accept (get, set) |
IReadOnlyList |
The file extensions the built-in component lists in its drop zone. They are display text: the importer enforces nothing. |
BatchSize (get, set) |
int |
The number of rows passed to Spreadsheet per call. Zero or less sends all rows in one call. |
Duplicates (get, set) |
Spreadsheet |
How rows that repeat a key within the file are handled. Needs Spreadsheet. Defaults to Spreadsheet. |
ExistingAction (get, set) |
Spreadsheet |
What to do with rows whose key is in Spreadsheet. Defaults to Spreadsheet. |
ExistingRecords (get, set) |
IRead |
Records that already exist, keyed by the row key text. Needs Spreadsheet. See Spreadsheet. |
ForcedHeaderRow (get, set) |
int? |
The 1-based file row number of the header row, which skips header detection. |
ForcedSheet (get, set) |
string? |
The name of the sheet to read, which skips sheet detection. |
Key (get, set) |
string |
A name for the import. The component uses it to name the downloads and a saved mapping profile is tied to it. Defaults to import. |
LookupBatchSize (get, set) |
int |
The number of keys passed to Spreadsheet per call. Zero or less sends all keys in one call. Defaults to 500. |
Lookup (get, set) |
Func |
Looks up existing records by key on demand. See Spreadsheet. |
MaxRows (get, set) |
int? |
The maximum number of data rows to import. Later rows are left out with Spreadsheet. No limit when null. |
OnSubmit (get, set) |
Func |
Receives each batch of importable rows. See Spreadsheet. |
OnSubmitAsync (get, set) |
Func |
The cancellable form of Spreadsheet. See Spreadsheet. |
RuleTimeoutLimit (get, set) |
int |
How many match timeouts one rule may cause in a file before the importer stops evaluating it. Defaults to 3. Zero or less never stops a rule. |
Validate (get, set) |
int |
The number of rows passed to Spreadsheet per call. Zero or less sends all rows in one call. Defaults to 500. |
ValidateRow (get, set) |
Func |
A cross-field check run on every row after the column rules. See Spreadsheet. |
Validate (get, set) |
Func |
A batched check that needs the host. See Spreadsheet. |
| Method | Returns | Description |
|---|---|---|
Column |
Spreadsheet |
Declares a column bound to a property of the row. Its kind follows the property type: text for String, number for numeric types, boolean for Boolean, date for DateOnly, DateTime and DateTimeOffset, select for an enum. A nullable type reads the same way and stores null for an empty cell. Other types need Spreadsheet. |
RowKey |
void |
Sets the column that identifies a row, which enables the duplicate and existing-record checks. |
SpreadsheetUserMessageException
Klyroo. · class · inherits Exception
Throw it from a callback of the import (the submit, an async check) when the text of the exception is meant for the uploader: Spreadsheet or Spreadsheet then holds Exception. as it is, and the component shows it. Any other exception is logged and the uploader sees a generic, localized text, because the message of an exception can hold a path or a connection string. To refuse some rows with a message, prefer the typed way, Spreadsheet returned by the submit callback, or Spreadsheet returned by Validate; this exception is for a failure of the whole call, such as a closed import window.
| Constructor | Description |
|---|---|
Spreadsheet |
Creates the exception. |
Records
SpreadsheetCellView
Klyroo. · record
How one cell of a row is read and displayed.
| Constructor | Description |
|---|---|
Spreadsheet |
How one cell of a row is read and displayed. |
| Property | Type | Description |
|---|---|---|
Created (init) |
bool |
Whether the value is a new option answered with Spreadsheet. |
Defaulted (init) |
bool |
Whether the column default replaced an empty cell. |
DisplayText (init) |
string |
The text to show: the option label for selects, the parsed value for other kinds, or the default. |
Edited (init) |
bool |
Whether the user edited the cell. |
Issue (init) |
Spreadsheet |
The first issue found on this cell, or null. |
OriginalText (init) |
string |
The text in the file. |
Text (init) |
string |
The text being parsed: the user's edit when there is one, otherwise the file text. |
SpreadsheetColumnSuggestion
Klyroo. · record
A file column offered for a missing required column because its sample values look right. The importer never applies it on its own.
| Constructor | Description |
|---|---|
Spreadsheet |
A file column offered for a missing required column because its sample values look right. The importer never applies it on its own. |
| Property | Type | Description |
|---|---|---|
HeaderIndex (init) |
int |
The index to pass to Spreadsheet. |
HeaderText (init) |
string |
The header text of the suggested file column. |
Samples (init) |
IReadOnlyList |
Up to three distinct sample values from that column. |
SpreadsheetDisabledRule
Klyroo. · record
A rule the importer stopped evaluating because its matches timed out, or its predicate threw, too often. See Spreadsheet.
| Constructor | Description |
|---|---|
Spreadsheet |
A rule the importer stopped evaluating because its matches timed out, or its predicate threw, too often. See Spreadsheet. |
| Property | Type | Description |
|---|---|---|
ColumnKey (init) |
string |
The key of the column the rule belongs to. |
Reason (init) |
Spreadsheet |
Whether the rule was stopped for its timeouts or for its exceptions. |
RuleCode (init) |
string |
The SpreadsheetRule. of the rule. |
Timeouts (init) |
int |
The number of timeouts and exceptions that stopped it (the one that came last decides Reason). |
SpreadsheetFieldState
Klyroo. · record
The current mapping of one schema column to the loaded file.
| Constructor | Description |
|---|---|
Spreadsheet |
The current mapping of one schema column to the loaded file. |
| Property | Type | Description |
|---|---|---|
AssignedBy (init) |
string? |
file when the header matched by name, user after Spreadsheet, otherwise null. |
Column (init) |
Spreadsheet |
The schema column. |
HeaderIndex (init) |
int? |
The index of the file column read for this field, or null when none is. |
HeaderText (init) |
string? |
The header text of that file column. |
Samples (init) |
IReadOnlyList |
Up to three distinct non-empty values of the mapped file column. |
Status (init) |
Spreadsheet |
Whether the column is matched, defaulted, missing or unmatched. |
Suggestion (init) |
Spreadsheet |
A suggested file column for a missing field, or null. |
SpreadsheetIndexedIssue
Klyroo. · record
An issue found by Validate, with the row it belongs to.
| Constructor | Description |
|---|---|
Spreadsheet |
An issue found by Validate, with the row it belongs to. |
| Property | Type | Description |
|---|---|---|
Issue (init) |
Spreadsheet |
The issue added to that row. Only Spreadsheet blocks the row. |
RowIndex (init) |
int |
The SpreadsheetRow. of the row. |
SpreadsheetMappingApplyResult
Klyroo. · record
What Spreadsheet changed.
| Constructor | Description |
|---|---|
Spreadsheet |
What Spreadsheet changed. |
| Property | Type | Description |
|---|---|---|
Applied |
bool |
true when anything was applied. |
ColumnsApplied (init) |
int |
The columns mapped to a file header of the profile. |
ColumnsIgnored (init) |
int |
The columns declared absent from the file. |
Value (init) |
int |
The answers recorded. |
SpreadsheetMappingProfile
Klyroo. · record
A column mapping and the answers to unknown values, in a form you can store and apply to the next file with the same headers: Spreadsheet builds it from the current state, Spreadsheet applies it, and Spreadsheet applies it automatically when a file's headers match. It holds no cell data, only header texts, column keys and answers.
| Field | Type | Description |
|---|---|---|
const Current |
int |
The format version of Spreadsheet this library writes. |
| Property | Type | Description |
|---|---|---|
Columns (init) |
IRead |
The file headers and the column they were mapped to: the header after Spreadsheet (lower case, no accents, no trailing *) mapped to the Spreadsheet. When a header appears several times in the file, this holds its first occurrence and Spreadsheet the others. |
IgnoredColumns (init) |
IReadOnlyList |
The keys of the columns the user declared absent from the file with Spreadsheet. |
RepeatedColumns (init) |
IRead |
The columns mapped to the second, third and later occurrence of a header that repeats in the file (two Date columns, for example): "2:date" is the second column headed date, mapped to a column key. It keeps a re-applied profile from sending both occurrences to the same column. |
SchemaKey (init) |
string? |
The Spreadsheet the profile was made for. A profile with a key is applied only to a schema with the same key. null applies to any schema. |
ValueAnswers (init) |
IRead |
The answers to unknown select values, by question id (column, see Spreadsheet). |
Version (init) |
int |
The format version. A profile of an unknown version is not applied. |
| Method | Returns | Description |
|---|---|---|
static FromJson |
Spreadsheet |
Reads a profile written by Spreadsheet. |
ToJson() |
string |
Writes the profile as indented JSON (camelCase names, enums as strings). |
SpreadsheetOption
Klyroo. · record
An allowed value of a Spreadsheet column, as the importer and the component see it: the value is its text.
| Constructor | Description |
|---|---|
Spreadsheet |
An allowed value of a Spreadsheet column, as the importer and the component see it: the value is its text. |
| Property | Type | Description |
|---|---|---|
Aliases (init) |
IReadOnlyList |
Extra spellings that also match this option, for example a symbol or an abbreviation. |
Label (init) |
string |
The text shown to the user. Cells are matched against it as well as against the value. |
Value (init) |
string |
The option's value as text (the enum member name for an enum column). It is what a value answer maps to. |
SpreadsheetOption<TValue>
Klyroo. · record
An allowed value of a select column, typed like the column.
| Constructor | Description |
|---|---|
Spreadsheet |
An allowed value of a select column, typed like the column. |
| Property | Type | Description |
|---|---|---|
Aliases (init) |
IReadOnlyList |
Extra spellings that also match this option, for example a symbol or an abbreviation. |
Label (init) |
string |
The text shown to the user. Cells are matched against it as well as against the value. |
Value (init) |
TValue |
The value written to the row property when this option matches. |
SpreadsheetRejectedRow
Klyroo. · record
A row that OnSubmit refused. It comes back as an error issue with code server on that row.
| Constructor | Description |
|---|---|
Spreadsheet |
A row that OnSubmit refused. It comes back as an error issue with code server on that row. |
| Property | Type | Description |
|---|---|---|
Field (init) |
string? |
The column key the reason relates to, or null for the whole row. |
Message (init) |
string |
The reason, shown to the user. |
RowIndex (init) |
int |
The SpreadsheetRow. of the refused row. |
SpreadsheetRow
Klyroo. · record
One data row after parsing and validation, as the importer currently sees it. The typed form of a row is SpreadsheetRow.
| Constructor | Description |
|---|---|
SpreadsheetRow |
One data row after parsing and validation, as the importer currently sees it. The typed form of a row is SpreadsheetRow. |
| Property | Type | Description |
|---|---|---|
Cells (init) |
IRead |
The display state of each cell by column key. |
DiscardReason (init) |
Spreadsheet |
Why the row is left out, or null when it is not. |
Edited (init) |
bool |
Whether the user edited any cell of the row. |
Importable (init) |
bool |
Whether the row is sent on submit: not discarded and without an error. |
Index (init) |
int |
The 0-based position among the data rows (the rows after the header). Edit, discard and rejection methods use it. |
Issues (init) |
IReadOnlyList |
Every issue found on the row. |
Mode (init) |
Spreadsheet |
Whether the row creates a record or updates an existing one. |
RowNumber (init) |
int |
The 1-based row number in the file, for messages to the user. |
Status (init) |
Spreadsheet |
The overall validation state. |
SpreadsheetRow<TRow>
Klyroo. · record · inherits SpreadsheetRow
A row with the parsed values as an instance of the row type. It is what the schema callbacks receive.
| Property | Type | Description |
|---|---|---|
Value |
TRow |
The parsed values. A cell that is empty without a default, or that could not be read, leaves its property at the default of its type, so check SpreadsheetRow. before trusting a value. The rows the callbacks receive are importable. |
SpreadsheetRowIssue
Klyroo. · record
A problem or note about a row or one of its cells.
| Constructor | Description |
|---|---|
Spreadsheet |
A problem or note about a row or one of its cells. |
| Property | Type | Description |
|---|---|---|
Args (init) |
IReadOnlyList |
Set for the messages the library writes itself: the values the message contains (the cell text of a number issue, the row number of a row. issue), possibly none. With it, the component shows the message of the user's locale for the Code, see SpreadsheetTexts. null for a message you wrote (a rule with your own text, ValidateRow, a server rejection), which is never replaced. |
Code (init) |
string |
A stable identifier. Built-in codes are required, number, boolean, date, text, value., value., value., row., row., row. (the host's factory, setter, rule predicate or ValidateRow threw; the message is generic and never the exception's text, which goes to Spreadsheet) and server, plus the code of each failed SpreadsheetRule. |
Field (init) |
string? |
The column key the issue relates to, or null for the whole row. |
Level (init) |
Spreadsheet |
The severity. |
Message (init) |
string |
The text of the issue in English. KlySpreadsheet shows it as it is when Args is null. |
SpreadsheetRule
Klyroo. · record
A validation rule attached to a column. A rule runs on the parsed value of a non-empty cell. Create one with the factory methods of this type or with SpreadsheetRule.
| Field | Type | Description |
|---|---|---|
static readonly Default |
TimeSpan |
The match timeout SpreadsheetRule. uses when you pass none: 100 milliseconds per cell. |
| Property | Type | Description |
|---|---|---|
Code (init) |
string |
A stable identifier copied to Spreadsheet, usable for filtering. |
Level (init) |
Spreadsheet |
The severity of the issue. Only Spreadsheet blocks the row. |
Message (init) |
string |
The text of the issue shown to the user when the rule fails. |
MessageArgs (init) |
IReadOnlyList |
Set by the built-in rules when Message is their default text: the values it contains (the minimum of SpreadsheetRule.SpreadsheetRowIssue.Args, which tells the component to show the message of the user's locale instead of the English default. null` for a rule with your own message, which is shown as it is. |
| Method | Returns | Description |
|---|---|---|
static Between |
SpreadsheetRule |
Creates a rule that accepts numbers inside an inclusive range. |
static Email |
SpreadsheetRule |
Creates a rule that accepts text shaped like an email address (something before and after one @, and a dot followed by at least two characters). |
static Max |
SpreadsheetRule |
Creates a rule that accepts numbers less than or equal to a maximum. |
static Min |
SpreadsheetRule |
Creates a rule that accepts numbers greater than or equal to a minimum. |
static Pattern |
SpreadsheetRule |
Creates a rule that accepts text matching a regular expression. A cell that makes the match run past the timeout (catastrophic backtracking on a hostile value) does not hang the import: it gets a pattern issue saying the format could not be checked in time. |
SpreadsheetRule<TValue>
Klyroo. · record · inherits SpreadsheetRule
A validation rule on the parsed value of a column.
| Constructor | Description |
|---|---|
SpreadsheetRule |
A validation rule on the parsed value of a column. |
| Property | Type | Description |
|---|---|---|
Validate (init) |
Func |
Receives the parsed value and returns true when it is acceptable. |
SpreadsheetSheet
Klyroo. · record
One sheet of a workbook, as rows of cell text.
| Constructor | Description |
|---|---|
SpreadsheetSheet |
One sheet of a workbook, as rows of cell text. |
| Property | Type | Description |
|---|---|---|
Name (init) |
string |
The sheet name. |
RowNumbers (init) |
IReadOnlyList |
The 1-based row number in the source file of each entry of Rows, so the same index in both lists describes one row. |
Rows (init) |
IReadOnlyList |
The non-empty rows, each a list of trimmed cell text. |
SpreadsheetStepStatus
Klyroo. · record
The state of one step of the import wizard.
| Constructor | Description |
|---|---|
Spreadsheet |
The state of one step of the import wizard. |
| Property | Type | Description |
|---|---|---|
Blockers (init) |
int |
The number of items to resolve before the step is ready. |
Hint (init) |
string |
A short description of the step. |
Key (init) |
string |
One of file, columns, values, review or submit. |
Label (init) |
string |
The step title. |
Position (init) |
int |
The 1-based position in the wizard. |
Ready (init) |
bool |
Whether the step has nothing left to resolve, so the wizard can move on from it. |
Skipped (init) |
bool |
Whether the step needs no action and is passed over: columns without missing fields, values without questions. |
State (init) |
string |
current, done, skipped or upcoming. |
SpreadsheetValueAnswer
Klyroo. · record
The decision for one unknown select value, given by the user or by the column's policy.
| Constructor | Description |
|---|---|
Spreadsheet |
The decision for one unknown select value, given by the user or by the column's policy. |
| Property | Type | Description |
|---|---|---|
Action (init) |
Spreadsheet |
What to do with the value. |
MappedLabel (init) |
string? |
For Spreadsheet, the label to display. Defaults to the value. |
MappedValue (init) |
string? |
For Spreadsheet, the Spreadsheet to use. |
SpreadsheetValueQuestion
Klyroo. · record
An unknown select value found in the file, with the answer given so far. One question exists per column and normalized value.
| Constructor | Description |
|---|---|
Spreadsheet |
An unknown select value found in the file, with the answer given so far. One question exists per column and normalized value. |
| Property | Type | Description |
|---|---|---|
Answer (init) |
Spreadsheet |
The current answer, or null while the question is open. |
AnsweredBy (init) |
string? |
user or policy when answered, otherwise null. |
CanCreate (init) |
bool |
Whether the column defines Spreadsheet, so creating the value is allowed. |
Choices (init) |
IReadOnlyList |
The options the value can be mapped to. |
FieldKey (init) |
string |
The key of the select column. |
FieldLabel (init) |
string |
The display name of the select column. |
Id (init) |
string |
The column key and the normalized value joined by ::. |
IsOpen |
bool |
true while no answer exists. Open questions block submission. |
NormalizedKey (init) |
string |
The value after Spreadsheet. |
RawValue (init) |
string |
The value as it first appeared in the file. |
RowIndexes (init) |
IReadOnlyList |
The SpreadsheetRow. of every row that contains the value. |
SpreadsheetWorkbook
Klyroo. · record
A parsed file made of one or more sheets. Build one yourself to import a format the library does not parse, then pass it to Spreadsheet.
| Constructor | Description |
|---|---|
Spreadsheet |
A parsed file made of one or more sheets. Build one yourself to import a format the library does not parse, then pass it to Spreadsheet. |
| Property | Type | Description |
|---|---|---|
InvariantNumbers (init) |
bool |
true when number cells hold invariant-culture text (1234.5), as in a workbook read by Spreadsheet. Number columns then read that form whatever their Spreadsheet, and still accept text in the column's own convention. |
Name (init) |
string |
The file name, shown by the component. |
Sheets (init) |
IReadOnlyList |
The sheets of the file. |
Structs
SpreadsheetParseResult<TValue>
Klyroo. · struct
The outcome of a Spreadsheet: a value or an error message.
| Property | Type | Description |
|---|---|---|
Error |
string? |
The message shown on the cell when Spreadsheet is false. |
IsOk |
bool |
true when the text was read into Spreadsheet. |
Value |
TValue |
The parsed value, meaningful when Spreadsheet is true. |
| Method | Returns | Description |
|---|---|---|
static Fail |
Spreadsheet |
The text cannot be read. The cell gets an error issue with this message. |
static Ok |
Spreadsheet |
The text was read as value. |
Enums
SpreadsheetColumnKind
Klyroo. · enum
The data type a Spreadsheet parses its cells into.
| Value | Description |
|---|---|
Text |
Free text. The trimmed cell text is the value. |
Number |
A number parsed to Double. Spaces, non-breaking spaces and apostrophes are removed first, and the decimal separator comes from Spreadsheet. |
Date |
A date parsed with Spreadsheet (or the default formats) and stored as an ISO 8601 string, yyyy-MM-dd or yyyy-MM-ddTHH:mm when the time is not midnight. |
Boolean |
A yes/no value parsed to Boolean. Accepts yes, y, oui, o, true, vrai, x and 1 for true, and no, n, non, false, faux and 0 for false, ignoring case and accents. |
Select |
A value chosen from Spreadsheet. Cells that match no option become value questions governed by the column's unknown-value policy. |
SpreadsheetColumnStatus
Klyroo. · enum
How a schema column relates to the loaded file. See Spreadsheet.
| Value | Description |
|---|---|
Matched |
The column is read from a file column, or is computed from another column through Spreadsheet. |
Default |
No file column matches, but the column has a default value (Spreadsheet). |
Missing |
No file column matches and the column is required without a default. The importer cannot submit until a column is assigned. |
Unmatched |
No file column matches and the column is optional. Its cells are empty. |
SpreadsheetDisabledReason
Klyroo. · enum
Why the importer stopped a rule.
| Value | Description |
|---|---|
Timeouts |
Its matches timed out too often. |
Failures |
Its predicate threw too often. |
SpreadsheetDiscardReason
Klyroo. · enum
Why a SpreadsheetRow is left out of the import. When several reasons apply, the first in this order wins: limit, value, duplicate, existing, manual.
| Value | Description |
|---|---|
Manual |
The user left the row out, through Spreadsheet. |
Value |
A value answer of Spreadsheet applies to the row. |
Limit |
The row is past Spreadsheet. |
Duplicate |
The row repeats a key and the policy keeps only the first or the last row. |
Existing |
The key already exists and Spreadsheet is set. |
SpreadsheetDuplicatesPolicy
Klyroo. · enum
How rows that share the same Spreadsheet value inside one file are handled.
| Value | Description |
|---|---|
Error |
Every row of the duplicated key gets a blocking issue (code row.), so none of them is importable until you edit or discard some. |
KeepFirst |
Keep the first row of each key and leave out the others (discard reason Spreadsheet). |
KeepLast |
Keep the last row of each key and leave out the others (discard reason Spreadsheet). |
SpreadsheetExistingAction
Klyroo. · enum
What happens to an imported row whose key is already present in ExistingRecords.
| Value | Description |
|---|---|
Update |
Import the row in Spreadsheet mode. This is the default. |
Skip |
Leave the row out (mode Spreadsheet, discard reason Spreadsheet). |
Error |
Mark the row with a blocking issue (code row.) so it is not importable. |
SpreadsheetIssueLevel
Klyroo. · enum
How serious a Spreadsheet is.
| Value | Description |
|---|---|
Info |
Informational. Does not affect whether the row can be imported. |
Warning |
Worth a look, but the row stays importable. |
Error |
Blocks the row from being imported. |
SpreadsheetReviewLevel
Klyroo. · enum
Filters the review table by the severity of the issues a row has. See Spreadsheet.
| Value | Description |
|---|---|
All |
No severity filter. |
Blocking |
Only rows with at least one error issue. |
Warnings |
Only rows with at least one warning issue. |
SpreadsheetReviewTab
Klyroo. · enum
The row subset shown by the review table. See Spreadsheet.
| Value | Description |
|---|---|
All |
Every row, discarded ones included. |
Importable |
Rows that would be submitted. |
Invalid |
Rows with at least one error that are not discarded. |
Discarded |
Rows left out of the import, whatever the reason. |
SpreadsheetRowMode
Klyroo. · enum
Whether an importable row creates a record or updates an existing one.
| Value | Description |
|---|---|
Create |
The key is new, or the schema has no key. |
Update |
The key matches an entry of ExistingRecords. |
Skip |
The key matches an existing record and the schema skips those rows. |
SpreadsheetRowStatus
Klyroo. · enum
The validation state of a SpreadsheetRow.
| Value | Description |
|---|---|
Valid |
No error or warning, and the row is not discarded. |
Warning |
At least one warning and no error. The row is importable. |
Blocking |
At least one error. The row is not importable until it is edited or discarded. |
Discarded |
The row is left out of the import. See SpreadsheetRow.. |
SpreadsheetSubmitStatus
Klyroo. · enum
Where Spreadsheet is in its lifecycle.
| Value | Description |
|---|---|
Idle |
Nothing has been submitted since the file was loaded. |
Running |
A submit or retry is in progress. |
Done |
The last submit finished. Rows may still have been rejected, see Spreadsheet. |
Error |
The submit callback threw. Spreadsheet holds the message when it was meant for the uploader (Spreadsheet); any other exception goes to Spreadsheet. The rows accepted before the failure stay accepted, and Spreadsheet resumes with the rest. |
Cancelled |
The submit was cancelled, through Spreadsheet or the token given to Spreadsheet. The rows accepted so far stay accepted, and Spreadsheet resumes with the rest. |
SpreadsheetUnknownValuePolicy
Klyroo. · enum
What the importer does with a cell of a Spreadsheet column that matches none of the column's options.
| Value | Description |
|---|---|
Ask |
Raise a Spreadsheet and block the import until it is answered. This is the default. |
Error |
Do not ask: every row with the unknown value gets an error issue (code value.) and is not importable. |
SkipRows |
Answer automatically by leaving out every row that contains the unknown value (discard reason Spreadsheet). |
LeaveEmpty |
Answer automatically by importing the row with an empty value for the cell. |
Create |
Answer automatically by keeping the cell text as a new option. Spreadsheet is called once per new value on submit. |
SpreadsheetValidationStatus
Klyroo. · enum
Where the async checks of Spreadsheet are in their lifecycle.
| Value | Description |
|---|---|
Idle |
No check has run since the file was loaded. |
Running |
The checks are running. |
Done |
The last run finished. |
Error |
A callback threw. Spreadsheet holds the message when it was meant for the uploader (Spreadsheet); any other exception goes to Spreadsheet. |
Cancelled |
The last run was cancelled before it finished. |
SpreadsheetValueAnswerAction
Klyroo. · enum
The decision recorded in a Spreadsheet for an unknown select value.
| Value | Description |
|---|---|
Map |
Replace the value with one of the column's options. |
LeaveEmpty |
Import the row with an empty cell. |
SkipRows |
Leave out every row that contains the value. |
Create |
Keep the value as a new option. |
Delegates
SpreadsheetParser<TValue>
Klyroo. · delegate
Reads the text of a cell into a value. Replaces the built-in parsing of a column, see Spreadsheet.
Klyroo.Spreadsheet
Components (1) · Static classes and extensions (2) · Classes (1) · Records (2)
Components
KlySpreadsheetImport
Klyroo. · component · inherits KlyComponentBase
| Parameter | Type | Description |
|---|---|---|
Importer |
Spreadsheet |
The importer that holds the import state. The component renders it and calls its methods. Users load a file by choosing or dropping it on the file step (CSV, TSV, text, . or ., through Spreadsheet) or by pasting rows; your code can also call Spreadsheet or Spreadsheet. |
MaxFileSize |
long |
The largest file users can choose, in bytes. Defaults to 10 MB. |
MaxRows |
int? |
The most rows an import takes when Spreadsheet is not set, 10,000 by default. Rows past the limit are left out and the component says how many. null removes the limit. A Spreadsheet in the schema wins over this value. |
OnDownload |
EventCallback |
Called with the file when the user chooses to download the template or the invalid rows, instead of the browser download. Set it in .NET MAUI Blazor Hybrid, or to save the file your own way: the component then makes no JavaScript call. |
OnMapping |
EventCallback |
Called with the current Spreadsheet when the user changes the column mapping or answers a value question (and when your code does it through the importer), so the app can store it and give it back through Spreadsheet. It is not called when a file is loaded or when a saved mapping is applied automatically. |
PageSize |
int |
The number of rows the review table shows per page, 50 by default. Users can change it with the page size list of the pager. |
Title |
string? |
The heading shown above the wizard. Defaults to the word Import in the language of the locale (Spreadsheet). Your text is shown as it is. |
Wizard |
bool |
Shows the step bar and the Back, Continue and Import buttons. When false only the current step is rendered and your code moves between steps with the importer's step methods. |
Also accepts the parameters of KlyComponentBase.
| Field | Type | Description |
|---|---|---|
const Default |
int |
The value of KlySpreadsheet when you do not set it: 10,000 rows. |
Static classes and extensions
KlyrooSpreadsheetServiceCollectionExtensions
Klyroo. · service
Service registration for Klyroo.Spreadsheet.
| Method | Returns | Description |
|---|---|---|
static Add |
IService |
Registers the services KlySpreadsheet needs. It calls AddKlyrooUi() with its defaults, so call AddKlyrooUi with your own options before or after it, not instead of it. Call it once in Program., and also in the client project of an Interactive WebAssembly or Auto app. |
SpreadsheetLocales
Klyroo. · service
The built-in texts of Klyroo.Spreadsheet, one set per locale of KlyLocales. and keyed by the same codes. The component picks the set of its current KlyLocale. with KlyLocales., so "pt-PT" gets "pt" and an unknown language gets English. Change a set with Klyroo.
| Property | Type | Description |
|---|---|---|
static Ar |
SpreadsheetTexts |
العربية (ar). Needs review. |
static De |
SpreadsheetTexts |
Deutsch (de). Needs review. |
static En |
SpreadsheetTexts |
English. |
static Es |
SpreadsheetTexts |
Español (es). Needs review. |
static Fr |
SpreadsheetTexts |
Français (fr). Reviewed. |
static It |
SpreadsheetTexts |
Italiano (it). Needs review. |
static Ja |
SpreadsheetTexts |
日本語 (ja). Needs review. |
static Nl |
SpreadsheetTexts |
Nederlands (nl). Needs review. |
static Pt |
SpreadsheetTexts |
Português (pt). Needs review. |
static PtBr |
SpreadsheetTexts |
Português do Brasil (pt-BR). Needs review. |
static Reviewed |
IReadOnlyList |
The codes whose texts were reviewed by a native speaker. The other sets are drafts waiting for review. |
static Ru |
SpreadsheetTexts |
Русский (ru). Needs review. |
static Tables |
IRead |
Every set by locale code: the codes of KlyLocales.. |
static ZhCn |
SpreadsheetTexts |
简体中文 (zh-Hans). Needs review. |
Classes
KlyrooSpreadsheetOptions
Klyroo. · class
Configuration of Klyroo.Spreadsheet: the built-in texts of each locale. It is an extension of KlyrooOptions (KlyrooOptions.services.AddKlyrooSpreadsheet(s => ...)`, in code shared by the server and the WebAssembly client.
| Constructor | Description |
|---|---|
Klyroo |
Creates the options with the built-in texts of Spreadsheet. |
| Method | Returns | Description |
|---|---|---|
Texts |
Klyroo |
Changes the texts of a locale, like KlyLocales. does for Klyroo.UI: change receives the set the locale resolves to and returns the one to use, usually t => t with { ... }. localeCode is a code of KlyLocales. ("fr"), or the code of a locale you added ("en-AU", "tlh"): a locale without a set of its own starts from the set KlyLocales. picks for it, then its changes apply. The texts become read-only the first time a component resolves one. |
Records
SpreadsheetDownload
Klyroo. · record
A file KlySpreadsheet offers to the user: the template or the invalid rows. Passed to KlySpreadsheet.
| Constructor | Description |
|---|---|
Spreadsheet |
A file KlySpreadsheet offers to the user: the template or the invalid rows. Passed to KlySpreadsheet. |
| Field | Type | Description |
|---|---|---|
const Csv |
string |
The media type of the CSV files the component produces. |
| Property | Type | Description |
|---|---|---|
Content (init) |
string |
The text of the file. CSV starts with a byte order mark so Excel reads it as UTF-8. |
FileName (init) |
string |
The suggested file name, for example people-template.. |
MimeType (init) |
string |
The media type, text/. |
SpreadsheetTexts
Klyroo. · record
The built-in texts of KlySpreadsheet: button labels, accessible names, empty states, counters, the messages of the issues the importer raises, and what the live region announces. There is one set per locale of Klyroo.UI (Spreadsheet), and the component shows the set of its current locale, the one its Messages come from. Change a set with Klyroo in AddKlyroo.
| Constructor | Description |
|---|---|
Spreadsheet |
Creates the texts with their English defaults. |
| Property | Type | Description |
|---|---|---|
AllIssues (init) |
string |
The choice of the issue filter that shows every row ("All issues"). |
AllSeverities (init) |
string |
The choice of the severity filter that shows every row ("All severities"). |
AllValuesFound (init) |
string |
The text shown when no value is unknown ("Every value was found in the list"). |
AlreadyImported (init) |
Func |
The note of a failed or cancelled import, given the number of rows already accepted ("40 rows are already imported and will not be sent again."). |
AnswerFor (init) |
Func |
The accessible name of the answer list, given the value ("Answer for Gold"). |
Back (init) |
string |
The Back button ("Back"). |
Cancel (init) |
string |
The button that cancels a running import or check ("Cancel"). |
CheckAgain (init) |
string |
The button that runs the checks again ("Check again"). |
CheckCancelled (init) |
string |
The state of the checks after a cancellation ("The check was cancelled"). |
CheckFailed (init) |
Func |
The state of the checks after a failure whose text is meant for the user (Spreadsheet), given that text ("The check failed: ..."). |
Check (init) |
string |
The state of the checks after any other failure ("The check failed"); the exception goes to Spreadsheet. |
CheckingRows (init) |
string |
The state of the checks while they run ("Checking the rows…"). |
Choose (init) |
string |
The first choice of an unanswered question ("Choose…"). |
ChooseFileLabel (init) |
string |
The accessible name of the file input ("Choose a file to import"). |
Choose (init) |
string |
The hint next to the disabled Continue button of the file step ("Choose a file to continue"). |
ClearSelection (init) |
string |
The button that empties the selection ("Clear selection"). |
CloseInspector (init) |
string |
The accessible name of the button that closes the inspector ("Close inspector"). |
ColumnFor (init) |
Func |
The accessible name of the file column list, given the field label ("Column for Email"). |
ColumnNamesOnRow (init) |
string |
The label of the header row list ("Column names on row"). |
ColumnRow (init) |
string |
The heading of the row number column ("Row"). |
ColumnStatus (init) |
string |
The heading of the status column ("Status"). |
Continue (init) |
string |
The Continue button ("Continue"). |
CreateValue (init) |
Func |
The choice that creates the value, given the value ("Create \"Gold\""). |
DownloadFailed (init) |
string |
The error shown when the browser download fails ("The file could not be downloaded"). It never carries the text of the exception. |
Download (init) |
Func |
The button that downloads the invalid rows, given their count ("Download the 2 invalid rows"). |
DownloadTemplate (init) |
string |
The button that downloads the CSV template ("Download a template"). |
DropFileHere (init) |
string |
The text of the drop zone ("Drop your file here or click to choose one"). |
EditCell (init) |
Func |
The accessible name of the cell editor, given the field label ("Edit Email"). |
EmptyCell (init) |
string |
The text of a cell with no value ("empty"). |
Errors (init) |
string |
The choice of the severity filter that shows rows with errors ("Errors"). |
ExpectedColumns (init) |
string |
The label above the columns the schema expects ("Expected columns:"). |
FileReadFailed (init) |
string |
The error shown when the file the user chose could not be read from the browser ("The file could not be read"). A file that is not a valid workbook has its own message, written by the library. |
FileSummary (init) |
Func |
The summary of the loaded file, given the number of rows, the number of sheets and the row number of the header ("120 rows · 2 sheets · Column names on row 1"). |
FileTooLarge (init) |
Func |
The error for a file over MaxFileSize, given the limit in megabytes ("The file is larger than 10 MB."). |
FirstPage (init) |
string |
The accessible name of the first page button ("First page"). |
Import (init) |
string |
The heading of the wizard when you set no Title ("Import"). |
Import (init) |
string |
The button shown once the import is done ("Import another file"). |
ImportCancelled (init) |
string |
The progress label of a cancelled import ("The import was cancelled"). |
ImportFailed (init) |
string |
The progress label of a failed import ("The import failed"). |
Importing (init) |
string |
The progress label of a running import ("Importing…"). |
ImportRows (init) |
Func |
The import button, given the number of rows it sends ("Import 120 rows"). |
InspectorRow (init) |
Func |
The title of the inspector, given the row number ("Row 12"). |
InspectRow (init) |
Func |
The accessible name of the button that opens a row, given the row number ("Inspect row 12"). |
Issue (init) |
string |
The accessible name of the issue filter ("Issue"). |
IssueBetween (init) |
Func |
The default message of SpreadsheetRule."Value is not between 0 and 100"`). |
IssueBoolean (init) |
Func |
The message of the boolean issue, given the cell text ("\"maybe\" is not yes or no"). |
IssueDate (init) |
Func |
The message of the date issue, given the cell text ("\"31/). |
IssueEmail (init) |
string |
The default message of SpreadsheetRule. ("Not an email address"). |
IssueMax (init) |
Func |
The default message of SpreadsheetRule."Value is above 100"`). |
IssueMin (init) |
Func |
The default message of SpreadsheetRule."Value is below 0"`). |
IssueNumber (init) |
Func |
The message of the number issue, given the cell text ("\"abc\" is not a number"). |
IssuePattern (init) |
string |
The default message of SpreadsheetRule. ("Unexpected format"). |
Issue (init) |
string |
The message of a pattern issue raised because the check timed out ("The format could not be checked in time"). |
IssueRequired (init) |
string |
The message of the required issue ("Required value is missing"). |
Issue (init) |
Func |
The message of the row. issue, given the number of the other row ("Same key as row 4"). |
IssueRowExists (init) |
string |
The message of the row. issue ("Already stored"). |
IssueRowFailed (init) |
string |
The message of the row. issue, which the library writes when a callback of yours (the row factory, a property setter, a rule predicate or ValidateRow) threw. It never contains the text of the exception, which goes to Spreadsheet ("The row could not be checked"). |
IssuesColumn (init) |
string |
The heading of the last column of the invalid rows download ("Issues"). |
Issue (init) |
Func |
The message of the value. issue, given the cell text ("\"Gold\" is not a known value"). |
Issue (init) |
Func |
The message of the value. issue, given the cell text ("Left out: \"Gold\" is set to skip its rows"). |
Issue (init) |
Func |
The message of the value. issue, given the cell text ("\"Gold\" is not a known value · choose it in Values"). |
LastPage (init) |
string |
The accessible name of the last page button ("Last page"). |
LeaveEmpty (init) |
string |
The choice that imports the rows with an empty cell ("Leave empty"). |
LeaveOut (init) |
string |
The button that leaves the selected rows out ("Leave out"). |
LeaveOutRow (init) |
string |
The button that leaves the inspected row out ("Leave out this row"). |
LiveImporting (init) |
Func |
What the live region announces while importing, given the rows sent and the rows to send ("Importing: 40 of 120 rows"). |
LiveReview (init) |
Func |
What the polite live region announces on the review step, given the rows to import, the rows with errors and the rows left out ("To import: 118. With errors: 2. Left out: 0."). |
NextIssueRow (init) |
string |
The accessible name of the button that goes to the next row with issues ("Next row with issues"). |
NextPage (init) |
string |
The accessible name of the next page button ("Next page"). |
NoRows (init) |
string |
The text of a review table with no row to show ("No rows to show"). |
NothingToDo (init) |
string |
The note on a step that was passed over because it had nothing to resolve ("). |
NotImported (init) |
Func |
The list of file columns no field uses, given the list ("Not imported: Notes, Id"). |
NotInFile (init) |
string |
The choice that declares a field absent from the file ("Not in the file"). |
Optional (init) |
string |
The mark of an optional expected column ("optional"). |
OriginalValue (init) |
Func |
The tooltip of an edited cell, given the text in the file ("Original: ada@exmaple.). |
PageOf (init) |
Func |
The page position, given the 1-based page and the page count ("Page 2 of 3"). |
Pagination (init) |
string |
The accessible name of the pager ("Pagination"). |
PasteLabel (init) |
string |
The accessible name of the paste box ("Rows to import"). |
PastePlaceholder (init) |
string |
The placeholder of the paste box ("Paste the rows here, header row first"). |
PasteSummary (init) |
string |
The heading of the paste area ("Or paste rows copied from a spreadsheet"). |
PreviousIssueRow (init) |
string |
The accessible name of the button that goes to the previous row with issues ("Previous row with issues"). |
PreviousPage (init) |
string |
The accessible name of the previous page button ("Previous page"). |
Progress (init) |
Func |
The progress count, given the rows sent and the rows to send ("40 of 120"). |
ReadingFile (init) |
string |
The text of the drop zone while a file is read ("Reading the file…"). |
Replace (init) |
string |
The button that unloads the file to choose another ("Replace"). |
Required (init) |
Func |
The hint of the columns step, given the number of required columns without a file column ("Required columns missing: 2"). |
Restore (init) |
string |
The button that brings the selected rows back ("Restore"). |
RestoreRow (init) |
string |
The button that brings the inspected row back ("Restore this row"). |
ResumeImport (init) |
string |
The button that continues a cancelled import ("Resume the import"). |
RowCount (init) |
Func |
The number of rows that hold an unknown value, given the count ("3 rows"). |
RowLimitNotice (init) |
Func |
The note shown when rows are past the row limit, given the limit and the number of rows left out ("Only the first 10,000 rows are imported. Rows left out because of the limit: 2,345."). |
RowsChecked (init) |
string |
The state of the checks once they finished ("The rows were checked"). |
RowsImported (init) |
Func |
The progress label of a finished import, given the number of rows accepted ("120 rows imported"). |
RowsLeftOut (init) |
string |
The label of the statistic that counts the rows left out ("rows left out"). |
RowsPerPage (init) |
string |
The label of the page size list ("Rows per page"). |
RowsRange (init) |
Func |
The rows on the page, given the first row, the last row and the total ("Rows 51 to 100 of 120"). |
RowsRefused (init) |
Func |
The count of rows the server refused, given the count ("Rows refused: 2"). |
RowsToImport (init) |
string |
The label of the statistic that counts the rows to import ("rows to import"). |
RowsWithErrors (init) |
string |
The label of the statistic that counts the rows with errors ("rows with errors"). |
Rows (init) |
Func |
The hint of the review step, given the number of invalid rows ("Rows with errors are left out: 4"). |
Rule (init) |
Func |
The note shown when a rule was stopped because its matches kept timing out, given the column label and the rule code ("The \"pattern\" check of Code was stopped after repeated timeouts. Its remaining values were not checked."). |
RuleFailedNotice (init) |
Func |
The note shown when a rule was stopped because its predicate kept throwing, given the column label and the rule code ("The \"min\" check of Qty was stopped after repeated failures. Its remaining values were not checked."). |
SamplesText (init) |
Func |
The sample values of a mapped column, given the list ("Samples: A-1, B-2"). |
Saved (init) |
string |
The note shown when Spreadsheet was applied ("Your saved column mapping was applied."). |
Search (init) |
string |
The placeholder of the search box ("Search rows…"). |
SearchRows (init) |
string |
The accessible name of the search box ("Search rows"). |
SeeThem (init) |
string |
The button that shows the refused rows ("See them"). |
SelectedCount (init) |
Func |
The size of the selection, given the number of rows ("3 selected"). |
SelectPageRows (init) |
string |
The accessible name of the checkbox that selects the rows of the page ("Select the rows of this page"). |
SelectRow (init) |
Func |
The accessible name of a row checkbox, given the row number ("Select row 12"). |
SendAgain (init) |
string |
The button that sends the refused rows again ("Send them again"). |
Severity (init) |
string |
The accessible name of the severity filter ("Severity"). |
Sheet (init) |
string |
The label of the sheet list ("Sheet"). |
SkipRows (init) |
string |
The choice that leaves out the rows that hold the value ("Don't import these rows"). |
StatusBlocking (init) |
string |
The status of a row with errors ("Blocking"). |
StatusDiscarded (init) |
string |
The status of a row left out of the import ("Discarded"). |
StatusImported (init) |
string |
The status of a row the host accepted. It is final: the row can no longer be edited or left out ("Imported"). |
StatusValid (init) |
string |
The status of a row without issues ("Valid"). |
StatusWarning (init) |
string |
The status of a row with warnings only ("Warning"). |
StepColumns (init) |
string |
The title of the columns step ("Columns"). |
StepFile (init) |
string |
The title of the file step in the step bar ("File"). |
StepReview (init) |
string |
The title of the review step ("Review"). |
StepSubmit (init) |
string |
The title of the last step ("Import"). |
StepValues (init) |
string |
The title of the values step ("Values"). |
SuggestionText (init) |
Func |
The suggestion, given the header and the sample values ("\"Code\" has values like A-1, B-2"). |
SummaryEdited (init) |
string |
The summary label of the rows with an edited cell ("Cells edited"). |
SummaryInvalid (init) |
string |
The summary label of the invalid rows ("Invalid, not imported"). |
SummaryLeftOut (init) |
string |
The summary label of the rows left out ("Left out"). |
SummaryToImport (init) |
string |
The summary label of the rows to import ("Rows to import"). |
TabAll (init) |
Func |
The tab of all rows, given their count ("All (120)"). |
TabDiscarded (init) |
Func |
The tab of the rows left out, given their count ("Left out (0)"). |
TabImportable (init) |
Func |
The tab of the rows to import, given their count ("To import (118)"). |
TabInvalid (init) |
Func |
The tab of the invalid rows, given their count ("Invalid (2)"). |
TryAgain (init) |
string |
The button that sends the rest again after a failed import ("Try again"). |
Undo (init) |
string |
The button that undoes a manual choice or an edit ("Undo"). |
UpToRows (init) |
Func |
The row limit shown under the drop zone, given the limit ("up to 10,000 rows"). |
UseSuggestion (init) |
string |
The button that accepts a suggested file column ("Use it"). |
UseTheseRows (init) |
string |
The button that loads the pasted rows ("Use these rows"). |
ValuesToChoose (init) |
Func |
The hint of the values step, given the number of open questions ("Values to choose: 3"). |
Warnings (init) |
string |
The choice of the severity filter that shows rows with warnings ("Warnings"). |
WholeRow (init) |
string |
The label of an issue that belongs to the whole row ("Row"). |
| Method | Returns | Description |
|---|---|---|
ResolveIssue |
string |
The message of an issue in the language of this set: the text for its Spreadsheet when the library wrote the message, or Spreadsheet as it is when you did. |
StatusText |
string |
The text of a row status. |
StepTitle |
string |
The title of a wizard step in the step bar. |