|
|
|
@ -1,5 +1,4 @@
|
|
|
|
|
using Connected.Utilities;
|
|
|
|
|
using Microsoft.AspNetCore.Components;
|
|
|
|
|
using Microsoft.AspNetCore.Components;
|
|
|
|
|
|
|
|
|
|
namespace Connected.Components;
|
|
|
|
|
public partial class DatePicker
|
|
|
|
@ -131,17 +130,17 @@ public partial class DatePicker
|
|
|
|
|
public string MonthChipClass(int month)
|
|
|
|
|
{
|
|
|
|
|
if (month.CompareTo(SelectedDate.Month) == 0)
|
|
|
|
|
return "bg-info text-white";
|
|
|
|
|
return "active";
|
|
|
|
|
else
|
|
|
|
|
return "bg-core text-light";
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string YearChipClass(int year)
|
|
|
|
|
{
|
|
|
|
|
if (year.CompareTo(SelectedDate.Year) == 0)
|
|
|
|
|
return "bg-info text-white";
|
|
|
|
|
return "active";
|
|
|
|
|
else
|
|
|
|
|
return "bg-core text-light";
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
|
|
@ -153,32 +152,6 @@ public partial class DatePicker
|
|
|
|
|
await base.OnInitializedAsync();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string NavBarClass
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return new CssBuilder("text-justify")
|
|
|
|
|
.AddClass("text-md-justify")
|
|
|
|
|
//.AddClass("bg-warning")
|
|
|
|
|
.AddClass("p-2")
|
|
|
|
|
.AddClass("text-small")
|
|
|
|
|
.AddClass("text-dark")
|
|
|
|
|
.Build();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string NavBarStyle
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return new StyleBuilder("display","flex")
|
|
|
|
|
.AddStyle("flex-direction","row")
|
|
|
|
|
.AddStyle("flex-wrap","nowrap")
|
|
|
|
|
.AddStyle("justify-content","space-between")
|
|
|
|
|
.Build();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private async Task ClosePicker(bool resetDate=true)
|
|
|
|
|
{
|
|
|
|
|
if (resetDate)
|
|
|
|
|