Addet ToDaySales page

This commit is contained in:
Alex Pedersen
2026-08-06 13:43:04 +02:00
parent c1695b4967
commit 49a9f336b1
19 changed files with 589 additions and 34 deletions

View File

@@ -9,4 +9,4 @@
"dddd d. MMMM yyyy · HH:mm",
_danishCulture)
</time>
</header>
</header>

View File

@@ -1,4 +1,4 @@
using System.Globalization;
using System.Globalization;
namespace Pos.Web.Components.Shared
{

View File

@@ -0,0 +1,10 @@
@typeparam TItem
<div class="metric-list">
@if (HeaderContent is not null) { <div class="metric-list__header">@HeaderContent</div> }
@foreach (var item in Items) { @RowTemplate(item) }
</div>
@code {
[Parameter] public IReadOnlyList<TItem> Items { get; set; } = Array.Empty<TItem>();
[Parameter] public RenderFragment? HeaderContent { get; set; }
[Parameter] public RenderFragment<TItem> RowTemplate { get; set; } = default!;
}

View File

@@ -0,0 +1,12 @@
<section class="ui-card @Class">
@if (!string.IsNullOrWhiteSpace(Title))
{
<div class="ui-card__header"><h2>@Title</h2></div>
}
<div class="ui-card__body">@ChildContent</div>
</section>
@code {
[Parameter] public string Title { get; set; } = string.Empty;
[Parameter] public string Class { get; set; } = string.Empty;
[Parameter] public RenderFragment? ChildContent { get; set; }
}