The charts on both pages can be limited to a from/to year range
("Alle Jahre" resets it); periods overlapping the range are kept whole.
Period toggle, year range and split note are now one shared component
(BillChartToolbar over BillChartFilter). Both pages move into the
"Charts" group of the menu.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
35 lines
1.6 KiB
Text
35 lines
1.6 KiB
Text
<div class="bill-chart-toolbar">
|
|
<div class="segmented" role="group" aria-label="Zeitraum">
|
|
@foreach (var kind in PeriodKinds)
|
|
{
|
|
<FluentButton Appearance="@(kind == Filter.Kind ? Appearance.Accent : Appearance.Neutral)"
|
|
aria-pressed="@(kind == Filter.Kind ? "true" : "false")"
|
|
OnClick="@(() => ChangeAsync(Filter with { Kind = kind }))">@PeriodKindName(kind)</FluentButton>
|
|
}
|
|
</div>
|
|
|
|
@if (Years.Count > 0)
|
|
{
|
|
<div class="years">
|
|
<FluentSelect TOption="int" Label="Von" Width="110px"
|
|
Items="@Years"
|
|
OptionText="@(y => y.ToString())"
|
|
OptionValue="@(y => y.ToString())"
|
|
SelectedOption="@Range.From"
|
|
SelectedOptionChanged="@OnFromChanged" />
|
|
<FluentSelect TOption="int" Label="Bis" Width="110px"
|
|
Items="@Years"
|
|
OptionText="@(y => y.ToString())"
|
|
OptionValue="@(y => y.ToString())"
|
|
SelectedOption="@Range.To"
|
|
SelectedOptionChanged="@OnToChanged" />
|
|
<FluentButton Appearance="Appearance.Lightweight" OnClick="@(() => ChangeAsync(Filter with { FromYear = null, ToYear = null }))"
|
|
Disabled="@Filter.CoversAll(Years)">Alle Jahre</FluentButton>
|
|
</div>
|
|
}
|
|
|
|
@if (IsSplit)
|
|
{
|
|
<span class="split-note">Werte anteilig auf die Monate der Abrechnungsperiode verteilt</span>
|
|
}
|
|
</div>
|