Added the value card sort to the BeyondFacts Lab (#1206)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-15 13:06:06 +01:00
1 parent 1361b984eb
commit 3ca4b3878b
42 files changed
+2111 -114

No files matched your search

@@ -39,6 +39,30 @@ public partial class BflStepForm : MSGComponentBase
private IReadOnlyList<BflFieldDefinition> Fields => BflFieldCatalog.ForStep(this.Step);
/// <summary>
/// Gets the sections of the form, in the order of their first fields; a form without sections has NONE only.
/// </summary>
private IReadOnlyList<BflFormSection> Sections => [.. this.Fields.Select(definition => definition.Section).Distinct()];
/// <summary>
/// Gets the fields of a section of the form, in the order the catalog lists them.
/// </summary>
/// <param name="section">The section.</param>
private IEnumerable<BflFieldDefinition> FieldsOf(BflFormSection section) => this.Fields.Where(field => field.Section == section);
/// <summary>
/// Gets the shadow of a section: the one of the dashed frame for a section, none for the fields without one.
/// </summary>
/// <param name="section">The section.</param>
private static int SectionElevation(BflFormSection section) => section is BflFormSection.NONE ? 0 : 1;
/// <summary>
/// Gets the CSS classes of a section: the dashed frame which groups related fields, none for the fields without a
/// section.
/// </summary>
/// <param name="section">The section.</param>
private static string SectionClass(BflFormSection section) => section is BflFormSection.NONE ? string.Empty : "pa-3 border-dashed border rounded-lg";
private IReadOnlyList<BflFieldDefinition> MissingFields => BflMissingDetails.Of(this.Step, this.Form);
private bool HasKeyDetails => this.Fields.Any(definition => definition.IsKeyDetail);